mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
305 lines
938 KiB
JavaScript
305 lines
938 KiB
JavaScript
(()=>{var eV=Object.create;var Vy=Object.defineProperty;var tV=Object.getOwnPropertyDescriptor;var rV=Object.getOwnPropertyNames;var nV=Object.getPrototypeOf,iV=Object.prototype.hasOwnProperty;var aV=e=>Vy(e,"__esModule",{value:!0});var RC=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oV=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rV(t))!iV.call(e,n)&&n!=="default"&&Vy(e,n,{get:()=>t[n],enumerable:!(r=tV(t,n))||r.enumerable});return e},ze=e=>oV(aV(Vy(e!=null?eV(nV(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Uy=U((qee,PC)=>{"use strict";var FC=Object.getOwnPropertySymbols,uV=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable;function lV(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function cV(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}PC.exports=cV()?Object.assign:function(e,t){for(var r,n=lV(e),a,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var s in r)uV.call(r,s)&&(n[s]=r[s]);if(FC){a=FC(r);for(var c=0;c<a.length;c++)sV.call(r,a[c])&&(n[a[c]]=r[a[c]])}}return n}});var ZC=U(dt=>{"use strict";var Gy=Uy(),js=60103,jC=60106;dt.Fragment=60107;dt.StrictMode=60108;dt.Profiler=60114;var MC=60109,qC=60110,BC=60112;dt.Suspense=60113;var VC=60115,UC=60116;typeof Symbol=="function"&&Symbol.for&&(di=Symbol.for,js=di("react.element"),jC=di("react.portal"),dt.Fragment=di("react.fragment"),dt.StrictMode=di("react.strict_mode"),dt.Profiler=di("react.profiler"),MC=di("react.provider"),qC=di("react.context"),BC=di("react.forward_ref"),dt.Suspense=di("react.suspense"),VC=di("react.memo"),UC=di("react.lazy"));var di,GC=typeof Symbol=="function"&&Symbol.iterator;function fV(e){return e===null||typeof e!="object"?null:(e=GC&&e[GC]||e["@@iterator"],typeof e=="function"?e:null)}function tf(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var QC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KC={};function Ms(e,t,r){this.props=e,this.context=t,this.refs=KC,this.updater=r||QC}Ms.prototype.isReactComponent={};Ms.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(tf(85));this.updater.enqueueSetState(this,e,t,"setState")};Ms.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HC(){}HC.prototype=Ms.prototype;function Qy(e,t,r){this.props=e,this.context=t,this.refs=KC,this.updater=r||QC}var Ky=Qy.prototype=new HC;Ky.constructor=Qy;Gy(Ky,Ms.prototype);Ky.isPureReactComponent=!0;var Hy={current:null},zC=Object.prototype.hasOwnProperty,WC={key:!0,ref:!0,__self:!0,__source:!0};function YC(e,t,r){var n,a={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)zC.call(t,n)&&!WC.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var d=Array(c),h=0;h<c;h++)d[h]=arguments[h+2];a.children=d}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)a[n]===void 0&&(a[n]=c[n]);return{$$typeof:js,type:e,key:o,ref:s,props:a,_owner:Hy.current}}function dV(e,t){return{$$typeof:js,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zy(e){return typeof e=="object"&&e!==null&&e.$$typeof===js}function pV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var JC=/\/+/g;function Wy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?pV(""+e.key):t.toString(36)}function fh(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case js:case jC:s=!0}}if(s)return s=e,a=a(s),e=n===""?"."+Wy(s,0):n,Array.isArray(a)?(r="",e!=null&&(r=e.replace(JC,"$&/")+"/"),fh(a,t,r,"",function(h){return h})):a!=null&&(zy(a)&&(a=dV(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(JC,"$&/")+"/")+e)),t.push(a)),1;if(s=0,n=n===""?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){o=e[c];var d=n+Wy(o,c);s+=fh(o,t,r,d,a)}else if(d=fV(e),typeof d=="function")for(e=d.call(e),c=0;!(o=e.next()).done;)o=o.value,d=n+Wy(o,c++),s+=fh(o,t,r,d,a);else if(o==="object")throw t=""+e,Error(tf(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function dh(e,t,r){if(e==null)return e;var n=[],a=0;return fh(e,n,"","",function(o){return t.call(r,o,a++)}),n}function hV(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var XC={current:null};function Ba(){var e=XC.current;if(e===null)throw Error(tf(321));return e}var vV={ReactCurrentDispatcher:XC,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Hy,IsSomeRendererActing:{current:!1},assign:Gy};dt.Children={map:dh,forEach:function(e,t,r){dh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return dh(e,function(){t++}),t},toArray:function(e){return dh(e,function(t){return t})||[]},only:function(e){if(!zy(e))throw Error(tf(143));return e}};dt.Component=Ms;dt.PureComponent=Qy;dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vV;dt.cloneElement=function(e,t,r){if(e==null)throw Error(tf(267,e));var n=Gy({},e.props),a=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Hy.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)zC.call(t,d)&&!WC.hasOwnProperty(d)&&(n[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)n.children=r;else if(1<d){c=Array(d);for(var h=0;h<d;h++)c[h]=arguments[h+2];n.children=c}return{$$typeof:js,type:e.type,key:a,ref:o,props:n,_owner:s}};dt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:qC,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:MC,_context:e},e.Consumer=e};dt.createElement=YC;dt.createFactory=function(e){var t=YC.bind(null,e);return t.type=e,t};dt.createRef=function(){return{current:null}};dt.forwardRef=function(e){return{$$typeof:BC,render:e}};dt.isValidElement=zy;dt.lazy=function(e){return{$$typeof:UC,_payload:{_status:-1,_result:e},_init:hV}};dt.memo=function(e,t){return{$$typeof:VC,type:e,compare:t===void 0?null:t}};dt.useCallback=function(e,t){return Ba().useCallback(e,t)};dt.useContext=function(e,t){return Ba().useContext(e,t)};dt.useDebugValue=function(){};dt.useEffect=function(e,t){return Ba().useEffect(e,t)};dt.useImperativeHandle=function(e,t,r){return Ba().useImperativeHandle(e,t,r)};dt.useLayoutEffect=function(e,t){return Ba().useLayoutEffect(e,t)};dt.useMemo=function(e,t){return Ba().useMemo(e,t)};dt.useReducer=function(e,t,r){return Ba().useReducer(e,t,r)};dt.useRef=function(e){return Ba().useRef(e)};dt.useState=function(e){return Ba().useState(e)};dt.version="17.0.2"});var Ft=U((Vee,$C)=>{"use strict";$C.exports=ZC()});var a2=U(Ct=>{"use strict";var qs,rf,ph,Yy;typeof performance=="object"&&typeof performance.now=="function"?(e2=performance,Ct.unstable_now=function(){return e2.now()}):(Jy=Date,t2=Jy.now(),Ct.unstable_now=function(){return Jy.now()-t2});var e2,Jy,t2;typeof window=="undefined"||typeof MessageChannel!="function"?(Bs=null,Xy=null,Zy=function(){if(Bs!==null)try{var e=Ct.unstable_now();Bs(!0,e),Bs=null}catch(t){throw setTimeout(Zy,0),t}},qs=function(e){Bs!==null?setTimeout(qs,0,e):(Bs=e,setTimeout(Zy,0))},rf=function(e,t){Xy=setTimeout(e,t)},ph=function(){clearTimeout(Xy)},Ct.unstable_shouldYield=function(){return!1},Yy=Ct.unstable_forceFrameRate=function(){}):(r2=window.setTimeout,n2=window.clearTimeout,typeof console!="undefined"&&(i2=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof i2!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),nf=!1,af=null,hh=-1,$y=5,e0=0,Ct.unstable_shouldYield=function(){return Ct.unstable_now()>=e0},Yy=function(){},Ct.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$y=0<e?Math.floor(1e3/e):5},t0=new MessageChannel,vh=t0.port2,t0.port1.onmessage=function(){if(af!==null){var e=Ct.unstable_now();e0=e+$y;try{af(!0,e)?vh.postMessage(null):(nf=!1,af=null)}catch(t){throw vh.postMessage(null),t}}else nf=!1},qs=function(e){af=e,nf||(nf=!0,vh.postMessage(null))},rf=function(e,t){hh=r2(function(){e(Ct.unstable_now())},t)},ph=function(){n2(hh),hh=-1});var Bs,Xy,Zy,r2,n2,i2,nf,af,hh,$y,e0,t0,vh;function r0(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,a=e[n];if(a!==void 0&&0<mh(a,t))e[n]=t,e[r]=a,r=n;else break e}}function Bi(e){return e=e[0],e===void 0?null:e}function gh(e){var t=e[0];if(t!==void 0){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length;n<a;){var o=2*(n+1)-1,s=e[o],c=o+1,d=e[c];if(s!==void 0&&0>mh(s,r))d!==void 0&&0>mh(d,s)?(e[n]=d,e[c]=r,n=c):(e[n]=s,e[o]=r,n=o);else if(d!==void 0&&0>mh(d,r))e[n]=d,e[c]=r,n=c;else break e}}return t}return null}function mh(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}var oa=[],mo=[],gV=1,pi=null,en=3,yh=!1,_u=!1,of=!1;function n0(e){for(var t=Bi(mo);t!==null;){if(t.callback===null)gh(mo);else if(t.startTime<=e)gh(mo),t.sortIndex=t.expirationTime,r0(oa,t);else break;t=Bi(mo)}}function i0(e){if(of=!1,n0(e),!_u)if(Bi(oa)!==null)_u=!0,qs(a0);else{var t=Bi(mo);t!==null&&rf(i0,t.startTime-e)}}function a0(e,t){_u=!1,of&&(of=!1,ph()),yh=!0;var r=en;try{for(n0(t),pi=Bi(oa);pi!==null&&(!(pi.expirationTime>t)||e&&!Ct.unstable_shouldYield());){var n=pi.callback;if(typeof n=="function"){pi.callback=null,en=pi.priorityLevel;var a=n(pi.expirationTime<=t);t=Ct.unstable_now(),typeof a=="function"?pi.callback=a:pi===Bi(oa)&&gh(oa),n0(t)}else gh(oa);pi=Bi(oa)}if(pi!==null)var o=!0;else{var s=Bi(mo);s!==null&&rf(i0,s.startTime-t),o=!1}return o}finally{pi=null,en=r,yh=!1}}var mV=Yy;Ct.unstable_IdlePriority=5;Ct.unstable_ImmediatePriority=1;Ct.unstable_LowPriority=4;Ct.unstable_NormalPriority=3;Ct.unstable_Profiling=null;Ct.unstable_UserBlockingPriority=2;Ct.unstable_cancelCallback=function(e){e.callback=null};Ct.unstable_continueExecution=function(){_u||yh||(_u=!0,qs(a0))};Ct.unstable_getCurrentPriorityLevel=function(){return en};Ct.unstable_getFirstCallbackNode=function(){return Bi(oa)};Ct.unstable_next=function(e){switch(en){case 1:case 2:case 3:var t=3;break;default:t=en}var r=en;en=t;try{return e()}finally{en=r}};Ct.unstable_pauseExecution=function(){};Ct.unstable_requestPaint=mV;Ct.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=en;en=e;try{return t()}finally{en=r}};Ct.unstable_scheduleCallback=function(e,t,r){var n=Ct.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=r+a,e={id:gV++,callback:t,priorityLevel:e,startTime:r,expirationTime:a,sortIndex:-1},r>n?(e.sortIndex=r,r0(mo,e),Bi(oa)===null&&e===Bi(mo)&&(of?ph():of=!0,rf(i0,r-n))):(e.sortIndex=a,r0(oa,e),_u||yh||(_u=!0,qs(a0))),e};Ct.unstable_wrapCallback=function(e){var t=en;return function(){var r=en;en=t;try{return e.apply(this,arguments)}finally{en=r}}}});var u2=U((Gee,o2)=>{"use strict";o2.exports=a2()});var Ww=U(bi=>{"use strict";var bh=Ft(),Yt=Uy(),Pr=u2();function de(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!bh)throw Error(de(227));var s2=new Set,uf={};function Su(e,t){Vs(e,t),Vs(e+"Capture",t)}function Vs(e,t){for(uf[e]=t,e=0;e<t.length;e++)s2.add(t[e])}var Va=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),yV=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,l2=Object.prototype.hasOwnProperty,c2={},f2={};function bV(e){return l2.call(f2,e)?!0:l2.call(c2,e)?!1:yV.test(e)?f2[e]=!0:(c2[e]=!0,!1)}function EV(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function TV(e,t,r,n){if(t===null||typeof t=="undefined"||EV(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function En(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Qr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qr[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qr[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qr[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qr[e]=new En(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qr[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qr[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qr[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qr[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qr[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var o0=/[\-:]([a-z])/g;function u0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(o0,u0);Qr[t]=new En(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(o0,u0);Qr[t]=new En(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(o0,u0);Qr[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qr[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});Qr.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qr[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function s0(e,t,r,n){var a=Qr.hasOwnProperty(t)?Qr[t]:null,o=a!==null?a.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(TV(t,r,a,n)&&(r=null),n||a===null?bV(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Du=bh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sf=60103,ku=60106,yo=60107,l0=60108,lf=60114,c0=60109,f0=60110,Eh=60112,cf=60113,Th=60120,_h=60115,d0=60116,p0=60121,h0=60128,d2=60129,v0=60130,g0=60131;typeof Symbol=="function"&&Symbol.for&&(Cr=Symbol.for,sf=Cr("react.element"),ku=Cr("react.portal"),yo=Cr("react.fragment"),l0=Cr("react.strict_mode"),lf=Cr("react.profiler"),c0=Cr("react.provider"),f0=Cr("react.context"),Eh=Cr("react.forward_ref"),cf=Cr("react.suspense"),Th=Cr("react.suspense_list"),_h=Cr("react.memo"),d0=Cr("react.lazy"),p0=Cr("react.block"),Cr("react.scope"),h0=Cr("react.opaque.id"),d2=Cr("react.debug_trace_mode"),v0=Cr("react.offscreen"),g0=Cr("react.legacy_hidden"));var Cr,p2=typeof Symbol=="function"&&Symbol.iterator;function ff(e){return e===null||typeof e!="object"?null:(e=p2&&e[p2]||e["@@iterator"],typeof e=="function"?e:null)}var m0;function df(e){if(m0===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);m0=t&&t[1]||""}return`
|
|
`+m0+e}var y0=!1;function Sh(e,t){if(!e||y0)return"";y0=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
|
|
`),o=n.stack.split(`
|
|
`),s=a.length-1,c=o.length-1;1<=s&&0<=c&&a[s]!==o[c];)c--;for(;1<=s&&0<=c;s--,c--)if(a[s]!==o[c]){if(s!==1||c!==1)do if(s--,c--,0>c||a[s]!==o[c])return`
|
|
`+a[s].replace(" at new "," at ");while(1<=s&&0<=c);break}}}finally{y0=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?df(e):""}function _V(e){switch(e.tag){case 5:return df(e.type);case 16:return df("Lazy");case 13:return df("Suspense");case 19:return df("SuspenseList");case 0:case 2:case 15:return e=Sh(e.type,!1),e;case 11:return e=Sh(e.type.render,!1),e;case 22:return e=Sh(e.type._render,!1),e;case 1:return e=Sh(e.type,!0),e;default:return""}}function Us(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yo:return"Fragment";case ku:return"Portal";case lf:return"Profiler";case l0:return"StrictMode";case cf:return"Suspense";case Th:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f0:return(e.displayName||"Context")+".Consumer";case c0:return(e._context.displayName||"Context")+".Provider";case Eh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case _h:return Us(e.type);case p0:return Us(e._render);case d0:t=e._payload,e=e._init;try{return Us(e(t))}catch(r){}}return null}function bo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function h2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SV(e){var t=h2(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dh(e){e._valueTracker||(e._valueTracker=SV(e))}function v2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=h2(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function kh(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function b0(e,t){var r=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function g2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=bo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m2(e,t){t=t.checked,t!=null&&s0(e,"checked",t,!1)}function E0(e,t){m2(e,t);var r=bo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?T0(e,t.type,r):t.hasOwnProperty("defaultValue")&&T0(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function y2(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function T0(e,t,r){(t!=="number"||kh(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function DV(e){var t="";return bh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function _0(e,t){return e=Yt({children:void 0},t),(t=DV(t.children))&&(e.children=t),e}function Gs(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+bo(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function S0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(de(91));return Yt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function b2(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(de(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(de(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:bo(r)}}function E2(e,t){var r=bo(t.value),n=bo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function T2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var D0={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function _2(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function k0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ch,S2=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!==D0.svg||"innerHTML"in e)e.innerHTML=t;else{for(Ch=Ch||document.createElement("div"),Ch.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ch.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hf={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kV=["Webkit","ms","Moz","O"];Object.keys(hf).forEach(function(e){kV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hf[t]=hf[e]})});function D2(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hf.hasOwnProperty(e)&&hf[e]?(""+t).trim():t+"px"}function k2(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=D2(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var CV=Yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function C0(e,t){if(t){if(CV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(de(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(de(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(de(61))}if(t.style!=null&&typeof t.style!="object")throw Error(de(62))}}function O0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function w0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var N0=null,Qs=null,Ks=null;function C2(e){if(e=xf(e)){if(typeof N0!="function")throw Error(de(280));var t=e.stateNode;t&&(t=Hh(t),N0(e.stateNode,e.type,t))}}function O2(e){Qs?Ks?Ks.push(e):Ks=[e]:Qs=e}function w2(){if(Qs){var e=Qs,t=Ks;if(Ks=Qs=null,C2(e),t)for(e=0;e<t.length;e++)C2(t[e])}}function A0(e,t){return e(t)}function N2(e,t,r,n,a){return e(t,r,n,a)}function L0(){}var A2=A0,Cu=!1,x0=!1;function I0(){(Qs!==null||Ks!==null)&&(L0(),w2())}function OV(e,t,r){if(x0)return e(t,r);x0=!0;try{return A2(e,t,r)}finally{x0=!1,I0()}}function vf(e,t){var r=e.stateNode;if(r===null)return null;var n=Hh(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(de(231,t,typeof r));return r}var R0=!1;if(Va)try{Hs={},Object.defineProperty(Hs,"passive",{get:function(){R0=!0}}),window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch(e){R0=!1}var Hs;function wV(e,t,r,n,a,o,s,c,d){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(m){this.onError(m)}}var gf=!1,Oh=null,wh=!1,F0=null,NV={onError:function(e){gf=!0,Oh=e}};function AV(e,t,r,n,a,o,s,c,d){gf=!1,Oh=null,wV.apply(NV,arguments)}function LV(e,t,r,n,a,o,s,c,d){if(AV.apply(this,arguments),gf){if(gf){var h=Oh;gf=!1,Oh=null}else throw Error(de(198));wh||(wh=!0,F0=h)}}function Ou(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!=0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function L2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x2(e){if(Ou(e)!==e)throw Error(de(188))}function xV(e){var t=e.alternate;if(!t){if(t=Ou(e),t===null)throw Error(de(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return x2(a),e;if(o===n)return x2(a),t;o=o.sibling}throw Error(de(188))}if(r.return!==n.return)r=a,n=o;else{for(var s=!1,c=a.child;c;){if(c===r){s=!0,r=a,n=o;break}if(c===n){s=!0,n=a,r=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===r){s=!0,r=o,n=a;break}if(c===n){s=!0,n=o,r=a;break}c=c.sibling}if(!s)throw Error(de(189))}}if(r.alternate!==n)throw Error(de(190))}if(r.tag!==3)throw Error(de(188));return r.stateNode.current===r?e:t}function I2(e){if(e=xV(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function R2(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var F2,P0,P2,j2,j0=!1,ua=[],Eo=null,To=null,_o=null,mf=new Map,yf=new Map,bf=[],M2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function M0(e,t,r,n,a){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:a,targetContainers:[n]}}function q2(e,t){switch(e){case"focusin":case"focusout":Eo=null;break;case"dragenter":case"dragleave":To=null;break;case"mouseover":case"mouseout":_o=null;break;case"pointerover":case"pointerout":mf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yf.delete(t.pointerId)}}function Ef(e,t,r,n,a,o){return e===null||e.nativeEvent!==o?(e=M0(t,r,n,a,o),t!==null&&(t=xf(t),t!==null&&P0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function IV(e,t,r,n,a){switch(t){case"focusin":return Eo=Ef(Eo,e,t,r,n,a),!0;case"dragenter":return To=Ef(To,e,t,r,n,a),!0;case"mouseover":return _o=Ef(_o,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return mf.set(o,Ef(mf.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,yf.set(o,Ef(yf.get(o)||null,e,t,r,n,a)),!0}return!1}function RV(e){var t=wu(e.target);if(t!==null){var r=Ou(t);if(r!==null){if(t=r.tag,t===13){if(t=L2(r),t!==null){e.blockedOn=t,j2(e.lanePriority,function(){Pr.unstable_runWithPriority(e.priority,function(){P2(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Q0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=xf(r),t!==null&&P0(t),e.blockedOn=r,!1;t.shift()}return!0}function B2(e,t,r){Nh(e)&&r.delete(t)}function FV(){for(j0=!1;0<ua.length;){var e=ua[0];if(e.blockedOn!==null){e=xf(e.blockedOn),e!==null&&F2(e);break}for(var t=e.targetContainers;0<t.length;){var r=Q0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&ua.shift()}Eo!==null&&Nh(Eo)&&(Eo=null),To!==null&&Nh(To)&&(To=null),_o!==null&&Nh(_o)&&(_o=null),mf.forEach(B2),yf.forEach(B2)}function Tf(e,t){e.blockedOn===t&&(e.blockedOn=null,j0||(j0=!0,Pr.unstable_scheduleCallback(Pr.unstable_NormalPriority,FV)))}function V2(e){function t(a){return Tf(a,e)}if(0<ua.length){Tf(ua[0],e);for(var r=1;r<ua.length;r++){var n=ua[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Eo!==null&&Tf(Eo,e),To!==null&&Tf(To,e),_o!==null&&Tf(_o,e),mf.forEach(t),yf.forEach(t),r=0;r<bf.length;r++)n=bf[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<bf.length&&(r=bf[0],r.blockedOn===null);)RV(r),r.blockedOn===null&&bf.shift()}function Ah(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var zs={animationend:Ah("Animation","AnimationEnd"),animationiteration:Ah("Animation","AnimationIteration"),animationstart:Ah("Animation","AnimationStart"),transitionend:Ah("Transition","TransitionEnd")},q0={},U2={};Va&&(U2=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Lh(e){if(q0[e])return q0[e];if(!zs[e])return e;var t=zs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in U2)return q0[e]=t[r];return e}var G2=Lh("animationend"),Q2=Lh("animationiteration"),K2=Lh("animationstart"),H2=Lh("transitionend"),z2=new Map,B0=new Map,PV=["abort","abort",G2,"animationEnd",Q2,"animationIteration",K2,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",H2,"transitionEnd","waiting","waiting"];function V0(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],a=e[r+1];a="on"+(a[0].toUpperCase()+a.slice(1)),B0.set(n,t),z2.set(n,a),Su(a,[n])}}var jV=Pr.unstable_now;jV();var qt=8;function Ws(e){if((1&e)!=0)return qt=15,1;if((2&e)!=0)return qt=14,2;if((4&e)!=0)return qt=13,4;var t=24&e;return t!==0?(qt=12,t):(e&32)!=0?(qt=11,32):(t=192&e,t!==0?(qt=10,t):(e&256)!=0?(qt=9,256):(t=3584&e,t!==0?(qt=8,t):(e&4096)!=0?(qt=7,4096):(t=4186112&e,t!==0?(qt=6,t):(t=62914560&e,t!==0?(qt=5,t):e&67108864?(qt=4,67108864):(e&134217728)!=0?(qt=3,134217728):(t=805306368&e,t!==0?(qt=2,t):(1073741824&e)!=0?(qt=1,1073741824):(qt=8,e))))))}function MV(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function qV(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(de(358,e))}}function _f(e,t){var r=e.pendingLanes;if(r===0)return qt=0;var n=0,a=0,o=e.expiredLanes,s=e.suspendedLanes,c=e.pingedLanes;if(o!==0)n=o,a=qt=15;else if(o=r&134217727,o!==0){var d=o&~s;d!==0?(n=Ws(d),a=qt):(c&=o,c!==0&&(n=Ws(c),a=qt))}else o=r&~s,o!==0?(n=Ws(o),a=qt):c!==0&&(n=Ws(c),a=qt);if(n===0)return 0;if(n=31-So(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&s)==0){if(Ws(t),a<=qt)return t;qt=a}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-So(t),a=1<<r,n|=e[r],t&=~a;return n}function W2(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function xh(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Ys(24&~t),e===0?xh(10,t):e;case 10:return e=Ys(192&~t),e===0?xh(8,t):e;case 8:return e=Ys(3584&~t),e===0&&(e=Ys(4186112&~t),e===0&&(e=512)),e;case 2:return t=Ys(805306368&~t),t===0&&(t=268435456),t}throw Error(de(358,e))}function Ys(e){return e&-e}function U0(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ih(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-So(t),e[t]=r}var So=Math.clz32?Math.clz32:UV,BV=Math.log,VV=Math.LN2;function UV(e){return e===0?32:31-(BV(e)/VV|0)|0}var GV=Pr.unstable_UserBlockingPriority,QV=Pr.unstable_runWithPriority,Rh=!0;function KV(e,t,r,n){Cu||L0();var a=G0,o=Cu;Cu=!0;try{N2(a,e,t,r,n)}finally{(Cu=o)||I0()}}function HV(e,t,r,n){QV(GV,G0.bind(null,e,t,r,n))}function G0(e,t,r,n){if(Rh){var a;if((a=(t&4)==0)&&0<ua.length&&-1<M2.indexOf(e))e=M0(null,e,t,r,n),ua.push(e);else{var o=Q0(e,t,r,n);if(o===null)a&&q2(e,n);else{if(a){if(-1<M2.indexOf(e)){e=M0(o,e,t,r,n),ua.push(e);return}if(IV(o,e,t,r,n))return;q2(e,n)}SO(e,t,n,null,r)}}}}function Q0(e,t,r,n){var a=w0(n);if(a=wu(a),a!==null){var o=Ou(a);if(o===null)a=null;else{var s=o.tag;if(s===13){if(a=L2(o),a!==null)return a;a=null}else if(s===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return SO(e,t,n,a,r),null}var Do=null,K0=null,Fh=null;function Y2(){if(Fh)return Fh;var e,t=K0,r=t.length,n,a="value"in Do?Do.value:Do.textContent,o=a.length;for(e=0;e<r&&t[e]===a[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===a[o-n];n++);return Fh=a.slice(e,1<n?1-n:void 0)}function Ph(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jh(){return!0}function J2(){return!1}function Jn(e){function t(r,n,a,o,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(r=e[c],this[c]=r?r(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?jh:J2,this.isPropagationStopped=J2,this}return Yt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=jh)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jh)},persist:function(){},isPersistent:jh}),t}var Js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},H0=Jn(Js),Sf=Yt({},Js,{view:0,detail:0}),zV=Jn(Sf),z0,W0,Df,Mh=Yt({},Sf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Df&&(Df&&e.type==="mousemove"?(z0=e.screenX-Df.screenX,W0=e.screenY-Df.screenY):W0=z0=0,Df=e),z0)},movementY:function(e){return"movementY"in e?e.movementY:W0}}),X2=Jn(Mh),WV=Yt({},Mh,{dataTransfer:0}),YV=Jn(WV),JV=Yt({},Sf,{relatedTarget:0}),Y0=Jn(JV),XV=Yt({},Js,{animationName:0,elapsedTime:0,pseudoElement:0}),ZV=Jn(XV),$V=Yt({},Js,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eU=Jn($V),tU=Yt({},Js,{data:0}),Z2=Jn(tU),rU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nU={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iU[e])?!!t[e]:!1}function J0(){return aU}var oU=Yt({},Sf,{key:function(e){if(e.key){var t=rU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ph(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J0,charCode:function(e){return e.type==="keypress"?Ph(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ph(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uU=Jn(oU),sU=Yt({},Mh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$2=Jn(sU),lU=Yt({},Sf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J0}),cU=Jn(lU),fU=Yt({},Js,{propertyName:0,elapsedTime:0,pseudoElement:0}),dU=Jn(fU),pU=Yt({},Mh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),hU=Jn(pU),vU=[9,13,27,32],X0=Va&&"CompositionEvent"in window,kf=null;Va&&"documentMode"in document&&(kf=document.documentMode);var gU=Va&&"TextEvent"in window&&!kf,eO=Va&&(!X0||kf&&8<kf&&11>=kf),tO=String.fromCharCode(32),rO=!1;function nO(e,t){switch(e){case"keyup":return vU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xs=!1;function mU(e,t){switch(e){case"compositionend":return iO(t);case"keypress":return t.which!==32?null:(rO=!0,tO);case"textInput":return e=t.data,e===tO&&rO?null:e;default:return null}}function yU(e,t){if(Xs)return e==="compositionend"||!X0&&nO(e,t)?(e=Y2(),Fh=K0=Do=null,Xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return eO&&t.locale!=="ko"?null:t.data;default:return null}}var bU={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function aO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bU[e.type]:t==="textarea"}function oO(e,t,r,n){O2(n),t=Uh(t,"onChange"),0<t.length&&(r=new H0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Cf=null,Of=null;function EU(e){yO(e,0)}function qh(e){var t=rl(e);if(v2(t))return e}function TU(e,t){if(e==="change")return t}var uO=!1;Va&&(Va?(Vh="oninput"in document,Vh||(Z0=document.createElement("div"),Z0.setAttribute("oninput","return;"),Vh=typeof Z0.oninput=="function"),Bh=Vh):Bh=!1,uO=Bh&&(!document.documentMode||9<document.documentMode));var Bh,Vh,Z0;function sO(){Cf&&(Cf.detachEvent("onpropertychange",lO),Of=Cf=null)}function lO(e){if(e.propertyName==="value"&&qh(Of)){var t=[];if(oO(t,Of,e,w0(e)),e=EU,Cu)e(t);else{Cu=!0;try{A0(e,t)}finally{Cu=!1,I0()}}}}function _U(e,t,r){e==="focusin"?(sO(),Cf=t,Of=r,Cf.attachEvent("onpropertychange",lO)):e==="focusout"&&sO()}function SU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qh(Of)}function DU(e,t){if(e==="click")return qh(t)}function kU(e,t){if(e==="input"||e==="change")return qh(t)}function CU(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var hi=typeof Object.is=="function"?Object.is:CU,OU=Object.prototype.hasOwnProperty;function wf(e,t){if(hi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!OU.call(t,r[n])||!hi(e[r[n]],t[r[n]]))return!1;return!0}function cO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fO(e,t){var r=cO(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cO(r)}}function dO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pO(){for(var e=window,t=kh();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=kh(e.document)}return t}function $0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wU=Va&&"documentMode"in document&&11>=document.documentMode,Zs=null,eb=null,Nf=null,tb=!1;function hO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tb||Zs==null||Zs!==kh(n)||(n=Zs,"selectionStart"in n&&$0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Nf&&wf(Nf,n)||(Nf=n,n=Uh(eb,"onSelect"),0<n.length&&(t=new H0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Zs)))}V0("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);V0("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);V0(PV,2);for(var vO="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),rb=0;rb<vO.length;rb++)B0.set(vO[rb],0);Vs("onMouseEnter",["mouseout","mouseover"]);Vs("onMouseLeave",["mouseout","mouseover"]);Vs("onPointerEnter",["pointerout","pointerover"]);Vs("onPointerLeave",["pointerout","pointerover"]);Su("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Su("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Su("onBeforeInput",["compositionend","keypress","textInput","paste"]);Su("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Su("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Su("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Af="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gO=new Set("cancel close invalid load scroll toggle".split(" ").concat(Af));function mO(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,LV(n,t,void 0,e),e.currentTarget=null}function yO(e,t){t=(t&4)!=0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var c=n[s],d=c.instance,h=c.currentTarget;if(c=c.listener,d!==o&&a.isPropagationStopped())break e;mO(a,c,h),o=d}else for(s=0;s<n.length;s++){if(c=n[s],d=c.instance,h=c.currentTarget,c=c.listener,d!==o&&a.isPropagationStopped())break e;mO(a,c,h),o=d}}}if(wh)throw e=F0,wh=!1,F0=null,e}function Qt(e,t){var r=NO(t),n=e+"__bubble";r.has(n)||(_O(t,e,2,!1),r.add(n))}var bO="_reactListening"+Math.random().toString(36).slice(2);function EO(e){e[bO]||(e[bO]=!0,s2.forEach(function(t){gO.has(t)||TO(t,!1,e,null),TO(t,!0,e,null)}))}function TO(e,t,r,n){var a=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=r;if(e==="selectionchange"&&r.nodeType!==9&&(o=r.ownerDocument),n!==null&&!t&&gO.has(e)){if(e!=="scroll")return;a|=2,o=n}var s=NO(o),c=e+"__"+(t?"capture":"bubble");s.has(c)||(t&&(a|=4),_O(o,e,a,t),s.add(c))}function _O(e,t,r,n){var a=B0.get(t);switch(a===void 0?2:a){case 0:a=KV;break;case 1:a=HV;break;default:a=G0}r=a.bind(null,t,r,e),a=void 0,!R0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function SO(e,t,r,n,a){var o=n;if((t&1)==0&&(t&2)==0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var c=n.stateNode.containerInfo;if(c===a||c.nodeType===8&&c.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var d=s.tag;if((d===3||d===4)&&(d=s.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;s=s.return}for(;c!==null;){if(s=wu(c),s===null)return;if(d=s.tag,d===5||d===6){n=o=s;continue e}c=c.parentNode}}n=n.return}OV(function(){var h=o,m=w0(r),E=[];e:{var b=z2.get(e);if(b!==void 0){var C=H0,L=e;switch(e){case"keypress":if(Ph(r)===0)break e;case"keydown":case"keyup":C=uU;break;case"focusin":L="focus",C=Y0;break;case"focusout":L="blur",C=Y0;break;case"beforeblur":case"afterblur":C=Y0;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=X2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=YV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=cU;break;case G2:case Q2:case K2:C=ZV;break;case H2:C=dU;break;case"scroll":C=zV;break;case"wheel":C=hU;break;case"copy":case"cut":case"paste":C=eU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=$2}var S=(t&4)!=0,y=!S&&e==="scroll",T=S?b!==null?b+"Capture":null:b;S=[];for(var g=h,k;g!==null;){k=g;var N=k.stateNode;if(k.tag===5&&N!==null&&(k=N,T!==null&&(N=vf(g,T),N!=null&&S.push(Lf(g,N,k)))),y)break;g=g.return}0<S.length&&(b=new C(b,L,null,r,m),E.push({event:b,listeners:S}))}}if((t&7)==0){e:{if(b=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",b&&(t&16)==0&&(L=r.relatedTarget||r.fromElement)&&(wu(L)||L[tl]))break e;if((C||b)&&(b=m.window===m?m:(b=m.ownerDocument)?b.defaultView||b.parentWindow:window,C?(L=r.relatedTarget||r.toElement,C=h,L=L?wu(L):null,L!==null&&(y=Ou(L),L!==y||L.tag!==5&&L.tag!==6)&&(L=null)):(C=null,L=h),C!==L)){if(S=X2,N="onMouseLeave",T="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(S=$2,N="onPointerLeave",T="onPointerEnter",g="pointer"),y=C==null?b:rl(C),k=L==null?b:rl(L),b=new S(N,g+"leave",C,r,m),b.target=y,b.relatedTarget=k,N=null,wu(m)===h&&(S=new S(T,g+"enter",L,r,m),S.target=k,S.relatedTarget=y,N=S),y=N,C&&L)t:{for(S=C,T=L,g=0,k=S;k;k=$s(k))g++;for(k=0,N=T;N;N=$s(N))k++;for(;0<g-k;)S=$s(S),g--;for(;0<k-g;)T=$s(T),k--;for(;g--;){if(S===T||T!==null&&S===T.alternate)break t;S=$s(S),T=$s(T)}S=null}else S=null;C!==null&&DO(E,b,C,S,!1),L!==null&&y!==null&&DO(E,y,L,S,!0)}}e:{if(b=h?rl(h):window,C=b.nodeName&&b.nodeName.toLowerCase(),C==="select"||C==="input"&&b.type==="file")var w=TU;else if(aO(b))if(uO)w=kU;else{w=SU;var D=_U}else(C=b.nodeName)&&C.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")&&(w=DU);if(w&&(w=w(e,h))){oO(E,w,r,m);break e}D&&D(e,b,h),e==="focusout"&&(D=b._wrapperState)&&D.controlled&&b.type==="number"&&T0(b,"number",b.value)}switch(D=h?rl(h):window,e){case"focusin":(aO(D)||D.contentEditable==="true")&&(Zs=D,eb=h,Nf=null);break;case"focusout":Nf=eb=Zs=null;break;case"mousedown":tb=!0;break;case"contextmenu":case"mouseup":case"dragend":tb=!1,hO(E,r,m);break;case"selectionchange":if(wU)break;case"keydown":case"keyup":hO(E,r,m)}var F;if(X0)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Xs?nO(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(eO&&r.locale!=="ko"&&(Xs||P!=="onCompositionStart"?P==="onCompositionEnd"&&Xs&&(F=Y2()):(Do=m,K0="value"in Do?Do.value:Do.textContent,Xs=!0)),D=Uh(h,P),0<D.length&&(P=new Z2(P,e,null,r,m),E.push({event:P,listeners:D}),F?P.data=F:(F=iO(r),F!==null&&(P.data=F)))),(F=gU?mU(e,r):yU(e,r))&&(h=Uh(h,"onBeforeInput"),0<h.length&&(m=new Z2("onBeforeInput","beforeinput",null,r,m),E.push({event:m,listeners:h}),m.data=F))}yO(E,t)})}function Lf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Uh(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=vf(e,r),o!=null&&n.unshift(Lf(e,o,a)),o=vf(e,t),o!=null&&n.push(Lf(e,o,a))),e=e.return}return n}function $s(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function DO(e,t,r,n,a){for(var o=t._reactName,s=[];r!==null&&r!==n;){var c=r,d=c.alternate,h=c.stateNode;if(d!==null&&d===n)break;c.tag===5&&h!==null&&(c=h,a?(d=vf(r,o),d!=null&&s.unshift(Lf(r,d,c))):a||(d=vf(r,o),d!=null&&s.push(Lf(r,d,c)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}function Gh(){}var nb=null,ib=null;function kO(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ab(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var CO=typeof setTimeout=="function"?setTimeout:void 0,NU=typeof clearTimeout=="function"?clearTimeout:void 0;function ob(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function el(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function OO(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ub=0;function AU(e){return{$$typeof:h0,toString:e,valueOf:e}}var Qh=Math.random().toString(36).slice(2),ko="__reactFiber$"+Qh,Kh="__reactProps$"+Qh,tl="__reactContainer$"+Qh,wO="__reactEvents$"+Qh;function wu(e){var t=e[ko];if(t)return t;for(var r=e.parentNode;r;){if(t=r[tl]||r[ko]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=OO(e);e!==null;){if(r=e[ko])return r;e=OO(e)}return t}e=r,r=e.parentNode}return null}function xf(e){return e=e[ko]||e[tl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(de(33))}function Hh(e){return e[Kh]||null}function NO(e){var t=e[wO];return t===void 0&&(t=e[wO]=new Set),t}var sb=[],nl=-1;function Co(e){return{current:e}}function Kt(e){0>nl||(e.current=sb[nl],sb[nl]=null,nl--)}function ar(e,t){nl++,sb[nl]=e.current,e.current=t}var Oo={},tn=Co(Oo),In=Co(!1),Nu=Oo;function il(e,t){var r=e.type.contextTypes;if(!r)return Oo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rn(e){return e=e.childContextTypes,e!=null}function zh(){Kt(In),Kt(tn)}function AO(e,t,r){if(tn.current!==Oo)throw Error(de(168));ar(tn,t),ar(In,r)}function LO(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(de(108,Us(t)||"Unknown",a));return Yt({},r,n)}function Wh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Nu=tn.current,ar(tn,e),ar(In,In.current),!0}function xO(e,t,r){var n=e.stateNode;if(!n)throw Error(de(169));r?(e=LO(e,t,Nu),n.__reactInternalMemoizedMergedChildContext=e,Kt(In),Kt(tn),ar(tn,e)):Kt(In),ar(In,r)}var lb=null,Au=null,LU=Pr.unstable_runWithPriority,cb=Pr.unstable_scheduleCallback,fb=Pr.unstable_cancelCallback,xU=Pr.unstable_shouldYield,IO=Pr.unstable_requestPaint,db=Pr.unstable_now,IU=Pr.unstable_getCurrentPriorityLevel,Yh=Pr.unstable_ImmediatePriority,RO=Pr.unstable_UserBlockingPriority,FO=Pr.unstable_NormalPriority,PO=Pr.unstable_LowPriority,jO=Pr.unstable_IdlePriority,pb={},RU=IO!==void 0?IO:function(){},Ua=null,Jh=null,hb=!1,MO=db(),rn=1e4>MO?db:function(){return db()-MO};function al(){switch(IU()){case Yh:return 99;case RO:return 98;case FO:return 97;case PO:return 96;case jO:return 95;default:throw Error(de(332))}}function qO(e){switch(e){case 99:return Yh;case 98:return RO;case 97:return FO;case 96:return PO;case 95:return jO;default:throw Error(de(332))}}function Lu(e,t){return e=qO(e),LU(e,t)}function If(e,t,r){return e=qO(e),cb(e,t,r)}function sa(){if(Jh!==null){var e=Jh;Jh=null,fb(e)}BO()}function BO(){if(!hb&&Ua!==null){hb=!0;var e=0;try{var t=Ua;Lu(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ua=null}catch(r){throw Ua!==null&&(Ua=Ua.slice(e+1)),cb(Yh,sa),r}finally{hb=!1}}}var FU=Du.ReactCurrentBatchConfig;function Vi(e,t){if(e&&e.defaultProps){t=Yt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Xh=Co(null),Zh=null,ol=null,$h=null;function vb(){$h=ol=Zh=null}function gb(e){var t=Xh.current;Kt(Xh),e.type._context._currentValue=t}function VO(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function ul(e,t){Zh=e,$h=ol=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!=0&&(Ui=!0),e.firstContext=null)}function vi(e,t){if($h!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&($h=e,t=1073741823),t={context:e,observedBits:t,next:null},ol===null){if(Zh===null)throw Error(de(308));ol=t,Zh.dependencies={lanes:0,firstContext:t,responders:null}}else ol=ol.next=t;return e._currentValue}var wo=!1;function mb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function UO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function No(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ao(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function GO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Rf(e,t,r,n){var a=e.updateQueue;wo=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,h=d.next;d.next=null,s===null?o=h:s.next=h,s=d;var m=e.alternate;if(m!==null){m=m.updateQueue;var E=m.lastBaseUpdate;E!==s&&(E===null?m.firstBaseUpdate=h:E.next=h,m.lastBaseUpdate=d)}}if(o!==null){E=a.baseState,s=0,m=h=d=null;do{c=o.lane;var b=o.eventTime;if((n&c)===c){m!==null&&(m=m.next={eventTime:b,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var C=e,L=o;switch(c=t,b=r,L.tag){case 1:if(C=L.payload,typeof C=="function"){E=C.call(b,E,c);break e}E=C;break e;case 3:C.flags=C.flags&-4097|64;case 0:if(C=L.payload,c=typeof C=="function"?C.call(b,E,c):C,c==null)break e;E=Yt({},E,c);break e;case 2:wo=!0}}o.callback!==null&&(e.flags|=32,c=a.effects,c===null?a.effects=[o]:c.push(o))}else b={eventTime:b,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},m===null?(h=m=b,d=E):m=m.next=b,s|=c;if(o=o.next,o===null){if(c=a.shared.pending,c===null)break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(1);m===null&&(d=E),a.baseState=d,a.firstBaseUpdate=h,a.lastBaseUpdate=m,Hf|=s,e.lanes=s,e.memoizedState=E}}function QO(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(de(191,a));a.call(n)}}}var KO=new bh.Component().refs;function ev(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Yt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var tv={isMounted:function(e){return(e=e._reactInternals)?Ou(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Xn(),a=Io(e),o=No(n,a);o.payload=t,r!=null&&(o.callback=r),Ao(e,o),Ro(e,a,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Xn(),a=Io(e),o=No(n,a);o.tag=1,o.payload=t,r!=null&&(o.callback=r),Ao(e,o),Ro(e,a,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Xn(),n=Io(e),a=No(r,n);a.tag=2,t!=null&&(a.callback=t),Ao(e,a),Ro(e,n,r)}};function HO(e,t,r,n,a,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!wf(r,n)||!wf(a,o):!0}function zO(e,t,r){var n=!1,a=Oo,o=t.contextType;return typeof o=="object"&&o!==null?o=vi(o):(a=Rn(t)?Nu:tn.current,n=t.contextTypes,o=(n=n!=null)?il(e,a):Oo),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tv,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function WO(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&tv.enqueueReplaceState(t,t.state,null)}function yb(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=KO,mb(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=vi(o):(o=Rn(t)?Nu:tn.current,a.context=il(e,o)),Rf(e,r,a,n),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ev(e,t,o,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&tv.enqueueReplaceState(a,a.state,null),Rf(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4)}var rv=Array.isArray;function Ff(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(de(309));var n=r.stateNode}if(!n)throw Error(de(147,e));var a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=n.refs;s===KO&&(s=n.refs={}),o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(de(284));if(!r._owner)throw Error(de(290,e))}return e}function nv(e,t){if(e.type!=="textarea")throw Error(de(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function YO(e){function t(y,T){if(e){var g=y.lastEffect;g!==null?(g.nextEffect=T,y.lastEffect=T):y.firstEffect=y.lastEffect=T,T.nextEffect=null,T.flags=8}}function r(y,T){if(!e)return null;for(;T!==null;)t(y,T),T=T.sibling;return null}function n(y,T){for(y=new Map;T!==null;)T.key!==null?y.set(T.key,T):y.set(T.index,T),T=T.sibling;return y}function a(y,T){return y=jo(y,T),y.index=0,y.sibling=null,y}function o(y,T,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<T?(y.flags=2,T):g):(y.flags=2,T)):T}function s(y){return e&&y.alternate===null&&(y.flags=2),y}function c(y,T,g,k){return T===null||T.tag!==6?(T=eE(g,y.mode,k),T.return=y,T):(T=a(T,g),T.return=y,T)}function d(y,T,g,k){return T!==null&&T.elementType===g.type?(k=a(T,g.props),k.ref=Ff(y,T,g),k.return=y,k):(k=Tv(g.type,g.key,g.props,null,y.mode,k),k.ref=Ff(y,T,g),k.return=y,k)}function h(y,T,g,k){return T===null||T.tag!==4||T.stateNode.containerInfo!==g.containerInfo||T.stateNode.implementation!==g.implementation?(T=tE(g,y.mode,k),T.return=y,T):(T=a(T,g.children||[]),T.return=y,T)}function m(y,T,g,k,N){return T===null||T.tag!==7?(T=vl(g,y.mode,k,N),T.return=y,T):(T=a(T,g),T.return=y,T)}function E(y,T,g){if(typeof T=="string"||typeof T=="number")return T=eE(""+T,y.mode,g),T.return=y,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case sf:return g=Tv(T.type,T.key,T.props,null,y.mode,g),g.ref=Ff(y,null,T),g.return=y,g;case ku:return T=tE(T,y.mode,g),T.return=y,T}if(rv(T)||ff(T))return T=vl(T,y.mode,g,null),T.return=y,T;nv(y,T)}return null}function b(y,T,g,k){var N=T!==null?T.key:null;if(typeof g=="string"||typeof g=="number")return N!==null?null:c(y,T,""+g,k);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case sf:return g.key===N?g.type===yo?m(y,T,g.props.children,k,N):d(y,T,g,k):null;case ku:return g.key===N?h(y,T,g,k):null}if(rv(g)||ff(g))return N!==null?null:m(y,T,g,k,null);nv(y,g)}return null}function C(y,T,g,k,N){if(typeof k=="string"||typeof k=="number")return y=y.get(g)||null,c(T,y,""+k,N);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case sf:return y=y.get(k.key===null?g:k.key)||null,k.type===yo?m(T,y,k.props.children,N,k.key):d(T,y,k,N);case ku:return y=y.get(k.key===null?g:k.key)||null,h(T,y,k,N)}if(rv(k)||ff(k))return y=y.get(g)||null,m(T,y,k,N,null);nv(T,k)}return null}function L(y,T,g,k){for(var N=null,w=null,D=T,F=T=0,P=null;D!==null&&F<g.length;F++){D.index>F?(P=D,D=null):P=D.sibling;var B=b(y,D,g[F],k);if(B===null){D===null&&(D=P);break}e&&D&&B.alternate===null&&t(y,D),T=o(B,T,F),w===null?N=B:w.sibling=B,w=B,D=P}if(F===g.length)return r(y,D),N;if(D===null){for(;F<g.length;F++)D=E(y,g[F],k),D!==null&&(T=o(D,T,F),w===null?N=D:w.sibling=D,w=D);return N}for(D=n(y,D);F<g.length;F++)P=C(D,y,F,g[F],k),P!==null&&(e&&P.alternate!==null&&D.delete(P.key===null?F:P.key),T=o(P,T,F),w===null?N=P:w.sibling=P,w=P);return e&&D.forEach(function(z){return t(y,z)}),N}function S(y,T,g,k){var N=ff(g);if(typeof N!="function")throw Error(de(150));if(g=N.call(g),g==null)throw Error(de(151));for(var w=N=null,D=T,F=T=0,P=null,B=g.next();D!==null&&!B.done;F++,B=g.next()){D.index>F?(P=D,D=null):P=D.sibling;var z=b(y,D,B.value,k);if(z===null){D===null&&(D=P);break}e&&D&&z.alternate===null&&t(y,D),T=o(z,T,F),w===null?N=z:w.sibling=z,w=z,D=P}if(B.done)return r(y,D),N;if(D===null){for(;!B.done;F++,B=g.next())B=E(y,B.value,k),B!==null&&(T=o(B,T,F),w===null?N=B:w.sibling=B,w=B);return N}for(D=n(y,D);!B.done;F++,B=g.next())B=C(D,y,F,B.value,k),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?F:B.key),T=o(B,T,F),w===null?N=B:w.sibling=B,w=B);return e&&D.forEach(function(G){return t(y,G)}),N}return function(y,T,g,k){var N=typeof g=="object"&&g!==null&&g.type===yo&&g.key===null;N&&(g=g.props.children);var w=typeof g=="object"&&g!==null;if(w)switch(g.$$typeof){case sf:e:{for(w=g.key,N=T;N!==null;){if(N.key===w){switch(N.tag){case 7:if(g.type===yo){r(y,N.sibling),T=a(N,g.props.children),T.return=y,y=T;break e}break;default:if(N.elementType===g.type){r(y,N.sibling),T=a(N,g.props),T.ref=Ff(y,N,g),T.return=y,y=T;break e}}r(y,N);break}else t(y,N);N=N.sibling}g.type===yo?(T=vl(g.props.children,y.mode,k,g.key),T.return=y,y=T):(k=Tv(g.type,g.key,g.props,null,y.mode,k),k.ref=Ff(y,T,g),k.return=y,y=k)}return s(y);case ku:e:{for(N=g.key;T!==null;){if(T.key===N)if(T.tag===4&&T.stateNode.containerInfo===g.containerInfo&&T.stateNode.implementation===g.implementation){r(y,T.sibling),T=a(T,g.children||[]),T.return=y,y=T;break e}else{r(y,T);break}else t(y,T);T=T.sibling}T=tE(g,y.mode,k),T.return=y,y=T}return s(y)}if(typeof g=="string"||typeof g=="number")return g=""+g,T!==null&&T.tag===6?(r(y,T.sibling),T=a(T,g),T.return=y,y=T):(r(y,T),T=eE(g,y.mode,k),T.return=y,y=T),s(y);if(rv(g))return L(y,T,g,k);if(ff(g))return S(y,T,g,k);if(w&&nv(y,g),typeof g=="undefined"&&!N)switch(y.tag){case 1:case 22:case 0:case 11:case 15:throw Error(de(152,Us(y.type)||"Component"))}return r(y,T)}}var iv=YO(!0),JO=YO(!1),Pf={},la=Co(Pf),jf=Co(Pf),Mf=Co(Pf);function xu(e){if(e===Pf)throw Error(de(174));return e}function bb(e,t){switch(ar(Mf,t),ar(jf,e),ar(la,Pf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:k0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=k0(t,e)}Kt(la),ar(la,t)}function sl(){Kt(la),Kt(jf),Kt(Mf)}function XO(e){xu(Mf.current);var t=xu(la.current),r=k0(t,e.type);t!==r&&(ar(jf,e),ar(la,r))}function Eb(e){jf.current===e&&(Kt(la),Kt(jf))}var or=Co(0);function av(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ga=null,Lo=null,ca=!1;function ZO(e,t){var r=yi(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function $O(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Tb(e){if(ca){var t=Lo;if(t){var r=t;if(!$O(e,t)){if(t=el(r.nextSibling),!t||!$O(e,t)){e.flags=e.flags&-1025|2,ca=!1,Ga=e;return}ZO(Ga,r)}Ga=e,Lo=el(t.firstChild)}else e.flags=e.flags&-1025|2,ca=!1,Ga=e}}function ew(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ga=e}function ov(e){if(e!==Ga)return!1;if(!ca)return ew(e),ca=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ab(t,e.memoizedProps))for(t=Lo;t;)ZO(e,t),t=el(t.nextSibling);if(ew(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(de(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Lo=el(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Lo=null}}else Lo=Ga?el(e.stateNode.nextSibling):null;return!0}function _b(){Lo=Ga=null,ca=!1}var ll=[];function Sb(){for(var e=0;e<ll.length;e++)ll[e]._workInProgressVersionPrimary=null;ll.length=0}var qf=Du.ReactCurrentDispatcher,gi=Du.ReactCurrentBatchConfig,Bf=0,dr=null,nn=null,Kr=null,uv=!1,Vf=!1;function Fn(){throw Error(de(321))}function Db(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!hi(e[r],t[r]))return!1;return!0}function kb(e,t,r,n,a,o){if(Bf=o,dr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qf.current=e===null||e.memoizedState===null?jU:MU,e=r(n,a),Vf){o=0;do{if(Vf=!1,!(25>o))throw Error(de(301));o+=1,Kr=nn=null,t.updateQueue=null,qf.current=qU,e=r(n,a)}while(Vf)}if(qf.current=fv,t=nn!==null&&nn.next!==null,Bf=0,Kr=nn=dr=null,uv=!1,t)throw Error(de(300));return e}function Iu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?dr.memoizedState=Kr=e:Kr=Kr.next=e,Kr}function Ru(){if(nn===null){var e=dr.alternate;e=e!==null?e.memoizedState:null}else e=nn.next;var t=Kr===null?dr.memoizedState:Kr.next;if(t!==null)Kr=t,nn=e;else{if(e===null)throw Error(de(310));nn=e,e={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},Kr===null?dr.memoizedState=Kr=e:Kr=Kr.next=e}return Kr}function fa(e,t){return typeof t=="function"?t(e):t}function Uf(e){var t=Ru(),r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=e;var n=nn,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){a=a.next,n=n.baseState;var c=s=o=null,d=a;do{var h=d.lane;if((Bf&h)===h)c!==null&&(c=c.next={lane:0,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null}),n=d.eagerReducer===e?d.eagerState:e(n,d.action);else{var m={lane:h,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null};c===null?(s=c=m,o=n):c=c.next=m,dr.lanes|=h,Hf|=h}d=d.next}while(d!==null&&d!==a);c===null?o=n:c.next=s,hi(n,t.memoizedState)||(Ui=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Gf(e){var t=Ru(),r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);hi(o,t.memoizedState)||(Ui=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function tw(e,t,r){var n=t._getVersion;n=n(t._source);var a=t._workInProgressVersionPrimary;if(a!==null?e=a===n:(e=e.mutableReadLanes,(e=(Bf&e)===e)&&(t._workInProgressVersionPrimary=n,ll.push(t))),e)return r(t._source);throw ll.push(t),Error(de(350))}function rw(e,t,r,n){var a=Tn;if(a===null)throw Error(de(349));var o=t._getVersion,s=o(t._source),c=qf.current,d=c.useState(function(){return tw(a,t,r)}),h=d[1],m=d[0];d=Kr;var E=e.memoizedState,b=E.refs,C=b.getSnapshot,L=E.source;E=E.subscribe;var S=dr;return e.memoizedState={refs:b,source:t,subscribe:n},c.useEffect(function(){b.getSnapshot=r,b.setSnapshot=h;var y=o(t._source);if(!hi(s,y)){y=r(t._source),hi(m,y)||(h(y),y=Io(S),a.mutableReadLanes|=y&a.pendingLanes),y=a.mutableReadLanes,a.entangledLanes|=y;for(var T=a.entanglements,g=y;0<g;){var k=31-So(g),N=1<<k;T[k]|=y,g&=~N}}},[r,t,n]),c.useEffect(function(){return n(t._source,function(){var y=b.getSnapshot,T=b.setSnapshot;try{T(y(t._source));var g=Io(S);a.mutableReadLanes|=g&a.pendingLanes}catch(k){T(function(){throw k})}})},[t,n]),hi(C,r)&&hi(L,t)&&hi(E,n)||(e={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:m},e.dispatch=h=Nb.bind(null,dr,e),d.queue=e,d.baseQueue=null,m=tw(a,t,r),d.memoizedState=d.baseState=m),m}function nw(e,t,r){var n=Ru();return rw(n,e,t,r)}function Qf(e){var t=Iu();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},e=e.dispatch=Nb.bind(null,dr,e),[t.memoizedState,e]}function sv(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=dr.updateQueue,t===null?(t={lastEffect:null},dr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function iw(e){var t=Iu();return e={current:e},t.memoizedState=e}function lv(){return Ru().memoizedState}function Cb(e,t,r,n){var a=Iu();dr.flags|=e,a.memoizedState=sv(1|t,r,void 0,n===void 0?null:n)}function Ob(e,t,r,n){var a=Ru();n=n===void 0?null:n;var o=void 0;if(nn!==null){var s=nn.memoizedState;if(o=s.destroy,n!==null&&Db(n,s.deps)){sv(t,r,o,n);return}}dr.flags|=e,a.memoizedState=sv(1|t,r,o,n)}function aw(e,t){return Cb(516,4,e,t)}function cv(e,t){return Ob(516,4,e,t)}function ow(e,t){return Ob(4,2,e,t)}function uw(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sw(e,t,r){return r=r!=null?r.concat([e]):null,Ob(4,2,uw.bind(null,t,e),r)}function wb(){}function lw(e,t){var r=Ru();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Db(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function cw(e,t){var r=Ru();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Db(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function PU(e,t){var r=al();Lu(98>r?98:r,function(){e(!0)}),Lu(97<r?97:r,function(){var n=gi.transition;gi.transition=1;try{e(!1),t()}finally{gi.transition=n}})}function Nb(e,t,r){var n=Xn(),a=Io(e),o={lane:a,action:r,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(s===null?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===dr||s!==null&&s===dr)Vf=uv=!0;else{if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var c=t.lastRenderedState,d=s(c,r);if(o.eagerReducer=s,o.eagerState=d,hi(d,c))return}catch(h){}finally{}Ro(e,a,n)}}var fv={readContext:vi,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useLayoutEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useMutableSource:Fn,useOpaqueIdentifier:Fn,unstable_isNewReconciler:!1},jU={readContext:vi,useCallback:function(e,t){return Iu().memoizedState=[e,t===void 0?null:t],e},useContext:vi,useEffect:aw,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Cb(4,2,uw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Cb(4,2,e,t)},useMemo:function(e,t){var r=Iu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Iu();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Nb.bind(null,dr,e),[n.memoizedState,e]},useRef:iw,useState:Qf,useDebugValue:wb,useDeferredValue:function(e){var t=Qf(e),r=t[0],n=t[1];return aw(function(){var a=gi.transition;gi.transition=1;try{n(e)}finally{gi.transition=a}},[e]),r},useTransition:function(){var e=Qf(!1),t=e[0];return e=PU.bind(null,e[1]),iw(e),[e,t]},useMutableSource:function(e,t,r){var n=Iu();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},rw(n,e,t,r)},useOpaqueIdentifier:function(){if(ca){var e=!1,t=AU(function(){throw e||(e=!0,r("r:"+(ub++).toString(36))),Error(de(355))}),r=Qf(t)[1];return(dr.mode&2)==0&&(dr.flags|=516,sv(5,function(){r("r:"+(ub++).toString(36))},void 0,null)),t}return t="r:"+(ub++).toString(36),Qf(t),t},unstable_isNewReconciler:!1},MU={readContext:vi,useCallback:lw,useContext:vi,useEffect:cv,useImperativeHandle:sw,useLayoutEffect:ow,useMemo:cw,useReducer:Uf,useRef:lv,useState:function(){return Uf(fa)},useDebugValue:wb,useDeferredValue:function(e){var t=Uf(fa),r=t[0],n=t[1];return cv(function(){var a=gi.transition;gi.transition=1;try{n(e)}finally{gi.transition=a}},[e]),r},useTransition:function(){var e=Uf(fa)[0];return[lv().current,e]},useMutableSource:nw,useOpaqueIdentifier:function(){return Uf(fa)[0]},unstable_isNewReconciler:!1},qU={readContext:vi,useCallback:lw,useContext:vi,useEffect:cv,useImperativeHandle:sw,useLayoutEffect:ow,useMemo:cw,useReducer:Gf,useRef:lv,useState:function(){return Gf(fa)},useDebugValue:wb,useDeferredValue:function(e){var t=Gf(fa),r=t[0],n=t[1];return cv(function(){var a=gi.transition;gi.transition=1;try{n(e)}finally{gi.transition=a}},[e]),r},useTransition:function(){var e=Gf(fa)[0];return[lv().current,e]},useMutableSource:nw,useOpaqueIdentifier:function(){return Gf(fa)[0]},unstable_isNewReconciler:!1},BU=Du.ReactCurrentOwner,Ui=!1;function Pn(e,t,r,n){t.child=e===null?JO(t,null,r,n):iv(t,e.child,r,n)}function fw(e,t,r,n,a){r=r.render;var o=t.ref;return ul(t,a),n=kb(e,t,r,n,o,a),e!==null&&!Ui?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Qa(e,t,a)):(t.flags|=1,Pn(e,t,n,a),t.child)}function dw(e,t,r,n,a,o){if(e===null){var s=r.type;return typeof s=="function"&&!Zb(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,pw(e,t,s,n,a,o)):(e=Tv(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return s=e.child,(a&o)==0&&(a=s.memoizedProps,r=r.compare,r=r!==null?r:wf,r(a,n)&&e.ref===t.ref)?Qa(e,t,o):(t.flags|=1,e=jo(s,n),e.ref=t.ref,e.return=t,t.child=e)}function pw(e,t,r,n,a,o){if(e!==null&&wf(e.memoizedProps,n)&&e.ref===t.ref)if(Ui=!1,(o&a)!=0)(e.flags&16384)!=0&&(Ui=!0);else return t.lanes=e.lanes,Qa(e,t,o);return Lb(e,t,r,n,o)}function Ab(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if((t.mode&4)==0)t.memoizedState={baseLanes:0},Ev(t,r);else if((r&1073741824)!=0)t.memoizedState={baseLanes:0},Ev(t,o!==null?o.baseLanes:r);else return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ev(t,e),null;else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ev(t,n);return Pn(e,t,a,r),t.child}function hw(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function Lb(e,t,r,n,a){var o=Rn(r)?Nu:tn.current;return o=il(t,o),ul(t,a),r=kb(e,t,r,n,o,a),e!==null&&!Ui?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,Qa(e,t,a)):(t.flags|=1,Pn(e,t,r,a),t.child)}function vw(e,t,r,n,a){if(Rn(r)){var o=!0;Wh(t)}else o=!1;if(ul(t,a),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),zO(t,r,n),yb(t,r,n,a),n=!0;else if(e===null){var s=t.stateNode,c=t.memoizedProps;s.props=c;var d=s.context,h=r.contextType;typeof h=="object"&&h!==null?h=vi(h):(h=Rn(r)?Nu:tn.current,h=il(t,h));var m=r.getDerivedStateFromProps,E=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";E||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==n||d!==h)&&WO(t,s,n,h),wo=!1;var b=t.memoizedState;s.state=b,Rf(t,n,s,a),d=t.memoizedState,c!==n||b!==d||In.current||wo?(typeof m=="function"&&(ev(t,r,m,n),d=t.memoizedState),(c=wo||HO(t,r,c,n,b,d,h))?(E||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4)):(typeof s.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=d),s.props=n,s.state=d,s.context=h,n=c):(typeof s.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{s=t.stateNode,UO(e,t),c=t.memoizedProps,h=t.type===t.elementType?c:Vi(t.type,c),s.props=h,E=t.pendingProps,b=s.context,d=r.contextType,typeof d=="object"&&d!==null?d=vi(d):(d=Rn(r)?Nu:tn.current,d=il(t,d));var C=r.getDerivedStateFromProps;(m=typeof C=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==E||b!==d)&&WO(t,s,n,d),wo=!1,b=t.memoizedState,s.state=b,Rf(t,n,s,a);var L=t.memoizedState;c!==E||b!==L||In.current||wo?(typeof C=="function"&&(ev(t,r,C,n),L=t.memoizedState),(h=wo||HO(t,r,h,n,b,L,d))?(m||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,L,d),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,L,d)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=L),s.props=n,s.state=L,s.context=d,n=h):(typeof s.componentDidUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&b===e.memoizedState||(t.flags|=256),n=!1)}return xb(e,t,r,n,o,a)}function xb(e,t,r,n,a,o){hw(e,t);var s=(t.flags&64)!=0;if(!n&&!s)return a&&xO(t,r,!1),Qa(e,t,o);n=t.stateNode,BU.current=t;var c=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=iv(t,e.child,null,o),t.child=iv(t,null,c,o)):Pn(e,t,c,o),t.memoizedState=n.state,a&&xO(t,r,!0),t.child}function gw(e){var t=e.stateNode;t.pendingContext?AO(e,t.pendingContext,t.pendingContext!==t.context):t.context&&AO(e,t.context,!1),bb(e,t.containerInfo)}var dv={dehydrated:null,retryLane:0};function mw(e,t,r){var n=t.pendingProps,a=or.current,o=!1,s;return(s=(t.flags&64)!=0)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!=0),s?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(a|=1),ar(or,a&1),e===null?(n.fallback!==void 0&&Tb(t),e=n.children,a=n.fallback,o?(e=yw(t,e,a,r),t.child.memoizedState={baseLanes:r},t.memoizedState=dv,e):typeof n.unstable_expectedLoadTime=="number"?(e=yw(t,e,a,r),t.child.memoizedState={baseLanes:r},t.memoizedState=dv,t.lanes=33554432,e):(r=$b({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?o?(n=Ew(e,t,n.children,n.fallback,r),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?{baseLanes:r}:{baseLanes:a.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=dv,n):(r=bw(e,t,n.children,r),t.memoizedState=null,r):o?(n=Ew(e,t,n.children,n.fallback,r),o=t.child,a=e.child.memoizedState,o.memoizedState=a===null?{baseLanes:r}:{baseLanes:a.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=dv,n):(r=bw(e,t,n.children,r),t.memoizedState=null,r)}function yw(e,t,r,n){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},(a&2)==0&&o!==null?(o.childLanes=0,o.pendingProps=t):o=$b(t,a,0,null),r=vl(r,a,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function bw(e,t,r,n){var a=e.child;return e=a.sibling,r=jo(a,{mode:"visible",children:r}),(t.mode&2)==0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function Ew(e,t,r,n,a){var o=t.mode,s=e.child;e=s.sibling;var c={mode:"hidden",children:r};return(o&2)==0&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,s=r.lastEffect,s!==null?(t.firstEffect=r.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):r=jo(s,c),e!==null?n=jo(e,n):(n=vl(n,o,a,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function Tw(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),VO(e.return,t)}function Ib(e,t,r,n,a,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=a,s.lastEffect=o)}function _w(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(Pn(e,t,n.children,r),n=or.current,(n&2)!=0)n=n&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!=0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tw(e,r);else if(e.tag===19)Tw(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ar(or,n),(t.mode&2)==0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&av(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Ib(t,!1,a,r,o,t.lastEffect);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&av(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Ib(t,!0,r,null,o,t.lastEffect);break;case"together":Ib(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hf|=t.lanes,(r&t.childLanes)!=0){if(e!==null&&t.child!==e.child)throw Error(de(153));if(t.child!==null){for(e=t.child,r=jo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=jo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var Sw,Rb,Dw,kw;Sw=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Rb=function(){};Dw=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,xu(la.current);var o=null;switch(r){case"input":a=b0(e,a),n=b0(e,n),o=[];break;case"option":a=_0(e,a),n=_0(e,n),o=[];break;case"select":a=Yt({},a,{value:void 0}),n=Yt({},n,{value:void 0}),o=[];break;case"textarea":a=S0(e,a),n=S0(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Gh)}C0(r,n);var s;r=null;for(h in a)if(!n.hasOwnProperty(h)&&a.hasOwnProperty(h)&&a[h]!=null)if(h==="style"){var c=a[h];for(s in c)c.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(uf.hasOwnProperty(h)?o||(o=[]):(o=o||[]).push(h,null));for(h in n){var d=n[h];if(c=a!=null?a[h]:void 0,n.hasOwnProperty(h)&&d!==c&&(d!=null||c!=null))if(h==="style")if(c){for(s in c)!c.hasOwnProperty(s)||d&&d.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in d)d.hasOwnProperty(s)&&c[s]!==d[s]&&(r||(r={}),r[s]=d[s])}else r||(o||(o=[]),o.push(h,r)),r=d;else h==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(o=o||[]).push(h,d)):h==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(h,""+d):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(uf.hasOwnProperty(h)?(d!=null&&h==="onScroll"&&Qt("scroll",e),o||c===d||(o=[])):typeof d=="object"&&d!==null&&d.$$typeof===h0?d.toString():(o=o||[]).push(h,d))}r&&(o=o||[]).push("style",r);var h=o;(t.updateQueue=h)&&(t.flags|=4)}};kw=function(e,t,r,n){r!==n&&(t.flags|=4)};function Kf(e,t){if(!ca)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function VU(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Rn(t.type)&&zh(),null;case 3:return sl(),Kt(In),Kt(tn),Sb(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ov(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Rb(t),null;case 5:Eb(t);var a=xu(Mf.current);if(r=t.type,e!==null&&t.stateNode!=null)Dw(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(de(166));return null}if(e=xu(la.current),ov(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[ko]=t,n[Kh]=o,r){case"dialog":Qt("cancel",n),Qt("close",n);break;case"iframe":case"object":case"embed":Qt("load",n);break;case"video":case"audio":for(e=0;e<Af.length;e++)Qt(Af[e],n);break;case"source":Qt("error",n);break;case"img":case"image":case"link":Qt("error",n),Qt("load",n);break;case"details":Qt("toggle",n);break;case"input":g2(n,o),Qt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Qt("invalid",n);break;case"textarea":b2(n,o),Qt("invalid",n)}C0(r,o),e=null;for(var s in o)o.hasOwnProperty(s)&&(a=o[s],s==="children"?typeof a=="string"?n.textContent!==a&&(e=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(e=["children",""+a]):uf.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Qt("scroll",n));switch(r){case"input":Dh(n),y2(n,o,!0);break;case"textarea":Dh(n),T2(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Gh)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(s=a.nodeType===9?a:a.ownerDocument,e===D0.html&&(e=_2(r)),e===D0.html?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[ko]=t,e[Kh]=n,Sw(e,t,!1,!1),t.stateNode=e,s=O0(r,n),r){case"dialog":Qt("cancel",e),Qt("close",e),a=n;break;case"iframe":case"object":case"embed":Qt("load",e),a=n;break;case"video":case"audio":for(a=0;a<Af.length;a++)Qt(Af[a],e);a=n;break;case"source":Qt("error",e),a=n;break;case"img":case"image":case"link":Qt("error",e),Qt("load",e),a=n;break;case"details":Qt("toggle",e),a=n;break;case"input":g2(e,n),a=b0(e,n),Qt("invalid",e);break;case"option":a=_0(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=Yt({},n,{value:void 0}),Qt("invalid",e);break;case"textarea":b2(e,n),a=S0(e,n),Qt("invalid",e);break;default:a=n}C0(r,a);var c=a;for(o in c)if(c.hasOwnProperty(o)){var d=c[o];o==="style"?k2(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&S2(e,d)):o==="children"?typeof d=="string"?(r!=="textarea"||d!=="")&&pf(e,d):typeof d=="number"&&pf(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(uf.hasOwnProperty(o)?d!=null&&o==="onScroll"&&Qt("scroll",e):d!=null&&s0(e,o,d,s))}switch(r){case"input":Dh(e),y2(e,n,!1);break;case"textarea":Dh(e),T2(e);break;case"option":n.value!=null&&e.setAttribute("value",""+bo(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Gs(e,!!n.multiple,o,!1):n.defaultValue!=null&&Gs(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Gh)}kO(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)kw(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(de(166));r=xu(Mf.current),xu(la.current),ov(t)?(n=t.stateNode,r=t.memoizedProps,n[ko]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ko]=t,t.stateNode=n)}return null;case 13:return Kt(or),n=t.memoizedState,(t.flags&64)!=0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&ov(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!=0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(or.current&1)!=0?Hr===0&&(Hr=3):((Hr===0||Hr===3)&&(Hr=4),Tn===null||(Hf&134217727)==0&&(fl&134217727)==0||pl(Tn,an))),(n||r)&&(t.flags|=4),null);case 4:return sl(),Rb(t),e===null&&EO(t.stateNode.containerInfo),null;case 10:return gb(t),null;case 17:return Rn(t.type)&&zh(),null;case 19:if(Kt(or),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!=0,s=n.rendering,s===null)if(o)Kf(n,!1);else{if(Hr!==0||e!==null&&(e.flags&64)!=0)for(e=t.child;e!==null;){if(s=av(e),s!==null){for(t.flags|=64,Kf(n,!1),o=s.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ar(or,or.current&1|2),t.child}e=e.sibling}n.tail!==null&&rn()>Kb&&(t.flags|=64,o=!0,Kf(n,!1),t.lanes=33554432)}else{if(!o)if(e=av(s),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Kf(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ca)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*rn()-n.renderingStartTime>Kb&&r!==1073741824&&(t.flags|=64,o=!0,Kf(n,!1),t.lanes=33554432);n.isBackwards?(s.sibling=t.child,t.child=s):(r=n.last,r!==null?r.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=rn(),r.sibling=null,t=or.current,ar(or,o?t&1|2:t&1),r):null;case 23:case 24:return Xb(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(de(156,t.tag))}function UU(e){switch(e.tag){case 1:Rn(e.type)&&zh();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(sl(),Kt(In),Kt(tn),Sb(),t=e.flags,(t&64)!=0)throw Error(de(285));return e.flags=t&-4097|64,e;case 5:return Eb(e),null;case 13:return Kt(or),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Kt(or),null;case 4:return sl(),null;case 10:return gb(e),null;case 23:case 24:return Xb(),null;default:return null}}function Fb(e,t){try{var r="",n=t;do r+=_V(n),n=n.return;while(n);var a=r}catch(o){a=`
|
|
Error generating stack: `+o.message+`
|
|
`+o.stack}return{value:e,source:t,stack:a}}function Pb(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var GU=typeof WeakMap=="function"?WeakMap:Map;function Cw(e,t,r){r=No(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){vv||(vv=!0,Hb=n),Pb(e,t)},r}function Ow(e,t,r){r=No(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return Pb(e,t),n(a)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(da===null?da=new Set([this]):da.add(this),Pb(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var QU=typeof WeakSet=="function"?WeakSet:Set;function ww(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Po(e,r)}else t.current=null}function KU(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Vi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&ob(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(de(163))}function HU(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var a=e;n=a.next,a=a.tag,(a&4)!=0&&(a&1)!=0&&(Gw(r,e),eG(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Vi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&QO(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}QO(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&kO(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&V2(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(de(163))}function Nw(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var a=r.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,n.style.display=D2("display",a)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Aw(e,t){if(Au&&typeof Au.onCommitFiberUnmount=="function")try{Au.onCommitFiberUnmount(lb,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,a=n.destroy;if(n=n.tag,a!==void 0)if((n&4)!=0)Gw(t,r);else{n=t;try{a()}catch(o){Po(n,o)}}r=r.next}while(r!==e)}break;case 1:if(ww(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Po(t,o)}break;case 5:ww(t);break;case 4:Rw(e,t)}}function Lw(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xw(e){return e.tag===5||e.tag===3||e.tag===4}function Iw(e){e:{for(var t=e.return;t!==null;){if(xw(t))break e;t=t.return}throw Error(de(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(de(161))}r.flags&16&&(pf(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||xw(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?jb(e,r,t):Mb(e,r,t)}function jb(e,t,r){var n=e.tag,a=n===5||n===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Gh));else if(n!==4&&(e=e.child,e!==null))for(jb(e,t,r),e=e.sibling;e!==null;)jb(e,t,r),e=e.sibling}function Mb(e,t,r){var n=e.tag,a=n===5||n===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Mb(e,t,r),e=e.sibling;e!==null;)Mb(e,t,r),e=e.sibling}function Rw(e,t){for(var r=t,n=!1,a,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(de(160));switch(a=n.stateNode,n.tag){case 5:o=!1;break e;case 3:a=a.containerInfo,o=!0;break e;case 4:a=a.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var s=e,c=r,d=c;;)if(Aw(s,d),d.child!==null&&d.tag!==4)d.child.return=d,d=d.child;else{if(d===c)break e;for(;d.sibling===null;){if(d.return===null||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(s=a,c=r.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){a=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(Aw(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function qb(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)==3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var a=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[Kh]=n,e==="input"&&n.type==="radio"&&n.name!=null&&m2(r,n),O0(e,a),t=O0(e,n),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];s==="style"?k2(r,c):s==="dangerouslySetInnerHTML"?S2(r,c):s==="children"?pf(r,c):s0(r,s,c,t)}switch(e){case"input":E0(r,n);break;case"textarea":E2(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?Gs(r,!!n.multiple,o,!1):e!==!!n.multiple&&(n.defaultValue!=null?Gs(r,!!n.multiple,n.defaultValue,!0):Gs(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(de(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,V2(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Qb=rn(),Nw(t.child,!0)),Fw(t);return;case 19:Fw(t);return;case 17:return;case 23:case 24:Nw(t,t.memoizedState!==null);return}throw Error(de(163))}function Fw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new QU),t.forEach(function(n){var a=nG.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function zU(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var WU=Math.ceil,pv=Du.ReactCurrentDispatcher,Bb=Du.ReactCurrentOwner,Ke=0,Tn=null,Or=null,an=0,Fu=0,Vb=Co(0),Hr=0,hv=null,cl=0,Hf=0,fl=0,Ub=0,Gb=null,Qb=0,Kb=1/0;function dl(){Kb=rn()+500}var Le=null,vv=!1,Hb=null,da=null,xo=!1,zf=null,Wf=90,zb=[],Wb=[],Ka=null,Yf=0,Yb=null,gv=-1,Ha=0,mv=0,Jf=null,yv=!1;function Xn(){return(Ke&48)!=0?rn():gv!==-1?gv:gv=rn()}function Io(e){if(e=e.mode,(e&2)==0)return 1;if((e&4)==0)return al()===99?1:2;if(Ha===0&&(Ha=cl),FU.transition!==0){mv!==0&&(mv=Gb!==null?Gb.pendingLanes:0),e=Ha;var t=4186112&~mv;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=al(),(Ke&4)!=0&&e===98?e=xh(12,Ha):(e=MV(e),e=xh(e,Ha)),e}function Ro(e,t,r){if(50<Yf)throw Yf=0,Yb=null,Error(de(185));if(e=bv(e,t),e===null)return null;Ih(e,t,r),e===Tn&&(fl|=t,Hr===4&&pl(e,an));var n=al();t===1?(Ke&8)!=0&&(Ke&48)==0?Jb(e):(mi(e,r),Ke===0&&(dl(),sa())):((Ke&4)==0||n!==98&&n!==99||(Ka===null?Ka=new Set([e]):Ka.add(e)),mi(e,r)),Gb=e}function bv(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function mi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-So(s),d=1<<c,h=o[c];if(h===-1){if((d&n)==0||(d&a)!=0){h=t,Ws(d);var m=qt;o[c]=10<=m?h+250:6<=m?h+5e3:-1}}else h<=t&&(e.expiredLanes|=d);s&=~d}if(n=_f(e,e===Tn?an:0),t=qt,n===0)r!==null&&(r!==pb&&fb(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==pb&&fb(r)}t===15?(r=Jb.bind(null,e),Ua===null?(Ua=[r],Jh=cb(Yh,BO)):Ua.push(r),r=pb):t===14?r=If(99,Jb.bind(null,e)):(r=qV(t),r=If(r,Pw.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function Pw(e){if(gv=-1,mv=Ha=0,(Ke&48)!=0)throw Error(de(327));var t=e.callbackNode;if(Fo()&&e.callbackNode!==t)return null;var r=_f(e,e===Tn?an:0);if(r===0)return null;var n=r,a=Ke;Ke|=16;var o=Bw();(Tn!==e||an!==n)&&(dl(),hl(e,n));do try{XU();break}catch(c){qw(e,c)}while(1);if(vb(),pv.current=o,Ke=a,Or!==null?n=0:(Tn=null,an=0,n=Hr),(cl&fl)!=0)hl(e,0);else if(n!==0){if(n===2&&(Ke|=64,e.hydrate&&(e.hydrate=!1,ob(e.containerInfo)),r=W2(e),r!==0&&(n=Xf(e,r))),n===1)throw t=hv,hl(e,0),pl(e,r),mi(e,rn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(de(345));case 2:Pu(e);break;case 3:if(pl(e,r),(r&62914560)===r&&(n=Qb+500-rn(),10<n)){if(_f(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){Xn(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=CO(Pu.bind(null,e),n);break}Pu(e);break;case 4:if(pl(e,r),(r&4186112)===r)break;for(n=e.eventTimes,a=-1;0<r;){var s=31-So(r);o=1<<s,s=n[s],s>a&&(a=s),r&=~o}if(r=a,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WU(r/1960))-r,10<r){e.timeoutHandle=CO(Pu.bind(null,e),r);break}Pu(e);break;case 5:Pu(e);break;default:throw Error(de(329))}}return mi(e,rn()),e.callbackNode===t?Pw.bind(null,e):null}function pl(e,t){for(t&=~Ub,t&=~fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-So(t),n=1<<r;e[r]=-1,t&=~n}}function Jb(e){if((Ke&48)!=0)throw Error(de(327));if(Fo(),e===Tn&&(e.expiredLanes&an)!=0){var t=an,r=Xf(e,t);(cl&fl)!=0&&(t=_f(e,t),r=Xf(e,t))}else t=_f(e,0),r=Xf(e,t);if(e.tag!==0&&r===2&&(Ke|=64,e.hydrate&&(e.hydrate=!1,ob(e.containerInfo)),t=W2(e),t!==0&&(r=Xf(e,t))),r===1)throw r=hv,hl(e,0),pl(e,t),mi(e,rn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pu(e),mi(e,rn()),null}function YU(){if(Ka!==null){var e=Ka;Ka=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,mi(t,rn())})}sa()}function jw(e,t){var r=Ke;Ke|=1;try{return e(t)}finally{Ke=r,Ke===0&&(dl(),sa())}}function Mw(e,t){var r=Ke;Ke&=-2,Ke|=8;try{return e(t)}finally{Ke=r,Ke===0&&(dl(),sa())}}function Ev(e,t){ar(Vb,Fu),Fu|=t,cl|=t}function Xb(){Fu=Vb.current,Kt(Vb)}function hl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,NU(r)),Or!==null)for(r=Or.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&zh();break;case 3:sl(),Kt(In),Kt(tn),Sb();break;case 5:Eb(n);break;case 4:sl();break;case 13:Kt(or);break;case 19:Kt(or);break;case 10:gb(n);break;case 23:case 24:Xb()}r=r.return}Tn=e,Or=jo(e.current,null),an=Fu=cl=t,Hr=0,hv=null,Ub=fl=Hf=0}function qw(e,t){do{var r=Or;try{if(vb(),qf.current=fv,uv){for(var n=dr.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}uv=!1}if(Bf=0,Kr=nn=dr=null,Vf=!1,Bb.current=null,r===null||r.return===null){Hr=1,hv=t,Or=null;break}e:{var o=e,s=r.return,c=r,d=t;if(t=an,c.flags|=2048,c.firstEffect=c.lastEffect=null,d!==null&&typeof d=="object"&&typeof d.then=="function"){var h=d;if((c.mode&2)==0){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var E=(or.current&1)!=0,b=s;do{var C;if(C=b.tag===13){var L=b.memoizedState;if(L!==null)C=L.dehydrated!==null;else{var S=b.memoizedProps;C=S.fallback===void 0?!1:S.unstable_avoidThisFallback!==!0?!0:!E}}if(C){var y=b.updateQueue;if(y===null){var T=new Set;T.add(h),b.updateQueue=T}else y.add(h);if((b.mode&2)==0){if(b.flags|=64,c.flags|=16384,c.flags&=-2981,c.tag===1)if(c.alternate===null)c.tag=17;else{var g=No(-1,1);g.tag=2,Ao(c,g)}c.lanes|=1;break e}d=void 0,c=t;var k=o.pingCache;if(k===null?(k=o.pingCache=new GU,d=new Set,k.set(h,d)):(d=k.get(h),d===void 0&&(d=new Set,k.set(h,d))),!d.has(c)){d.add(c);var N=rG.bind(null,o,h,c);h.then(N,N)}b.flags|=4096,b.lanes=t;break e}b=b.return}while(b!==null);d=Error((Us(c.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
|
|
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Hr!==5&&(Hr=2),d=Fb(d,c),b=s;do{switch(b.tag){case 3:o=d,b.flags|=4096,t&=-t,b.lanes|=t;var w=Cw(b,o,t);GO(b,w);break e;case 1:o=d;var D=b.type,F=b.stateNode;if((b.flags&64)==0&&(typeof D.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(da===null||!da.has(F)))){b.flags|=4096,t&=-t,b.lanes|=t;var P=Ow(b,o,t);GO(b,P);break e}}b=b.return}while(b!==null)}Uw(r)}catch(B){t=B,Or===r&&r!==null&&(Or=r=r.return);continue}break}while(1)}function Bw(){var e=pv.current;return pv.current=fv,e===null?fv:e}function Xf(e,t){var r=Ke;Ke|=16;var n=Bw();Tn===e&&an===t||hl(e,t);do try{JU();break}catch(a){qw(e,a)}while(1);if(vb(),Ke=r,pv.current=n,Or!==null)throw Error(de(261));return Tn=null,an=0,Hr}function JU(){for(;Or!==null;)Vw(Or)}function XU(){for(;Or!==null&&!xU();)Vw(Or)}function Vw(e){var t=Kw(e.alternate,e,Fu);e.memoizedProps=e.pendingProps,t===null?Uw(e):Or=t,Bb.current=null}function Uw(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=VU(r,t,Fu),r!==null){Or=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(Fu&1073741824)!=0||(r.mode&4)==0){for(var n=0,a=r.child;a!==null;)n|=a.lanes|a.childLanes,a=a.sibling;r.childLanes=n}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=UU(t),r!==null){r.flags&=2047,Or=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Or=t;return}Or=t=e}while(t!==null);Hr===0&&(Hr=5)}function Pu(e){var t=al();return Lu(99,ZU.bind(null,e,t)),null}function ZU(e,t){do Fo();while(zf!==null);if((Ke&48)!=0)throw Error(de(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(de(177));e.callbackNode=null;var n=r.lanes|r.childLanes,a=n,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var d=31-So(o),h=1<<d;a[d]=0,s[d]=-1,c[d]=-1,o&=~h}if(Ka!==null&&(n&24)==0&&Ka.has(e)&&Ka.delete(e),e===Tn&&(Or=Tn=null,an=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(a=Ke,Ke|=32,Bb.current=null,nb=Rh,s=pO(),$0(s)){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else e:if(c=(c=s.ownerDocument)&&c.defaultView||window,(h=c.getSelection&&c.getSelection())&&h.rangeCount!==0){c=h.anchorNode,o=h.anchorOffset,d=h.focusNode,h=h.focusOffset;try{c.nodeType,d.nodeType}catch(B){c=null;break e}var m=0,E=-1,b=-1,C=0,L=0,S=s,y=null;t:for(;;){for(var T;S!==c||o!==0&&S.nodeType!==3||(E=m+o),S!==d||h!==0&&S.nodeType!==3||(b=m+h),S.nodeType===3&&(m+=S.nodeValue.length),(T=S.firstChild)!==null;)y=S,S=T;for(;;){if(S===s)break t;if(y===c&&++C===o&&(E=m),y===d&&++L===h&&(b=m),(T=S.nextSibling)!==null)break;S=y,y=S.parentNode}S=T}c=E===-1||b===-1?null:{start:E,end:b}}else c=null;c=c||{start:0,end:0}}else c=null;ib={focusedElem:s,selectionRange:c},Rh=!1,Jf=null,yv=!1,Le=n;do try{$U()}catch(B){if(Le===null)throw Error(de(330));Po(Le,B),Le=Le.nextEffect}while(Le!==null);Jf=null,Le=n;do try{for(s=e;Le!==null;){var g=Le.flags;if(g&16&&pf(Le.stateNode,""),g&128){var k=Le.alternate;if(k!==null){var N=k.ref;N!==null&&(typeof N=="function"?N(null):N.current=null)}}switch(g&1038){case 2:Iw(Le),Le.flags&=-3;break;case 6:Iw(Le),Le.flags&=-3,qb(Le.alternate,Le);break;case 1024:Le.flags&=-1025;break;case 1028:Le.flags&=-1025,qb(Le.alternate,Le);break;case 4:qb(Le.alternate,Le);break;case 8:c=Le,Rw(s,c);var w=c.alternate;Lw(c),w!==null&&Lw(w)}Le=Le.nextEffect}}catch(B){if(Le===null)throw Error(de(330));Po(Le,B),Le=Le.nextEffect}while(Le!==null);if(N=ib,k=pO(),g=N.focusedElem,s=N.selectionRange,k!==g&&g&&g.ownerDocument&&dO(g.ownerDocument.documentElement,g)){for(s!==null&&$0(g)&&(k=s.start,N=s.end,N===void 0&&(N=k),"selectionStart"in g?(g.selectionStart=k,g.selectionEnd=Math.min(N,g.value.length)):(N=(k=g.ownerDocument||document)&&k.defaultView||window,N.getSelection&&(N=N.getSelection(),c=g.textContent.length,w=Math.min(s.start,c),s=s.end===void 0?w:Math.min(s.end,c),!N.extend&&w>s&&(c=s,s=w,w=c),c=fO(g,w),o=fO(g,s),c&&o&&(N.rangeCount!==1||N.anchorNode!==c.node||N.anchorOffset!==c.offset||N.focusNode!==o.node||N.focusOffset!==o.offset)&&(k=k.createRange(),k.setStart(c.node,c.offset),N.removeAllRanges(),w>s?(N.addRange(k),N.extend(o.node,o.offset)):(k.setEnd(o.node,o.offset),N.addRange(k)))))),k=[],N=g;N=N.parentNode;)N.nodeType===1&&k.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<k.length;g++)N=k[g],N.element.scrollLeft=N.left,N.element.scrollTop=N.top}Rh=!!nb,ib=nb=null,e.current=r,Le=n;do try{for(g=e;Le!==null;){var D=Le.flags;if(D&36&&HU(g,Le.alternate,Le),D&128){k=void 0;var F=Le.ref;if(F!==null){var P=Le.stateNode;switch(Le.tag){case 5:k=P;break;default:k=P}typeof F=="function"?F(k):F.current=k}}Le=Le.nextEffect}}catch(B){if(Le===null)throw Error(de(330));Po(Le,B),Le=Le.nextEffect}while(Le!==null);Le=null,RU(),Ke=a}else e.current=r;if(xo)xo=!1,zf=e,Wf=t;else for(Le=n;Le!==null;)t=Le.nextEffect,Le.nextEffect=null,Le.flags&8&&(D=Le,D.sibling=null,D.stateNode=null),Le=t;if(n=e.pendingLanes,n===0&&(da=null),n===1?e===Yb?Yf++:(Yf=0,Yb=e):Yf=0,r=r.stateNode,Au&&typeof Au.onCommitFiberRoot=="function")try{Au.onCommitFiberRoot(lb,r,void 0,(r.current.flags&64)==64)}catch(B){}if(mi(e,rn()),vv)throw vv=!1,e=Hb,Hb=null,e;return(Ke&8)!=0||sa(),null}function $U(){for(;Le!==null;){var e=Le.alternate;yv||Jf===null||((Le.flags&8)!=0?R2(Le,Jf)&&(yv=!0):Le.tag===13&&zU(e,Le)&&R2(Le,Jf)&&(yv=!0));var t=Le.flags;(t&256)!=0&&KU(e,Le),(t&512)==0||xo||(xo=!0,If(97,function(){return Fo(),null})),Le=Le.nextEffect}}function Fo(){if(Wf!==90){var e=97<Wf?97:Wf;return Wf=90,Lu(e,tG)}return!1}function eG(e,t){zb.push(t,e),xo||(xo=!0,If(97,function(){return Fo(),null}))}function Gw(e,t){Wb.push(t,e),xo||(xo=!0,If(97,function(){return Fo(),null}))}function tG(){if(zf===null)return!1;var e=zf;if(zf=null,(Ke&48)!=0)throw Error(de(331));var t=Ke;Ke|=32;var r=Wb;Wb=[];for(var n=0;n<r.length;n+=2){var a=r[n],o=r[n+1],s=a.destroy;if(a.destroy=void 0,typeof s=="function")try{s()}catch(d){if(o===null)throw Error(de(330));Po(o,d)}}for(r=zb,zb=[],n=0;n<r.length;n+=2){a=r[n],o=r[n+1];try{var c=a.create;a.destroy=c()}catch(d){if(o===null)throw Error(de(330));Po(o,d)}}for(c=e.current.firstEffect;c!==null;)e=c.nextEffect,c.nextEffect=null,c.flags&8&&(c.sibling=null,c.stateNode=null),c=e;return Ke=t,sa(),!0}function Qw(e,t,r){t=Fb(r,t),t=Cw(e,t,1),Ao(e,t),t=Xn(),e=bv(e,1),e!==null&&(Ih(e,1,t),mi(e,t))}function Po(e,t){if(e.tag===3)Qw(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){Qw(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(da===null||!da.has(n))){e=Fb(t,e);var a=Ow(r,e,1);if(Ao(r,a),a=Xn(),r=bv(r,1),r!==null)Ih(r,1,a),mi(r,a);else if(typeof n.componentDidCatch=="function"&&(da===null||!da.has(n)))try{n.componentDidCatch(t,e)}catch(o){}break}}r=r.return}}function rG(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Xn(),e.pingedLanes|=e.suspendedLanes&r,Tn===e&&(an&r)===r&&(Hr===4||Hr===3&&(an&62914560)===an&&500>rn()-Qb?hl(e,0):Ub|=r),mi(e,t)}function nG(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=al()===99?1:2:(Ha===0&&(Ha=cl),t=Ys(62914560&~Ha),t===0&&(t=4194304))),r=Xn(),e=bv(e,t),e!==null&&(Ih(e,t,r),mi(e,r))}var Kw;Kw=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||In.current)Ui=!0;else if((r&n)!=0)Ui=(e.flags&16384)!=0;else{switch(Ui=!1,t.tag){case 3:gw(t),_b();break;case 5:XO(t);break;case 1:Rn(t.type)&&Wh(t);break;case 4:bb(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var a=t.type._context;ar(Xh,a._currentValue),a._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!=0?mw(e,t,r):(ar(or,or.current&1),t=Qa(e,t,r),t!==null?t.sibling:null);ar(or,or.current&1);break;case 19:if(n=(r&t.childLanes)!=0,(e.flags&64)!=0){if(n)return _w(e,t,r);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ar(or,or.current),n)break;return null;case 23:case 24:return t.lanes=0,Ab(e,t,r)}return Qa(e,t,r)}else Ui=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=il(t,tn.current),ul(t,r),a=kb(null,t,n,e,a,r),t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rn(n)){var o=!0;Wh(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,mb(t);var s=n.getDerivedStateFromProps;typeof s=="function"&&ev(t,n,s,e),a.updater=tv,t.stateNode=a,a._reactInternals=t,yb(t,n,e,r),t=xb(null,t,n,!0,o,r)}else t.tag=0,Pn(null,t,a,r),t=t.child;return t;case 16:a=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=aG(a),e=Vi(a,e),o){case 0:t=Lb(null,t,a,e,r);break e;case 1:t=vw(null,t,a,e,r);break e;case 11:t=fw(null,t,a,e,r);break e;case 14:t=dw(null,t,a,Vi(a.type,e),n,r);break e}throw Error(de(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Vi(n,a),Lb(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Vi(n,a),vw(e,t,n,a,r);case 3:if(gw(t),n=t.updateQueue,e===null||n===null)throw Error(de(282));if(n=t.pendingProps,a=t.memoizedState,a=a!==null?a.element:null,UO(e,t),Rf(t,n,null,r),n=t.memoizedState.element,n===a)_b(),t=Qa(e,t,r);else{if(a=t.stateNode,(o=a.hydrate)&&(Lo=el(t.stateNode.containerInfo.firstChild),Ga=t,o=ca=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)o=e[a],o._workInProgressVersionPrimary=e[a+1],ll.push(o);for(r=JO(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Pn(e,t,n,r),_b();t=t.child}return t;case 5:return XO(t),e===null&&Tb(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,s=a.children,ab(n,a)?s=null:o!==null&&ab(n,o)&&(t.flags|=16),hw(e,t),Pn(e,t,s,r),t.child;case 6:return e===null&&Tb(t),null;case 13:return mw(e,t,r);case 4:return bb(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=iv(t,null,n,r):Pn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Vi(n,a),fw(e,t,n,a,r);case 7:return Pn(e,t,t.pendingProps,r),t.child;case 8:return Pn(e,t,t.pendingProps.children,r),t.child;case 12:return Pn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(ar(Xh,c._currentValue),c._currentValue=o,s!==null)if(c=s.value,o=hi(c,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(c,o):1073741823)|0,o===0){if(s.children===a.children&&!In.current){t=Qa(e,t,r);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var d=c.dependencies;if(d!==null){s=c.child;for(var h=d.firstContext;h!==null;){if(h.context===n&&(h.observedBits&o)!=0){c.tag===1&&(h=No(-1,r&-r),h.tag=2,Ao(c,h)),c.lanes|=r,h=c.alternate,h!==null&&(h.lanes|=r),VO(c.return,r),d.lanes|=r;break}h=h.next}}else s=c.tag===10&&c.type===t.type?null:c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===t){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}Pn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,n=o.children,ul(t,r),a=vi(a,o.unstable_observedBits),n=n(a),t.flags|=1,Pn(e,t,n,r),t.child;case 14:return a=t.type,o=Vi(a,t.pendingProps),o=Vi(a.type,o),dw(e,t,a,o,n,r);case 15:return pw(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Vi(n,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Rn(n)?(e=!0,Wh(t)):e=!1,ul(t,r),zO(t,n,a),yb(t,n,a,r),xb(null,t,n,!0,e,r);case 19:return _w(e,t,r);case 23:return Ab(e,t,r);case 24:return Ab(e,t,r)}throw Error(de(156,t.tag))};function iG(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function yi(e,t,r,n){return new iG(e,t,r,n)}function Zb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aG(e){if(typeof e=="function")return Zb(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eh)return 11;if(e===_h)return 14}return 2}function jo(e,t){var r=e.alternate;return r===null?(r=yi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Tv(e,t,r,n,a,o){var s=2;if(n=e,typeof e=="function")Zb(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yo:return vl(r.children,a,o,t);case d2:s=8,a|=16;break;case l0:s=8,a|=1;break;case lf:return e=yi(12,r,t,a|8),e.elementType=lf,e.type=lf,e.lanes=o,e;case cf:return e=yi(13,r,t,a),e.type=cf,e.elementType=cf,e.lanes=o,e;case Th:return e=yi(19,r,t,a),e.elementType=Th,e.lanes=o,e;case v0:return $b(r,a,o,t);case g0:return e=yi(24,r,t,a),e.elementType=g0,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c0:s=10;break e;case f0:s=9;break e;case Eh:s=11;break e;case _h:s=14;break e;case d0:s=16,n=null;break e;case p0:s=22;break e}throw Error(de(130,e==null?e:typeof e,""))}return t=yi(s,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function vl(e,t,r,n){return e=yi(7,e,n,t),e.lanes=r,e}function $b(e,t,r,n){return e=yi(23,e,n,t),e.elementType=v0,e.lanes=r,e}function eE(e,t,r){return e=yi(6,e,null,t),e.lanes=r,e}function tE(e,t,r){return t=yi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oG(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=U0(0),this.expirationTimes=U0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=U0(0),this.mutableSourceEagerHydrationData=null}function uG(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ku,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function _v(e,t,r,n){var a=t.current,o=Xn(),s=Io(a);e:if(r){r=r._reactInternals;t:{if(Ou(r)!==r||r.tag!==1)throw Error(de(170));var c=r;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Rn(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(c!==null);throw Error(de(171))}if(r.tag===1){var d=r.type;if(Rn(d)){r=LO(r,d,c);break e}}r=c}else r=Oo;return t.context===null?t.context=r:t.pendingContext=r,t=No(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Ao(a,t),Ro(a,s,o),s}function rE(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Hw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function nE(e,t){Hw(e,t),(e=e.alternate)&&Hw(e,t)}function sG(){return null}function iE(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new oG(e,t,r!=null&&r.hydrate===!0),t=yi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,mb(t),e[tl]=r.current,EO(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var a=t._getVersion;a=a(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,a]:r.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=r}iE.prototype.render=function(e){_v(e,this._internalRoot,null,null)};iE.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;_v(null,e,null,function(){t[tl]=null})};function Zf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function lG(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new iE(e,0,t?{hydrate:!0}:void 0)}function Sv(e,t,r,n,a){var o=r._reactRootContainer;if(o){var s=o._internalRoot;if(typeof a=="function"){var c=a;a=function(){var h=rE(s);c.call(h)}}_v(t,s,e,a)}else{if(o=r._reactRootContainer=lG(r,n),s=o._internalRoot,typeof a=="function"){var d=a;a=function(){var h=rE(s);d.call(h)}}Mw(function(){_v(t,s,e,a)})}return rE(s)}F2=function(e){if(e.tag===13){var t=Xn();Ro(e,4,t),nE(e,4)}};P0=function(e){if(e.tag===13){var t=Xn();Ro(e,67108864,t),nE(e,67108864)}};P2=function(e){if(e.tag===13){var t=Xn(),r=Io(e);Ro(e,r,t),nE(e,r)}};j2=function(e,t){return t()};N0=function(e,t,r){switch(t){case"input":if(E0(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=Hh(n);if(!a)throw Error(de(90));v2(n),E0(n,a)}}}break;case"textarea":E2(e,r);break;case"select":t=r.value,t!=null&&Gs(e,!!r.multiple,t,!1)}};A0=jw;N2=function(e,t,r,n,a){var o=Ke;Ke|=4;try{return Lu(98,e.bind(null,t,r,n,a))}finally{Ke=o,Ke===0&&(dl(),sa())}};L0=function(){(Ke&49)==0&&(YU(),Fo())};A2=function(e,t){var r=Ke;Ke|=2;try{return e(t)}finally{Ke=r,Ke===0&&(dl(),sa())}};function zw(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zf(t))throw Error(de(200));return uG(e,t,null,r)}var cG={Events:[xf,rl,Hh,O2,w2,Fo,{current:!1}]},$f={findFiberByHostInstance:wu,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},fG={bundleType:$f.bundleType,version:$f.version,rendererPackageName:$f.rendererPackageName,rendererConfig:$f.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Du.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=I2(e),e===null?null:e.stateNode},findFiberByHostInstance:$f.findFiberByHostInstance||sG,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(ed=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ed.isDisabled&&ed.supportsFiber))try{lb=ed.inject(fG),Au=ed}catch(e){}var ed;bi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cG;bi.createPortal=zw;bi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(de(188)):Error(de(268,Object.keys(e)));return e=I2(t),e=e===null?null:e.stateNode,e};bi.flushSync=function(e,t){var r=Ke;if((r&48)!=0)return e(t);Ke|=1;try{if(e)return Lu(99,e.bind(null,t))}finally{Ke=r,sa()}};bi.hydrate=function(e,t,r){if(!Zf(t))throw Error(de(200));return Sv(null,e,t,!0,r)};bi.render=function(e,t,r){if(!Zf(t))throw Error(de(200));return Sv(null,e,t,!1,r)};bi.unmountComponentAtNode=function(e){if(!Zf(e))throw Error(de(40));return e._reactRootContainer?(Mw(function(){Sv(null,null,e,!1,function(){e._reactRootContainer=null,e[tl]=null})}),!0):!1};bi.unstable_batchedUpdates=jw;bi.unstable_createPortal=function(e,t){return zw(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};bi.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zf(r))throw Error(de(200));if(e==null||e._reactInternals===void 0)throw Error(de(38));return Sv(e,t,r,!1,n)};bi.version="17.0.2"});var aE=U((Kee,Jw)=>{"use strict";function Yw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yw)}catch(e){console.error(e)}}Yw(),Jw.exports=Ww()});var Xw=U(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.versionInfo=gl.version=void 0;var dG="15.5.0";gl.version=dG;var pG=Object.freeze({major:15,minor:5,patch:0,preReleaseTag:null});gl.versionInfo=pG});var Dv=U(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.default=hG;function hG(e){return typeof(e==null?void 0:e.then)=="function"}});var pa=U(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.default=vG;function kv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kv=function(r){return typeof r}:kv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kv(e)}function vG(e){return kv(e)=="object"&&e!==null}});var ha=U(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.SYMBOL_TO_STRING_TAG=Mo.SYMBOL_ASYNC_ITERATOR=Mo.SYMBOL_ITERATOR=void 0;var gG=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator";Mo.SYMBOL_ITERATOR=gG;var mG=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator";Mo.SYMBOL_ASYNC_ITERATOR=mG;var yG=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";Mo.SYMBOL_TO_STRING_TAG=yG});var Cv=U(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.getLocation=bG;function bG(e,t){for(var r=/\r\n|[\n\r]/g,n=1,a=t+1,o;(o=r.exec(e.body))&&o.index<t;)n+=1,a=t+1-(o.index+o[0].length);return{line:n,column:a}}});var lE=U(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.printLocation=TG;wv.printSourceLocation=Zw;var EG=Cv();function TG(e){return Zw(e.source,(0,EG.getLocation)(e.source,e.start))}function Zw(e,t){var r=e.locationOffset.column-1,n=Ov(r)+e.body,a=t.line-1,o=e.locationOffset.line-1,s=t.line+o,c=t.line===1?r:0,d=t.column+c,h="".concat(e.name,":").concat(s,":").concat(d,`
|
|
`),m=n.split(/\r\n|[\n\r]/g),E=m[a];if(E.length>120){for(var b=Math.floor(d/80),C=d%80,L=[],S=0;S<E.length;S+=80)L.push(E.slice(S,S+80));return h+$w([["".concat(s),L[0]]].concat(L.slice(1,b+1).map(function(y){return["",y]}),[[" ",Ov(C-1)+"^"],["",L[b+1]]]))}return h+$w([["".concat(s-1),m[a-1]],["".concat(s),E],["",Ov(d-1)+"^"],["".concat(s+1),m[a+1]]])}function $w(e){var t=e.filter(function(n){var a=n[0],o=n[1];return o!==void 0}),r=Math.max.apply(Math,t.map(function(n){var a=n[0];return a.length}));return t.map(function(n){var a=n[0],o=n[1];return _G(r,a)+(o?" | "+o:" |")}).join(`
|
|
`)}function Ov(e){return Array(e+1).join(" ")}function _G(e,t){return Ov(e-t.length)+t}});var Ve=U(id=>{"use strict";function Nv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nv=function(r){return typeof r}:Nv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Nv(e)}Object.defineProperty(id,"__esModule",{value:!0});id.printError=aN;id.GraphQLError=void 0;var SG=kG(pa()),DG=ha(),eN=Cv(),tN=lE();function kG(e){return e&&e.__esModule?e:{default:e}}function CG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function OG(e,t,r){return t&&rN(e.prototype,t),r&&rN(e,r),e}function wG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rd(e,t)}function NG(e){var t=iN();return function(){var n=nd(e),a;if(t){var o=nd(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return nN(this,a)}}function nN(e,t){return t&&(Nv(t)==="object"||typeof t=="function")?t:td(e)}function td(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cE(e){var t=typeof Map=="function"?new Map:void 0;return cE=function(n){if(n===null||!AG(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Av(n,arguments,nd(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),rd(a,n)},cE(e)}function Av(e,t,r){return iN()?Av=Reflect.construct:Av=function(a,o,s){var c=[null];c.push.apply(c,o);var d=Function.bind.apply(a,c),h=new d;return s&&rd(h,s.prototype),h},Av.apply(null,arguments)}function iN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function AG(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function rd(e,t){return rd=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},rd(e,t)}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nd(e)}var LG=function(e){wG(r,e);var t=NG(r);function r(n,a,o,s,c,d,h){var m,E,b,C,L;CG(this,r),L=t.call(this,n);var S=Array.isArray(a)?a.length!==0?a:void 0:a?[a]:void 0,y=o;if(!y&&S){var T;y=(T=S[0].loc)===null||T===void 0?void 0:T.source}var g=s;!g&&S&&(g=S.reduce(function(D,F){return F.loc&&D.push(F.loc.start),D},[])),g&&g.length===0&&(g=void 0);var k;s&&o?k=s.map(function(D){return(0,eN.getLocation)(o,D)}):S&&(k=S.reduce(function(D,F){return F.loc&&D.push((0,eN.getLocation)(F.loc.source,F.loc.start)),D},[]));var N=h;if(N==null&&d!=null){var w=d.extensions;(0,SG.default)(w)&&(N=w)}return Object.defineProperties(td(L),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:(m=k)!==null&&m!==void 0?m:void 0,enumerable:k!=null},path:{value:c!=null?c:void 0,enumerable:c!=null},nodes:{value:S!=null?S:void 0},source:{value:(E=y)!==null&&E!==void 0?E:void 0},positions:{value:(b=g)!==null&&b!==void 0?b:void 0},originalError:{value:d},extensions:{value:(C=N)!==null&&C!==void 0?C:void 0,enumerable:N!=null}}),d!=null&&d.stack?(Object.defineProperty(td(L),"stack",{value:d.stack,writable:!0,configurable:!0}),nN(L)):(Error.captureStackTrace?Error.captureStackTrace(td(L),r):Object.defineProperty(td(L),"stack",{value:Error().stack,writable:!0,configurable:!0}),L)}return OG(r,[{key:"toString",value:function(){return aN(this)}},{key:DG.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(cE(Error));id.GraphQLError=LG;function aN(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r<n.length;r++){var a=n[r];a.loc&&(t+=`
|
|
|
|
`+(0,tN.printLocation)(a.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var c=s[o];t+=`
|
|
|
|
`+(0,tN.printSourceLocation)(e.source,c)}return t}});var Lv=U(fE=>{"use strict";Object.defineProperty(fE,"__esModule",{value:!0});fE.syntaxError=IG;var xG=Ve();function IG(e,t,r){return new xG.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Pt=U(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.Kind=void 0;var RG=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});xv.Kind=RG});var zr=U(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.default=FG;function FG(e,t){var r=Boolean(e);if(!r)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var pE=U(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.default=void 0;var PG=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,jG=PG;Iv.default=jG});var Rv=U(hE=>{"use strict";Object.defineProperty(hE,"__esModule",{value:!0});hE.default=qG;var MG=uN(zr()),oN=uN(pE());function uN(e){return e&&e.__esModule?e:{default:e}}function qG(e){var t=e.prototype.toJSON;typeof t=="function"||(0,MG.default)(0),e.prototype.inspect=t,oN.default&&(e.prototype[oN.default]=t)}});var ml=U(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.isNode=VG;ju.Token=ju.Location=void 0;var sN=BG(Rv());function BG(e){return e&&e.__esModule?e:{default:e}}var lN=function(){function e(r,n,a){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=a}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();ju.Location=lN;(0,sN.default)(lN);var cN=function(){function e(r,n,a,o,s,c,d){this.kind=r,this.start=n,this.end=a,this.line=o,this.column=s,this.value=d,this.prev=c,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();ju.Token=cN;(0,sN.default)(cN);function VG(e){return e!=null&&typeof e.kind=="string"}});var yl=U(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Fv.TokenKind=void 0;var UG=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});Fv.TokenKind=UG});var _t=U(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.default=HG;var GG=QG(pE());function QG(e){return e&&e.__esModule?e:{default:e}}function Pv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pv=function(r){return typeof r}:Pv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pv(e)}var KG=10,fN=2;function HG(e){return jv(e,[])}function jv(e,t){switch(Pv(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":zG(e,t);default:return String(e)}}function zG(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var r=[].concat(t,[e]),n=JG(e);if(n!==void 0){var a=n.call(e);if(a!==e)return typeof a=="string"?a:jv(a,r)}else if(Array.isArray(e))return YG(e,r);return WG(e,r)}function WG(e,t){var r=Object.keys(e);if(r.length===0)return"{}";if(t.length>fN)return"["+XG(e)+"]";var n=r.map(function(a){var o=jv(e[a],t);return a+": "+o});return"{ "+n.join(", ")+" }"}function YG(e,t){if(e.length===0)return"[]";if(t.length>fN)return"[Array]";for(var r=Math.min(KG,e.length),n=e.length-r,a=[],o=0;o<r;++o)a.push(jv(e[o],t));return n===1?a.push("... 1 more item"):n>1&&a.push("... ".concat(n," more items")),"["+a.join(", ")+"]"}function JG(e){var t=e[String(GG.default)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function XG(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){var r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var Ei=U(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.default=ZG;function ZG(e,t){var r=Boolean(e);if(!r)throw new Error(t)}});var ad=U(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.default=void 0;var $G=function(t,r){return t instanceof r};Mv.default=$G});var qv=U(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.isSource=i5;od.Source=void 0;var e5=ha(),t5=yE(_t()),mE=yE(Ei()),r5=yE(ad());function yE(e){return e&&e.__esModule?e:{default:e}}function dN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n5(e,t,r){return t&&dN(e.prototype,t),r&&dN(e,r),e}var pN=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||(0,mE.default)(0,"Body must be a string. Received: ".concat((0,t5.default)(t),".")),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,mE.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,mE.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return n5(e,[{key:e5.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();od.Source=pN;function i5(e){return(0,r5.default)(e,pN)}});var bl=U(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.DirectiveLocation=void 0;var a5=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});Bv.DirectiveLocation=a5});var El=U(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.dedentBlockStringValue=o5;ud.getBlockStringIndentation=vN;ud.printBlockString=u5;function o5(e){var t=e.split(/\r\n|[\n\r]/g),r=vN(e);if(r!==0)for(var n=1;n<t.length;n++)t[n]=t[n].slice(r);for(var a=0;a<t.length&&hN(t[a]);)++a;for(var o=t.length;o>a&&hN(t[o-1]);)--o;return t.slice(a,o).join(`
|
|
`)}function hN(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function vN(e){for(var t,r=!0,n=!0,a=0,o=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:e.charCodeAt(s+1)===10&&++s;case 10:r=!1,n=!0,a=0;break;case 9:case 32:++a;break;default:n&&!r&&(o===null||a<o)&&(o=a),n=!1}return(t=o)!==null&&t!==void 0?t:0}function u5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf(`
|
|
`)===-1,a=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]==="\\",c=!n||o||s||r,d="";return c&&!(n&&a)&&(d+=`
|
|
`+t),d+=t?e.replace(/\n/g,`
|
|
`+t):e,c&&(d+=`
|
|
`),'"""'+d.replace(/"""/g,'\\"""')+'"""'}});var Uv=U(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.isPunctuatorTokenKind=c5;sd.Lexer=void 0;var va=Lv(),pr=ml(),nt=yl(),s5=El(),l5=function(){function e(r){var n=new pr.Token(nt.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},t.lookahead=function(){var n=this.token;if(n.kind!==nt.TokenKind.EOF)do{var a;n=(a=n.next)!==null&&a!==void 0?a:n.next=f5(this,n)}while(n.kind===nt.TokenKind.COMMENT);return n},e}();sd.Lexer=l5;function c5(e){return e===nt.TokenKind.BANG||e===nt.TokenKind.DOLLAR||e===nt.TokenKind.AMP||e===nt.TokenKind.PAREN_L||e===nt.TokenKind.PAREN_R||e===nt.TokenKind.SPREAD||e===nt.TokenKind.COLON||e===nt.TokenKind.EQUALS||e===nt.TokenKind.AT||e===nt.TokenKind.BRACKET_L||e===nt.TokenKind.BRACKET_R||e===nt.TokenKind.BRACE_L||e===nt.TokenKind.PIPE||e===nt.TokenKind.BRACE_R}function Mu(e){return isNaN(e)?nt.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f5(e,t){for(var r=e.source,n=r.body,a=n.length,o=t.end;o<a;){var s=n.charCodeAt(o),c=e.line,d=1+o-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new pr.Token(nt.TokenKind.BANG,o,o+1,c,d,t);case 35:return p5(r,o,c,d,t);case 36:return new pr.Token(nt.TokenKind.DOLLAR,o,o+1,c,d,t);case 38:return new pr.Token(nt.TokenKind.AMP,o,o+1,c,d,t);case 40:return new pr.Token(nt.TokenKind.PAREN_L,o,o+1,c,d,t);case 41:return new pr.Token(nt.TokenKind.PAREN_R,o,o+1,c,d,t);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return new pr.Token(nt.TokenKind.SPREAD,o,o+3,c,d,t);break;case 58:return new pr.Token(nt.TokenKind.COLON,o,o+1,c,d,t);case 61:return new pr.Token(nt.TokenKind.EQUALS,o,o+1,c,d,t);case 64:return new pr.Token(nt.TokenKind.AT,o,o+1,c,d,t);case 91:return new pr.Token(nt.TokenKind.BRACKET_L,o,o+1,c,d,t);case 93:return new pr.Token(nt.TokenKind.BRACKET_R,o,o+1,c,d,t);case 123:return new pr.Token(nt.TokenKind.BRACE_L,o,o+1,c,d,t);case 124:return new pr.Token(nt.TokenKind.PIPE,o,o+1,c,d,t);case 125:return new pr.Token(nt.TokenKind.BRACE_R,o,o+1,c,d,t);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?g5(r,o,c,d,t,e):v5(r,o,c,d,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h5(r,o,s,c,d,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return y5(r,o,c,d,t)}throw(0,va.syntaxError)(r,o,d5(s))}var h=e.line,m=1+o-e.lineStart;return new pr.Token(nt.TokenKind.EOF,a,a,h,m,t)}function d5(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(Mu(e),"."):e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Mu(e),".")}function p5(e,t,r,n,a){var o=e.body,s,c=t;do s=o.charCodeAt(++c);while(!isNaN(s)&&(s>31||s===9));return new pr.Token(nt.TokenKind.COMMENT,t,c,r,n,a,o.slice(t+1,c))}function h5(e,t,r,n,a,o){var s=e.body,c=r,d=t,h=!1;if(c===45&&(c=s.charCodeAt(++d)),c===48){if(c=s.charCodeAt(++d),c>=48&&c<=57)throw(0,va.syntaxError)(e,d,"Invalid number, unexpected digit after 0: ".concat(Mu(c),"."))}else d=bE(e,d,c),c=s.charCodeAt(d);if(c===46&&(h=!0,c=s.charCodeAt(++d),d=bE(e,d,c),c=s.charCodeAt(d)),(c===69||c===101)&&(h=!0,c=s.charCodeAt(++d),(c===43||c===45)&&(c=s.charCodeAt(++d)),d=bE(e,d,c),c=s.charCodeAt(d)),c===46||b5(c))throw(0,va.syntaxError)(e,d,"Invalid number, expected digit but got: ".concat(Mu(c),"."));return new pr.Token(h?nt.TokenKind.FLOAT:nt.TokenKind.INT,t,d,n,a,o,s.slice(t,d))}function bE(e,t,r){var n=e.body,a=t,o=r;if(o>=48&&o<=57){do o=n.charCodeAt(++a);while(o>=48&&o<=57);return a}throw(0,va.syntaxError)(e,a,"Invalid number, expected digit but got: ".concat(Mu(o),"."))}function v5(e,t,r,n,a){for(var o=e.body,s=t+1,c=s,d=0,h="";s<o.length&&!isNaN(d=o.charCodeAt(s))&&d!==10&&d!==13;){if(d===34)return h+=o.slice(c,s),new pr.Token(nt.TokenKind.STRING,t,s+1,r,n,a,h);if(d<32&&d!==9)throw(0,va.syntaxError)(e,s,"Invalid character within String: ".concat(Mu(d),"."));if(++s,d===92){switch(h+=o.slice(c,s-1),d=o.charCodeAt(s),d){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+=`
|
|
`;break;case 114:h+="\r";break;case 116:h+=" ";break;case 117:{var m=m5(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(m<0){var E=o.slice(s+1,s+5);throw(0,va.syntaxError)(e,s,"Invalid character escape sequence: \\u".concat(E,"."))}h+=String.fromCharCode(m),s+=4;break}default:throw(0,va.syntaxError)(e,s,"Invalid character escape sequence: \\".concat(String.fromCharCode(d),"."))}++s,c=s}}throw(0,va.syntaxError)(e,s,"Unterminated string.")}function g5(e,t,r,n,a,o){for(var s=e.body,c=t+3,d=c,h=0,m="";c<s.length&&!isNaN(h=s.charCodeAt(c));){if(h===34&&s.charCodeAt(c+1)===34&&s.charCodeAt(c+2)===34)return m+=s.slice(d,c),new pr.Token(nt.TokenKind.BLOCK_STRING,t,c+3,r,n,a,(0,s5.dedentBlockStringValue)(m));if(h<32&&h!==9&&h!==10&&h!==13)throw(0,va.syntaxError)(e,c,"Invalid character within String: ".concat(Mu(h),"."));h===10?(++c,++o.line,o.lineStart=c):h===13?(s.charCodeAt(c+1)===10?c+=2:++c,++o.line,o.lineStart=c):h===92&&s.charCodeAt(c+1)===34&&s.charCodeAt(c+2)===34&&s.charCodeAt(c+3)===34?(m+=s.slice(d,c)+'"""',c+=4,d=c):++c}throw(0,va.syntaxError)(e,c,"Unterminated string.")}function m5(e,t,r,n){return Vv(e)<<12|Vv(t)<<8|Vv(r)<<4|Vv(n)}function Vv(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y5(e,t,r,n,a){for(var o=e.body,s=o.length,c=t+1,d=0;c!==s&&!isNaN(d=o.charCodeAt(c))&&(d===95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++c;return new pr.Token(nt.TokenKind.NAME,t,c,r,n,a,o.slice(t,c))}function b5(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var Tl=U(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.parse=_5;qu.parseValue=S5;qu.parseType=D5;qu.Parser=void 0;var EE=Lv(),Ge=Pt(),E5=ml(),Te=yl(),gN=qv(),T5=bl(),mN=Uv();function _5(e,t){var r=new Gv(e,t);return r.parseDocument()}function S5(e,t){var r=new Gv(e,t);r.expectToken(Te.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(Te.TokenKind.EOF),n}function D5(e,t){var r=new Gv(e,t);r.expectToken(Te.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(Te.TokenKind.EOF),n}var Gv=function(){function e(r,n){var a=(0,gN.isSource)(r)?r:new gN.Source(r);this._lexer=new mN.Lexer(a),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(Te.TokenKind.NAME);return{kind:Ge.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:Ge.Kind.DOCUMENT,definitions:this.many(Te.TokenKind.SOF,this.parseDefinition,Te.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(Te.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Te.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(Te.TokenKind.BRACE_L))return{kind:Ge.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var a=this.parseOperationType(),o;return this.peek(Te.TokenKind.NAME)&&(o=this.parseName()),{kind:Ge.Kind.OPERATION_DEFINITION,operation:a,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(Te.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(Te.TokenKind.PAREN_L,this.parseVariableDefinition,Te.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:Ge.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Te.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Te.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(Te.TokenKind.DOLLAR),{kind:Ge.Kind.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:Ge.Kind.SELECTION_SET,selections:this.many(Te.TokenKind.BRACE_L,this.parseSelection,Te.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(Te.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n=this._lexer.token,a=this.parseName(),o,s;return this.expectOptionalToken(Te.TokenKind.COLON)?(o=a,s=this.parseName()):s=a,{kind:Ge.Kind.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Te.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(n){var a=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(Te.TokenKind.PAREN_L,a,Te.TokenKind.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,a=this.parseName();return this.expectToken(Te.TokenKind.COLON),{kind:Ge.Kind.ARGUMENT,name:a,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:Ge.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(Te.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(Te.TokenKind.SPREAD);var a=this.expectOptionalKeyword("on");return!a&&this.peek(Te.TokenKind.NAME)?{kind:Ge.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:Ge.Kind.INLINE_FRAGMENT,typeCondition:a?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,a=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:Ge.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}:{kind:Ge.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var a=this._lexer.token;switch(a.kind){case Te.TokenKind.BRACKET_L:return this.parseList(n);case Te.TokenKind.BRACE_L:return this.parseObject(n);case Te.TokenKind.INT:return this._lexer.advance(),{kind:Ge.Kind.INT,value:a.value,loc:this.loc(a)};case Te.TokenKind.FLOAT:return this._lexer.advance(),{kind:Ge.Kind.FLOAT,value:a.value,loc:this.loc(a)};case Te.TokenKind.STRING:case Te.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Te.TokenKind.NAME:switch(this._lexer.advance(),a.value){case"true":return{kind:Ge.Kind.BOOLEAN,value:!0,loc:this.loc(a)};case"false":return{kind:Ge.Kind.BOOLEAN,value:!1,loc:this.loc(a)};case"null":return{kind:Ge.Kind.NULL,loc:this.loc(a)};default:return{kind:Ge.Kind.ENUM,value:a.value,loc:this.loc(a)}}case Te.TokenKind.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:Ge.Kind.STRING,value:n.value,block:n.kind===Te.TokenKind.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var a=this,o=this._lexer.token,s=function(){return a.parseValueLiteral(n)};return{kind:Ge.Kind.LIST,values:this.any(Te.TokenKind.BRACKET_L,s,Te.TokenKind.BRACKET_R),loc:this.loc(o)}},t.parseObject=function(n){var a=this,o=this._lexer.token,s=function(){return a.parseObjectField(n)};return{kind:Ge.Kind.OBJECT,fields:this.any(Te.TokenKind.BRACE_L,s,Te.TokenKind.BRACE_R),loc:this.loc(o)}},t.parseObjectField=function(n){var a=this._lexer.token,o=this.parseName();return this.expectToken(Te.TokenKind.COLON),{kind:Ge.Kind.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(a)}},t.parseDirectives=function(n){for(var a=[];this.peek(Te.TokenKind.AT);)a.push(this.parseDirective(n));return a},t.parseDirective=function(n){var a=this._lexer.token;return this.expectToken(Te.TokenKind.AT),{kind:Ge.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(a)}},t.parseTypeReference=function(){var n=this._lexer.token,a;return this.expectOptionalToken(Te.TokenKind.BRACKET_L)?(a=this.parseTypeReference(),this.expectToken(Te.TokenKind.BRACKET_R),a={kind:Ge.Kind.LIST_TYPE,type:a,loc:this.loc(n)}):a=this.parseNamedType(),this.expectOptionalToken(Te.TokenKind.BANG)?{kind:Ge.Kind.NON_NULL_TYPE,type:a,loc:this.loc(n)}:a},t.parseNamedType=function(){var n=this._lexer.token;return{kind:Ge.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===Te.TokenKind.NAME)switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(n)},t.peekDescription=function(){return this.peek(Te.TokenKind.STRING)||this.peek(Te.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),s=this.many(Te.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Te.TokenKind.BRACE_R);return{kind:Ge.Kind.SCHEMA_DEFINITION,description:a,directives:o,operationTypes:s,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,a=this.parseOperationType();this.expectToken(Te.TokenKind.COLON);var o=this.parseNamedType();return{kind:Ge.Kind.OPERATION_TYPE_DEFINITION,operation:a,type:o,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),s=this.parseDirectives(!0);return{kind:Ge.Kind.SCALAR_TYPE_DEFINITION,description:a,name:o,directives:s,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),s=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:Ge.Kind.OBJECT_TYPE_DEFINITION,description:a,name:o,interfaces:s,directives:c,fields:d,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var a=[];this.expectOptionalToken(Te.TokenKind.AMP);do a.push(this.parseNamedType());while(this.expectOptionalToken(Te.TokenKind.AMP)||this.peek(Te.TokenKind.NAME));return a}return this.delimitedMany(Te.TokenKind.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(Te.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===Te.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Te.TokenKind.BRACE_L,this.parseFieldDefinition,Te.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(Te.TokenKind.COLON);var c=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:Ge.Kind.FIELD_DEFINITION,description:a,name:o,arguments:s,type:c,directives:d,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(Te.TokenKind.PAREN_L,this.parseInputValueDef,Te.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,a=this.parseDescription(),o=this.parseName();this.expectToken(Te.TokenKind.COLON);var s=this.parseTypeReference(),c;this.expectOptionalToken(Te.TokenKind.EQUALS)&&(c=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:Ge.Kind.INPUT_VALUE_DEFINITION,description:a,name:o,type:s,defaultValue:c,directives:d,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),s=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:Ge.Kind.INTERFACE_TYPE_DEFINITION,description:a,name:o,interfaces:s,directives:c,fields:d,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),s=this.parseDirectives(!0),c=this.parseUnionMemberTypes();return{kind:Ge.Kind.UNION_TYPE_DEFINITION,description:a,name:o,directives:s,types:c,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(Te.TokenKind.EQUALS)?this.delimitedMany(Te.TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),s=this.parseDirectives(!0),c=this.parseEnumValuesDefinition();return{kind:Ge.Kind.ENUM_TYPE_DEFINITION,description:a,name:o,directives:s,values:c,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Te.TokenKind.BRACE_L,this.parseEnumValueDefinition,Te.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:Ge.Kind.ENUM_VALUE_DEFINITION,description:a,name:o,directives:s,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),s=this.parseDirectives(!0),c=this.parseInputFieldsDefinition();return{kind:Ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:a,name:o,directives:s,fields:c,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Te.TokenKind.BRACE_L,this.parseInputValueDef,Te.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===Te.TokenKind.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var a=this.parseDirectives(!0),o=this.optionalMany(Te.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Te.TokenKind.BRACE_R);if(a.length===0&&o.length===0)throw this.unexpected();return{kind:Ge.Kind.SCHEMA_EXTENSION,directives:a,operationTypes:o,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var a=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:Ge.Kind.SCALAR_TYPE_EXTENSION,name:a,directives:o,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var a=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&c.length===0)throw this.unexpected();return{kind:Ge.Kind.OBJECT_TYPE_EXTENSION,name:a,interfaces:o,directives:s,fields:c,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var a=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&c.length===0)throw this.unexpected();return{kind:Ge.Kind.INTERFACE_TYPE_EXTENSION,name:a,interfaces:o,directives:s,fields:c,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.Kind.UNION_TYPE_EXTENSION,name:a,directives:o,types:s,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.Kind.ENUM_TYPE_EXTENSION,name:a,directives:o,values:s,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:a,directives:o,fields:s,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Te.TokenKind.AT);var o=this.parseName(),s=this.parseArgumentDefs(),c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:Ge.Kind.DIRECTIVE_DEFINITION,description:a,name:o,arguments:s,repeatable:c,locations:d,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(Te.TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,a=this.parseName();if(T5.DirectiveLocation[a.value]!==void 0)return a;throw this.unexpected(n)},t.loc=function(n){var a;if(((a=this._options)===null||a===void 0?void 0:a.noLocation)!==!0)return new E5.Location(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a;throw(0,EE.syntaxError)(this._lexer.source,a.start,"Expected ".concat(yN(n),", found ").concat(TE(a),"."))},t.expectOptionalToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a},t.expectKeyword=function(n){var a=this._lexer.token;if(a.kind===Te.TokenKind.NAME&&a.value===n)this._lexer.advance();else throw(0,EE.syntaxError)(this._lexer.source,a.start,'Expected "'.concat(n,'", found ').concat(TE(a),"."))},t.expectOptionalKeyword=function(n){var a=this._lexer.token;return a.kind===Te.TokenKind.NAME&&a.value===n?(this._lexer.advance(),!0):!1},t.unexpected=function(n){var a=n!=null?n:this._lexer.token;return(0,EE.syntaxError)(this._lexer.source,a.start,"Unexpected ".concat(TE(a),"."))},t.any=function(n,a,o){this.expectToken(n);for(var s=[];!this.expectOptionalToken(o);)s.push(a.call(this));return s},t.optionalMany=function(n,a,o){if(this.expectOptionalToken(n)){var s=[];do s.push(a.call(this));while(!this.expectOptionalToken(o));return s}return[]},t.many=function(n,a,o){this.expectToken(n);var s=[];do s.push(a.call(this));while(!this.expectOptionalToken(o));return s},t.delimitedMany=function(n,a){this.expectOptionalToken(n);var o=[];do o.push(a.call(this));while(this.expectOptionalToken(n));return o},e}();qu.Parser=Gv;function TE(e){var t=e.value;return yN(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function yN(e){return(0,mN.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}});var qo=U(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.visit=O5;za.visitInParallel=w5;za.getVisitFn=Qv;za.BREAK=za.QueryDocumentKeys=void 0;var k5=C5(_t()),bN=ml();function C5(e){return e&&e.__esModule?e:{default:e}}var EN={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};za.QueryDocumentKeys=EN;var _l=Object.freeze({});za.BREAK=_l;function O5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:EN,n=void 0,a=Array.isArray(e),o=[e],s=-1,c=[],d=void 0,h=void 0,m=void 0,E=[],b=[],C=e;do{s++;var L=s===o.length,S=L&&c.length!==0;if(L){if(h=b.length===0?void 0:E[E.length-1],d=m,m=b.pop(),S){if(a)d=d.slice();else{for(var y={},T=0,g=Object.keys(d);T<g.length;T++){var k=g[T];y[k]=d[k]}d=y}for(var N=0,w=0;w<c.length;w++){var D=c[w][0],F=c[w][1];a&&(D-=N),a&&F===null?(d.splice(D,1),N++):d[D]=F}}s=n.index,o=n.keys,c=n.edits,a=n.inArray,n=n.prev}else{if(h=m?a?s:o[s]:void 0,d=m?m[h]:C,d==null)continue;m&&E.push(h)}var P=void 0;if(!Array.isArray(d)){if(!(0,bN.isNode)(d))throw new Error("Invalid AST Node: ".concat((0,k5.default)(d),"."));var B=Qv(t,d.kind,L);if(B){if(P=B.call(t,d,h,m,E,b),P===_l)break;if(P===!1){if(!L){E.pop();continue}}else if(P!==void 0&&(c.push([h,P]),!L))if((0,bN.isNode)(P))d=P;else{E.pop();continue}}}if(P===void 0&&S&&c.push([h,d]),L)E.pop();else{var z;n={inArray:a,index:s,keys:o,edits:c,prev:n},a=Array.isArray(d),o=a?d:(z=r[d.kind])!==null&&z!==void 0?z:[],s=-1,c=[],m&&b.push(m),m=d}}while(n!==void 0);return c.length!==0&&(C=c[c.length-1][1]),C}function w5(e){var t=new Array(e.length);return{enter:function(n){for(var a=0;a<e.length;a++)if(t[a]==null){var o=Qv(e[a],n.kind,!1);if(o){var s=o.apply(e[a],arguments);if(s===!1)t[a]=n;else if(s===_l)t[a]=_l;else if(s!==void 0)return s}}},leave:function(n){for(var a=0;a<e.length;a++)if(t[a]==null){var o=Qv(e[a],n.kind,!0);if(o){var s=o.apply(e[a],arguments);if(s===_l)t[a]=_l;else if(s!==void 0&&s!==!1)return s}}else t[a]===n&&(t[a]=null)}}}function Qv(e,t,r){var n=e[t];if(n){if(!r&&typeof n=="function")return n;var a=r?n.leave:n.enter;if(typeof a=="function")return a}else{var o=r?e.leave:e.enter;if(o){if(typeof o=="function")return o;var s=o[t];if(typeof s=="function")return s}}}});var Sl=U(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.default=void 0;var N5=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}},A5=N5;Kv.default=A5});var Zn=U(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});Hv.default=void 0;var L5=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},x5=L5;Hv.default=x5});var ld=U(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.locatedError=P5;var I5=F5(_t()),R5=Ve();function F5(e){return e&&e.__esModule?e:{default:e}}function P5(e,t,r){var n,a=e instanceof Error?e:new Error("Unexpected error value: "+(0,I5.default)(e));return Array.isArray(a.path)?a:new R5.GraphQLError(a.message,(n=a.nodes)!==null&&n!==void 0?n:t,a.source,a.positions,r,a)}});var SE=U(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});zv.assertValidName=B5;zv.isValidNameError=_N;var j5=M5(Ei()),TN=Ve();function M5(e){return e&&e.__esModule?e:{default:e}}var q5=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function B5(e){var t=_N(e);if(t)throw t;return e}function _N(e){if(typeof e=="string"||(0,j5.default)(0,"Expected name to be a string."),e.length>1&&e[0]==="_"&&e[1]==="_")return new TN.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!q5.test(e))return new TN.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}});var Dl=U(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.default=void 0;var V5=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},U5=V5;Wv.default=U5});var Bo=U(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.default=G5;function G5(e,t){return e.reduce(function(r,n){return r[t(n)]=n,r},Object.create(null))}});var CE=U(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.default=H5;var Q5=K5(Dl());function K5(e){return e&&e.__esModule?e:{default:e}}function H5(e,t){for(var r=Object.create(null),n=0,a=(0,Q5.default)(e);n<a.length;n++){var o=a[n],s=o[0],c=o[1];r[s]=t(c,s)}return r}});var Yv=U(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.default=Y5;var z5=W5(Dl());function W5(e){return e&&e.__esModule?e:{default:e}}function Y5(e){if(Object.getPrototypeOf(e)===null)return e;for(var t=Object.create(null),r=0,n=(0,z5.default)(e);r<n.length;r++){var a=n[r],o=a[0],s=a[1];t[o]=s}return t}});var cd=U(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.default=J5;function J5(e,t,r){return e.reduce(function(n,a){return n[t(a)]=r(a),n},Object.create(null))}});var Vo=U(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.default=Z5;var X5=5;function Z5(e,t){var r=typeof e=="string"?[e,t]:[void 0,e],n=r[0],a=r[1],o=" Did you mean ";n&&(o+=n+" ");var s=a.map(function(h){return'"'.concat(h,'"')});switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}var c=s.slice(0,X5),d=c.pop();return o+c.join(", ")+", or "+d+"?"}});var SN=U(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.default=$5;function $5(e){return e}});var fd=U(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.default=eQ;function eQ(e,t){for(var r=0,n=0;r<e.length&&n<t.length;){var a=e.charCodeAt(r),o=t.charCodeAt(n);if(Jv(a)&&Jv(o)){var s=0;do++r,s=s*10+a-LE,a=e.charCodeAt(r);while(Jv(a)&&s>0);var c=0;do++n,c=c*10+o-LE,o=t.charCodeAt(n);while(Jv(o)&&c>0);if(s<c)return-1;if(s>c)return 1}else{if(a<o)return-1;if(a>o)return 1;++r,++n}}return e.length-t.length}var LE=48,tQ=57;function Jv(e){return!isNaN(e)&&LE<=e&&e<=tQ}});var Uo=U(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.default=iQ;var rQ=nQ(fd());function nQ(e){return e&&e.__esModule?e:{default:e}}function iQ(e,t){for(var r=Object.create(null),n=new aQ(e),a=Math.floor(e.length*.4)+1,o=0;o<t.length;o++){var s=t[o],c=n.measure(s,a);c!==void 0&&(r[s]=c)}return Object.keys(r).sort(function(d,h){var m=r[d]-r[h];return m!==0?m:(0,rQ.default)(d,h)})}var aQ=function(){function e(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=DN(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}var t=e.prototype;return t.measure=function(n,a){if(this._input===n)return 0;var o=n.toLowerCase();if(this._inputLowerCase===o)return 1;var s=DN(o),c=this._inputArray;if(s.length<c.length){var d=s;s=c,c=d}var h=s.length,m=c.length;if(!(h-m>a)){for(var E=this._rows,b=0;b<=m;b++)E[0][b]=b;for(var C=1;C<=h;C++){for(var L=E[(C-1)%3],S=E[C%3],y=S[0]=C,T=1;T<=m;T++){var g=s[C-1]===c[T-1]?0:1,k=Math.min(L[T]+1,S[T-1]+1,L[T-1]+g);if(C>1&&T>1&&s[C-1]===c[T-2]&&s[C-2]===c[T-1]){var N=E[(C-2)%3][T-2];k=Math.min(k,N+1)}k<y&&(y=k),S[T]=k}if(y>a)return}var w=E[h%3][m];return w<=a?w:void 0}},e}();function DN(e){for(var t=e.length,r=new Array(t),n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}});var jn=U(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.print=sQ;var oQ=qo(),uQ=El();function sQ(e){return(0,oQ.visit)(e,{leave:cQ})}var lQ=80,cQ={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return Ie(t.definitions,`
|
|
|
|
`)+`
|
|
`},OperationDefinition:function(t){var r=t.operation,n=t.name,a=tr("(",Ie(t.variableDefinitions,", "),")"),o=Ie(t.directives," "),s=t.selectionSet;return!n&&!o&&!a&&r==="query"?s:Ie([r,Ie([n,a]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,a=t.defaultValue,o=t.directives;return r+": "+n+tr(" = ",a)+tr(" ",Ie(o," "))},SelectionSet:function(t){var r=t.selections;return Qi(r)},Field:function(t){var r=t.alias,n=t.name,a=t.arguments,o=t.directives,s=t.selectionSet,c=tr("",r,": ")+n,d=c+tr("(",Ie(a,", "),")");return d.length>lQ&&(d=c+tr(`(
|
|
`,Xv(Ie(a,`
|
|
`)),`
|
|
)`)),Ie([d,Ie(o," "),s]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+tr(" ",Ie(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,a=t.selectionSet;return Ie(["...",tr("on ",r),Ie(n," "),a]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,a=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(tr("(",Ie(a,", "),")")," ")+"on ".concat(n," ").concat(tr("",Ie(o," ")," "))+s},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,a=t.block;return a?(0,uQ.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+Ie(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+Ie(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+tr("(",Ie(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:Gi(function(e){var t=e.directives,r=e.operationTypes;return Ie(["schema",Ie(t," "),Qi(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:Gi(function(e){var t=e.name,r=e.directives;return Ie(["scalar",t,Ie(r," ")]," ")}),ObjectTypeDefinition:Gi(function(e){var t=e.name,r=e.interfaces,n=e.directives,a=e.fields;return Ie(["type",t,tr("implements ",Ie(r," & ")),Ie(n," "),Qi(a)]," ")}),FieldDefinition:Gi(function(e){var t=e.name,r=e.arguments,n=e.type,a=e.directives;return t+(kN(r)?tr(`(
|
|
`,Xv(Ie(r,`
|
|
`)),`
|
|
)`):tr("(",Ie(r,", "),")"))+": "+n+tr(" ",Ie(a," "))}),InputValueDefinition:Gi(function(e){var t=e.name,r=e.type,n=e.defaultValue,a=e.directives;return Ie([t+": "+r,tr("= ",n),Ie(a," ")]," ")}),InterfaceTypeDefinition:Gi(function(e){var t=e.name,r=e.interfaces,n=e.directives,a=e.fields;return Ie(["interface",t,tr("implements ",Ie(r," & ")),Ie(n," "),Qi(a)]," ")}),UnionTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.types;return Ie(["union",t,Ie(r," "),n&&n.length!==0?"= "+Ie(n," | "):""]," ")}),EnumTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.values;return Ie(["enum",t,Ie(r," "),Qi(n)]," ")}),EnumValueDefinition:Gi(function(e){var t=e.name,r=e.directives;return Ie([t,Ie(r," ")]," ")}),InputObjectTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.fields;return Ie(["input",t,Ie(r," "),Qi(n)]," ")}),DirectiveDefinition:Gi(function(e){var t=e.name,r=e.arguments,n=e.repeatable,a=e.locations;return"directive @"+t+(kN(r)?tr(`(
|
|
`,Xv(Ie(r,`
|
|
`)),`
|
|
)`):tr("(",Ie(r,", "),")"))+(n?" repeatable":"")+" on "+Ie(a," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return Ie(["extend schema",Ie(r," "),Qi(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return Ie(["extend scalar",r,Ie(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,a=t.directives,o=t.fields;return Ie(["extend type",r,tr("implements ",Ie(n," & ")),Ie(a," "),Qi(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,a=t.directives,o=t.fields;return Ie(["extend interface",r,tr("implements ",Ie(n," & ")),Ie(a," "),Qi(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,a=t.types;return Ie(["extend union",r,Ie(n," "),a&&a.length!==0?"= "+Ie(a," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,a=t.values;return Ie(["extend enum",r,Ie(n," "),Qi(a)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,a=t.fields;return Ie(["extend input",r,Ie(n," "),Qi(a)]," ")}};function Gi(e){return function(t){return Ie([t.description,e(t)],`
|
|
`)}}function Ie(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(n){return n}).join(r))!==null&&t!==void 0?t:""}function Qi(e){return tr(`{
|
|
`,Xv(Ie(e,`
|
|
`)),`
|
|
}`)}function tr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function Xv(e){return tr(" ",e.replace(/\n/g,`
|
|
`))}function fQ(e){return e.indexOf(`
|
|
`)!==-1}function kN(e){return e!=null&&e.some(fQ)}});var ME=U(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.valueFromASTUntyped=PE;var dQ=FE(_t()),pQ=FE(zr()),hQ=FE(cd()),Wa=Pt();function FE(e){return e&&e.__esModule?e:{default:e}}function PE(e,t){switch(e.kind){case Wa.Kind.NULL:return null;case Wa.Kind.INT:return parseInt(e.value,10);case Wa.Kind.FLOAT:return parseFloat(e.value);case Wa.Kind.STRING:case Wa.Kind.ENUM:case Wa.Kind.BOOLEAN:return e.value;case Wa.Kind.LIST:return e.values.map(function(r){return PE(r,t)});case Wa.Kind.OBJECT:return(0,hQ.default)(e.fields,function(r){return r.name.value},function(r){return PE(r.value,t)});case Wa.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,pQ.default)(0,"Unexpected value node: "+(0,dQ.default)(e))}});var lt=U(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.isType=qE;Me.assertType=LN;Me.isScalarType=Bu;Me.assertScalarType=TQ;Me.isObjectType=Cl;Me.assertObjectType=_Q;Me.isInterfaceType=Vu;Me.assertInterfaceType=SQ;Me.isUnionType=Uu;Me.assertUnionType=DQ;Me.isEnumType=Gu;Me.assertEnumType=kQ;Me.isInputObjectType=pd;Me.assertInputObjectType=CQ;Me.isListType=$v;Me.assertListType=OQ;Me.isNonNullType=Ho;Me.assertNonNullType=wQ;Me.isInputType=BE;Me.assertInputType=NQ;Me.isOutputType=VE;Me.assertOutputType=AQ;Me.isLeafType=xN;Me.assertLeafType=LQ;Me.isCompositeType=IN;Me.assertCompositeType=xQ;Me.isAbstractType=RN;Me.assertAbstractType=IQ;Me.GraphQLList=zo;Me.GraphQLNonNull=Wo;Me.isWrappingType=hd;Me.assertWrappingType=RQ;Me.isNullableType=FN;Me.assertNullableType=PN;Me.getNullableType=FQ;Me.isNamedType=jN;Me.assertNamedType=PQ;Me.getNamedType=jQ;Me.argsToArgsConfig=VN;Me.isRequiredArgument=MQ;Me.isRequiredInputField=UQ;Me.GraphQLInputObjectType=Me.GraphQLEnumType=Me.GraphQLUnionType=Me.GraphQLInterfaceType=Me.GraphQLObjectType=Me.GraphQLScalarType=void 0;var CN=$n(Dl()),Go=ha(),Ht=$n(_t()),vQ=$n(Bo()),Zv=$n(CE()),ga=$n(Yv()),Jt=$n(Ei()),ON=$n(cd()),Qo=$n(ad()),gQ=$n(Vo()),mQ=$n(pa()),wN=$n(SN()),Ko=$n(Rv()),yQ=$n(Uo()),dd=Ve(),bQ=Pt(),NN=jn(),EQ=ME();function $n(e){return e&&e.__esModule?e:{default:e}}function AN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kl(e,t,r){return t&&AN(e.prototype,t),r&&AN(e,r),e}function qE(e){return Bu(e)||Cl(e)||Vu(e)||Uu(e)||Gu(e)||pd(e)||$v(e)||Ho(e)}function LN(e){if(!qE(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL type."));return e}function Bu(e){return(0,Qo.default)(e,UE)}function TQ(e){if(!Bu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Scalar type."));return e}function Cl(e){return(0,Qo.default)(e,GE)}function _Q(e){if(!Cl(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Object type."));return e}function Vu(e){return(0,Qo.default)(e,QE)}function SQ(e){if(!Vu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Interface type."));return e}function Uu(e){return(0,Qo.default)(e,KE)}function DQ(e){if(!Uu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Union type."));return e}function Gu(e){return(0,Qo.default)(e,HE)}function kQ(e){if(!Gu(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Enum type."));return e}function pd(e){return(0,Qo.default)(e,zE)}function CQ(e){if(!pd(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Input Object type."));return e}function $v(e){return(0,Qo.default)(e,zo)}function OQ(e){if(!$v(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL List type."));return e}function Ho(e){return(0,Qo.default)(e,Wo)}function wQ(e){if(!Ho(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL Non-Null type."));return e}function BE(e){return Bu(e)||Gu(e)||pd(e)||hd(e)&&BE(e.ofType)}function NQ(e){if(!BE(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL input type."));return e}function VE(e){return Bu(e)||Cl(e)||Vu(e)||Uu(e)||Gu(e)||hd(e)&&VE(e.ofType)}function AQ(e){if(!VE(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL output type."));return e}function xN(e){return Bu(e)||Gu(e)}function LQ(e){if(!xN(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL leaf type."));return e}function IN(e){return Cl(e)||Vu(e)||Uu(e)}function xQ(e){if(!IN(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL composite type."));return e}function RN(e){return Vu(e)||Uu(e)}function IQ(e){if(!RN(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL abstract type."));return e}function zo(e){if(this instanceof zo)this.ofType=LN(e);else return new zo(e)}zo.prototype.toString=function(){return"["+String(this.ofType)+"]"};zo.prototype.toJSON=function(){return this.toString()};Object.defineProperty(zo.prototype,Go.SYMBOL_TO_STRING_TAG,{get:function(){return"GraphQLList"}});(0,Ko.default)(zo);function Wo(e){if(this instanceof Wo)this.ofType=PN(e);else return new Wo(e)}Wo.prototype.toString=function(){return String(this.ofType)+"!"};Wo.prototype.toJSON=function(){return this.toString()};Object.defineProperty(Wo.prototype,Go.SYMBOL_TO_STRING_TAG,{get:function(){return"GraphQLNonNull"}});(0,Ko.default)(Wo);function hd(e){return $v(e)||Ho(e)}function RQ(e){if(!hd(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL wrapping type."));return e}function FN(e){return qE(e)&&!Ho(e)}function PN(e){if(!FN(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL nullable type."));return e}function FQ(e){if(e)return Ho(e)?e.ofType:e}function jN(e){return Bu(e)||Cl(e)||Vu(e)||Uu(e)||Gu(e)||pd(e)}function PQ(e){if(!jN(e))throw new Error("Expected ".concat((0,Ht.default)(e)," to be a GraphQL named type."));return e}function jQ(e){if(e){for(var t=e;hd(t);)t=t.ofType;return t}}function eg(e){return typeof e=="function"?e():e}function Ol(e){return e&&e.length>0?e:void 0}var UE=function(){function e(r){var n,a,o,s=(n=r.parseValue)!==null&&n!==void 0?n:wN.default;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=(a=r.serialize)!==null&&a!==void 0?a:wN.default,this.parseValue=s,this.parseLiteral=(o=r.parseLiteral)!==null&&o!==void 0?o:function(c,d){return s((0,EQ.valueFromASTUntyped)(c,d))},this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.specifiedByUrl==null||typeof r.specifiedByUrl=="string"||(0,Jt.default)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,Ht.default)(r.specifiedByUrl),".")),r.serialize==null||typeof r.serialize=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var n;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLScalarType"}}]),e}();Me.GraphQLScalarType=UE;(0,Ko.default)(UE);var GE=function(){function e(r){this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._fields=qN.bind(void 0,r),this._interfaces=MN.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,Ht.default)(r.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:BN(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLObjectType"}}]),e}();Me.GraphQLObjectType=GE;(0,Ko.default)(GE);function MN(e){var t,r=(t=eg(e.interfaces))!==null&&t!==void 0?t:[];return Array.isArray(r)||(0,Jt.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),r}function qN(e){var t=eg(e.fields);return wl(t)||(0,Jt.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Zv.default)(t,function(r,n){var a;wl(r)||(0,Jt.default)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in r)||(0,Jt.default)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),r.resolve==null||typeof r.resolve=="function"||(0,Jt.default)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,Ht.default)(r.resolve),"."));var o=(a=r.args)!==null&&a!==void 0?a:{};wl(o)||(0,Jt.default)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,CN.default)(o).map(function(c){var d=c[0],h=c[1];return{name:d,description:h.description,type:h.type,defaultValue:h.defaultValue,deprecationReason:h.deprecationReason,extensions:h.extensions&&(0,ga.default)(h.extensions),astNode:h.astNode}});return{name:n,description:r.description,type:r.type,args:s,resolve:r.resolve,subscribe:r.subscribe,isDeprecated:r.deprecationReason!=null,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ga.default)(r.extensions),astNode:r.astNode}})}function wl(e){return(0,mQ.default)(e)&&!Array.isArray(e)}function BN(e){return(0,Zv.default)(e,function(t){return{description:t.description,type:t.type,args:VN(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function VN(e){return(0,ON.default)(e,function(t){return t.name},function(t){return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function MQ(e){return Ho(e.type)&&e.defaultValue===void 0}var QE=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._fields=qN.bind(void 0,r),this._interfaces=MN.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,Ht.default)(r.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:BN(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInterfaceType"}}]),e}();Me.GraphQLInterfaceType=QE;(0,Ko.default)(QE);var KE=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._types=qQ.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,Ht.default)(r.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},t.toConfig=function(){var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLUnionType"}}]),e}();Me.GraphQLUnionType=KE;(0,Ko.default)(KE);function qQ(e){var t=eg(e.types);return Array.isArray(t)||(0,Jt.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var HE=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._values=BQ(this.name,r.values),this._valueLookup=new Map(this._values.map(function(n){return[n.value,n]})),this._nameLookup=(0,vQ.default)(this._values,function(n){return n.name}),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(n){return this._nameLookup[n]},t.serialize=function(n){var a=this._valueLookup.get(n);if(a===void 0)throw new dd.GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,Ht.default)(n)));return a.name},t.parseValue=function(n){if(typeof n!="string"){var a=(0,Ht.default)(n);throw new dd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(a,".")+tg(this,a))}var o=this.getValue(n);if(o==null)throw new dd.GraphQLError('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+tg(this,n));return o.value},t.parseLiteral=function(n,a){if(n.kind!==bQ.Kind.ENUM){var o=(0,NN.print)(n);throw new dd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+tg(this,o),n)}var s=this.getValue(n.value);if(s==null){var c=(0,NN.print)(n);throw new dd.GraphQLError('Value "'.concat(c,'" does not exist in "').concat(this.name,'" enum.')+tg(this,c),n)}return s.value},t.toConfig=function(){var n,a=(0,ON.default)(this.getValues(),function(o){return o.name},function(o){return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,values:a,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLEnumType"}}]),e}();Me.GraphQLEnumType=HE;(0,Ko.default)(HE);function tg(e,t){var r=e.getValues().map(function(a){return a.name}),n=(0,yQ.default)(t,r);return(0,gQ.default)("the enum value",n)}function BQ(e,t){return wl(t)||(0,Jt.default)(0,"".concat(e," values must be an object with value names as keys.")),(0,CN.default)(t).map(function(r){var n=r[0],a=r[1];return wl(a)||(0,Jt.default)(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,Ht.default)(a),".")),!("isDeprecated"in a)||(0,Jt.default)(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:a.description,value:a.value!==void 0?a.value:n,isDeprecated:a.deprecationReason!=null,deprecationReason:a.deprecationReason,extensions:a.extensions&&(0,ga.default)(a.extensions),astNode:a.astNode}})}var zE=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._fields=VQ.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var n,a=(0,Zv.default)(this.getFields(),function(o){return{description:o.description,type:o.type,defaultValue:o.defaultValue,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,fields:a,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInputObjectType"}}]),e}();Me.GraphQLInputObjectType=zE;(0,Ko.default)(zE);function VQ(e){var t=eg(e.fields);return wl(t)||(0,Jt.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Zv.default)(t,function(r,n){return!("resolve"in r)||(0,Jt.default)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ga.default)(r.extensions),astNode:r.astNode}})}function UQ(e){return Ho(e.type)&&e.defaultValue===void 0}});var gd=U(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.isEqualType=WE;vd.isTypeSubTypeOf=rg;vd.doTypesOverlap=GQ;var on=lt();function WE(e,t){return e===t?!0:(0,on.isNonNullType)(e)&&(0,on.isNonNullType)(t)||(0,on.isListType)(e)&&(0,on.isListType)(t)?WE(e.ofType,t.ofType):!1}function rg(e,t,r){return t===r?!0:(0,on.isNonNullType)(r)?(0,on.isNonNullType)(t)?rg(e,t.ofType,r.ofType):!1:(0,on.isNonNullType)(t)?rg(e,t.ofType,r):(0,on.isListType)(r)?(0,on.isListType)(t)?rg(e,t.ofType,r.ofType):!1:(0,on.isListType)(t)?!1:(0,on.isAbstractType)(r)&&((0,on.isInterfaceType)(t)||(0,on.isObjectType)(t))&&e.isSubType(r,t)}function GQ(e,t,r){return t===r?!0:(0,on.isAbstractType)(t)?(0,on.isAbstractType)(r)?e.getPossibleTypes(t).some(function(n){return e.isSubType(r,n)}):e.isSubType(t,r):(0,on.isAbstractType)(r)?e.isSubType(r,t):!1}});var YE=U(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});ng.default=void 0;var QQ=ha(),KQ=Array.from||function(e,t,r){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n=e[QQ.SYMBOL_ITERATOR];if(typeof n=="function"){for(var a=n.call(e),o=[],s,c=0;!(s=a.next()).done;++c)if(o.push(t.call(r,s.value,c)),c>9999999)throw new TypeError("Near-infinite iteration.");return o}var d=e.length;if(typeof d=="number"&&d>=0&&d%1==0){for(var h=[],m=0;m<d;++m)Object.prototype.hasOwnProperty.call(e,m)&&h.push(t.call(r,e[m],m));return h}return[]},HQ=KQ;ng.default=HQ});var JE=U(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.default=void 0;var zQ=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},WQ=zQ;ig.default=WQ});var og=U(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.default=JQ;var YQ=ha();function ag(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ag=function(r){return typeof r}:ag=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ag(e)}function JQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(m){return m};if(e==null||ag(e)!=="object")return null;if(Array.isArray(e))return e.map(t);var r=e[YQ.SYMBOL_ITERATOR];if(typeof r=="function"){for(var n=r.call(e),a=[],o,s=0;!(o=n.next()).done;++s)a.push(t(o.value,s));return a}var c=e.length;if(typeof c=="number"&&c>=0&&c%1==0){for(var d=[],h=0;h<c;++h){if(!Object.prototype.hasOwnProperty.call(e,h))return null;d.push(t(e[String(h)],h))}return d}return null}});var UN=U(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});ug.default=void 0;var XQ=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ZQ=XQ;ug.default=ZQ});var ma=U(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.isSpecifiedScalarType=l9;_n.specifiedScalarTypes=_n.GraphQLID=_n.GraphQLBoolean=_n.GraphQLString=_n.GraphQLFloat=_n.GraphQLInt=void 0;var sg=cg(JE()),lg=cg(UN()),Ki=cg(_t()),GN=cg(pa()),Qu=Pt(),md=jn(),jr=Ve(),yd=lt();function cg(e){return e&&e.__esModule?e:{default:e}}var ZE=2147483647,$E=-2147483648;function $Q(e){var t=bd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,lg.default)(r))throw new jr.GraphQLError("Int cannot represent non-integer value: ".concat((0,Ki.default)(t)));if(r>ZE||r<$E)throw new jr.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,Ki.default)(t));return r}function e9(e){if(!(0,lg.default)(e))throw new jr.GraphQLError("Int cannot represent non-integer value: ".concat((0,Ki.default)(e)));if(e>ZE||e<$E)throw new jr.GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var QN=new yd.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:$Q,parseValue:e9,parseLiteral:function(t){if(t.kind!==Qu.Kind.INT)throw new jr.GraphQLError("Int cannot represent non-integer value: ".concat((0,md.print)(t)),t);var r=parseInt(t.value,10);if(r>ZE||r<$E)throw new jr.GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(t.value),t);return r}});_n.GraphQLInt=QN;function t9(e){var t=bd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,sg.default)(r))throw new jr.GraphQLError("Float cannot represent non numeric value: ".concat((0,Ki.default)(t)));return r}function r9(e){if(!(0,sg.default)(e))throw new jr.GraphQLError("Float cannot represent non numeric value: ".concat((0,Ki.default)(e)));return e}var KN=new yd.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:t9,parseValue:r9,parseLiteral:function(t){if(t.kind!==Qu.Kind.FLOAT&&t.kind!==Qu.Kind.INT)throw new jr.GraphQLError("Float cannot represent non numeric value: ".concat((0,md.print)(t)),t);return parseFloat(t.value)}});_n.GraphQLFloat=KN;function bd(e){if((0,GN.default)(e)){if(typeof e.valueOf=="function"){var t=e.valueOf();if(!(0,GN.default)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function n9(e){var t=bd(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if((0,sg.default)(t))return t.toString();throw new jr.GraphQLError("String cannot represent value: ".concat((0,Ki.default)(e)))}function i9(e){if(typeof e!="string")throw new jr.GraphQLError("String cannot represent a non string value: ".concat((0,Ki.default)(e)));return e}var HN=new yd.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:n9,parseValue:i9,parseLiteral:function(t){if(t.kind!==Qu.Kind.STRING)throw new jr.GraphQLError("String cannot represent a non string value: ".concat((0,md.print)(t)),t);return t.value}});_n.GraphQLString=HN;function a9(e){var t=bd(e);if(typeof t=="boolean")return t;if((0,sg.default)(t))return t!==0;throw new jr.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,Ki.default)(t)))}function o9(e){if(typeof e!="boolean")throw new jr.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,Ki.default)(e)));return e}var zN=new yd.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:a9,parseValue:o9,parseLiteral:function(t){if(t.kind!==Qu.Kind.BOOLEAN)throw new jr.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,md.print)(t)),t);return t.value}});_n.GraphQLBoolean=zN;function u9(e){var t=bd(e);if(typeof t=="string")return t;if((0,lg.default)(t))return String(t);throw new jr.GraphQLError("ID cannot represent value: ".concat((0,Ki.default)(e)))}function s9(e){if(typeof e=="string")return e;if((0,lg.default)(e))return e.toString();throw new jr.GraphQLError("ID cannot represent value: ".concat((0,Ki.default)(e)))}var WN=new yd.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:u9,parseValue:s9,parseLiteral:function(t){if(t.kind!==Qu.Kind.STRING&&t.kind!==Qu.Kind.INT)throw new jr.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,md.print)(t),t);return t.value}});_n.GraphQLID=WN;var YN=Object.freeze([HN,QN,KN,zN,WN]);_n.specifiedScalarTypes=YN;function l9(e){return YN.some(function(t){var r=t.name;return e.name===r})}});var _d=U(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.astFromValue=Td;var c9=Nl(JE()),f9=Nl(Zn()),JN=Nl(_t()),d9=Nl(zr()),p9=Nl(pa()),h9=Nl(og()),Ti=Pt(),v9=ma(),Ed=lt();function Nl(e){return e&&e.__esModule?e:{default:e}}function Td(e,t){if((0,Ed.isNonNullType)(t)){var r=Td(e,t.ofType);return(r==null?void 0:r.kind)===Ti.Kind.NULL?null:r}if(e===null)return{kind:Ti.Kind.NULL};if(e===void 0)return null;if((0,Ed.isListType)(t)){var n=t.ofType,a=(0,h9.default)(e);if(a!=null){for(var o=[],s=0;s<a.length;s++){var c=a[s],d=Td(c,n);d!=null&&o.push(d)}return{kind:Ti.Kind.LIST,values:o}}return Td(e,n)}if((0,Ed.isInputObjectType)(t)){if(!(0,p9.default)(e))return null;for(var h=[],m=0,E=(0,f9.default)(t.getFields());m<E.length;m++){var b=E[m],C=Td(e[b.name],b.type);C&&h.push({kind:Ti.Kind.OBJECT_FIELD,name:{kind:Ti.Kind.NAME,value:b.name},value:C})}return{kind:Ti.Kind.OBJECT,fields:h}}if((0,Ed.isLeafType)(t)){var L=t.serialize(e);if(L==null)return null;if(typeof L=="boolean")return{kind:Ti.Kind.BOOLEAN,value:L};if(typeof L=="number"&&(0,c9.default)(L)){var S=String(L);return XN.test(S)?{kind:Ti.Kind.INT,value:S}:{kind:Ti.Kind.FLOAT,value:S}}if(typeof L=="string")return(0,Ed.isEnumType)(t)?{kind:Ti.Kind.ENUM,value:L}:t===v9.GraphQLID&&XN.test(L)?{kind:Ti.Kind.INT,value:L}:{kind:Ti.Kind.STRING,value:L};throw new TypeError("Cannot convert value to AST: ".concat((0,JN.default)(L),"."))}(0,d9.default)(0,"Unexpected input type: "+(0,JN.default)(t))}var XN=/^-?(?:0|[1-9][0-9]*)$/});var Mn=U(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.isIntrospectionType=S9;Ot.introspectionTypes=Ot.TypeNameMetaFieldDef=Ot.TypeMetaFieldDef=Ot.SchemaMetaFieldDef=Ot.__TypeKind=Ot.TypeKind=Ot.__EnumValue=Ot.__InputValue=Ot.__Field=Ot.__Type=Ot.__DirectiveLocation=Ot.__Directive=Ot.__Schema=void 0;var tT=rT(Zn()),g9=rT(_t()),m9=rT(zr()),y9=jn(),wr=bl(),b9=_d(),Bt=ma(),Re=lt();function rT(e){return e&&e.__esModule?e:{default:e}}var nT=new Re.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},types:{description:"A list of all types supported by this server.",type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(_i))),resolve:function(r){return(0,tT.default)(r.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Re.GraphQLNonNull(_i),resolve:function(r){return r.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:_i,resolve:function(r){return r.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:_i,resolve:function(r){return r.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(iT))),resolve:function(r){return r.getDirectives()}}}}});Ot.__Schema=nT;var iT=new Re.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
|
|
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(aT))),resolve:function(r){return r.locations}},args:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(Sd))),resolve:function(r){return r.args}}}}});Ot.__Directive=iT;var aT=new Re.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:wr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:wr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:wr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:wr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:wr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:wr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:wr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:wr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:wr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:wr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:wr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:wr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:wr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:wr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:wr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:wr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:wr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:wr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:wr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Ot.__DirectiveLocation=aT;var _i=new Re.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new Re.GraphQLNonNull(sT),resolve:function(r){if((0,Re.isScalarType)(r))return Wr.SCALAR;if((0,Re.isObjectType)(r))return Wr.OBJECT;if((0,Re.isInterfaceType)(r))return Wr.INTERFACE;if((0,Re.isUnionType)(r))return Wr.UNION;if((0,Re.isEnumType)(r))return Wr.ENUM;if((0,Re.isInputObjectType)(r))return Wr.INPUT_OBJECT;if((0,Re.isListType)(r))return Wr.LIST;if((0,Re.isNonNullType)(r))return Wr.NON_NULL;(0,m9.default)(0,'Unexpected type: "'.concat((0,g9.default)(r),'".'))}},name:{type:Bt.GraphQLString,resolve:function(r){return r.name!==void 0?r.name:void 0}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description!==void 0?r.description:void 0}},specifiedByUrl:{type:Bt.GraphQLString,resolve:function(r){return r.specifiedByUrl!==void 0?r.specifiedByUrl:void 0}},fields:{type:new Re.GraphQLList(new Re.GraphQLNonNull(oT)),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;if((0,Re.isObjectType)(r)||(0,Re.isInterfaceType)(r)){var o=(0,tT.default)(r.getFields());return a?o:o.filter(function(s){return s.deprecationReason==null})}}},interfaces:{type:new Re.GraphQLList(new Re.GraphQLNonNull(_i)),resolve:function(r){if((0,Re.isObjectType)(r)||(0,Re.isInterfaceType)(r))return r.getInterfaces()}},possibleTypes:{type:new Re.GraphQLList(new Re.GraphQLNonNull(_i)),resolve:function(r,n,a,o){var s=o.schema;if((0,Re.isAbstractType)(r))return s.getPossibleTypes(r)}},enumValues:{type:new Re.GraphQLList(new Re.GraphQLNonNull(uT)),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;if((0,Re.isEnumType)(r)){var o=r.getValues();return a?o:o.filter(function(s){return s.deprecationReason==null})}}},inputFields:{type:new Re.GraphQLList(new Re.GraphQLNonNull(Sd)),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;if((0,Re.isInputObjectType)(r)){var o=(0,tT.default)(r.getFields());return a?o:o.filter(function(s){return s.deprecationReason==null})}}},ofType:{type:_i,resolve:function(r){return r.ofType!==void 0?r.ofType:void 0}}}}});Ot.__Type=_i;var oT=new Re.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},args:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(Sd))),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;return a?r.args:r.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new Re.GraphQLNonNull(_i),resolve:function(r){return r.type}},isDeprecated:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:Bt.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Ot.__Field=oT;var Sd=new Re.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},type:{type:new Re.GraphQLNonNull(_i),resolve:function(r){return r.type}},defaultValue:{type:Bt.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(r){var n=r.type,a=r.defaultValue,o=(0,b9.astFromValue)(a,n);return o?(0,y9.print)(o):null}},isDeprecated:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:Bt.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Ot.__InputValue=Sd;var uT=new Re.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},isDeprecated:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:Bt.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Ot.__EnumValue=uT;var Wr=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});Ot.TypeKind=Wr;var sT=new Re.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Wr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Wr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Wr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Wr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Wr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Wr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Wr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Wr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Ot.__TypeKind=sT;var E9={name:"__schema",type:new Re.GraphQLNonNull(nT),description:"Access the current type schema of this server.",args:[],resolve:function(t,r,n,a){var o=a.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Ot.SchemaMetaFieldDef=E9;var T9={name:"__type",type:_i,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Re.GraphQLNonNull(Bt.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,r,n,a){var o=r.name,s=a.schema;return s.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Ot.TypeMetaFieldDef=T9;var _9={name:"__typename",type:new Re.GraphQLNonNull(Bt.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(t,r,n,a){var o=a.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Ot.TypeNameMetaFieldDef=_9;var ZN=Object.freeze([nT,iT,aT,_i,oT,Sd,uT,sT]);Ot.introspectionTypes=ZN;function S9(e){return ZN.some(function(t){var r=t.name;return e.name===r})}});var qn=U(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.isDirective=tA;Nr.assertDirective=L9;Nr.isSpecifiedDirective=x9;Nr.specifiedDirectives=Nr.GraphQLSpecifiedByDirective=Nr.GraphQLDeprecatedDirective=Nr.DEFAULT_DEPRECATION_REASON=Nr.GraphQLSkipDirective=Nr.GraphQLIncludeDirective=Nr.GraphQLDirective=void 0;var D9=Ku(Dl()),k9=ha(),C9=Ku(_t()),$N=Ku(Yv()),lT=Ku(Ei()),O9=Ku(ad()),w9=Ku(pa()),N9=Ku(Rv()),Hi=bl(),fg=ma(),dg=lt();function Ku(e){return e&&e.__esModule?e:{default:e}}function eA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A9(e,t,r){return t&&eA(e.prototype,t),r&&eA(e,r),e}function tA(e){return(0,O9.default)(e,Hu)}function L9(e){if(!tA(e))throw new Error("Expected ".concat((0,C9.default)(e)," to be a GraphQL directive."));return e}var Hu=function(){function e(r){var n,a;this.name=r.name,this.description=r.description,this.locations=r.locations,this.isRepeatable=(n=r.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=r.extensions&&(0,$N.default)(r.extensions),this.astNode=r.astNode,r.name||(0,lT.default)(0,"Directive must be named."),Array.isArray(r.locations)||(0,lT.default)(0,"@".concat(r.name," locations must be an Array."));var o=(a=r.args)!==null&&a!==void 0?a:{};(0,w9.default)(o)&&!Array.isArray(o)||(0,lT.default)(0,"@".concat(r.name," args must be an object with argument names as keys.")),this.args=(0,D9.default)(o).map(function(s){var c=s[0],d=s[1];return{name:c,description:d.description,type:d.type,defaultValue:d.defaultValue,deprecationReason:d.deprecationReason,extensions:d.extensions&&(0,$N.default)(d.extensions),astNode:d.astNode}})}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:(0,dg.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},t.toString=function(){return"@"+this.name},t.toJSON=function(){return this.toString()},A9(e,[{key:k9.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLDirective"}}]),e}();Nr.GraphQLDirective=Hu;(0,N9.default)(Hu);var rA=new Hu({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Hi.DirectiveLocation.FIELD,Hi.DirectiveLocation.FRAGMENT_SPREAD,Hi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new dg.GraphQLNonNull(fg.GraphQLBoolean),description:"Included when true."}}});Nr.GraphQLIncludeDirective=rA;var nA=new Hu({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Hi.DirectiveLocation.FIELD,Hi.DirectiveLocation.FRAGMENT_SPREAD,Hi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new dg.GraphQLNonNull(fg.GraphQLBoolean),description:"Skipped when true."}}});Nr.GraphQLSkipDirective=nA;var iA="No longer supported";Nr.DEFAULT_DEPRECATION_REASON=iA;var aA=new Hu({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Hi.DirectiveLocation.FIELD_DEFINITION,Hi.DirectiveLocation.ARGUMENT_DEFINITION,Hi.DirectiveLocation.INPUT_FIELD_DEFINITION,Hi.DirectiveLocation.ENUM_VALUE],args:{reason:{type:fg.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:iA}}});Nr.GraphQLDeprecatedDirective=aA;var oA=new Hu({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[Hi.DirectiveLocation.SCALAR],args:{url:{type:new dg.GraphQLNonNull(fg.GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}});Nr.GraphQLSpecifiedByDirective=oA;var uA=Object.freeze([rA,nA,aA,oA]);Nr.specifiedDirectives=uA;function x9(e){return uA.some(function(t){var r=t.name;return r===e.name})}});var zu=U(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.isSchema=cA;Al.assertSchema=V9;Al.GraphQLSchema=void 0;var I9=Yo(Sl()),R9=Yo(YE()),cT=Yo(Zn()),F9=ha(),fT=Yo(_t()),P9=Yo(Yv()),pg=Yo(Ei()),j9=Yo(ad()),M9=Yo(pa()),q9=Mn(),sA=qn(),zi=lt();function Yo(e){return e&&e.__esModule?e:{default:e}}function lA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B9(e,t,r){return t&&lA(e.prototype,t),r&&lA(e,r),e}function cA(e){return(0,j9.default)(e,fA)}function V9(e){if(!cA(e))throw new Error("Expected ".concat((0,fT.default)(e)," to be a GraphQL schema."));return e}var fA=function(){function e(r){var n;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,M9.default)(r)||(0,pg.default)(0,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,pg.default)(0,'"types" must be Array if provided but got: '.concat((0,fT.default)(r.types),".")),!r.directives||Array.isArray(r.directives)||(0,pg.default)(0,'"directives" must be Array if provided but got: '+"".concat((0,fT.default)(r.directives),".")),this.description=r.description,this.extensions=r.extensions&&(0,P9.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=r.extensionASTNodes,this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(n=r.directives)!==null&&n!==void 0?n:sA.specifiedDirectives;var a=new Set(r.types);if(r.types!=null)for(var o=0,s=r.types;o<s.length;o++){var c=s[o];a.delete(c),Wi(c,a)}this._queryType!=null&&Wi(this._queryType,a),this._mutationType!=null&&Wi(this._mutationType,a),this._subscriptionType!=null&&Wi(this._subscriptionType,a);for(var d=0,h=this._directives;d<h.length;d++){var m=h[d];if((0,sA.isDirective)(m))for(var E=0,b=m.args;E<b.length;E++){var C=b[E];Wi(C.type,a)}}Wi(q9.__Schema,a),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var L=0,S=(0,R9.default)(a);L<S.length;L++){var y=S[L];if(y!=null){var T=y.name;if(T||(0,pg.default)(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[T]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(T,'".'));if(this._typeMap[T]=y,(0,zi.isInterfaceType)(y))for(var g=0,k=y.getInterfaces();g<k.length;g++){var N=k[g];if((0,zi.isInterfaceType)(N)){var w=this._implementationsMap[N.name];w===void 0&&(w=this._implementationsMap[N.name]={objects:[],interfaces:[]}),w.interfaces.push(y)}}else if((0,zi.isObjectType)(y))for(var D=0,F=y.getInterfaces();D<F.length;D++){var P=F[D];if((0,zi.isInterfaceType)(P)){var B=this._implementationsMap[P.name];B===void 0&&(B=this._implementationsMap[P.name]={objects:[],interfaces:[]}),B.objects.push(y)}}}}}var t=e.prototype;return t.getQueryType=function(){return this._queryType},t.getMutationType=function(){return this._mutationType},t.getSubscriptionType=function(){return this._subscriptionType},t.getTypeMap=function(){return this._typeMap},t.getType=function(n){return this.getTypeMap()[n]},t.getPossibleTypes=function(n){return(0,zi.isUnionType)(n)?n.getTypes():this.getImplementations(n).objects},t.getImplementations=function(n){var a=this._implementationsMap[n.name];return a!=null?a:{objects:[],interfaces:[]}},t.isPossibleType=function(n,a){return this.isSubType(n,a)},t.isSubType=function(n,a){var o=this._subTypeMap[n.name];if(o===void 0){if(o=Object.create(null),(0,zi.isUnionType)(n))for(var s=0,c=n.getTypes();s<c.length;s++){var d=c[s];o[d.name]=!0}else{for(var h=this.getImplementations(n),m=0,E=h.objects;m<E.length;m++){var b=E[m];o[b.name]=!0}for(var C=0,L=h.interfaces;C<L.length;C++){var S=L[C];o[S.name]=!0}}this._subTypeMap[n.name]=o}return o[a.name]!==void 0},t.getDirectives=function(){return this._directives},t.getDirective=function(n){return(0,I9.default)(this.getDirectives(),function(a){return a.name===n})},t.toConfig=function(){var n;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:(0,cT.default)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[],assumeValid:this.__validationErrors!==void 0}},B9(e,[{key:F9.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLSchema"}}]),e}();Al.GraphQLSchema=fA;function Wi(e,t){var r=(0,zi.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,zi.isUnionType)(r))for(var n=0,a=r.getTypes();n<a.length;n++){var o=a[n];Wi(o,t)}else if((0,zi.isObjectType)(r)||(0,zi.isInterfaceType)(r)){for(var s=0,c=r.getInterfaces();s<c.length;s++){var d=c[s];Wi(d,t)}for(var h=0,m=(0,cT.default)(r.getFields());h<m.length;h++){var E=m[h];Wi(E.type,t);for(var b=0,C=E.args;b<C.length;b++){var L=C[b];Wi(L.type,t)}}}else if((0,zi.isInputObjectType)(r))for(var S=0,y=(0,cT.default)(r.getFields());S<y.length;S++){var T=y[S];Wi(T.type,t)}}return t}});var Cd=U(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.validateSchema=vA;hg.assertValidSchema=z9;var dA=dT(Sl()),Dd=dT(Zn()),un=dT(_t()),U9=Ve(),G9=ld(),Q9=SE(),pA=gd(),K9=zu(),H9=Mn(),hA=qn(),hr=lt();function dT(e){return e&&e.__esModule?e:{default:e}}function vA(e){if((0,K9.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new W9(e);Y9(t),J9(t),X9(t);var r=t.getErrors();return e.__validationErrors=r,r}function z9(e){var t=vA(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(`
|
|
|
|
`))}var W9=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,a){var o=Array.isArray(a)?a.filter(Boolean):a;this.addError(new U9.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function Y9(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,hr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,un.default)(r),"."),(n=pT(t,"query"))!==null&&n!==void 0?n:r.astNode)}var a=t.getMutationType();if(a&&!(0,hr.isObjectType)(a)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,un.default)(a),"."),(o=pT(t,"mutation"))!==null&&o!==void 0?o:a.astNode)}var s=t.getSubscriptionType();if(s&&!(0,hr.isObjectType)(s)){var c;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,un.default)(s),"."),(c=pT(t,"subscription"))!==null&&c!==void 0?c:s.astNode)}}function pT(e,t){for(var r=hT(e,function(o){return o.operationTypes}),n=0;n<r.length;n++){var a=r[n];if(a.operation===t)return a.type}}function J9(e){for(var t=0,r=e.schema.getDirectives();t<r.length;t++){var n=r[t];if(!(0,hA.isDirective)(n)){e.reportError("Expected directive but got: ".concat((0,un.default)(n),"."),n==null?void 0:n.astNode);continue}Wu(e,n);for(var a=0,o=n.args;a<o.length;a++){var s=o[a];if(Wu(e,s),(0,hr.isInputType)(s.type)||e.reportError("The type of @".concat(n.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,un.default)(s.type),"."),s.astNode),(0,hr.isRequiredArgument)(s)&&s.deprecationReason!=null){var c;e.reportError("Required argument @".concat(n.name,"(").concat(s.name,":) cannot be deprecated."),[vT(s.astNode),(c=s.astNode)===null||c===void 0?void 0:c.type])}}}}function Wu(e,t){var r=(0,Q9.isValidNameError)(t.name);r&&e.addError((0,G9.locatedError)(r,t.astNode))}function X9(e){for(var t=n4(e),r=e.schema.getTypeMap(),n=0,a=(0,Dd.default)(r);n<a.length;n++){var o=a[n];if(!(0,hr.isNamedType)(o)){e.reportError("Expected GraphQL named type but got: ".concat((0,un.default)(o),"."),o.astNode);continue}(0,H9.isIntrospectionType)(o)||Wu(e,o),(0,hr.isObjectType)(o)||(0,hr.isInterfaceType)(o)?(gA(e,o),mA(e,o)):(0,hr.isUnionType)(o)?e4(e,o):(0,hr.isEnumType)(o)?t4(e,o):(0,hr.isInputObjectType)(o)&&(r4(e,o),t(o))}}function gA(e,t){var r=(0,Dd.default)(t.getFields());r.length===0&&e.reportError("Type ".concat(t.name," must define one or more fields."),Ll(t));for(var n=0;n<r.length;n++){var a=r[n];if(Wu(e,a),!(0,hr.isOutputType)(a.type)){var o;e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Output Type ")+"but got: ".concat((0,un.default)(a.type),"."),(o=a.astNode)===null||o===void 0?void 0:o.type)}for(var s=0,c=a.args;s<c.length;s++){var d=c[s],h=d.name;if(Wu(e,d),!(0,hr.isInputType)(d.type)){var m;e.reportError("The type of ".concat(t.name,".").concat(a.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat((0,un.default)(d.type),"."),(m=d.astNode)===null||m===void 0?void 0:m.type)}if((0,hr.isRequiredArgument)(d)&&d.deprecationReason!=null){var E;e.reportError("Required argument ".concat(t.name,".").concat(a.name,"(").concat(h,":) cannot be deprecated."),[vT(d.astNode),(E=d.astNode)===null||E===void 0?void 0:E.type])}}}}function mA(e,t){for(var r=Object.create(null),n=0,a=t.getInterfaces();n<a.length;n++){var o=a[n];if(!(0,hr.isInterfaceType)(o)){e.reportError("Type ".concat((0,un.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,un.default)(o),"."),kd(t,o));continue}if(t===o){e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),kd(t,o));continue}if(r[o.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),kd(t,o));continue}r[o.name]=!0,$9(e,t,o),Z9(e,t,o)}}function Z9(e,t,r){for(var n=t.getFields(),a=0,o=(0,Dd.default)(r.getFields());a<o.length;a++){var s=o[a],c=s.name,d=n[c];if(!d){e.reportError("Interface field ".concat(r.name,".").concat(c," expected but ").concat(t.name," does not provide it."),[s.astNode].concat(Ll(t)));continue}if(!(0,pA.isTypeSubTypeOf)(e.schema,d.type,s.type)){var h,m;e.reportError("Interface field ".concat(r.name,".").concat(c," expects type ")+"".concat((0,un.default)(s.type)," but ").concat(t.name,".").concat(c," ")+"is type ".concat((0,un.default)(d.type),"."),[(h=s.astNode)===null||h===void 0?void 0:h.type,(m=d.astNode)===null||m===void 0?void 0:m.type])}for(var E=function(k,N){var w=N[k],D=w.name,F=(0,dA.default)(d.args,function(z){return z.name===D});if(!F)return e.reportError("Interface field argument ".concat(r.name,".").concat(c,"(").concat(D,":) expected but ").concat(t.name,".").concat(c," does not provide it."),[w.astNode,d.astNode]),"continue";if(!(0,pA.isEqualType)(w.type,F.type)){var P,B;e.reportError("Interface field argument ".concat(r.name,".").concat(c,"(").concat(D,":) ")+"expects type ".concat((0,un.default)(w.type)," but ")+"".concat(t.name,".").concat(c,"(").concat(D,":) is type ")+"".concat((0,un.default)(F.type),"."),[(P=w.astNode)===null||P===void 0?void 0:P.type,(B=F.astNode)===null||B===void 0?void 0:B.type])}},b=0,C=s.args;b<C.length;b++)var L=E(b,C);for(var S=function(k,N){var w=N[k],D=w.name,F=(0,dA.default)(s.args,function(P){return P.name===D});!F&&(0,hr.isRequiredArgument)(w)&&e.reportError("Object field ".concat(t.name,".").concat(c," includes required argument ").concat(D," that is missing from the Interface field ").concat(r.name,".").concat(c,"."),[w.astNode,s.astNode])},y=0,T=d.args;y<T.length;y++)S(y,T)}}function $9(e,t,r){for(var n=t.getInterfaces(),a=0,o=r.getInterfaces();a<o.length;a++){var s=o[a];n.indexOf(s)===-1&&e.reportError(s===t?"Type ".concat(t.name," cannot implement ").concat(r.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(s.name," because it is implemented by ").concat(r.name,"."),[].concat(kd(r,s),kd(t,r)))}}function e4(e,t){var r=t.getTypes();r.length===0&&e.reportError("Union type ".concat(t.name," must define one or more member types."),Ll(t));for(var n=Object.create(null),a=0;a<r.length;a++){var o=r[a];if(n[o.name]){e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),yA(t,o.name));continue}n[o.name]=!0,(0,hr.isObjectType)(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,un.default)(o),"."),yA(t,String(o)))}}function t4(e,t){var r=t.getValues();r.length===0&&e.reportError("Enum type ".concat(t.name," must define one or more values."),Ll(t));for(var n=0;n<r.length;n++){var a=r[n],o=a.name;Wu(e,a),(o==="true"||o==="false"||o==="null")&&e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),a.astNode)}}function r4(e,t){var r=(0,Dd.default)(t.getFields());r.length===0&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),Ll(t));for(var n=0;n<r.length;n++){var a=r[n];if(Wu(e,a),!(0,hr.isInputType)(a.type)){var o;e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Input Type ")+"but got: ".concat((0,un.default)(a.type),"."),(o=a.astNode)===null||o===void 0?void 0:o.type)}if((0,hr.isRequiredInputField)(a)&&a.deprecationReason!=null){var s;e.reportError("Required input field ".concat(t.name,".").concat(a.name," cannot be deprecated."),[vT(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}function n4(e){var t=Object.create(null),r=[],n=Object.create(null);return a;function a(o){if(!t[o.name]){t[o.name]=!0,n[o.name]=r.length;for(var s=(0,Dd.default)(o.getFields()),c=0;c<s.length;c++){var d=s[c];if((0,hr.isNonNullType)(d.type)&&(0,hr.isInputObjectType)(d.type.ofType)){var h=d.type.ofType,m=n[h.name];if(r.push(d),m===void 0)a(h);else{var E=r.slice(m),b=E.map(function(C){return C.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(h.name,'" within itself through a series of non-null fields: "').concat(b,'".'),E.map(function(C){return C.astNode}))}r.pop()}}n[o.name]=void 0}}}function Ll(e){var t=e.astNode,r=e.extensionASTNodes;return t?r?[t].concat(r):[t]:r!=null?r:[]}function hT(e,t){for(var r=[],n=0,a=Ll(e);n<a.length;n++){var o,s=a[n];r=r.concat((o=t(s))!==null&&o!==void 0?o:[])}return r}function kd(e,t){return hT(e,function(r){return r.interfaces}).filter(function(r){return r.name.value===t.name})}function yA(e,t){return hT(e,function(r){return r.types}).filter(function(r){return r.name.value===t})}function vT(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(function(r){return r.name.value===hA.GraphQLDeprecatedDirective.name})}});var ya=U(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0});yT.typeFromAST=mT;var i4=EA(_t()),a4=EA(zr()),gT=Pt(),bA=lt();function EA(e){return e&&e.__esModule?e:{default:e}}function mT(e,t){var r;if(t.kind===gT.Kind.LIST_TYPE)return r=mT(e,t.type),r&&new bA.GraphQLList(r);if(t.kind===gT.Kind.NON_NULL_TYPE)return r=mT(e,t.type),r&&new bA.GraphQLNonNull(r);if(t.kind===gT.Kind.NAMED_TYPE)return e.getType(t.name.value);(0,a4.default)(0,"Unexpected type node: "+(0,i4.default)(t))}});var vg=U(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.visitWithTypeInfo=f4;Od.TypeInfo=void 0;var o4=s4(Sl()),ur=Pt(),u4=ml(),TA=qo(),sr=lt(),xl=Mn(),_A=ya();function s4(e){return e&&e.__esModule?e:{default:e}}var l4=function(){function e(r,n,a){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n!=null?n:c4,a&&((0,sr.isInputType)(a)&&this._inputTypeStack.push(a),(0,sr.isCompositeType)(a)&&this._parentTypeStack.push(a),(0,sr.isOutputType)(a)&&this._typeStack.push(a))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(n){var a=this._schema;switch(n.kind){case ur.Kind.SELECTION_SET:{var o=(0,sr.getNamedType)(this.getType());this._parentTypeStack.push((0,sr.isCompositeType)(o)?o:void 0);break}case ur.Kind.FIELD:{var s=this.getParentType(),c,d;s&&(c=this._getFieldDef(a,s,n),c&&(d=c.type)),this._fieldDefStack.push(c),this._typeStack.push((0,sr.isOutputType)(d)?d:void 0);break}case ur.Kind.DIRECTIVE:this._directive=a.getDirective(n.name.value);break;case ur.Kind.OPERATION_DEFINITION:{var h;switch(n.operation){case"query":h=a.getQueryType();break;case"mutation":h=a.getMutationType();break;case"subscription":h=a.getSubscriptionType();break}this._typeStack.push((0,sr.isObjectType)(h)?h:void 0);break}case ur.Kind.INLINE_FRAGMENT:case ur.Kind.FRAGMENT_DEFINITION:{var m=n.typeCondition,E=m?(0,_A.typeFromAST)(a,m):(0,sr.getNamedType)(this.getType());this._typeStack.push((0,sr.isOutputType)(E)?E:void 0);break}case ur.Kind.VARIABLE_DEFINITION:{var b=(0,_A.typeFromAST)(a,n.type);this._inputTypeStack.push((0,sr.isInputType)(b)?b:void 0);break}case ur.Kind.ARGUMENT:{var C,L,S,y=(C=this.getDirective())!==null&&C!==void 0?C:this.getFieldDef();y&&(L=(0,o4.default)(y.args,function(P){return P.name===n.name.value}),L&&(S=L.type)),this._argument=L,this._defaultValueStack.push(L?L.defaultValue:void 0),this._inputTypeStack.push((0,sr.isInputType)(S)?S:void 0);break}case ur.Kind.LIST:{var T=(0,sr.getNullableType)(this.getInputType()),g=(0,sr.isListType)(T)?T.ofType:T;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,sr.isInputType)(g)?g:void 0);break}case ur.Kind.OBJECT_FIELD:{var k=(0,sr.getNamedType)(this.getInputType()),N,w;(0,sr.isInputObjectType)(k)&&(w=k.getFields()[n.name.value],w&&(N=w.type)),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push((0,sr.isInputType)(N)?N:void 0);break}case ur.Kind.ENUM:{var D=(0,sr.getNamedType)(this.getInputType()),F;(0,sr.isEnumType)(D)&&(F=D.getValue(n.value)),this._enumValue=F;break}}},t.leave=function(n){switch(n.kind){case ur.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case ur.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ur.Kind.DIRECTIVE:this._directive=null;break;case ur.Kind.OPERATION_DEFINITION:case ur.Kind.INLINE_FRAGMENT:case ur.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ur.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ur.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ur.Kind.LIST:case ur.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ur.Kind.ENUM:this._enumValue=null;break}},e}();Od.TypeInfo=l4;function c4(e,t,r){var n=r.name.value;if(n===xl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return xl.SchemaMetaFieldDef;if(n===xl.TypeMetaFieldDef.name&&e.getQueryType()===t)return xl.TypeMetaFieldDef;if(n===xl.TypeNameMetaFieldDef.name&&(0,sr.isCompositeType)(t))return xl.TypeNameMetaFieldDef;if((0,sr.isObjectType)(t)||(0,sr.isInterfaceType)(t))return t.getFields()[n]}function f4(e,t){return{enter:function(n){e.enter(n);var a=(0,TA.getVisitFn)(t,n.kind,!1);if(a){var o=a.apply(t,arguments);return o!==void 0&&(e.leave(n),(0,u4.isNode)(o)&&e.enter(o)),o}},leave:function(n){var a=(0,TA.getVisitFn)(t,n.kind,!0),o;return a&&(o=a.apply(t,arguments)),e.leave(n),o}}}});var Yu=U(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isDefinitionNode=d4;Yi.isExecutableDefinitionNode=SA;Yi.isSelectionNode=p4;Yi.isValueNode=h4;Yi.isTypeNode=v4;Yi.isTypeSystemDefinitionNode=DA;Yi.isTypeDefinitionNode=kA;Yi.isTypeSystemExtensionNode=CA;Yi.isTypeExtensionNode=OA;var yt=Pt();function d4(e){return SA(e)||DA(e)||CA(e)}function SA(e){return e.kind===yt.Kind.OPERATION_DEFINITION||e.kind===yt.Kind.FRAGMENT_DEFINITION}function p4(e){return e.kind===yt.Kind.FIELD||e.kind===yt.Kind.FRAGMENT_SPREAD||e.kind===yt.Kind.INLINE_FRAGMENT}function h4(e){return e.kind===yt.Kind.VARIABLE||e.kind===yt.Kind.INT||e.kind===yt.Kind.FLOAT||e.kind===yt.Kind.STRING||e.kind===yt.Kind.BOOLEAN||e.kind===yt.Kind.NULL||e.kind===yt.Kind.ENUM||e.kind===yt.Kind.LIST||e.kind===yt.Kind.OBJECT}function v4(e){return e.kind===yt.Kind.NAMED_TYPE||e.kind===yt.Kind.LIST_TYPE||e.kind===yt.Kind.NON_NULL_TYPE}function DA(e){return e.kind===yt.Kind.SCHEMA_DEFINITION||kA(e)||e.kind===yt.Kind.DIRECTIVE_DEFINITION}function kA(e){return e.kind===yt.Kind.SCALAR_TYPE_DEFINITION||e.kind===yt.Kind.OBJECT_TYPE_DEFINITION||e.kind===yt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===yt.Kind.UNION_TYPE_DEFINITION||e.kind===yt.Kind.ENUM_TYPE_DEFINITION||e.kind===yt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function CA(e){return e.kind===yt.Kind.SCHEMA_EXTENSION||OA(e)}function OA(e){return e.kind===yt.Kind.SCALAR_TYPE_EXTENSION||e.kind===yt.Kind.OBJECT_TYPE_EXTENSION||e.kind===yt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===yt.Kind.UNION_TYPE_EXTENSION||e.kind===yt.Kind.ENUM_TYPE_EXTENSION||e.kind===yt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var gg=U(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.ExecutableDefinitionsRule=y4;var g4=Ve(),wA=Pt(),m4=Yu();function y4(e){return{Document:function(r){for(var n=0,a=r.definitions;n<a.length;n++){var o=a[n];if(!(0,m4.isExecutableDefinitionNode)(o)){var s=o.kind===wA.Kind.SCHEMA_DEFINITION||o.kind===wA.Kind.SCHEMA_EXTENSION?"schema":'"'+o.name.value+'"';e.reportError(new g4.GraphQLError("The ".concat(s," definition is not executable."),o))}}return!1}}}});var TT=U(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.UniqueOperationNamesRule=E4;var b4=Ve();function E4(e){var t=Object.create(null);return{OperationDefinition:function(n){var a=n.name;return a&&(t[a.value]?e.reportError(new b4.GraphQLError('There can be only one operation named "'.concat(a.value,'".'),[t[a.value],a])):t[a.value]=a),!1},FragmentDefinition:function(){return!1}}}});var ST=U(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});_T.LoneAnonymousOperationRule=S4;var T4=Ve(),_4=Pt();function S4(e){var t=0;return{Document:function(n){t=n.definitions.filter(function(a){return a.kind===_4.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new T4.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}});var kT=U(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});DT.SingleFieldSubscriptionsRule=k4;var D4=Ve();function k4(e){return{OperationDefinition:function(r){r.operation==="subscription"&&r.selectionSet.selections.length!==1&&e.reportError(new D4.GraphQLError(r.name?'Subscription "'.concat(r.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",r.selectionSet.selections.slice(1)))}}}});var wT=U(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});OT.KnownTypeNamesRule=L4;var C4=NA(Vo()),O4=NA(Uo()),w4=Ve(),CT=Yu(),N4=ma(),A4=Mn();function NA(e){return e&&e.__esModule?e:{default:e}}function L4(e){for(var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null),a=0,o=e.getDocument().definitions;a<o.length;a++){var s=o[a];(0,CT.isTypeDefinitionNode)(s)&&(n[s.name.value]=!0)}var c=Object.keys(r).concat(Object.keys(n));return{NamedType:function(h,m,E,b,C){var L=h.name.value;if(!r[L]&&!n[L]){var S,y=(S=C[2])!==null&&S!==void 0?S:E,T=y!=null&&I4(y);if(T&&x4(L))return;var g=(0,O4.default)(L,T?AA.concat(c):c);e.reportError(new w4.GraphQLError('Unknown type "'.concat(L,'".')+(0,C4.default)(g),h))}}}}var AA=[].concat(N4.specifiedScalarTypes,A4.introspectionTypes).map(function(e){return e.name});function x4(e){return AA.indexOf(e)!==-1}function I4(e){return!Array.isArray(e)&&((0,CT.isTypeSystemDefinitionNode)(e)||(0,CT.isTypeSystemExtensionNode)(e))}});var AT=U(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0});NT.FragmentsOnCompositeTypesRule=R4;var LA=Ve(),xA=jn(),IA=lt(),RA=ya();function R4(e){return{InlineFragment:function(r){var n=r.typeCondition;if(n){var a=(0,RA.typeFromAST)(e.getSchema(),n);if(a&&!(0,IA.isCompositeType)(a)){var o=(0,xA.print)(n);e.reportError(new LA.GraphQLError('Fragment cannot condition on non composite type "'.concat(o,'".'),n))}}},FragmentDefinition:function(r){var n=(0,RA.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,IA.isCompositeType)(n)){var a=(0,xA.print)(r.typeCondition);e.reportError(new LA.GraphQLError('Fragment "'.concat(r.name.value,'" cannot condition on non composite type "').concat(a,'".'),r.typeCondition))}}}}});var xT=U(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.VariablesAreInputTypesRule=q4;var F4=Ve(),P4=jn(),j4=lt(),M4=ya();function q4(e){return{VariableDefinition:function(r){var n=(0,M4.typeFromAST)(e.getSchema(),r.type);if(n&&!(0,j4.isInputType)(n)){var a=r.variable.name.value,o=(0,P4.print)(r.type);e.reportError(new F4.GraphQLError('Variable "$'.concat(a,'" cannot be non-input type "').concat(o,'".'),r.type))}}}}});var RT=U(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});IT.ScalarLeafsRule=V4;var FA=B4(_t()),PA=Ve(),jA=lt();function B4(e){return e&&e.__esModule?e:{default:e}}function V4(e){return{Field:function(r){var n=e.getType(),a=r.selectionSet;if(n){if((0,jA.isLeafType)((0,jA.getNamedType)(n))){if(a){var o=r.name.value,s=(0,FA.default)(n);e.reportError(new PA.GraphQLError('Field "'.concat(o,'" must not have a selection since type "').concat(s,'" has no subfields.'),a))}}else if(!a){var c=r.name.value,d=(0,FA.default)(n);e.reportError(new PA.GraphQLError('Field "'.concat(c,'" of type "').concat(d,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),r))}}}}}});var PT=U(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.FieldsOnCorrectTypeRule=H4;var U4=mg(YE()),MA=mg(Vo()),G4=mg(Uo()),Q4=mg(fd()),K4=Ve(),wd=lt();function mg(e){return e&&e.__esModule?e:{default:e}}function H4(e){return{Field:function(r){var n=e.getParentType();if(n){var a=e.getFieldDef();if(!a){var o=e.getSchema(),s=r.name.value,c=(0,MA.default)("to use an inline fragment on",z4(o,n,s));c===""&&(c=(0,MA.default)(W4(n,s))),e.reportError(new K4.GraphQLError('Cannot query field "'.concat(s,'" on type "').concat(n.name,'".')+c,r))}}}}}function z4(e,t,r){if(!(0,wd.isAbstractType)(t))return[];for(var n=new Set,a=Object.create(null),o=0,s=e.getPossibleTypes(t);o<s.length;o++){var c=s[o];if(!!c.getFields()[r]){n.add(c),a[c.name]=1;for(var d=0,h=c.getInterfaces();d<h.length;d++){var m,E=h[d];!E.getFields()[r]||(n.add(E),a[E.name]=((m=a[E.name])!==null&&m!==void 0?m:0)+1)}}}return(0,U4.default)(n).sort(function(b,C){var L=a[C.name]-a[b.name];return L!==0?L:(0,wd.isInterfaceType)(b)&&e.isSubType(b,C)?-1:(0,wd.isInterfaceType)(C)&&e.isSubType(C,b)?1:(0,Q4.default)(b.name,C.name)}).map(function(b){return b.name})}function W4(e,t){if((0,wd.isObjectType)(e)||(0,wd.isInterfaceType)(e)){var r=Object.keys(e.getFields());return(0,G4.default)(t,r)}return[]}});var MT=U(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.UniqueFragmentNamesRule=J4;var Y4=Ve();function J4(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var a=n.name.value;return t[a]?e.reportError(new Y4.GraphQLError('There can be only one fragment named "'.concat(a,'".'),[t[a],n.name])):t[a]=n.name,!1}}}});var BT=U(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});qT.KnownFragmentNamesRule=Z4;var X4=Ve();function Z4(e){return{FragmentSpread:function(r){var n=r.name.value,a=e.getFragment(n);a||e.reportError(new X4.GraphQLError('Unknown fragment "'.concat(n,'".'),r.name))}}}});var UT=U(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:!0});VT.NoUnusedFragmentsRule=eK;var $4=Ve();function eK(e){var t=[],r=[];return{OperationDefinition:function(a){return t.push(a),!1},FragmentDefinition:function(a){return r.push(a),!1},Document:{leave:function(){for(var a=Object.create(null),o=0;o<t.length;o++)for(var s=t[o],c=0,d=e.getRecursivelyReferencedFragments(s);c<d.length;c++){var h=d[c];a[h.name.value]=!0}for(var m=0;m<r.length;m++){var E=r[m],b=E.name.value;a[b]!==!0&&e.reportError(new $4.GraphQLError('Fragment "'.concat(b,'" is never used.'),E))}}}}}});var KT=U(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});QT.PossibleFragmentSpreadsRule=nK;var yg=rK(_t()),qA=Ve(),GT=lt(),tK=ya(),BA=gd();function rK(e){return e&&e.__esModule?e:{default:e}}function nK(e){return{InlineFragment:function(r){var n=e.getType(),a=e.getParentType();if((0,GT.isCompositeType)(n)&&(0,GT.isCompositeType)(a)&&!(0,BA.doTypesOverlap)(e.getSchema(),n,a)){var o=(0,yg.default)(a),s=(0,yg.default)(n);e.reportError(new qA.GraphQLError('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(s,'".'),r))}},FragmentSpread:function(r){var n=r.name.value,a=iK(e,n),o=e.getParentType();if(a&&o&&!(0,BA.doTypesOverlap)(e.getSchema(),a,o)){var s=(0,yg.default)(o),c=(0,yg.default)(a);e.reportError(new qA.GraphQLError('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(c,'".'),r))}}}}function iK(e,t){var r=e.getFragment(t);if(r){var n=(0,tK.typeFromAST)(e.getSchema(),r.typeCondition);if((0,GT.isCompositeType)(n))return n}}});var zT=U(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.NoFragmentCyclesRule=oK;var aK=Ve();function oK(e){var t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return a(s),!1}};function a(o){if(!t[o.name.value]){var s=o.name.value;t[s]=!0;var c=e.getFragmentSpreads(o.selectionSet);if(c.length!==0){n[s]=r.length;for(var d=0;d<c.length;d++){var h=c[d],m=h.name.value,E=n[m];if(r.push(h),E===void 0){var b=e.getFragment(m);b&&a(b)}else{var C=r.slice(E),L=C.slice(0,-1).map(function(S){return'"'+S.name.value+'"'}).join(", ");e.reportError(new aK.GraphQLError('Cannot spread fragment "'.concat(m,'" within itself')+(L!==""?" via ".concat(L,"."):"."),C))}r.pop()}n[s]=void 0}}}}});var YT=U(WT=>{"use strict";Object.defineProperty(WT,"__esModule",{value:!0});WT.UniqueVariableNamesRule=sK;var uK=Ve();function sK(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var a=n.variable.name.value;t[a]?e.reportError(new uK.GraphQLError('There can be only one variable named "$'.concat(a,'".'),[t[a],n.variable.name])):t[a]=n.variable.name}}}});var XT=U(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});JT.NoUndefinedVariablesRule=cK;var lK=Ve();function cK(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var a=e.getRecursiveVariableUsages(n),o=0;o<a.length;o++){var s=a[o],c=s.node,d=c.name.value;t[d]!==!0&&e.reportError(new lK.GraphQLError(n.name?'Variable "$'.concat(d,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(d,'" is not defined.'),[c,n]))}}},VariableDefinition:function(n){t[n.variable.name.value]=!0}}}});var $T=U(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});ZT.NoUnusedVariablesRule=dK;var fK=Ve();function dK(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var a=Object.create(null),o=e.getRecursiveVariableUsages(n),s=0;s<o.length;s++){var c=o[s],d=c.node;a[d.name.value]=!0}for(var h=0,m=t;h<m.length;h++){var E=m[h],b=E.variable.name.value;a[b]!==!0&&e.reportError(new fK.GraphQLError(n.name?'Variable "$'.concat(b,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(b,'" is never used.'),E))}}},VariableDefinition:function(n){t.push(n)}}}});var t_=U(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.KnownDirectivesRule=vK;var pK=GA(_t()),VA=GA(zr()),UA=Ve(),zt=Pt(),Ar=bl(),hK=qn();function GA(e){return e&&e.__esModule?e:{default:e}}function vK(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():hK.specifiedDirectives,a=0;a<n.length;a++){var o=n[a];t[o.name]=o.locations}for(var s=e.getDocument().definitions,c=0;c<s.length;c++){var d=s[c];d.kind===zt.Kind.DIRECTIVE_DEFINITION&&(t[d.name.value]=d.locations.map(function(h){return h.value}))}return{Directive:function(m,E,b,C,L){var S=m.name.value,y=t[S];if(!y){e.reportError(new UA.GraphQLError('Unknown directive "@'.concat(S,'".'),m));return}var T=gK(L);T&&y.indexOf(T)===-1&&e.reportError(new UA.GraphQLError('Directive "@'.concat(S,'" may not be used on ').concat(T,"."),m))}}}function gK(e){var t=e[e.length-1];switch(!Array.isArray(t)||(0,VA.default)(0),t.kind){case zt.Kind.OPERATION_DEFINITION:return mK(t.operation);case zt.Kind.FIELD:return Ar.DirectiveLocation.FIELD;case zt.Kind.FRAGMENT_SPREAD:return Ar.DirectiveLocation.FRAGMENT_SPREAD;case zt.Kind.INLINE_FRAGMENT:return Ar.DirectiveLocation.INLINE_FRAGMENT;case zt.Kind.FRAGMENT_DEFINITION:return Ar.DirectiveLocation.FRAGMENT_DEFINITION;case zt.Kind.VARIABLE_DEFINITION:return Ar.DirectiveLocation.VARIABLE_DEFINITION;case zt.Kind.SCHEMA_DEFINITION:case zt.Kind.SCHEMA_EXTENSION:return Ar.DirectiveLocation.SCHEMA;case zt.Kind.SCALAR_TYPE_DEFINITION:case zt.Kind.SCALAR_TYPE_EXTENSION:return Ar.DirectiveLocation.SCALAR;case zt.Kind.OBJECT_TYPE_DEFINITION:case zt.Kind.OBJECT_TYPE_EXTENSION:return Ar.DirectiveLocation.OBJECT;case zt.Kind.FIELD_DEFINITION:return Ar.DirectiveLocation.FIELD_DEFINITION;case zt.Kind.INTERFACE_TYPE_DEFINITION:case zt.Kind.INTERFACE_TYPE_EXTENSION:return Ar.DirectiveLocation.INTERFACE;case zt.Kind.UNION_TYPE_DEFINITION:case zt.Kind.UNION_TYPE_EXTENSION:return Ar.DirectiveLocation.UNION;case zt.Kind.ENUM_TYPE_DEFINITION:case zt.Kind.ENUM_TYPE_EXTENSION:return Ar.DirectiveLocation.ENUM;case zt.Kind.ENUM_VALUE_DEFINITION:return Ar.DirectiveLocation.ENUM_VALUE;case zt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case zt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Ar.DirectiveLocation.INPUT_OBJECT;case zt.Kind.INPUT_VALUE_DEFINITION:{var r=e[e.length-3];return r.kind===zt.Kind.INPUT_OBJECT_TYPE_DEFINITION?Ar.DirectiveLocation.INPUT_FIELD_DEFINITION:Ar.DirectiveLocation.ARGUMENT_DEFINITION}}}function mK(e){switch(e){case"query":return Ar.DirectiveLocation.QUERY;case"mutation":return Ar.DirectiveLocation.MUTATION;case"subscription":return Ar.DirectiveLocation.SUBSCRIPTION}(0,VA.default)(0,"Unexpected operation: "+(0,pK.default)(e))}});var i_=U(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.UniqueDirectivesPerLocationRule=EK;var yK=Ve(),r_=Pt(),QA=Yu(),bK=qn();function EK(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():bK.specifiedDirectives,a=0;a<n.length;a++){var o=n[a];t[o.name]=!o.isRepeatable}for(var s=e.getDocument().definitions,c=0;c<s.length;c++){var d=s[c];d.kind===r_.Kind.DIRECTIVE_DEFINITION&&(t[d.name.value]=!d.repeatable)}var h=Object.create(null),m=Object.create(null);return{enter:function(b){if(b.directives!=null){var C;if(b.kind===r_.Kind.SCHEMA_DEFINITION||b.kind===r_.Kind.SCHEMA_EXTENSION)C=h;else if((0,QA.isTypeDefinitionNode)(b)||(0,QA.isTypeExtensionNode)(b)){var L=b.name.value;C=m[L],C===void 0&&(m[L]=C=Object.create(null))}else C=Object.create(null);for(var S=0,y=b.directives;S<y.length;S++){var T=y[S],g=T.name.value;t[g]&&(C[g]?e.reportError(new yK.GraphQLError('The directive "@'.concat(g,'" can only be used once at this location.'),[C[g],T])):C[g]=T)}}}}}});var a_=U(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.KnownArgumentNamesRule=DK;bg.KnownArgumentNamesOnDirectivesRule=XA;var KA=WA(Vo()),HA=WA(Uo()),zA=Ve(),TK=Pt(),_K=qn();function WA(e){return e&&e.__esModule?e:{default:e}}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function JA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(n){SK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DK(e){return JA(JA({},XA(e)),{},{Argument:function(r){var n=e.getArgument(),a=e.getFieldDef(),o=e.getParentType();if(!n&&a&&o){var s=r.name.value,c=a.args.map(function(h){return h.name}),d=(0,HA.default)(s,c);e.reportError(new zA.GraphQLError('Unknown argument "'.concat(s,'" on field "').concat(o.name,".").concat(a.name,'".')+(0,KA.default)(d),r))}}})}function XA(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():_K.specifiedDirectives,a=0;a<n.length;a++){var o=n[a];t[o.name]=o.args.map(function(E){return E.name})}for(var s=e.getDocument().definitions,c=0;c<s.length;c++){var d=s[c];if(d.kind===TK.Kind.DIRECTIVE_DEFINITION){var h,m=(h=d.arguments)!==null&&h!==void 0?h:[];t[d.name.value]=m.map(function(E){return E.name.value})}}return{Directive:function(b){var C=b.name.value,L=t[C];if(b.arguments&&L)for(var S=0,y=b.arguments;S<y.length;S++){var T=y[S],g=T.name.value;if(L.indexOf(g)===-1){var k=(0,HA.default)(g,L);e.reportError(new zA.GraphQLError('Unknown argument "'.concat(g,'" on directive "@').concat(C,'".')+(0,KA.default)(k),T))}}return!1}}}});var u_=U(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.UniqueArgumentNamesRule=CK;var kK=Ve();function CK(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var a=n.name.value;return t[a]?e.reportError(new kK.GraphQLError('There can be only one argument named "'.concat(a,'".'),[t[a],n.name])):t[a]=n.name,!1}}}});var l_=U(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.ValuesOfCorrectTypeRule=LK;var OK=Ad(Zn()),wK=Ad(Bo()),Nd=Ad(_t()),NK=Ad(Vo()),AK=Ad(Uo()),Ju=Ve(),Eg=jn(),ba=lt();function Ad(e){return e&&e.__esModule?e:{default:e}}function LK(e){return{ListValue:function(r){var n=(0,ba.getNullableType)(e.getParentInputType());if(!(0,ba.isListType)(n))return Xu(e,r),!1},ObjectValue:function(r){var n=(0,ba.getNamedType)(e.getInputType());if(!(0,ba.isInputObjectType)(n))return Xu(e,r),!1;for(var a=(0,wK.default)(r.fields,function(m){return m.name.value}),o=0,s=(0,OK.default)(n.getFields());o<s.length;o++){var c=s[o],d=a[c.name];if(!d&&(0,ba.isRequiredInputField)(c)){var h=(0,Nd.default)(c.type);e.reportError(new Ju.GraphQLError('Field "'.concat(n.name,".").concat(c.name,'" of required type "').concat(h,'" was not provided.'),r))}}},ObjectField:function(r){var n=(0,ba.getNamedType)(e.getParentInputType()),a=e.getInputType();if(!a&&(0,ba.isInputObjectType)(n)){var o=(0,AK.default)(r.name.value,Object.keys(n.getFields()));e.reportError(new Ju.GraphQLError('Field "'.concat(r.name.value,'" is not defined by type "').concat(n.name,'".')+(0,NK.default)(o),r))}},NullValue:function(r){var n=e.getInputType();(0,ba.isNonNullType)(n)&&e.reportError(new Ju.GraphQLError('Expected value of type "'.concat((0,Nd.default)(n),'", found ').concat((0,Eg.print)(r),"."),r))},EnumValue:function(r){return Xu(e,r)},IntValue:function(r){return Xu(e,r)},FloatValue:function(r){return Xu(e,r)},StringValue:function(r){return Xu(e,r)},BooleanValue:function(r){return Xu(e,r)}}}function Xu(e,t){var r=e.getInputType();if(!!r){var n=(0,ba.getNamedType)(r);if(!(0,ba.isLeafType)(n)){var a=(0,Nd.default)(r);e.reportError(new Ju.GraphQLError('Expected value of type "'.concat(a,'", found ').concat((0,Eg.print)(t),"."),t));return}try{var o=n.parseLiteral(t,void 0);if(o===void 0){var s=(0,Nd.default)(r);e.reportError(new Ju.GraphQLError('Expected value of type "'.concat(s,'", found ').concat((0,Eg.print)(t),"."),t))}}catch(d){var c=(0,Nd.default)(r);d instanceof Ju.GraphQLError?e.reportError(d):e.reportError(new Ju.GraphQLError('Expected value of type "'.concat(c,'", found ').concat((0,Eg.print)(t),"; ")+d.message,t,void 0,void 0,void 0,d))}}}});var f_=U(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.ProvidedRequiredArgumentsRule=FK;_g.ProvidedRequiredArgumentsOnDirectivesRule=iL;var ZA=tL(_t()),Tg=tL(Bo()),$A=Ve(),eL=Pt(),xK=jn(),IK=qn(),c_=lt();function tL(e){return e&&e.__esModule?e:{default:e}}function rL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(r),!0).forEach(function(n){RK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FK(e){return nL(nL({},iL(e)),{},{Field:{leave:function(r){var n,a=e.getFieldDef();if(!a)return!1;for(var o=(n=r.arguments)!==null&&n!==void 0?n:[],s=(0,Tg.default)(o,function(b){return b.name.value}),c=0,d=a.args;c<d.length;c++){var h=d[c],m=s[h.name];if(!m&&(0,c_.isRequiredArgument)(h)){var E=(0,ZA.default)(h.type);e.reportError(new $A.GraphQLError('Field "'.concat(a.name,'" argument "').concat(h.name,'" of type "').concat(E,'" is required, but it was not provided.'),r))}}}}})}function iL(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():IK.specifiedDirectives,a=0;a<n.length;a++){var o=n[a];t[o.name]=(0,Tg.default)(o.args.filter(c_.isRequiredArgument),function(E){return E.name})}for(var s=e.getDocument().definitions,c=0;c<s.length;c++){var d=s[c];if(d.kind===eL.Kind.DIRECTIVE_DEFINITION){var h,m=(h=d.arguments)!==null&&h!==void 0?h:[];t[d.name.value]=(0,Tg.default)(m.filter(PK),function(E){return E.name.value})}}return{Directive:{leave:function(b){var C=b.name.value,L=t[C];if(L)for(var S,y=(S=b.arguments)!==null&&S!==void 0?S:[],T=(0,Tg.default)(y,function(F){return F.name.value}),g=0,k=Object.keys(L);g<k.length;g++){var N=k[g];if(!T[N]){var w=L[N].type,D=(0,c_.isType)(w)?(0,ZA.default)(w):(0,xK.print)(w);e.reportError(new $A.GraphQLError('Directive "@'.concat(C,'" argument "').concat(N,'" of type "').concat(D,'" is required, but it was not provided.'),b))}}}}}}function PK(e){return e.type.kind===eL.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var p_=U(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.VariablesInAllowedPositionRule=VK;var aL=BK(_t()),jK=Ve(),MK=Pt(),oL=lt(),qK=ya(),uL=gd();function BK(e){return e&&e.__esModule?e:{default:e}}function VK(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var a=e.getRecursiveVariableUsages(n),o=0;o<a.length;o++){var s=a[o],c=s.node,d=s.type,h=s.defaultValue,m=c.name.value,E=t[m];if(E&&d){var b=e.getSchema(),C=(0,qK.typeFromAST)(b,E.type);if(C&&!UK(b,C,E.defaultValue,d,h)){var L=(0,aL.default)(C),S=(0,aL.default)(d);e.reportError(new jK.GraphQLError('Variable "$'.concat(m,'" of type "').concat(L,'" used in position expecting type "').concat(S,'".'),[E,c]))}}}}},VariableDefinition:function(n){t[n.variable.name.value]=n}}}function UK(e,t,r,n,a){if((0,oL.isNonNullType)(n)&&!(0,oL.isNonNullType)(t)){var o=r!=null&&r.kind!==MK.Kind.NULL,s=a!==void 0;if(!o&&!s)return!1;var c=n.ofType;return(0,uL.isTypeSubTypeOf)(e,t,c)}return(0,uL.isTypeSubTypeOf)(e,t,n)}});var E_=U(b_=>{"use strict";Object.defineProperty(b_,"__esModule",{value:!0});b_.OverlappingFieldsCanBeMergedRule=HK;var GK=v_(Sl()),QK=v_(Dl()),sL=v_(_t()),KK=Ve(),h_=Pt(),lL=jn(),Bn=lt(),cL=ya();function v_(e){return e&&e.__esModule?e:{default:e}}function fL(e){return Array.isArray(e)?e.map(function(t){var r=t[0],n=t[1];return'subfields "'.concat(r,'" conflict because ')+fL(n)}).join(" and "):e}function HK(e){var t=new $K,r=new Map;return{SelectionSet:function(a){for(var o=zK(e,r,t,e.getParentType(),a),s=0;s<o.length;s++){var c=o[s],d=c[0],h=d[0],m=d[1],E=c[1],b=c[2],C=fL(m);e.reportError(new KK.GraphQLError('Fields "'.concat(h,'" conflict because ').concat(C,". Use different aliases on the fields to fetch both if this was intentional."),E.concat(b)))}}}}function zK(e,t,r,n,a){var o=[],s=kg(e,t,n,a),c=s[0],d=s[1];if(YK(e,o,t,r,c),d.length!==0)for(var h=0;h<d.length;h++){Sg(e,o,t,r,!1,c,d[h]);for(var m=h+1;m<d.length;m++)Dg(e,o,t,r,!1,d[h],d[m])}return o}function Sg(e,t,r,n,a,o,s){var c=e.getFragment(s);if(!!c){var d=y_(e,r,c),h=d[0],m=d[1];if(o!==h){g_(e,t,r,n,a,o,h);for(var E=0;E<m.length;E++)Sg(e,t,r,n,a,o,m[E])}}}function Dg(e,t,r,n,a,o,s){if(o!==s&&!n.has(o,s,a)){n.add(o,s,a);var c=e.getFragment(o),d=e.getFragment(s);if(!(!c||!d)){var h=y_(e,r,c),m=h[0],E=h[1],b=y_(e,r,d),C=b[0],L=b[1];g_(e,t,r,n,a,m,C);for(var S=0;S<L.length;S++)Dg(e,t,r,n,a,o,L[S]);for(var y=0;y<E.length;y++)Dg(e,t,r,n,a,E[y],s)}}}function WK(e,t,r,n,a,o,s,c){var d=[],h=kg(e,t,a,o),m=h[0],E=h[1],b=kg(e,t,s,c),C=b[0],L=b[1];if(g_(e,d,t,r,n,m,C),L.length!==0)for(var S=0;S<L.length;S++)Sg(e,d,t,r,n,m,L[S]);if(E.length!==0)for(var y=0;y<E.length;y++)Sg(e,d,t,r,n,C,E[y]);for(var T=0;T<E.length;T++)for(var g=0;g<L.length;g++)Dg(e,d,t,r,n,E[T],L[g]);return d}function YK(e,t,r,n,a){for(var o=0,s=(0,QK.default)(a);o<s.length;o++){var c=s[o],d=c[0],h=c[1];if(h.length>1)for(var m=0;m<h.length;m++)for(var E=m+1;E<h.length;E++){var b=dL(e,r,n,!1,d,h[m],h[E]);b&&t.push(b)}}}function g_(e,t,r,n,a,o,s){for(var c=0,d=Object.keys(o);c<d.length;c++){var h=d[c],m=s[h];if(m)for(var E=o[h],b=0;b<E.length;b++)for(var C=0;C<m.length;C++){var L=dL(e,r,n,a,h,E[b],m[C]);L&&t.push(L)}}}function dL(e,t,r,n,a,o,s){var c=o[0],d=o[1],h=o[2],m=s[0],E=s[1],b=s[2],C=n||c!==m&&(0,Bn.isObjectType)(c)&&(0,Bn.isObjectType)(m);if(!C){var L,S,y=d.name.value,T=E.name.value;if(y!==T)return[[a,'"'.concat(y,'" and "').concat(T,'" are different fields')],[d],[E]];var g=(L=d.arguments)!==null&&L!==void 0?L:[],k=(S=E.arguments)!==null&&S!==void 0?S:[];if(!JK(g,k))return[[a,"they have differing arguments"],[d],[E]]}var N=h==null?void 0:h.type,w=b==null?void 0:b.type;if(N&&w&&m_(N,w))return[[a,'they return conflicting types "'.concat((0,sL.default)(N),'" and "').concat((0,sL.default)(w),'"')],[d],[E]];var D=d.selectionSet,F=E.selectionSet;if(D&&F){var P=WK(e,t,r,C,(0,Bn.getNamedType)(N),D,(0,Bn.getNamedType)(w),F);return ZK(P,a,d,E)}}function JK(e,t){return e.length!==t.length?!1:e.every(function(r){var n=(0,GK.default)(t,function(a){return a.name.value===r.name.value});return n?XK(r.value,n.value):!1})}function XK(e,t){return(0,lL.print)(e)===(0,lL.print)(t)}function m_(e,t){return(0,Bn.isListType)(e)?(0,Bn.isListType)(t)?m_(e.ofType,t.ofType):!0:(0,Bn.isListType)(t)?!0:(0,Bn.isNonNullType)(e)?(0,Bn.isNonNullType)(t)?m_(e.ofType,t.ofType):!0:(0,Bn.isNonNullType)(t)?!0:(0,Bn.isLeafType)(e)||(0,Bn.isLeafType)(t)?e!==t:!1}function kg(e,t,r,n){var a=t.get(n);if(!a){var o=Object.create(null),s=Object.create(null);pL(e,r,n,o,s),a=[o,Object.keys(s)],t.set(n,a)}return a}function y_(e,t,r){var n=t.get(r.selectionSet);if(n)return n;var a=(0,cL.typeFromAST)(e.getSchema(),r.typeCondition);return kg(e,t,a,r.selectionSet)}function pL(e,t,r,n,a){for(var o=0,s=r.selections;o<s.length;o++){var c=s[o];switch(c.kind){case h_.Kind.FIELD:{var d=c.name.value,h=void 0;((0,Bn.isObjectType)(t)||(0,Bn.isInterfaceType)(t))&&(h=t.getFields()[d]);var m=c.alias?c.alias.value:d;n[m]||(n[m]=[]),n[m].push([t,c,h]);break}case h_.Kind.FRAGMENT_SPREAD:a[c.name.value]=!0;break;case h_.Kind.INLINE_FRAGMENT:{var E=c.typeCondition,b=E?(0,cL.typeFromAST)(e.getSchema(),E):t;pL(e,b,c.selectionSet,n,a);break}}}}function ZK(e,t,r,n){if(e.length>0)return[[t,e.map(function(a){var o=a[0];return o})],e.reduce(function(a,o){var s=o[1];return a.concat(s)},[r]),e.reduce(function(a,o){var s=o[2];return a.concat(s)},[n])]}var $K=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(n,a,o){var s=this._data[n],c=s&&s[a];return c===void 0?!1:o===!1?c===!1:!0},t.add=function(n,a,o){this._pairSetAdd(n,a,o),this._pairSetAdd(a,n,o)},t._pairSetAdd=function(n,a,o){var s=this._data[n];s||(s=Object.create(null),this._data[n]=s),s[a]=o},e}()});var __=U(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});T_.UniqueInputFieldNamesRule=t8;var e8=Ve();function t8(e){var t=[],r=Object.create(null);return{ObjectValue:{enter:function(){t.push(r),r=Object.create(null)},leave:function(){r=t.pop()}},ObjectField:function(a){var o=a.name.value;r[o]?e.reportError(new e8.GraphQLError('There can be only one input field named "'.concat(o,'".'),[r[o],a.name])):r[o]=a.name}}}});var D_=U(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.LoneSchemaDefinitionRule=r8;var hL=Ve();function r8(e){var t,r,n,a=e.getSchema(),o=(t=(r=(n=a==null?void 0:a.astNode)!==null&&n!==void 0?n:a==null?void 0:a.getQueryType())!==null&&r!==void 0?r:a==null?void 0:a.getMutationType())!==null&&t!==void 0?t:a==null?void 0:a.getSubscriptionType(),s=0;return{SchemaDefinition:function(d){if(o){e.reportError(new hL.GraphQLError("Cannot define a new schema within a schema extension.",d));return}s>0&&e.reportError(new hL.GraphQLError("Must provide only one schema definition.",d)),++s}}}});var C_=U(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.UniqueOperationTypesRule=n8;var vL=Ve();function n8(e){var t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:a,SchemaExtension:a};function a(o){for(var s,c=(s=o.operationTypes)!==null&&s!==void 0?s:[],d=0;d<c.length;d++){var h=c[d],m=h.operation,E=r[m];n[m]?e.reportError(new vL.GraphQLError("Type for ".concat(m," already defined in the schema. It cannot be redefined."),h)):E?e.reportError(new vL.GraphQLError("There can be only one ".concat(m," type in schema."),[E,h])):r[m]=h}return!1}}});var w_=U(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.UniqueTypeNamesRule=i8;var gL=Ve();function i8(e){var t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(a){var o=a.name.value;if(r!=null&&r.getType(o)){e.reportError(new gL.GraphQLError('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),a.name));return}return t[o]?e.reportError(new gL.GraphQLError('There can be only one type named "'.concat(o,'".'),[t[o],a.name])):t[o]=a.name,!1}}});var A_=U(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.UniqueEnumValueNamesRule=o8;var mL=Ve(),a8=lt();function o8(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(o){var s,c=o.name.value;n[c]||(n[c]=Object.create(null));for(var d=(s=o.values)!==null&&s!==void 0?s:[],h=n[c],m=0;m<d.length;m++){var E=d[m],b=E.name.value,C=r[c];(0,a8.isEnumType)(C)&&C.getValue(b)?e.reportError(new mL.GraphQLError('Enum value "'.concat(c,".").concat(b,'" already exists in the schema. It cannot also be defined in this type extension.'),E.name)):h[b]?e.reportError(new mL.GraphQLError('Enum value "'.concat(c,".").concat(b,'" can only be defined once.'),[h[b],E.name])):h[b]=E.name}return!1}}});var I_=U(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.UniqueFieldDefinitionNamesRule=u8;var yL=Ve(),L_=lt();function u8(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(o){var s,c=o.name.value;n[c]||(n[c]=Object.create(null));for(var d=(s=o.fields)!==null&&s!==void 0?s:[],h=n[c],m=0;m<d.length;m++){var E=d[m],b=E.name.value;s8(r[c],b)?e.reportError(new yL.GraphQLError('Field "'.concat(c,".").concat(b,'" already exists in the schema. It cannot also be defined in this type extension.'),E.name)):h[b]?e.reportError(new yL.GraphQLError('Field "'.concat(c,".").concat(b,'" can only be defined once.'),[h[b],E.name])):h[b]=E.name}return!1}}function s8(e,t){return(0,L_.isObjectType)(e)||(0,L_.isInterfaceType)(e)||(0,L_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var F_=U(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.UniqueDirectiveNamesRule=l8;var bL=Ve();function l8(e){var t=Object.create(null),r=e.getSchema();return{DirectiveDefinition:function(a){var o=a.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new bL.GraphQLError('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),a.name));return}return t[o]?e.reportError(new bL.GraphQLError('There can be only one directive named "@'.concat(o,'".'),[t[o],a.name])):t[o]=a.name,!1}}}});var j_=U(P_=>{"use strict";Object.defineProperty(P_,"__esModule",{value:!0});P_.PossibleTypeExtensionsRule=p8;var EL=Cg(_t()),TL=Cg(zr()),c8=Cg(Vo()),f8=Cg(Uo()),_L=Ve(),Xt=Pt(),d8=Yu(),Il=lt(),Jo;function Cg(e){return e&&e.__esModule?e:{default:e}}function Rl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p8(e){for(var t=e.getSchema(),r=Object.create(null),n=0,a=e.getDocument().definitions;n<a.length;n++){var o=a[n];(0,d8.isTypeDefinitionNode)(o)&&(r[o.name.value]=o)}return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(c){var d=c.name.value,h=r[d],m=t==null?void 0:t.getType(d),E;if(h?E=h8[h.kind]:m&&(E=v8(m)),E){if(E!==c.kind){var b=g8(c.kind);e.reportError(new _L.GraphQLError("Cannot extend non-".concat(b,' type "').concat(d,'".'),h?[h,c]:c))}}else{var C=Object.keys(r);t&&(C=C.concat(Object.keys(t.getTypeMap())));var L=(0,f8.default)(d,C);e.reportError(new _L.GraphQLError('Cannot extend type "'.concat(d,'" because it is not defined.')+(0,c8.default)(L),c.name))}}}var h8=(Jo={},Rl(Jo,Xt.Kind.SCALAR_TYPE_DEFINITION,Xt.Kind.SCALAR_TYPE_EXTENSION),Rl(Jo,Xt.Kind.OBJECT_TYPE_DEFINITION,Xt.Kind.OBJECT_TYPE_EXTENSION),Rl(Jo,Xt.Kind.INTERFACE_TYPE_DEFINITION,Xt.Kind.INTERFACE_TYPE_EXTENSION),Rl(Jo,Xt.Kind.UNION_TYPE_DEFINITION,Xt.Kind.UNION_TYPE_EXTENSION),Rl(Jo,Xt.Kind.ENUM_TYPE_DEFINITION,Xt.Kind.ENUM_TYPE_EXTENSION),Rl(Jo,Xt.Kind.INPUT_OBJECT_TYPE_DEFINITION,Xt.Kind.INPUT_OBJECT_TYPE_EXTENSION),Jo);function v8(e){if((0,Il.isScalarType)(e))return Xt.Kind.SCALAR_TYPE_EXTENSION;if((0,Il.isObjectType)(e))return Xt.Kind.OBJECT_TYPE_EXTENSION;if((0,Il.isInterfaceType)(e))return Xt.Kind.INTERFACE_TYPE_EXTENSION;if((0,Il.isUnionType)(e))return Xt.Kind.UNION_TYPE_EXTENSION;if((0,Il.isEnumType)(e))return Xt.Kind.ENUM_TYPE_EXTENSION;if((0,Il.isInputObjectType)(e))return Xt.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,TL.default)(0,"Unexpected type: "+(0,EL.default)(e))}function g8(e){switch(e){case Xt.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case Xt.Kind.OBJECT_TYPE_EXTENSION:return"object";case Xt.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case Xt.Kind.UNION_TYPE_EXTENSION:return"union";case Xt.Kind.ENUM_TYPE_EXTENSION:return"enum";case Xt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,TL.default)(0,"Unexpected kind: "+(0,EL.default)(e))}});var M_=U(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.specifiedSDLRules=Fl.specifiedRules=void 0;var m8=gg(),y8=TT(),b8=ST(),E8=kT(),SL=wT(),T8=AT(),_8=xT(),S8=RT(),D8=PT(),k8=MT(),C8=BT(),O8=UT(),w8=KT(),N8=zT(),A8=YT(),L8=XT(),x8=$T(),DL=t_(),kL=i_(),CL=a_(),OL=u_(),I8=l_(),wL=f_(),R8=p_(),F8=E_(),NL=__(),P8=D_(),j8=C_(),M8=w_(),q8=A_(),B8=I_(),V8=F_(),U8=j_(),G8=Object.freeze([m8.ExecutableDefinitionsRule,y8.UniqueOperationNamesRule,b8.LoneAnonymousOperationRule,E8.SingleFieldSubscriptionsRule,SL.KnownTypeNamesRule,T8.FragmentsOnCompositeTypesRule,_8.VariablesAreInputTypesRule,S8.ScalarLeafsRule,D8.FieldsOnCorrectTypeRule,k8.UniqueFragmentNamesRule,C8.KnownFragmentNamesRule,O8.NoUnusedFragmentsRule,w8.PossibleFragmentSpreadsRule,N8.NoFragmentCyclesRule,A8.UniqueVariableNamesRule,L8.NoUndefinedVariablesRule,x8.NoUnusedVariablesRule,DL.KnownDirectivesRule,kL.UniqueDirectivesPerLocationRule,CL.KnownArgumentNamesRule,OL.UniqueArgumentNamesRule,I8.ValuesOfCorrectTypeRule,wL.ProvidedRequiredArgumentsRule,R8.VariablesInAllowedPositionRule,F8.OverlappingFieldsCanBeMergedRule,NL.UniqueInputFieldNamesRule]);Fl.specifiedRules=G8;var Q8=Object.freeze([P8.LoneSchemaDefinitionRule,j8.UniqueOperationTypesRule,M8.UniqueTypeNamesRule,q8.UniqueEnumValueNamesRule,B8.UniqueFieldDefinitionNamesRule,V8.UniqueDirectiveNamesRule,SL.KnownTypeNamesRule,DL.KnownDirectivesRule,kL.UniqueDirectivesPerLocationRule,U8.PossibleTypeExtensionsRule,CL.KnownArgumentNamesOnDirectivesRule,OL.UniqueArgumentNamesRule,NL.UniqueInputFieldNamesRule,wL.ProvidedRequiredArgumentsOnDirectivesRule]);Fl.specifiedSDLRules=Q8});var B_=U(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ValidationContext=Xo.SDLValidationContext=Xo.ASTValidationContext=void 0;var AL=Pt(),K8=qo(),LL=vg();function xL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var q_=function(){function e(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var t=e.prototype;return t.reportError=function(n){this._onError(n)},t.getDocument=function(){return this._ast},t.getFragment=function(n){var a=this._fragments;return a||(this._fragments=a=this.getDocument().definitions.reduce(function(o,s){return s.kind===AL.Kind.FRAGMENT_DEFINITION&&(o[s.name.value]=s),o},Object.create(null))),a[n]},t.getFragmentSpreads=function(n){var a=this._fragmentSpreads.get(n);if(!a){a=[];for(var o=[n];o.length!==0;)for(var s=o.pop(),c=0,d=s.selections;c<d.length;c++){var h=d[c];h.kind===AL.Kind.FRAGMENT_SPREAD?a.push(h):h.selectionSet&&o.push(h.selectionSet)}this._fragmentSpreads.set(n,a)}return a},t.getRecursivelyReferencedFragments=function(n){var a=this._recursivelyReferencedFragments.get(n);if(!a){a=[];for(var o=Object.create(null),s=[n.selectionSet];s.length!==0;)for(var c=s.pop(),d=0,h=this.getFragmentSpreads(c);d<h.length;d++){var m=h[d],E=m.name.value;if(o[E]!==!0){o[E]=!0;var b=this.getFragment(E);b&&(a.push(b),s.push(b.selectionSet))}}this._recursivelyReferencedFragments.set(n,a)}return a},e}();Xo.ASTValidationContext=q_;var H8=function(e){xL(t,e);function t(n,a,o){var s;return s=e.call(this,n,o)||this,s._schema=a,s}var r=t.prototype;return r.getSchema=function(){return this._schema},t}(q_);Xo.SDLValidationContext=H8;var z8=function(e){xL(t,e);function t(n,a,o,s){var c;return c=e.call(this,a,s)||this,c._schema=n,c._typeInfo=o,c._variableUsages=new Map,c._recursiveVariableUsages=new Map,c}var r=t.prototype;return r.getSchema=function(){return this._schema},r.getVariableUsages=function(a){var o=this._variableUsages.get(a);if(!o){var s=[],c=new LL.TypeInfo(this._schema);(0,K8.visit)(a,(0,LL.visitWithTypeInfo)(c,{VariableDefinition:function(){return!1},Variable:function(h){s.push({node:h,type:c.getInputType(),defaultValue:c.getDefaultValue()})}})),o=s,this._variableUsages.set(a,o)}return o},r.getRecursiveVariableUsages=function(a){var o=this._recursiveVariableUsages.get(a);if(!o){o=this.getVariableUsages(a);for(var s=0,c=this.getRecursivelyReferencedFragments(a);s<c.length;s++){var d=c[s];o=o.concat(this.getVariableUsages(d))}this._recursiveVariableUsages.set(a,o)}return o},r.getType=function(){return this._typeInfo.getType()},r.getParentType=function(){return this._typeInfo.getParentType()},r.getInputType=function(){return this._typeInfo.getInputType()},r.getParentInputType=function(){return this._typeInfo.getParentInputType()},r.getFieldDef=function(){return this._typeInfo.getFieldDef()},r.getDirective=function(){return this._typeInfo.getDirective()},r.getArgument=function(){return this._typeInfo.getArgument()},r.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(q_);Xo.ValidationContext=z8});var jl=U(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.validate=Z8;Pl.validateSDL=V_;Pl.assertValidSDL=$8;Pl.assertValidSDLExtension=e6;var W8=X8(Ei()),Y8=Ve(),Og=qo(),J8=Cd(),IL=vg(),RL=M_(),FL=B_();function X8(e){return e&&e.__esModule?e:{default:e}}function Z8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:RL.specifiedRules,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new IL.TypeInfo(e),a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};t||(0,W8.default)(0,"Must provide document."),(0,J8.assertValidSchema)(e);var o=Object.freeze({}),s=[],c=new FL.ValidationContext(e,t,n,function(h){if(a.maxErrors!=null&&s.length>=a.maxErrors)throw s.push(new Y8.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(h)}),d=(0,Og.visitInParallel)(r.map(function(h){return h(c)}));try{(0,Og.visit)(t,(0,IL.visitWithTypeInfo)(n,d))}catch(h){if(h!==o)throw h}return s}function V_(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:RL.specifiedSDLRules,n=[],a=new FL.SDLValidationContext(e,t,function(s){n.push(s)}),o=r.map(function(s){return s(a)});return(0,Og.visit)(e,(0,Og.visitInParallel)(o)),n}function $8(e){var t=V_(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(`
|
|
|
|
`))}function e6(e,t){var r=V_(e,t);if(r.length!==0)throw new Error(r.map(function(n){return n.message}).join(`
|
|
|
|
`))}});var PL=U(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0});U_.default=t6;function t6(e){var t;return function(n,a,o){t||(t=new WeakMap);var s=t.get(n),c;if(s){if(c=s.get(a),c){var d=c.get(o);if(d!==void 0)return d}}else s=new WeakMap,t.set(n,s);c||(c=new WeakMap,s.set(a,c));var h=e(n,a,o);return c.set(o,h),h}}});var jL=U(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.default=i6;var r6=n6(Dv());function n6(e){return e&&e.__esModule?e:{default:e}}function i6(e,t,r){return e.reduce(function(n,a){return(0,r6.default)(n)?n.then(function(o){return t(o,a)}):t(n,a)},r)}});var ML=U(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.default=a6;function a6(e){var t=Object.keys(e),r=t.map(function(n){return e[n]});return Promise.all(r).then(function(n){return n.reduce(function(a,o,s){return a[t[s]]=o,a},Object.create(null))})}});var Ld=U(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.addPath=o6;wg.pathToArray=u6;function o6(e,t,r){return{prev:e,key:t,typename:r}}function u6(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var Ag=U(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.getOperationRootType=s6;var Ng=Ve();function s6(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new Ng.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var n=e.getMutationType();if(!n)throw new Ng.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var a=e.getSubscriptionType();if(!a)throw new Ng.GraphQLError("Schema is not configured for subscriptions.",t);return a}throw new Ng.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var z_=U(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.default=l6;function l6(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var Id=U(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.valueFromAST=xd;var c6=Lg(Zn()),f6=Lg(Bo()),d6=Lg(_t()),p6=Lg(zr()),Ml=Pt(),Zu=lt();function Lg(e){return e&&e.__esModule?e:{default:e}}function xd(e,t,r){if(!!e){if(e.kind===Ml.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var a=r[n];return a===null&&(0,Zu.isNonNullType)(t)?void 0:a}if((0,Zu.isNonNullType)(t))return e.kind===Ml.Kind.NULL?void 0:xd(e,t.ofType,r);if(e.kind===Ml.Kind.NULL)return null;if((0,Zu.isListType)(t)){var o=t.ofType;if(e.kind===Ml.Kind.LIST){for(var s=[],c=0,d=e.values;c<d.length;c++){var h=d[c];if(qL(h,r)){if((0,Zu.isNonNullType)(o))return;s.push(null)}else{var m=xd(h,o,r);if(m===void 0)return;s.push(m)}}return s}var E=xd(e,o,r);return E===void 0?void 0:[E]}if((0,Zu.isInputObjectType)(t)){if(e.kind!==Ml.Kind.OBJECT)return;for(var b=Object.create(null),C=(0,f6.default)(e.fields,function(N){return N.name.value}),L=0,S=(0,c6.default)(t.getFields());L<S.length;L++){var y=S[L],T=C[y.name];if(!T||qL(T.value,r)){if(y.defaultValue!==void 0)b[y.name]=y.defaultValue;else if((0,Zu.isNonNullType)(y.type))return;continue}var g=xd(T.value,y.type,r);if(g===void 0)return;b[y.name]=g}return b}if((0,Zu.isLeafType)(t)){var k;try{k=t.parseLiteral(e,r)}catch(N){return}return k===void 0?void 0:k}(0,p6.default)(0,"Unexpected input type: "+(0,d6.default)(t))}}function qL(e,t){return e.kind===Ml.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var J_=U(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.coerceInputValue=T6;var h6=Zo(Zn()),xg=Zo(_t()),v6=Zo(zr()),g6=Zo(Vo()),m6=Zo(pa()),y6=Zo(og()),b6=Zo(Uo()),E6=Zo(z_()),Ya=Ld(),$u=Ve(),Rd=lt();function Zo(e){return e&&e.__esModule?e:{default:e}}function T6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_6;return Fd(e,t,r)}function _6(e,t,r){var n="Invalid value "+(0,xg.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,E6.default)(e),'"')),r.message=n+": "+r.message,r}function Fd(e,t,r,n){if((0,Rd.isNonNullType)(t)){if(e!=null)return Fd(e,t.ofType,r,n);r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Expected non-nullable type "'.concat((0,xg.default)(t),'" not to be null.')));return}if(e==null)return null;if((0,Rd.isListType)(t)){var a=t.ofType,o=(0,y6.default)(e,function(g,k){var N=(0,Ya.addPath)(n,k,void 0);return Fd(g,a,r,N)});return o!=null?o:[Fd(e,a,r,n)]}if((0,Rd.isInputObjectType)(t)){if(!(0,m6.default)(e)){r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Expected type "'.concat(t.name,'" to be an object.')));return}for(var s={},c=t.getFields(),d=0,h=(0,h6.default)(c);d<h.length;d++){var m=h[d],E=e[m.name];if(E===void 0){if(m.defaultValue!==void 0)s[m.name]=m.defaultValue;else if((0,Rd.isNonNullType)(m.type)){var b=(0,xg.default)(m.type);r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Field "'.concat(m.name,'" of required type "').concat(b,'" was not provided.')))}continue}s[m.name]=Fd(E,m.type,r,(0,Ya.addPath)(n,m.name,t.name))}for(var C=0,L=Object.keys(e);C<L.length;C++){var S=L[C];if(!c[S]){var y=(0,b6.default)(S,Object.keys(t.getFields()));r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Field "'.concat(S,'" is not defined by type "').concat(t.name,'".')+(0,g6.default)(y)))}}return s}if((0,Rd.isLeafType)(t)){var T;try{T=t.parseValue(e)}catch(g){g instanceof $u.GraphQLError?r((0,Ya.pathToArray)(n),e,g):r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Expected type "'.concat(t.name,'". ')+g.message,void 0,void 0,void 0,void 0,g));return}return T===void 0&&r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Expected type "'.concat(t.name,'".'))),T}(0,v6.default)(0,"Unexpected input type: "+(0,xg.default)(t))}});var jd=U(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getVariableValues=w6;Pd.getArgumentValues=GL;Pd.getDirectiveValues=A6;var S6=Ig(Sl()),D6=Ig(Bo()),ql=Ig(_t()),k6=Ig(z_()),Ja=Ve(),BL=Pt(),VL=jn(),Bl=lt(),C6=ya(),UL=Id(),O6=J_();function Ig(e){return e&&e.__esModule?e:{default:e}}function w6(e,t,r,n){var a=[],o=n==null?void 0:n.maxErrors;try{var s=N6(e,t,r,function(c){if(o!=null&&a.length>=o)throw new Ja.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");a.push(c)});if(a.length===0)return{coerced:s}}catch(c){a.push(c)}return{errors:a}}function N6(e,t,r,n){for(var a={},o=function(h){var m=t[h],E=m.variable.name.value,b=(0,C6.typeFromAST)(e,m.type);if(!(0,Bl.isInputType)(b)){var C=(0,VL.print)(m.type);return n(new Ja.GraphQLError('Variable "$'.concat(E,'" expected value of type "').concat(C,'" which cannot be used as an input type.'),m.type)),"continue"}if(!QL(r,E)){if(m.defaultValue)a[E]=(0,UL.valueFromAST)(m.defaultValue,b);else if((0,Bl.isNonNullType)(b)){var L=(0,ql.default)(b);n(new Ja.GraphQLError('Variable "$'.concat(E,'" of required type "').concat(L,'" was not provided.'),m))}return"continue"}var S=r[E];if(S===null&&(0,Bl.isNonNullType)(b)){var y=(0,ql.default)(b);return n(new Ja.GraphQLError('Variable "$'.concat(E,'" of non-null type "').concat(y,'" must not be null.'),m)),"continue"}a[E]=(0,O6.coerceInputValue)(S,b,function(T,g,k){var N='Variable "$'.concat(E,'" got invalid value ')+(0,ql.default)(g);T.length>0&&(N+=' at "'.concat(E).concat((0,k6.default)(T),'"')),n(new Ja.GraphQLError(N+"; "+k.message,m,void 0,void 0,void 0,k.originalError))})},s=0;s<t.length;s++)var c=o(s);return a}function GL(e,t,r){for(var n,a={},o=(n=t.arguments)!==null&&n!==void 0?n:[],s=(0,D6.default)(o,function(T){return T.name.value}),c=0,d=e.args;c<d.length;c++){var h=d[c],m=h.name,E=h.type,b=s[m];if(!b){if(h.defaultValue!==void 0)a[m]=h.defaultValue;else if((0,Bl.isNonNullType)(E))throw new Ja.GraphQLError('Argument "'.concat(m,'" of required type "').concat((0,ql.default)(E),'" ')+"was not provided.",t);continue}var C=b.value,L=C.kind===BL.Kind.NULL;if(C.kind===BL.Kind.VARIABLE){var S=C.name.value;if(r==null||!QL(r,S)){if(h.defaultValue!==void 0)a[m]=h.defaultValue;else if((0,Bl.isNonNullType)(E))throw new Ja.GraphQLError('Argument "'.concat(m,'" of required type "').concat((0,ql.default)(E),'" ')+'was provided the variable "$'.concat(S,'" which was not provided a runtime value.'),C);continue}L=r[S]==null}if(L&&(0,Bl.isNonNullType)(E))throw new Ja.GraphQLError('Argument "'.concat(m,'" of non-null type "').concat((0,ql.default)(E),'" ')+"must not be null.",C);var y=(0,UL.valueFromAST)(C,E,r);if(y===void 0)throw new Ja.GraphQLError('Argument "'.concat(m,'" has invalid value ').concat((0,VL.print)(C),"."),C);a[m]=y}return a}function A6(e,t,r){var n=t.directives&&(0,S6.default)(t.directives,function(a){return a.name.value===e.name});if(n)return GL(e,n,r)}function QL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var Vd=U(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.execute=q6;ei.executeSync=B6;ei.assertValidExecutionArguments=WL;ei.buildExecutionContext=YL;ei.collectFields=qd;ei.buildResolveInfo=$L;ei.getFieldDef=ax;ei.defaultFieldResolver=ei.defaultTypeResolver=void 0;var Vl=Za(_t()),L6=Za(PL()),x6=Za(zr()),KL=Za(Ei()),Si=Za(Dv()),X_=Za(pa()),I6=Za(og()),R6=Za(jL()),F6=Za(ML()),es=Ld(),Ea=Ve(),Rg=ld(),Md=Pt(),P6=Cd(),Ul=Mn(),HL=qn(),Xa=lt(),j6=ya(),M6=Ag(),Fg=jd();function Za(e){return e&&e.__esModule?e:{default:e}}function q6(e,t,r,n,a,o,s,c){return arguments.length===1?Z_(e):Z_({schema:e,document:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,typeResolver:c})}function B6(e){var t=Z_(e);if((0,Si.default)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Z_(e){var t=e.schema,r=e.document,n=e.rootValue,a=e.contextValue,o=e.variableValues,s=e.operationName,c=e.fieldResolver,d=e.typeResolver;WL(t,r,o);var h=YL(t,r,n,a,o,s,c,d);if(Array.isArray(h))return{errors:h};var m=V6(h,h.operation,n);return zL(h,m)}function zL(e,t){return(0,Si.default)(t)?t.then(function(r){return zL(e,r)}):e.errors.length===0?{data:t}:{errors:e.errors,data:t}}function WL(e,t,r){t||(0,KL.default)(0,"Must provide document."),(0,P6.assertValidSchema)(e),r==null||(0,X_.default)(r)||(0,KL.default)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function YL(e,t,r,n,a,o,s,c){for(var d,h,m,E=Object.create(null),b=0,C=t.definitions;b<C.length;b++){var L=C[b];switch(L.kind){case Md.Kind.OPERATION_DEFINITION:if(o==null){if(m!==void 0)return[new Ea.GraphQLError("Must provide operation name if query contains multiple operations.")];m=L}else((d=L.name)===null||d===void 0?void 0:d.value)===o&&(m=L);break;case Md.Kind.FRAGMENT_DEFINITION:E[L.name.value]=L;break}}if(!m)return o!=null?[new Ea.GraphQLError('Unknown operation named "'.concat(o,'".'))]:[new Ea.GraphQLError("Must provide an operation.")];var S=(h=m.variableDefinitions)!==null&&h!==void 0?h:[],y=(0,Fg.getVariableValues)(e,S,a!=null?a:{},{maxErrors:50});return y.errors?y.errors:{schema:e,fragments:E,rootValue:r,contextValue:n,operation:m,variableValues:y.coerced,fieldResolver:s!=null?s:ix,typeResolver:c!=null?c:nx,errors:[]}}function V6(e,t,r){var n=(0,M6.getOperationRootType)(e.schema,t),a=qd(e,n,t.selectionSet,Object.create(null),Object.create(null)),o=void 0;try{var s=t.operation==="mutation"?U6(e,n,r,o,a):JL(e,n,r,o,a);return(0,Si.default)(s)?s.then(void 0,function(c){return e.errors.push(c),Promise.resolve(null)}):s}catch(c){return e.errors.push(c),null}}function U6(e,t,r,n,a){return(0,R6.default)(Object.keys(a),function(o,s){var c=a[s],d=(0,es.addPath)(n,s,t.name),h=ZL(e,t,r,c,d);return h===void 0?o:(0,Si.default)(h)?h.then(function(m){return o[s]=m,o}):(o[s]=h,o)},Object.create(null))}function JL(e,t,r,n,a){for(var o=Object.create(null),s=!1,c=0,d=Object.keys(a);c<d.length;c++){var h=d[c],m=a[h],E=(0,es.addPath)(n,h,t.name),b=ZL(e,t,r,m,E);b!==void 0&&(o[h]=b,(0,Si.default)(b)&&(s=!0))}return s?(0,F6.default)(o):o}function qd(e,t,r,n,a){for(var o=0,s=r.selections;o<s.length;o++){var c=s[o];switch(c.kind){case Md.Kind.FIELD:{if(!$_(e,c))continue;var d=G6(c);n[d]||(n[d]=[]),n[d].push(c);break}case Md.Kind.INLINE_FRAGMENT:{if(!$_(e,c)||!XL(e,c,t))continue;qd(e,t,c.selectionSet,n,a);break}case Md.Kind.FRAGMENT_SPREAD:{var h=c.name.value;if(a[h]||!$_(e,c))continue;a[h]=!0;var m=e.fragments[h];if(!m||!XL(e,m,t))continue;qd(e,t,m.selectionSet,n,a);break}}}return n}function $_(e,t){var r=(0,Fg.getDirectiveValues)(HL.GraphQLSkipDirective,t,e.variableValues);if((r==null?void 0:r.if)===!0)return!1;var n=(0,Fg.getDirectiveValues)(HL.GraphQLIncludeDirective,t,e.variableValues);return(n==null?void 0:n.if)!==!1}function XL(e,t,r){var n=t.typeCondition;if(!n)return!0;var a=(0,j6.typeFromAST)(e.schema,n);return a===r?!0:(0,Xa.isAbstractType)(a)?e.schema.isSubType(a,r):!1}function G6(e){return e.alias?e.alias.value:e.name.value}function ZL(e,t,r,n,a){var o,s=n[0],c=s.name.value,d=ax(e.schema,t,c);if(!!d){var h=d.type,m=(o=d.resolve)!==null&&o!==void 0?o:e.fieldResolver,E=$L(e,d,n,t,a);try{var b=(0,Fg.getArgumentValues)(d,n[0],e.variableValues),C=e.contextValue,L=m(r,b,C,E),S;return(0,Si.default)(L)?S=L.then(function(T){return Bd(e,h,n,E,a,T)}):S=Bd(e,h,n,E,a,L),(0,Si.default)(S)?S.then(void 0,function(T){var g=(0,Rg.locatedError)(T,n,(0,es.pathToArray)(a));return Pg(g,h,e)}):S}catch(T){var y=(0,Rg.locatedError)(T,n,(0,es.pathToArray)(a));return Pg(y,h,e)}}}function $L(e,t,r,n,a){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:a,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Pg(e,t,r){if((0,Xa.isNonNullType)(t))throw e;return r.errors.push(e),null}function Bd(e,t,r,n,a,o){if(o instanceof Error)throw o;if((0,Xa.isNonNullType)(t)){var s=Bd(e,t.ofType,r,n,a,o);if(s===null)throw new Error("Cannot return null for non-nullable field ".concat(n.parentType.name,".").concat(n.fieldName,"."));return s}if(o==null)return null;if((0,Xa.isListType)(t))return Q6(e,t,r,n,a,o);if((0,Xa.isLeafType)(t))return K6(t,o);if((0,Xa.isAbstractType)(t))return H6(e,t,r,n,a,o);if((0,Xa.isObjectType)(t))return eS(e,t,r,n,a,o);(0,x6.default)(0,"Cannot complete value of unexpected output type: "+(0,Vl.default)(t))}function Q6(e,t,r,n,a,o){var s=t.ofType,c=!1,d=(0,I6.default)(o,function(h,m){var E=(0,es.addPath)(a,m,void 0);try{var b;return(0,Si.default)(h)?b=h.then(function(L){return Bd(e,s,r,n,E,L)}):b=Bd(e,s,r,n,E,h),(0,Si.default)(b)?(c=!0,b.then(void 0,function(L){var S=(0,Rg.locatedError)(L,r,(0,es.pathToArray)(E));return Pg(S,s,e)})):b}catch(L){var C=(0,Rg.locatedError)(L,r,(0,es.pathToArray)(E));return Pg(C,s,e)}});if(d==null)throw new Ea.GraphQLError('Expected Iterable, but did not find one for field "'.concat(n.parentType.name,".").concat(n.fieldName,'".'));return c?Promise.all(d):d}function K6(e,t){var r=e.serialize(t);if(r===void 0)throw new Error('Expected a value of type "'.concat((0,Vl.default)(e),'" but ')+"received: ".concat((0,Vl.default)(t)));return r}function H6(e,t,r,n,a,o){var s,c=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,d=e.contextValue,h=c(o,d,n,t);return(0,Si.default)(h)?h.then(function(m){return eS(e,ex(m,e,t,r,n,o),r,n,a,o)}):eS(e,ex(h,e,t,r,n,o),r,n,a,o)}function ex(e,t,r,n,a,o){if(e==null)throw new Ea.GraphQLError('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(a.parentType.name,".").concat(a.fieldName,'". Either the "').concat(r.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),n);var s=(0,Xa.isNamedType)(e)?e.name:e;if(typeof s!="string")throw new Ea.GraphQLError('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(a.parentType.name,".").concat(a.fieldName,'" with ')+"value ".concat((0,Vl.default)(o),', received "').concat((0,Vl.default)(e),'".'));var c=t.schema.getType(s);if(c==null)throw new Ea.GraphQLError('Abstract type "'.concat(r.name,'" was resolve to a type "').concat(s,'" that does not exist inside schema.'),n);if(!(0,Xa.isObjectType)(c))throw new Ea.GraphQLError('Abstract type "'.concat(r.name,'" was resolve to a non-object type "').concat(s,'".'),n);if(!t.schema.isSubType(r,c))throw new Ea.GraphQLError('Runtime Object type "'.concat(c.name,'" is not a possible type for "').concat(r.name,'".'),n);return c}function eS(e,t,r,n,a,o){if(t.isTypeOf){var s=t.isTypeOf(o,e.contextValue,n);if((0,Si.default)(s))return s.then(function(c){if(!c)throw tx(t,o,r);return rx(e,t,r,a,o)});if(!s)throw tx(t,o,r)}return rx(e,t,r,a,o)}function tx(e,t,r){return new Ea.GraphQLError('Expected value of type "'.concat(e.name,'" but got: ').concat((0,Vl.default)(t),"."),r)}function rx(e,t,r,n,a){var o=z6(e,t,r);return JL(e,t,a,n,o)}var z6=(0,L6.default)(W6);function W6(e,t,r){for(var n=Object.create(null),a=Object.create(null),o=0;o<r.length;o++){var s=r[o];s.selectionSet&&(n=qd(e,t,s.selectionSet,n,a))}return n}var nx=function(t,r,n,a){if((0,X_.default)(t)&&typeof t.__typename=="string")return t.__typename;for(var o=n.schema.getPossibleTypes(a),s=[],c=0;c<o.length;c++){var d=o[c];if(d.isTypeOf){var h=d.isTypeOf(t,r,n);if((0,Si.default)(h))s[c]=h;else if(h)return d.name}}if(s.length)return Promise.all(s).then(function(m){for(var E=0;E<m.length;E++)if(m[E])return o[E].name})};ei.defaultTypeResolver=nx;var ix=function(t,r,n,a){if((0,X_.default)(t)||typeof t=="function"){var o=t[a.fieldName];return typeof o=="function"?t[a.fieldName](r,n,a):o}};ei.defaultFieldResolver=ix;function ax(e,t,r){return r===Ul.SchemaMetaFieldDef.name&&e.getQueryType()===t?Ul.SchemaMetaFieldDef:r===Ul.TypeMetaFieldDef.name&&e.getQueryType()===t?Ul.TypeMetaFieldDef:r===Ul.TypeNameMetaFieldDef.name?Ul.TypeNameMetaFieldDef:t.getFields()[r]}});var ox=U(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});Mg.graphql=tH;Mg.graphqlSync=rH;var Y6=eH(Dv()),J6=Tl(),X6=jl(),Z6=Cd(),$6=Vd();function eH(e){return e&&e.__esModule?e:{default:e}}function tH(e,t,r,n,a,o,s,c){var d=arguments;return new Promise(function(h){return h(d.length===1?jg(e):jg({schema:e,source:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,typeResolver:c}))})}function rH(e,t,r,n,a,o,s,c){var d=arguments.length===1?jg(e):jg({schema:e,source:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,typeResolver:c});if((0,Y6.default)(d))throw new Error("GraphQL execution failed to complete synchronously.");return d}function jg(e){var t=e.schema,r=e.source,n=e.rootValue,a=e.contextValue,o=e.variableValues,s=e.operationName,c=e.fieldResolver,d=e.typeResolver,h=(0,Z6.validateSchema)(t);if(h.length>0)return{errors:h};var m;try{m=(0,J6.parse)(r)}catch(b){return{errors:[b]}}var E=(0,X6.validate)(t,m);return E.length>0?{errors:E}:(0,$6.execute)({schema:t,document:m,rootValue:n,contextValue:a,variableValues:o,operationName:s,fieldResolver:c,typeResolver:d})}});var sx=U(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});Object.defineProperty(ge,"isSchema",{enumerable:!0,get:function(){return tS.isSchema}});Object.defineProperty(ge,"assertSchema",{enumerable:!0,get:function(){return tS.assertSchema}});Object.defineProperty(ge,"GraphQLSchema",{enumerable:!0,get:function(){return tS.GraphQLSchema}});Object.defineProperty(ge,"isType",{enumerable:!0,get:function(){return He.isType}});Object.defineProperty(ge,"isScalarType",{enumerable:!0,get:function(){return He.isScalarType}});Object.defineProperty(ge,"isObjectType",{enumerable:!0,get:function(){return He.isObjectType}});Object.defineProperty(ge,"isInterfaceType",{enumerable:!0,get:function(){return He.isInterfaceType}});Object.defineProperty(ge,"isUnionType",{enumerable:!0,get:function(){return He.isUnionType}});Object.defineProperty(ge,"isEnumType",{enumerable:!0,get:function(){return He.isEnumType}});Object.defineProperty(ge,"isInputObjectType",{enumerable:!0,get:function(){return He.isInputObjectType}});Object.defineProperty(ge,"isListType",{enumerable:!0,get:function(){return He.isListType}});Object.defineProperty(ge,"isNonNullType",{enumerable:!0,get:function(){return He.isNonNullType}});Object.defineProperty(ge,"isInputType",{enumerable:!0,get:function(){return He.isInputType}});Object.defineProperty(ge,"isOutputType",{enumerable:!0,get:function(){return He.isOutputType}});Object.defineProperty(ge,"isLeafType",{enumerable:!0,get:function(){return He.isLeafType}});Object.defineProperty(ge,"isCompositeType",{enumerable:!0,get:function(){return He.isCompositeType}});Object.defineProperty(ge,"isAbstractType",{enumerable:!0,get:function(){return He.isAbstractType}});Object.defineProperty(ge,"isWrappingType",{enumerable:!0,get:function(){return He.isWrappingType}});Object.defineProperty(ge,"isNullableType",{enumerable:!0,get:function(){return He.isNullableType}});Object.defineProperty(ge,"isNamedType",{enumerable:!0,get:function(){return He.isNamedType}});Object.defineProperty(ge,"isRequiredArgument",{enumerable:!0,get:function(){return He.isRequiredArgument}});Object.defineProperty(ge,"isRequiredInputField",{enumerable:!0,get:function(){return He.isRequiredInputField}});Object.defineProperty(ge,"assertType",{enumerable:!0,get:function(){return He.assertType}});Object.defineProperty(ge,"assertScalarType",{enumerable:!0,get:function(){return He.assertScalarType}});Object.defineProperty(ge,"assertObjectType",{enumerable:!0,get:function(){return He.assertObjectType}});Object.defineProperty(ge,"assertInterfaceType",{enumerable:!0,get:function(){return He.assertInterfaceType}});Object.defineProperty(ge,"assertUnionType",{enumerable:!0,get:function(){return He.assertUnionType}});Object.defineProperty(ge,"assertEnumType",{enumerable:!0,get:function(){return He.assertEnumType}});Object.defineProperty(ge,"assertInputObjectType",{enumerable:!0,get:function(){return He.assertInputObjectType}});Object.defineProperty(ge,"assertListType",{enumerable:!0,get:function(){return He.assertListType}});Object.defineProperty(ge,"assertNonNullType",{enumerable:!0,get:function(){return He.assertNonNullType}});Object.defineProperty(ge,"assertInputType",{enumerable:!0,get:function(){return He.assertInputType}});Object.defineProperty(ge,"assertOutputType",{enumerable:!0,get:function(){return He.assertOutputType}});Object.defineProperty(ge,"assertLeafType",{enumerable:!0,get:function(){return He.assertLeafType}});Object.defineProperty(ge,"assertCompositeType",{enumerable:!0,get:function(){return He.assertCompositeType}});Object.defineProperty(ge,"assertAbstractType",{enumerable:!0,get:function(){return He.assertAbstractType}});Object.defineProperty(ge,"assertWrappingType",{enumerable:!0,get:function(){return He.assertWrappingType}});Object.defineProperty(ge,"assertNullableType",{enumerable:!0,get:function(){return He.assertNullableType}});Object.defineProperty(ge,"assertNamedType",{enumerable:!0,get:function(){return He.assertNamedType}});Object.defineProperty(ge,"getNullableType",{enumerable:!0,get:function(){return He.getNullableType}});Object.defineProperty(ge,"getNamedType",{enumerable:!0,get:function(){return He.getNamedType}});Object.defineProperty(ge,"GraphQLScalarType",{enumerable:!0,get:function(){return He.GraphQLScalarType}});Object.defineProperty(ge,"GraphQLObjectType",{enumerable:!0,get:function(){return He.GraphQLObjectType}});Object.defineProperty(ge,"GraphQLInterfaceType",{enumerable:!0,get:function(){return He.GraphQLInterfaceType}});Object.defineProperty(ge,"GraphQLUnionType",{enumerable:!0,get:function(){return He.GraphQLUnionType}});Object.defineProperty(ge,"GraphQLEnumType",{enumerable:!0,get:function(){return He.GraphQLEnumType}});Object.defineProperty(ge,"GraphQLInputObjectType",{enumerable:!0,get:function(){return He.GraphQLInputObjectType}});Object.defineProperty(ge,"GraphQLList",{enumerable:!0,get:function(){return He.GraphQLList}});Object.defineProperty(ge,"GraphQLNonNull",{enumerable:!0,get:function(){return He.GraphQLNonNull}});Object.defineProperty(ge,"isDirective",{enumerable:!0,get:function(){return Ta.isDirective}});Object.defineProperty(ge,"assertDirective",{enumerable:!0,get:function(){return Ta.assertDirective}});Object.defineProperty(ge,"GraphQLDirective",{enumerable:!0,get:function(){return Ta.GraphQLDirective}});Object.defineProperty(ge,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ta.isSpecifiedDirective}});Object.defineProperty(ge,"specifiedDirectives",{enumerable:!0,get:function(){return Ta.specifiedDirectives}});Object.defineProperty(ge,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ta.GraphQLIncludeDirective}});Object.defineProperty(ge,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ta.GraphQLSkipDirective}});Object.defineProperty(ge,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ta.GraphQLDeprecatedDirective}});Object.defineProperty(ge,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ta.GraphQLSpecifiedByDirective}});Object.defineProperty(ge,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ta.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ge,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ts.isSpecifiedScalarType}});Object.defineProperty(ge,"specifiedScalarTypes",{enumerable:!0,get:function(){return ts.specifiedScalarTypes}});Object.defineProperty(ge,"GraphQLInt",{enumerable:!0,get:function(){return ts.GraphQLInt}});Object.defineProperty(ge,"GraphQLFloat",{enumerable:!0,get:function(){return ts.GraphQLFloat}});Object.defineProperty(ge,"GraphQLString",{enumerable:!0,get:function(){return ts.GraphQLString}});Object.defineProperty(ge,"GraphQLBoolean",{enumerable:!0,get:function(){return ts.GraphQLBoolean}});Object.defineProperty(ge,"GraphQLID",{enumerable:!0,get:function(){return ts.GraphQLID}});Object.defineProperty(ge,"isIntrospectionType",{enumerable:!0,get:function(){return Vn.isIntrospectionType}});Object.defineProperty(ge,"introspectionTypes",{enumerable:!0,get:function(){return Vn.introspectionTypes}});Object.defineProperty(ge,"__Schema",{enumerable:!0,get:function(){return Vn.__Schema}});Object.defineProperty(ge,"__Directive",{enumerable:!0,get:function(){return Vn.__Directive}});Object.defineProperty(ge,"__DirectiveLocation",{enumerable:!0,get:function(){return Vn.__DirectiveLocation}});Object.defineProperty(ge,"__Type",{enumerable:!0,get:function(){return Vn.__Type}});Object.defineProperty(ge,"__Field",{enumerable:!0,get:function(){return Vn.__Field}});Object.defineProperty(ge,"__InputValue",{enumerable:!0,get:function(){return Vn.__InputValue}});Object.defineProperty(ge,"__EnumValue",{enumerable:!0,get:function(){return Vn.__EnumValue}});Object.defineProperty(ge,"__TypeKind",{enumerable:!0,get:function(){return Vn.__TypeKind}});Object.defineProperty(ge,"TypeKind",{enumerable:!0,get:function(){return Vn.TypeKind}});Object.defineProperty(ge,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Vn.SchemaMetaFieldDef}});Object.defineProperty(ge,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Vn.TypeMetaFieldDef}});Object.defineProperty(ge,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Vn.TypeNameMetaFieldDef}});Object.defineProperty(ge,"validateSchema",{enumerable:!0,get:function(){return ux.validateSchema}});Object.defineProperty(ge,"assertValidSchema",{enumerable:!0,get:function(){return ux.assertValidSchema}});var tS=zu(),He=lt(),Ta=qn(),ts=ma(),Vn=Mn(),ux=Cd()});var fx=U(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});Object.defineProperty(wt,"Source",{enumerable:!0,get:function(){return nH.Source}});Object.defineProperty(wt,"getLocation",{enumerable:!0,get:function(){return iH.getLocation}});Object.defineProperty(wt,"printLocation",{enumerable:!0,get:function(){return lx.printLocation}});Object.defineProperty(wt,"printSourceLocation",{enumerable:!0,get:function(){return lx.printSourceLocation}});Object.defineProperty(wt,"Kind",{enumerable:!0,get:function(){return aH.Kind}});Object.defineProperty(wt,"TokenKind",{enumerable:!0,get:function(){return oH.TokenKind}});Object.defineProperty(wt,"Lexer",{enumerable:!0,get:function(){return uH.Lexer}});Object.defineProperty(wt,"parse",{enumerable:!0,get:function(){return rS.parse}});Object.defineProperty(wt,"parseValue",{enumerable:!0,get:function(){return rS.parseValue}});Object.defineProperty(wt,"parseType",{enumerable:!0,get:function(){return rS.parseType}});Object.defineProperty(wt,"print",{enumerable:!0,get:function(){return sH.print}});Object.defineProperty(wt,"visit",{enumerable:!0,get:function(){return qg.visit}});Object.defineProperty(wt,"visitInParallel",{enumerable:!0,get:function(){return qg.visitInParallel}});Object.defineProperty(wt,"getVisitFn",{enumerable:!0,get:function(){return qg.getVisitFn}});Object.defineProperty(wt,"BREAK",{enumerable:!0,get:function(){return qg.BREAK}});Object.defineProperty(wt,"Location",{enumerable:!0,get:function(){return cx.Location}});Object.defineProperty(wt,"Token",{enumerable:!0,get:function(){return cx.Token}});Object.defineProperty(wt,"isDefinitionNode",{enumerable:!0,get:function(){return $a.isDefinitionNode}});Object.defineProperty(wt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return $a.isExecutableDefinitionNode}});Object.defineProperty(wt,"isSelectionNode",{enumerable:!0,get:function(){return $a.isSelectionNode}});Object.defineProperty(wt,"isValueNode",{enumerable:!0,get:function(){return $a.isValueNode}});Object.defineProperty(wt,"isTypeNode",{enumerable:!0,get:function(){return $a.isTypeNode}});Object.defineProperty(wt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return $a.isTypeSystemDefinitionNode}});Object.defineProperty(wt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return $a.isTypeDefinitionNode}});Object.defineProperty(wt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return $a.isTypeSystemExtensionNode}});Object.defineProperty(wt,"isTypeExtensionNode",{enumerable:!0,get:function(){return $a.isTypeExtensionNode}});Object.defineProperty(wt,"DirectiveLocation",{enumerable:!0,get:function(){return lH.DirectiveLocation}});var nH=qv(),iH=Cv(),lx=lE(),aH=Pt(),oH=yl(),uH=Uv(),rS=Tl(),sH=jn(),qg=qo(),cx=ml(),$a=Yu(),lH=bl()});var dx=U($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"responsePathAsArray",{enumerable:!0,get:function(){return cH.pathToArray}});Object.defineProperty($o,"execute",{enumerable:!0,get:function(){return Bg.execute}});Object.defineProperty($o,"executeSync",{enumerable:!0,get:function(){return Bg.executeSync}});Object.defineProperty($o,"defaultFieldResolver",{enumerable:!0,get:function(){return Bg.defaultFieldResolver}});Object.defineProperty($o,"defaultTypeResolver",{enumerable:!0,get:function(){return Bg.defaultTypeResolver}});Object.defineProperty($o,"getDirectiveValues",{enumerable:!0,get:function(){return fH.getDirectiveValues}});var cH=Ld(),Bg=Vd(),fH=jd()});var px=U(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.default=pH;var dH=ha();function pH(e){return typeof(e==null?void 0:e[dH.SYMBOL_ASYNC_ITERATOR])=="function"}});var mx=U(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.default=vH;var hx=ha();function hH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vH(e,t,r){var n=e[hx.SYMBOL_ASYNC_ITERATOR],a=n.call(e),o,s;typeof a.return=="function"&&(o=a.return,s=function(E){var b=function(){return Promise.reject(E)};return o.call(a).then(b,b)});function c(m){return m.done?m:vx(m.value,t).then(gx,s)}var d;if(r){var h=r;d=function(E){return vx(E,h).then(gx,s)}}return hH({next:function(){return a.next().then(c,d)},return:function(){return o?o.call(a).then(c,d):Promise.resolve({value:void 0,done:!0})},throw:function(E){return typeof a.throw=="function"?a.throw(E).then(c,d):Promise.reject(E).catch(s)}},hx.SYMBOL_ASYNC_ITERATOR,function(){return this})}function vx(e,t){return new Promise(function(r){return r(t(e))})}function gx(e){return{value:e,done:!1}}});var Dx=U(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.subscribe=EH;Vg.createSourceEventStream=Sx;var gH=oS(_t()),yx=oS(px()),aS=Ld(),bx=Ve(),Ex=ld(),mH=jd(),Gl=Vd(),yH=Ag(),bH=oS(mx());function oS(e){return e&&e.__esModule?e:{default:e}}function EH(e,t,r,n,a,o,s,c){return arguments.length===1?_x(e):_x({schema:e,document:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,subscribeFieldResolver:c})}function Tx(e){if(e instanceof bx.GraphQLError)return{errors:[e]};throw e}function _x(e){var t=e.schema,r=e.document,n=e.rootValue,a=e.contextValue,o=e.variableValues,s=e.operationName,c=e.fieldResolver,d=e.subscribeFieldResolver,h=Sx(t,r,n,a,o,s,d),m=function(b){return(0,Gl.execute)({schema:t,document:r,rootValue:b,contextValue:a,variableValues:o,operationName:s,fieldResolver:c})};return h.then(function(E){return(0,yx.default)(E)?(0,bH.default)(E,m,Tx):E})}function Sx(e,t,r,n,a,o,s){return(0,Gl.assertValidExecutionArguments)(e,t,a),new Promise(function(c){var d=(0,Gl.buildExecutionContext)(e,t,r,n,a,o,s);c(Array.isArray(d)?{errors:d}:TH(d))}).catch(Tx)}function TH(e){var t=e.schema,r=e.operation,n=e.variableValues,a=e.rootValue,o=(0,yH.getOperationRootType)(t,r),s=(0,Gl.collectFields)(e,o,r.selectionSet,Object.create(null),Object.create(null)),c=Object.keys(s),d=c[0],h=s[d],m=h[0],E=m.name.value,b=(0,Gl.getFieldDef)(t,o,E);if(!b)throw new bx.GraphQLError('The subscription field "'.concat(E,'" is not defined.'),h);var C=(0,aS.addPath)(void 0,d,o.name),L=(0,Gl.buildResolveInfo)(e,b,h,o,C);return new Promise(function(S){var y,T=(0,mH.getArgumentValues)(b,h[0],n),g=e.contextValue,k=(y=b.subscribe)!==null&&y!==void 0?y:e.fieldResolver;S(k(a,T,g,L))}).then(function(S){if(S instanceof Error)throw(0,Ex.locatedError)(S,h,(0,aS.pathToArray)(C));if(!(0,yx.default)(S))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,gH.default)(S),"."));return S},function(S){throw(0,Ex.locatedError)(S,h,(0,aS.pathToArray)(C))})}});var Cx=U(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});Object.defineProperty(Ug,"subscribe",{enumerable:!0,get:function(){return kx.subscribe}});Object.defineProperty(Ug,"createSourceEventStream",{enumerable:!0,get:function(){return kx.createSourceEventStream}});var kx=Dx()});var cS=U(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.NoDeprecatedCustomRule=SH;var uS=_H(zr()),Ud=Ve(),sS=lt();function _H(e){return e&&e.__esModule?e:{default:e}}function SH(e){return{Field:function(r){var n=e.getFieldDef(),a=n==null?void 0:n.deprecationReason;if(n&&a!=null){var o=e.getParentType();o!=null||(0,uS.default)(0),e.reportError(new Ud.GraphQLError("The field ".concat(o.name,".").concat(n.name," is deprecated. ").concat(a),r))}},Argument:function(r){var n=e.getArgument(),a=n==null?void 0:n.deprecationReason;if(n&&a!=null){var o=e.getDirective();if(o!=null)e.reportError(new Ud.GraphQLError('Directive "@'.concat(o.name,'" argument "').concat(n.name,'" is deprecated. ').concat(a),r));else{var s=e.getParentType(),c=e.getFieldDef();s!=null&&c!=null||(0,uS.default)(0),e.reportError(new Ud.GraphQLError('Field "'.concat(s.name,".").concat(c.name,'" argument "').concat(n.name,'" is deprecated. ').concat(a),r))}}},ObjectField:function(r){var n=(0,sS.getNamedType)(e.getParentInputType());if((0,sS.isInputObjectType)(n)){var a=n.getFields()[r.name.value],o=a==null?void 0:a.deprecationReason;o!=null&&e.reportError(new Ud.GraphQLError("The input field ".concat(n.name,".").concat(a.name," is deprecated. ").concat(o),r))}},EnumValue:function(r){var n=e.getEnumValue(),a=n==null?void 0:n.deprecationReason;if(n&&a!=null){var o=(0,sS.getNamedType)(e.getInputType());o!=null||(0,uS.default)(0),e.reportError(new Ud.GraphQLError('The enum value "'.concat(o.name,".").concat(n.name,'" is deprecated. ').concat(a),r))}}}}});var Ox=U(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.NoSchemaIntrospectionCustomRule=OH;var DH=Ve(),kH=lt(),CH=Mn();function OH(e){return{Field:function(r){var n=(0,kH.getNamedType)(e.getType());n&&(0,CH.isIntrospectionType)(n)&&e.reportError(new DH.GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}});var wx=U(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});Object.defineProperty(et,"validate",{enumerable:!0,get:function(){return wH.validate}});Object.defineProperty(et,"ValidationContext",{enumerable:!0,get:function(){return NH.ValidationContext}});Object.defineProperty(et,"specifiedRules",{enumerable:!0,get:function(){return AH.specifiedRules}});Object.defineProperty(et,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return LH.ExecutableDefinitionsRule}});Object.defineProperty(et,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return xH.FieldsOnCorrectTypeRule}});Object.defineProperty(et,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return IH.FragmentsOnCompositeTypesRule}});Object.defineProperty(et,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return RH.KnownArgumentNamesRule}});Object.defineProperty(et,"KnownDirectivesRule",{enumerable:!0,get:function(){return FH.KnownDirectivesRule}});Object.defineProperty(et,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return PH.KnownFragmentNamesRule}});Object.defineProperty(et,"KnownTypeNamesRule",{enumerable:!0,get:function(){return jH.KnownTypeNamesRule}});Object.defineProperty(et,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return MH.LoneAnonymousOperationRule}});Object.defineProperty(et,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return qH.NoFragmentCyclesRule}});Object.defineProperty(et,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return BH.NoUndefinedVariablesRule}});Object.defineProperty(et,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return VH.NoUnusedFragmentsRule}});Object.defineProperty(et,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return UH.NoUnusedVariablesRule}});Object.defineProperty(et,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return GH.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(et,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return QH.PossibleFragmentSpreadsRule}});Object.defineProperty(et,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return KH.ProvidedRequiredArgumentsRule}});Object.defineProperty(et,"ScalarLeafsRule",{enumerable:!0,get:function(){return HH.ScalarLeafsRule}});Object.defineProperty(et,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return zH.SingleFieldSubscriptionsRule}});Object.defineProperty(et,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return WH.UniqueArgumentNamesRule}});Object.defineProperty(et,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return YH.UniqueDirectivesPerLocationRule}});Object.defineProperty(et,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return JH.UniqueFragmentNamesRule}});Object.defineProperty(et,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return XH.UniqueInputFieldNamesRule}});Object.defineProperty(et,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ZH.UniqueOperationNamesRule}});Object.defineProperty(et,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return $H.UniqueVariableNamesRule}});Object.defineProperty(et,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ez.ValuesOfCorrectTypeRule}});Object.defineProperty(et,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return tz.VariablesAreInputTypesRule}});Object.defineProperty(et,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return rz.VariablesInAllowedPositionRule}});Object.defineProperty(et,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return nz.LoneSchemaDefinitionRule}});Object.defineProperty(et,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return iz.UniqueOperationTypesRule}});Object.defineProperty(et,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return az.UniqueTypeNamesRule}});Object.defineProperty(et,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return oz.UniqueEnumValueNamesRule}});Object.defineProperty(et,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return uz.UniqueFieldDefinitionNamesRule}});Object.defineProperty(et,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return sz.UniqueDirectiveNamesRule}});Object.defineProperty(et,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return lz.PossibleTypeExtensionsRule}});Object.defineProperty(et,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return cz.NoDeprecatedCustomRule}});Object.defineProperty(et,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return fz.NoSchemaIntrospectionCustomRule}});var wH=jl(),NH=B_(),AH=M_(),LH=gg(),xH=PT(),IH=AT(),RH=a_(),FH=t_(),PH=BT(),jH=wT(),MH=ST(),qH=zT(),BH=XT(),VH=UT(),UH=$T(),GH=E_(),QH=KT(),KH=f_(),HH=RT(),zH=kT(),WH=u_(),YH=i_(),JH=MT(),XH=__(),ZH=TT(),$H=YT(),ez=l_(),tz=xT(),rz=p_(),nz=D_(),iz=C_(),az=w_(),oz=A_(),uz=I_(),sz=F_(),lz=j_(),cz=cS(),fz=Ox()});var Nx=U(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.formatError=hz;var dz=pz(Ei());function pz(e){return e&&e.__esModule?e:{default:e}}function hz(e){var t;e||(0,dz.default)(0,"Received null or undefined error.");var r=(t=e.message)!==null&&t!==void 0?t:"An unknown error occurred.",n=e.locations,a=e.path,o=e.extensions;return o?{message:r,locations:n,path:a,extensions:o}:{message:r,locations:n,path:a}}});var Lx=U(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});Object.defineProperty(rs,"GraphQLError",{enumerable:!0,get:function(){return Ax.GraphQLError}});Object.defineProperty(rs,"printError",{enumerable:!0,get:function(){return Ax.printError}});Object.defineProperty(rs,"syntaxError",{enumerable:!0,get:function(){return vz.syntaxError}});Object.defineProperty(rs,"locatedError",{enumerable:!0,get:function(){return gz.locatedError}});Object.defineProperty(rs,"formatError",{enumerable:!0,get:function(){return mz.formatError}});var Ax=Ve(),vz=Lv(),gz=ld(),mz=Nx()});var hS=U(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.getIntrospectionQuery=Ez;function xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){bz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ez(e){var t=yz({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByUrl":"",a=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?r:"";function s(c){return t.inputValueDeprecation?c:""}return`
|
|
query IntrospectionQuery {
|
|
__schema {
|
|
`.concat(o,`
|
|
queryType { name }
|
|
mutationType { name }
|
|
subscriptionType { name }
|
|
types {
|
|
...FullType
|
|
}
|
|
directives {
|
|
name
|
|
`).concat(r,`
|
|
`).concat(a,`
|
|
locations
|
|
args`).concat(s("(includeDeprecated: true)"),` {
|
|
...InputValue
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment FullType on __Type {
|
|
kind
|
|
name
|
|
`).concat(r,`
|
|
`).concat(n,`
|
|
fields(includeDeprecated: true) {
|
|
name
|
|
`).concat(r,`
|
|
args`).concat(s("(includeDeprecated: true)"),` {
|
|
...InputValue
|
|
}
|
|
type {
|
|
...TypeRef
|
|
}
|
|
isDeprecated
|
|
deprecationReason
|
|
}
|
|
inputFields`).concat(s("(includeDeprecated: true)"),` {
|
|
...InputValue
|
|
}
|
|
interfaces {
|
|
...TypeRef
|
|
}
|
|
enumValues(includeDeprecated: true) {
|
|
name
|
|
`).concat(r,`
|
|
isDeprecated
|
|
deprecationReason
|
|
}
|
|
possibleTypes {
|
|
...TypeRef
|
|
}
|
|
}
|
|
|
|
fragment InputValue on __InputValue {
|
|
name
|
|
`).concat(r,`
|
|
type { ...TypeRef }
|
|
defaultValue
|
|
`).concat(s("isDeprecated"),`
|
|
`).concat(s("deprecationReason"),`
|
|
}
|
|
|
|
fragment TypeRef on __Type {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)}});var gS=U(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});vS.getOperationAST=_z;var Tz=Pt();function _z(e,t){for(var r=null,n=0,a=e.definitions;n<a.length;n++){var o=a[n];if(o.kind===Tz.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r)return null;r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t)return o}}return r}});var Rx=U(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.introspectionFromSchema=Az;var Sz=Oz(zr()),Dz=Tl(),kz=Vd(),Cz=hS();function Oz(e){return e&&e.__esModule?e:{default:e}}function Ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ix(Object(r),!0).forEach(function(n){Nz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ix(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Az(e,t){var r=wz({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),n=(0,Dz.parse)((0,Cz.getIntrospectionQuery)(r)),a=(0,kz.executeSync)({schema:e,document:n});return!a.errors&&a.data||(0,Sz.default)(0),a.data}});var Px=U(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.buildClientSchema=Mz;var Lz=Gd(Zn()),ti=Gd(_t()),xz=Gd(Ei()),Gg=Gd(cd()),Fx=Gd(pa()),Iz=Tl(),Rz=zu(),Fz=qn(),Pz=ma(),_a=Mn(),ri=lt(),jz=Id();function Gd(e){return e&&e.__esModule?e:{default:e}}function Mz(e,t){(0,Fx.default)(e)&&(0,Fx.default)(e.__schema)||(0,xz.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,ti.default)(e),"."));for(var r=e.__schema,n=(0,Gg.default)(r.types,function(M){return M.name},function(M){return S(M)}),a=0,o=[].concat(Pz.specifiedScalarTypes,_a.introspectionTypes);a<o.length;a++){var s=o[a];n[s.name]&&(n[s.name]=s)}var c=r.queryType?C(r.queryType):null,d=r.mutationType?C(r.mutationType):null,h=r.subscriptionType?C(r.subscriptionType):null,m=r.directives?r.directives.map(G):[];return new Rz.GraphQLSchema({description:r.description,query:c,mutation:d,subscription:h,types:(0,Lz.default)(n),directives:m,assumeValid:t==null?void 0:t.assumeValid});function E(M){if(M.kind===_a.TypeKind.LIST){var j=M.ofType;if(!j)throw new Error("Decorated type deeper than introspection query.");return new ri.GraphQLList(E(j))}if(M.kind===_a.TypeKind.NON_NULL){var ce=M.ofType;if(!ce)throw new Error("Decorated type deeper than introspection query.");var ke=E(ce);return new ri.GraphQLNonNull((0,ri.assertNullableType)(ke))}return b(M)}function b(M){var j=M.name;if(!j)throw new Error("Unknown type reference: ".concat((0,ti.default)(M),"."));var ce=n[j];if(!ce)throw new Error("Invalid or incomplete schema, unknown type: ".concat(j,". Ensure that a full introspection query is used in order to build a client schema."));return ce}function C(M){return(0,ri.assertObjectType)(b(M))}function L(M){return(0,ri.assertInterfaceType)(b(M))}function S(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case _a.TypeKind.SCALAR:return y(M);case _a.TypeKind.OBJECT:return g(M);case _a.TypeKind.INTERFACE:return k(M);case _a.TypeKind.UNION:return N(M);case _a.TypeKind.ENUM:return w(M);case _a.TypeKind.INPUT_OBJECT:return D(M)}var j=(0,ti.default)(M);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(j,"."))}function y(M){return new ri.GraphQLScalarType({name:M.name,description:M.description,specifiedByUrl:M.specifiedByUrl})}function T(M){if(M.interfaces===null&&M.kind===_a.TypeKind.INTERFACE)return[];if(!M.interfaces){var j=(0,ti.default)(M);throw new Error("Introspection result missing interfaces: ".concat(j,"."))}return M.interfaces.map(L)}function g(M){return new ri.GraphQLObjectType({name:M.name,description:M.description,interfaces:function(){return T(M)},fields:function(){return F(M)}})}function k(M){return new ri.GraphQLInterfaceType({name:M.name,description:M.description,interfaces:function(){return T(M)},fields:function(){return F(M)}})}function N(M){if(!M.possibleTypes){var j=(0,ti.default)(M);throw new Error("Introspection result missing possibleTypes: ".concat(j,"."))}return new ri.GraphQLUnionType({name:M.name,description:M.description,types:function(){return M.possibleTypes.map(C)}})}function w(M){if(!M.enumValues){var j=(0,ti.default)(M);throw new Error("Introspection result missing enumValues: ".concat(j,"."))}return new ri.GraphQLEnumType({name:M.name,description:M.description,values:(0,Gg.default)(M.enumValues,function(ce){return ce.name},function(ce){return{description:ce.description,deprecationReason:ce.deprecationReason}})})}function D(M){if(!M.inputFields){var j=(0,ti.default)(M);throw new Error("Introspection result missing inputFields: ".concat(j,"."))}return new ri.GraphQLInputObjectType({name:M.name,description:M.description,fields:function(){return B(M.inputFields)}})}function F(M){if(!M.fields)throw new Error("Introspection result missing fields: ".concat((0,ti.default)(M),"."));return(0,Gg.default)(M.fields,function(j){return j.name},P)}function P(M){var j=E(M.type);if(!(0,ri.isOutputType)(j)){var ce=(0,ti.default)(j);throw new Error("Introspection must provide output type for fields, but received: ".concat(ce,"."))}if(!M.args){var ke=(0,ti.default)(M);throw new Error("Introspection result missing field args: ".concat(ke,"."))}return{description:M.description,deprecationReason:M.deprecationReason,type:j,args:B(M.args)}}function B(M){return(0,Gg.default)(M,function(j){return j.name},z)}function z(M){var j=E(M.type);if(!(0,ri.isInputType)(j)){var ce=(0,ti.default)(j);throw new Error("Introspection must provide input type for arguments, but received: ".concat(ce,"."))}var ke=M.defaultValue!=null?(0,jz.valueFromAST)((0,Iz.parseValue)(M.defaultValue),j):void 0;return{description:M.description,type:j,defaultValue:ke,deprecationReason:M.deprecationReason}}function G(M){if(!M.args){var j=(0,ti.default)(M);throw new Error("Introspection result missing directive args: ".concat(j,"."))}if(!M.locations){var ce=(0,ti.default)(M);throw new Error("Introspection result missing directive locations: ".concat(ce,"."))}return new Fz.GraphQLDirective({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:B(M.args)})}}});var bS=U(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.extendSchema=Hz;Kd.extendSchemaImpl=Hx;Kd.getDescription=ns;var qz=Ql(Zn()),Bz=Ql(Bo()),jx=Ql(_t()),Qd=Ql(CE()),Mx=Ql(zr()),Vz=Ql(Ei()),Di=Pt(),Uz=yl(),Gz=El(),qx=Yu(),Qz=jl(),Bx=jd(),Vx=zu(),Ux=ma(),Gx=Mn(),Qg=qn(),Zt=lt(),Qx=Id();function Ql(e){return e&&e.__esModule?e:{default:e}}function Kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kx(Object(r),!0).forEach(function(n){Kz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hz(e,t,r){(0,Vx.assertSchema)(e),t!=null&&t.kind===Di.Kind.DOCUMENT||(0,Vz.default)(0,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&(0,Qz.assertValidSDLExtension)(t,e);var n=e.toConfig(),a=Hx(n,t,r);return n===a?e:new Vx.GraphQLSchema(a)}function Hx(e,t,r){for(var n,a,o,s,c=[],d=Object.create(null),h=[],m,E=[],b=0,C=t.definitions;b<C.length;b++){var L=C[b];if(L.kind===Di.Kind.SCHEMA_DEFINITION)m=L;else if(L.kind===Di.Kind.SCHEMA_EXTENSION)E.push(L);else if((0,qx.isTypeDefinitionNode)(L))c.push(L);else if((0,qx.isTypeExtensionNode)(L)){var S=L.name.value,y=d[S];d[S]=y?y.concat([L]):[L]}else L.kind===Di.Kind.DIRECTIVE_DEFINITION&&h.push(L)}if(Object.keys(d).length===0&&c.length===0&&h.length===0&&E.length===0&&m==null)return e;for(var T=Object.create(null),g=0,k=e.types;g<k.length;g++){var N=k[g];T[N.name]=j(N)}for(var w=0;w<c.length;w++){var D,F=c[w],P=F.name.value;T[P]=(D=zx[P])!==null&&D!==void 0?D:pn(F)}var B=bt(bt({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},m&&st([m])),st(E));return bt(bt({description:(n=m)===null||n===void 0||(a=n.description)===null||a===void 0?void 0:a.value},B),{},{types:(0,qz.default)(T),directives:[].concat(e.directives.map(M),h.map(xe)),extensions:void 0,astNode:(o=m)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(E),assumeValid:(s=r==null?void 0:r.assumeValid)!==null&&s!==void 0?s:!1});function z(ee){return(0,Zt.isListType)(ee)?new Zt.GraphQLList(z(ee.ofType)):(0,Zt.isNonNullType)(ee)?new Zt.GraphQLNonNull(z(ee.ofType)):G(ee)}function G(ee){return T[ee.name]}function M(ee){var De=ee.toConfig();return new Qg.GraphQLDirective(bt(bt({},De),{},{args:(0,Qd.default)(De.args,at)}))}function j(ee){if((0,Gx.isIntrospectionType)(ee)||(0,Ux.isSpecifiedScalarType)(ee))return ee;if((0,Zt.isScalarType)(ee))return pe(ee);if((0,Zt.isObjectType)(ee))return we(ee);if((0,Zt.isInterfaceType)(ee))return Ne(ee);if((0,Zt.isUnionType)(ee))return qe(ee);if((0,Zt.isEnumType)(ee))return ke(ee);if((0,Zt.isInputObjectType)(ee))return ce(ee);(0,Mx.default)(0,"Unexpected type: "+(0,jx.default)(ee))}function ce(ee){var De,be=ee.toConfig(),me=(De=d[be.name])!==null&&De!==void 0?De:[];return new Zt.GraphQLInputObjectType(bt(bt({},be),{},{fields:function(){return bt(bt({},(0,Qd.default)(be.fields,function($e){return bt(bt({},$e),{},{type:z($e.type)})})),wn(me))},extensionASTNodes:be.extensionASTNodes.concat(me)}))}function ke(ee){var De,be=ee.toConfig(),me=(De=d[ee.name])!==null&&De!==void 0?De:[];return new Zt.GraphQLEnumType(bt(bt({},be),{},{values:bt(bt({},be.values),tt(me)),extensionASTNodes:be.extensionASTNodes.concat(me)}))}function pe(ee){for(var De,be=ee.toConfig(),me=(De=d[be.name])!==null&&De!==void 0?De:[],je=be.specifiedByUrl,$e=0;$e<me.length;$e++){var We,rt=me[$e];je=(We=Wx(rt))!==null&&We!==void 0?We:je}return new Zt.GraphQLScalarType(bt(bt({},be),{},{specifiedByUrl:je,extensionASTNodes:be.extensionASTNodes.concat(me)}))}function we(ee){var De,be=ee.toConfig(),me=(De=d[be.name])!==null&&De!==void 0?De:[];return new Zt.GraphQLObjectType(bt(bt({},be),{},{interfaces:function(){return[].concat(ee.getInterfaces().map(G),Mt(me))},fields:function(){return bt(bt({},(0,Qd.default)(be.fields,ht)),Ue(me))},extensionASTNodes:be.extensionASTNodes.concat(me)}))}function Ne(ee){var De,be=ee.toConfig(),me=(De=d[be.name])!==null&&De!==void 0?De:[];return new Zt.GraphQLInterfaceType(bt(bt({},be),{},{interfaces:function(){return[].concat(ee.getInterfaces().map(G),Mt(me))},fields:function(){return bt(bt({},(0,Qd.default)(be.fields,ht)),Ue(me))},extensionASTNodes:be.extensionASTNodes.concat(me)}))}function qe(ee){var De,be=ee.toConfig(),me=(De=d[be.name])!==null&&De!==void 0?De:[];return new Zt.GraphQLUnionType(bt(bt({},be),{},{types:function(){return[].concat(ee.getTypes().map(G),Xr(me))},extensionASTNodes:be.extensionASTNodes.concat(me)}))}function ht(ee){return bt(bt({},ee),{},{type:z(ee.type),args:(0,Qd.default)(ee.args,at)})}function at(ee){return bt(bt({},ee),{},{type:z(ee.type)})}function st(ee){for(var De={},be=0;be<ee.length;be++)for(var me,je=ee[be],$e=(me=je.operationTypes)!==null&&me!==void 0?me:[],We=0;We<$e.length;We++){var rt=$e[We];De[rt.operation]=vt(rt.type)}return De}function vt(ee){var De,be=ee.name.value,me=(De=zx[be])!==null&&De!==void 0?De:T[be];if(me===void 0)throw new Error('Unknown type: "'.concat(be,'".'));return me}function Oe(ee){return ee.kind===Di.Kind.LIST_TYPE?new Zt.GraphQLList(Oe(ee.type)):ee.kind===Di.Kind.NON_NULL_TYPE?new Zt.GraphQLNonNull(Oe(ee.type)):vt(ee)}function xe(ee){var De=ee.locations.map(function(be){var me=be.value;return me});return new Qg.GraphQLDirective({name:ee.name.value,description:ns(ee,r),locations:De,isRepeatable:ee.repeatable,args:Ze(ee.arguments),astNode:ee})}function Ue(ee){for(var De=Object.create(null),be=0;be<ee.length;be++)for(var me,je=ee[be],$e=(me=je.fields)!==null&&me!==void 0?me:[],We=0;We<$e.length;We++){var rt=$e[We];De[rt.name.value]={type:Oe(rt.type),description:ns(rt,r),args:Ze(rt.arguments),deprecationReason:Kg(rt),astNode:rt}}return De}function Ze(ee){for(var De=ee!=null?ee:[],be=Object.create(null),me=0;me<De.length;me++){var je=De[me],$e=Oe(je.type);be[je.name.value]={type:$e,description:ns(je,r),defaultValue:(0,Qx.valueFromAST)(je.defaultValue,$e),deprecationReason:Kg(je),astNode:je}}return be}function wn(ee){for(var De=Object.create(null),be=0;be<ee.length;be++)for(var me,je=ee[be],$e=(me=je.fields)!==null&&me!==void 0?me:[],We=0;We<$e.length;We++){var rt=$e[We],li=Oe(rt.type);De[rt.name.value]={type:li,description:ns(rt,r),defaultValue:(0,Qx.valueFromAST)(rt.defaultValue,li),deprecationReason:Kg(rt),astNode:rt}}return De}function tt(ee){for(var De=Object.create(null),be=0;be<ee.length;be++)for(var me,je=ee[be],$e=(me=je.values)!==null&&me!==void 0?me:[],We=0;We<$e.length;We++){var rt=$e[We];De[rt.name.value]={description:ns(rt,r),deprecationReason:Kg(rt),astNode:rt}}return De}function Mt(ee){for(var De=[],be=0;be<ee.length;be++)for(var me,je=ee[be],$e=(me=je.interfaces)!==null&&me!==void 0?me:[],We=0;We<$e.length;We++){var rt=$e[We];De.push(vt(rt))}return De}function Xr(ee){for(var De=[],be=0;be<ee.length;be++)for(var me,je=ee[be],$e=(me=je.types)!==null&&me!==void 0?me:[],We=0;We<$e.length;We++){var rt=$e[We];De.push(vt(rt))}return De}function pn(ee){var De,be=ee.name.value,me=ns(ee,r),je=(De=d[be])!==null&&De!==void 0?De:[];switch(ee.kind){case Di.Kind.OBJECT_TYPE_DEFINITION:{var $e=je,We=[ee].concat($e);return new Zt.GraphQLObjectType({name:be,description:me,interfaces:function(){return Mt(We)},fields:function(){return Ue(We)},astNode:ee,extensionASTNodes:$e})}case Di.Kind.INTERFACE_TYPE_DEFINITION:{var rt=je,li=[ee].concat(rt);return new Zt.GraphQLInterfaceType({name:be,description:me,interfaces:function(){return Mt(li)},fields:function(){return Ue(li)},astNode:ee,extensionASTNodes:rt})}case Di.Kind.ENUM_TYPE_DEFINITION:{var ao=je,xa=[ee].concat(ao);return new Zt.GraphQLEnumType({name:be,description:me,values:tt(xa),astNode:ee,extensionASTNodes:ao})}case Di.Kind.UNION_TYPE_DEFINITION:{var Ia=je,Nn=[ee].concat(Ia);return new Zt.GraphQLUnionType({name:be,description:me,types:function(){return Xr(Nn)},astNode:ee,extensionASTNodes:Ia})}case Di.Kind.SCALAR_TYPE_DEFINITION:{var cu=je;return new Zt.GraphQLScalarType({name:be,description:me,specifiedByUrl:Wx(ee),astNode:ee,extensionASTNodes:cu})}case Di.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var te=je,q=[ee].concat(te);return new Zt.GraphQLInputObjectType({name:be,description:me,fields:function(){return wn(q)},astNode:ee,extensionASTNodes:te})}}(0,Mx.default)(0,"Unexpected type definition node: "+(0,jx.default)(ee))}}var zx=(0,Bz.default)(Ux.specifiedScalarTypes.concat(Gx.introspectionTypes),function(e){return e.name});function Kg(e){var t=(0,Bx.getDirectiveValues)(Qg.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function Wx(e){var t=(0,Bx.getDirectiveValues)(Qg.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function ns(e,t){if(e.description)return e.description.value;if((t==null?void 0:t.commentDescriptions)===!0){var r=zz(e);if(r!==void 0)return(0,Gz.dedentBlockStringValue)(`
|
|
`+r)}}function zz(e){var t=e.loc;if(!!t){for(var r=[],n=t.startToken.prev;n!=null&&n.kind===Uz.TokenKind.COMMENT&&n.next&&n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){var a=String(n.value);r.push(a),n=n.prev}return r.length>0?r.reverse().join(`
|
|
`):void 0}}});var Xx=U(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});Hg.buildASTSchema=Jx;Hg.buildSchema=t7;var Wz=e7(Ei()),Yz=Pt(),Jz=Tl(),Xz=jl(),Zz=zu(),Yx=qn(),$z=bS();function e7(e){return e&&e.__esModule?e:{default:e}}function Jx(e,t){e!=null&&e.kind===Yz.Kind.DOCUMENT||(0,Wz.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Xz.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,$z.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var a=0,o=n.types;a<o.length;a++){var s=o[a];switch(s.name){case"Query":n.query=s;break;case"Mutation":n.mutation=s;break;case"Subscription":n.subscription=s;break}}for(var c=n.directives,d=function(E){var b=Yx.specifiedDirectives[E];c.every(function(C){return C.name!==b.name})&&c.push(b)},h=0;h<Yx.specifiedDirectives.length;h++)d(h);return new Zz.GraphQLSchema(n)}function t7(e,t){var r=(0,Jz.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacySDLEmptyFields:t==null?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:t==null?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:t==null?void 0:t.experimentalFragmentVariables});return Jx(r,{commentDescriptions:t==null?void 0:t.commentDescriptions,assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var $x=U(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});_S.lexicographicSortSchema=f7;var r7=Hd(Zn()),n7=Hd(_t()),i7=Hd(zr()),a7=Hd(cd()),o7=Hd(fd()),u7=zu(),s7=qn(),l7=Mn(),Sn=lt();function Hd(e){return e&&e.__esModule?e:{default:e}}function Zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zx(Object(r),!0).forEach(function(n){c7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f7(e){var t=e.toConfig(),r=(0,a7.default)(ES(t.types),function(b){return b.name},E);return new u7.GraphQLSchema(yr(yr({},t),{},{types:(0,r7.default)(r),directives:ES(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function n(b){return(0,Sn.isListType)(b)?new Sn.GraphQLList(n(b.ofType)):(0,Sn.isNonNullType)(b)?new Sn.GraphQLNonNull(n(b.ofType)):a(b)}function a(b){return r[b.name]}function o(b){return b&&a(b)}function s(b){var C=b.toConfig();return new s7.GraphQLDirective(yr(yr({},C),{},{locations:TS(C.locations,function(L){return L}),args:c(C.args)}))}function c(b){return zg(b,function(C){return yr(yr({},C),{},{type:n(C.type)})})}function d(b){return zg(b,function(C){return yr(yr({},C),{},{type:n(C.type),args:c(C.args)})})}function h(b){return zg(b,function(C){return yr(yr({},C),{},{type:n(C.type)})})}function m(b){return ES(b).map(a)}function E(b){if((0,Sn.isScalarType)(b)||(0,l7.isIntrospectionType)(b))return b;if((0,Sn.isObjectType)(b)){var C=b.toConfig();return new Sn.GraphQLObjectType(yr(yr({},C),{},{interfaces:function(){return m(C.interfaces)},fields:function(){return d(C.fields)}}))}if((0,Sn.isInterfaceType)(b)){var L=b.toConfig();return new Sn.GraphQLInterfaceType(yr(yr({},L),{},{interfaces:function(){return m(L.interfaces)},fields:function(){return d(L.fields)}}))}if((0,Sn.isUnionType)(b)){var S=b.toConfig();return new Sn.GraphQLUnionType(yr(yr({},S),{},{types:function(){return m(S.types)}}))}if((0,Sn.isEnumType)(b)){var y=b.toConfig();return new Sn.GraphQLEnumType(yr(yr({},y),{},{values:zg(y.values)}))}if((0,Sn.isInputObjectType)(b)){var T=b.toConfig();return new Sn.GraphQLInputObjectType(yr(yr({},T),{},{fields:function(){return h(T.fields)}}))}(0,i7.default)(0,"Unexpected type: "+(0,n7.default)(b))}}function zg(e,t){for(var r=Object.create(null),n=TS(Object.keys(e),function(c){return c}),a=0;a<n.length;a++){var o=n[a],s=e[o];r[o]=t?t(s):s}return r}function ES(e){return TS(e,function(t){return t.name})}function TS(e,t){return e.slice().sort(function(r,n){var a=t(r),o=t(n);return(0,o7.default)(a,o)})}});var uI=U(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.printSchema=h7;zd.printIntrospectionSchema=v7;zd.printType=nI;var SS=wS(Zn()),d7=wS(_t()),eI=wS(zr()),DS=jn(),p7=El(),tI=Mn(),kS=ma(),CS=qn(),Kl=lt(),OS=_d();function wS(e){return e&&e.__esModule?e:{default:e}}function h7(e,t){return rI(e,function(r){return!(0,CS.isSpecifiedDirective)(r)},g7,t)}function v7(e,t){return rI(e,CS.isSpecifiedDirective,tI.isIntrospectionType,t)}function g7(e){return!(0,kS.isSpecifiedScalarType)(e)&&!(0,tI.isIntrospectionType)(e)}function rI(e,t,r,n){var a=e.getDirectives().filter(t),o=(0,SS.default)(e.getTypeMap()).filter(r);return[m7(e)].concat(a.map(function(s){return k7(s,n)}),o.map(function(s){return nI(s,n)})).filter(Boolean).join(`
|
|
|
|
`)+`
|
|
`}function m7(e){if(!(e.description==null&&y7(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var a=e.getSubscriptionType();return a&&t.push(" subscription: ".concat(a.name)),ki({},e)+`schema {
|
|
`.concat(t.join(`
|
|
`),`
|
|
}`)}}function y7(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function nI(e,t){if((0,Kl.isScalarType)(e))return b7(e,t);if((0,Kl.isObjectType)(e))return E7(e,t);if((0,Kl.isInterfaceType)(e))return T7(e,t);if((0,Kl.isUnionType)(e))return _7(e,t);if((0,Kl.isEnumType)(e))return S7(e,t);if((0,Kl.isInputObjectType)(e))return D7(e,t);(0,eI.default)(0,"Unexpected type: "+(0,d7.default)(e))}function b7(e,t){return ki(t,e)+"scalar ".concat(e.name)+C7(e)}function iI(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function E7(e,t){return ki(t,e)+"type ".concat(e.name)+iI(e)+aI(t,e)}function T7(e,t){return ki(t,e)+"interface ".concat(e.name)+iI(e)+aI(t,e)}function _7(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return ki(t,e)+"union "+e.name+n}function S7(e,t){var r=e.getValues().map(function(n,a){return ki(t,n," ",!a)+" "+n.name+LS(n.deprecationReason)});return ki(t,e)+"enum ".concat(e.name)+NS(r)}function D7(e,t){var r=(0,SS.default)(e.getFields()).map(function(n,a){return ki(t,n," ",!a)+" "+AS(n)});return ki(t,e)+"input ".concat(e.name)+NS(r)}function aI(e,t){var r=(0,SS.default)(t.getFields()).map(function(n,a){return ki(e,n," ",!a)+" "+n.name+oI(e,n.args," ")+": "+String(n.type)+LS(n.deprecationReason)});return NS(r)}function NS(e){return e.length!==0?` {
|
|
`+e.join(`
|
|
`)+`
|
|
}`:""}function oI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(n){return!n.description})?"("+t.map(AS).join(", ")+")":`(
|
|
`+t.map(function(n,a){return ki(e,n," "+r,!a)+" "+r+AS(n)}).join(`
|
|
`)+`
|
|
`+r+")"}function AS(e){var t=(0,OS.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,DS.print)(t))),r+LS(e.deprecationReason)}function k7(e,t){return ki(t,e)+"directive @"+e.name+oI(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function LS(e){if(e==null)return"";var t=(0,OS.astFromValue)(e,kS.GraphQLString);return t&&e!==CS.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,DS.print)(t)+")":" @deprecated"}function C7(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,OS.astFromValue)(t,kS.GraphQLString);return r||(0,eI.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,DS.print)(r)+")"}function ki(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=t.description;if(a==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return O7(a,r,n);var o=a.length>70,s=(0,p7.printBlockString)(a,"",o),c=r&&!n?`
|
|
`+r:r;return c+s.replace(/\n/g,`
|
|
`+r)+`
|
|
`}function O7(e,t,r){var n=t&&!r?`
|
|
`:"",a=e.split(`
|
|
`).map(function(o){return t+(o!==""?"# "+o:"#")}).join(`
|
|
`);return n+a+`
|
|
`}});var sI=U(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});xS.concatAST=w7;function w7(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t=t.concat(n.definitions)}return{kind:"Document",definitions:t}}});var fI=U(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.separateOperations=A7;var Wg=Pt(),N7=qo();function A7(e){for(var t=[],r=Object.create(null),n=0,a=e.definitions;n<a.length;n++){var o=a[n];switch(o.kind){case Wg.Kind.OPERATION_DEFINITION:t.push(o);break;case Wg.Kind.FRAGMENT_DEFINITION:r[o.name.value]=cI(o.selectionSet);break}}for(var s=Object.create(null),c=function(m){for(var E=t[m],b=new Set,C=0,L=cI(E.selectionSet);C<L.length;C++){var S=L[C];lI(b,r,S)}var y=E.name?E.name.value:"";s[y]={kind:Wg.Kind.DOCUMENT,definitions:e.definitions.filter(function(T){return T===E||T.kind===Wg.Kind.FRAGMENT_DEFINITION&&b.has(T.name.value)})}},d=0;d<t.length;d++)c(d);return s}function lI(e,t,r){if(!e.has(r)){e.add(r);var n=t[r];if(n!==void 0)for(var a=0;a<n.length;a++){var o=n[a];lI(e,t,o)}}}function cI(e){var t=[];return(0,N7.visit)(e,{FragmentSpread:function(n){t.push(n.name.value)}}),t}});var vI=U(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.stripIgnoredCharacters=L7;var dI=qv(),RS=yl(),pI=Uv(),hI=El();function L7(e){for(var t=(0,dI.isSource)(e)?e:new dI.Source(e),r=t.body,n=new pI.Lexer(t),a="",o=!1;n.advance().kind!==RS.TokenKind.EOF;){var s=n.token,c=s.kind,d=!(0,pI.isPunctuatorTokenKind)(s.kind);o&&(d||s.kind===RS.TokenKind.SPREAD)&&(a+=" ");var h=r.slice(s.start,s.end);c===RS.TokenKind.BLOCK_STRING?a+=x7(h):a+=h,o=d}return a}function x7(e){var t=e.slice(3,-3),r=(0,hI.dedentBlockStringValue)(t);(0,hI.getBlockStringIndentation)(r)>0&&(r=`
|
|
`+r);var n=r[r.length-1],a=n==='"'&&r.slice(-4)!=='\\"""';return(a||n==="\\")&&(r+=`
|
|
`),'"""'+r+'"""'}});var kI=U(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.findBreakingChanges=B7;eu.findDangerousChanges=V7;eu.DangerousChangeType=eu.BreakingChangeType=void 0;var Hl=Wd(Zn()),gI=Wd(Bo()),I7=Wd(_t()),mI=Wd(zr()),R7=Wd(fd()),F7=jn(),P7=qo(),j7=ma(),Et=lt(),M7=_d();function Wd(e){return e&&e.__esModule?e:{default:e}}function yI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function bI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yI(Object(r),!0).forEach(function(n){q7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var br=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"});eu.BreakingChangeType=br;var eo=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});eu.DangerousChangeType=eo;function B7(e,t){var r=EI(e,t).filter(function(n){return n.type in br});return r}function V7(e,t){var r=EI(e,t).filter(function(n){return n.type in eo});return r}function EI(e,t){return[].concat(G7(e,t),U7(e,t))}function U7(e,t){for(var r=[],n=to(e.getDirectives(),t.getDirectives()),a=0,o=n.removed;a<o.length;a++){var s=o[a];r.push({type:br.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed.")})}for(var c=0,d=n.persisted;c<d.length;c++){for(var h=d[c],m=h[0],E=h[1],b=to(m.args,E.args),C=0,L=b.added;C<L.length;C++){var S=L[C];(0,Et.isRequiredArgument)(S)&&r.push({type:br.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(S.name," on directive ").concat(m.name," was added.")})}for(var y=0,T=b.removed;y<T.length;y++){var g=T[y];r.push({type:br.DIRECTIVE_ARG_REMOVED,description:"".concat(g.name," was removed from ").concat(m.name,".")})}m.isRepeatable&&!E.isRepeatable&&r.push({type:br.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(m.name,".")});for(var k=0,N=m.locations;k<N.length;k++){var w=N[k];E.locations.indexOf(w)===-1&&r.push({type:br.DIRECTIVE_LOCATION_REMOVED,description:"".concat(w," was removed from ").concat(m.name,".")})}}return r}function G7(e,t){for(var r=[],n=to((0,Hl.default)(e.getTypeMap()),(0,Hl.default)(t.getTypeMap())),a=0,o=n.removed;a<o.length;a++){var s=o[a];r.push({type:br.TYPE_REMOVED,description:(0,j7.isSpecifiedScalarType)(s)?"Standard scalar ".concat(s.name," was removed because it is not referenced anymore."):"".concat(s.name," was removed.")})}for(var c=0,d=n.persisted;c<d.length;c++){var h=d[c],m=h[0],E=h[1];(0,Et.isEnumType)(m)&&(0,Et.isEnumType)(E)?r.push.apply(r,H7(m,E)):(0,Et.isUnionType)(m)&&(0,Et.isUnionType)(E)?r.push.apply(r,K7(m,E)):(0,Et.isInputObjectType)(m)&&(0,Et.isInputObjectType)(E)?r.push.apply(r,Q7(m,E)):(0,Et.isObjectType)(m)&&(0,Et.isObjectType)(E)||(0,Et.isInterfaceType)(m)&&(0,Et.isInterfaceType)(E)?r.push.apply(r,_I(m,E).concat(TI(m,E))):m.constructor!==E.constructor&&r.push({type:br.TYPE_CHANGED_KIND,description:"".concat(m.name," changed from ")+"".concat(SI(m)," to ").concat(SI(E),".")})}return r}function Q7(e,t){for(var r=[],n=to((0,Hl.default)(e.getFields()),(0,Hl.default)(t.getFields())),a=0,o=n.added;a<o.length;a++){var s=o[a];(0,Et.isRequiredInputField)(s)?r.push({type:br.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(s.name," on input type ").concat(e.name," was added.")}):r.push({type:eo.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(s.name," on input type ").concat(e.name," was added.")})}for(var c=0,d=n.removed;c<d.length;c++){var h=d[c];r.push({type:br.FIELD_REMOVED,description:"".concat(e.name,".").concat(h.name," was removed.")})}for(var m=0,E=n.persisted;m<E.length;m++){var b=E[m],C=b[0],L=b[1],S=Jd(C.type,L.type);S||r.push({type:br.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(C.name," changed type from ")+"".concat(String(C.type)," to ").concat(String(L.type),".")})}return r}function K7(e,t){for(var r=[],n=to(e.getTypes(),t.getTypes()),a=0,o=n.added;a<o.length;a++){var s=o[a];r.push({type:eo.TYPE_ADDED_TO_UNION,description:"".concat(s.name," was added to union type ").concat(e.name,".")})}for(var c=0,d=n.removed;c<d.length;c++){var h=d[c];r.push({type:br.TYPE_REMOVED_FROM_UNION,description:"".concat(h.name," was removed from union type ").concat(e.name,".")})}return r}function H7(e,t){for(var r=[],n=to(e.getValues(),t.getValues()),a=0,o=n.added;a<o.length;a++){var s=o[a];r.push({type:eo.VALUE_ADDED_TO_ENUM,description:"".concat(s.name," was added to enum type ").concat(e.name,".")})}for(var c=0,d=n.removed;c<d.length;c++){var h=d[c];r.push({type:br.VALUE_REMOVED_FROM_ENUM,description:"".concat(h.name," was removed from enum type ").concat(e.name,".")})}return r}function TI(e,t){for(var r=[],n=to(e.getInterfaces(),t.getInterfaces()),a=0,o=n.added;a<o.length;a++){var s=o[a];r.push({type:eo.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(s.name," added to interfaces implemented by ").concat(e.name,".")})}for(var c=0,d=n.removed;c<d.length;c++){var h=d[c];r.push({type:br.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(h.name,".")})}return r}function _I(e,t){for(var r=[],n=to((0,Hl.default)(e.getFields()),(0,Hl.default)(t.getFields())),a=0,o=n.removed;a<o.length;a++){var s=o[a];r.push({type:br.FIELD_REMOVED,description:"".concat(e.name,".").concat(s.name," was removed.")})}for(var c=0,d=n.persisted;c<d.length;c++){var h=d[c],m=h[0],E=h[1];r.push.apply(r,z7(e,m,E));var b=Yd(m.type,E.type);b||r.push({type:br.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(m.name," changed type from ")+"".concat(String(m.type)," to ").concat(String(E.type),".")})}return r}function z7(e,t,r){for(var n=[],a=to(t.args,r.args),o=0,s=a.removed;o<s.length;o++){var c=s[o];n.push({type:br.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(c.name," was removed.")})}for(var d=0,h=a.persisted;d<h.length;d++){var m=h[d],E=m[0],b=m[1],C=Jd(E.type,b.type);if(!C)n.push({type:br.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(E.name," has changed type from ")+"".concat(String(E.type)," to ").concat(String(b.type),".")});else if(E.defaultValue!==void 0)if(b.defaultValue===void 0)n.push({type:eo.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(E.name," defaultValue was removed.")});else{var L=DI(E.defaultValue,E.type),S=DI(b.defaultValue,b.type);L!==S&&n.push({type:eo.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(E.name," has changed defaultValue from ").concat(L," to ").concat(S,".")})}}for(var y=0,T=a.added;y<T.length;y++){var g=T[y];(0,Et.isRequiredArgument)(g)?n.push({type:br.REQUIRED_ARG_ADDED,description:"A required arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")}):n.push({type:eo.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")})}return n}function Yd(e,t){return(0,Et.isListType)(e)?(0,Et.isListType)(t)&&Yd(e.ofType,t.ofType)||(0,Et.isNonNullType)(t)&&Yd(e,t.ofType):(0,Et.isNonNullType)(e)?(0,Et.isNonNullType)(t)&&Yd(e.ofType,t.ofType):(0,Et.isNamedType)(t)&&e.name===t.name||(0,Et.isNonNullType)(t)&&Yd(e,t.ofType)}function Jd(e,t){return(0,Et.isListType)(e)?(0,Et.isListType)(t)&&Jd(e.ofType,t.ofType):(0,Et.isNonNullType)(e)?(0,Et.isNonNullType)(t)&&Jd(e.ofType,t.ofType)||!(0,Et.isNonNullType)(t)&&Jd(e.ofType,t):(0,Et.isNamedType)(t)&&e.name===t.name}function SI(e){if((0,Et.isScalarType)(e))return"a Scalar type";if((0,Et.isObjectType)(e))return"an Object type";if((0,Et.isInterfaceType)(e))return"an Interface type";if((0,Et.isUnionType)(e))return"a Union type";if((0,Et.isEnumType)(e))return"an Enum type";if((0,Et.isInputObjectType)(e))return"an Input type";(0,mI.default)(0,"Unexpected type: "+(0,I7.default)(e))}function DI(e,t){var r=(0,M7.astFromValue)(e,t);r!=null||(0,mI.default)(0);var n=(0,P7.visit)(r,{ObjectValue:function(o){var s=[].concat(o.fields);return s.sort(function(c,d){return(0,R7.default)(c.name.value,d.name.value)}),bI(bI({},o),{},{fields:s})}});return(0,F7.print)(n)}function to(e,t){for(var r=[],n=[],a=[],o=(0,gI.default)(e,function(b){var C=b.name;return C}),s=(0,gI.default)(t,function(b){var C=b.name;return C}),c=0;c<e.length;c++){var d=e[c],h=s[d.name];h===void 0?n.push(d):a.push([d,h])}for(var m=0;m<t.length;m++){var E=t[m];o[E.name]===void 0&&r.push(E)}return{added:r,persisted:a,removed:n}}});var CI=U(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.findDeprecatedUsages=J7;var W7=jl(),Y7=cS();function J7(e,t){return(0,W7.validate)(e,t,[Y7.NoDeprecatedCustomRule])}});var LI=U(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});Object.defineProperty(ut,"getIntrospectionQuery",{enumerable:!0,get:function(){return X7.getIntrospectionQuery}});Object.defineProperty(ut,"getOperationAST",{enumerable:!0,get:function(){return Z7.getOperationAST}});Object.defineProperty(ut,"getOperationRootType",{enumerable:!0,get:function(){return $7.getOperationRootType}});Object.defineProperty(ut,"introspectionFromSchema",{enumerable:!0,get:function(){return eW.introspectionFromSchema}});Object.defineProperty(ut,"buildClientSchema",{enumerable:!0,get:function(){return tW.buildClientSchema}});Object.defineProperty(ut,"buildASTSchema",{enumerable:!0,get:function(){return OI.buildASTSchema}});Object.defineProperty(ut,"buildSchema",{enumerable:!0,get:function(){return OI.buildSchema}});Object.defineProperty(ut,"extendSchema",{enumerable:!0,get:function(){return wI.extendSchema}});Object.defineProperty(ut,"getDescription",{enumerable:!0,get:function(){return wI.getDescription}});Object.defineProperty(ut,"lexicographicSortSchema",{enumerable:!0,get:function(){return rW.lexicographicSortSchema}});Object.defineProperty(ut,"printSchema",{enumerable:!0,get:function(){return jS.printSchema}});Object.defineProperty(ut,"printType",{enumerable:!0,get:function(){return jS.printType}});Object.defineProperty(ut,"printIntrospectionSchema",{enumerable:!0,get:function(){return jS.printIntrospectionSchema}});Object.defineProperty(ut,"typeFromAST",{enumerable:!0,get:function(){return nW.typeFromAST}});Object.defineProperty(ut,"valueFromAST",{enumerable:!0,get:function(){return iW.valueFromAST}});Object.defineProperty(ut,"valueFromASTUntyped",{enumerable:!0,get:function(){return aW.valueFromASTUntyped}});Object.defineProperty(ut,"astFromValue",{enumerable:!0,get:function(){return oW.astFromValue}});Object.defineProperty(ut,"TypeInfo",{enumerable:!0,get:function(){return NI.TypeInfo}});Object.defineProperty(ut,"visitWithTypeInfo",{enumerable:!0,get:function(){return NI.visitWithTypeInfo}});Object.defineProperty(ut,"coerceInputValue",{enumerable:!0,get:function(){return uW.coerceInputValue}});Object.defineProperty(ut,"concatAST",{enumerable:!0,get:function(){return sW.concatAST}});Object.defineProperty(ut,"separateOperations",{enumerable:!0,get:function(){return lW.separateOperations}});Object.defineProperty(ut,"stripIgnoredCharacters",{enumerable:!0,get:function(){return cW.stripIgnoredCharacters}});Object.defineProperty(ut,"isEqualType",{enumerable:!0,get:function(){return MS.isEqualType}});Object.defineProperty(ut,"isTypeSubTypeOf",{enumerable:!0,get:function(){return MS.isTypeSubTypeOf}});Object.defineProperty(ut,"doTypesOverlap",{enumerable:!0,get:function(){return MS.doTypesOverlap}});Object.defineProperty(ut,"assertValidName",{enumerable:!0,get:function(){return AI.assertValidName}});Object.defineProperty(ut,"isValidNameError",{enumerable:!0,get:function(){return AI.isValidNameError}});Object.defineProperty(ut,"BreakingChangeType",{enumerable:!0,get:function(){return Yg.BreakingChangeType}});Object.defineProperty(ut,"DangerousChangeType",{enumerable:!0,get:function(){return Yg.DangerousChangeType}});Object.defineProperty(ut,"findBreakingChanges",{enumerable:!0,get:function(){return Yg.findBreakingChanges}});Object.defineProperty(ut,"findDangerousChanges",{enumerable:!0,get:function(){return Yg.findDangerousChanges}});Object.defineProperty(ut,"findDeprecatedUsages",{enumerable:!0,get:function(){return fW.findDeprecatedUsages}});var X7=hS(),Z7=gS(),$7=Ag(),eW=Rx(),tW=Px(),OI=Xx(),wI=bS(),rW=$x(),jS=uI(),nW=ya(),iW=Id(),aW=ME(),oW=_d(),NI=vg(),uW=J_(),sW=sI(),lW=fI(),cW=vI(),MS=gd(),AI=SE(),Yg=kI(),fW=CI()});var Nt=U(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});Object.defineProperty(W,"version",{enumerable:!0,get:function(){return xI.version}});Object.defineProperty(W,"versionInfo",{enumerable:!0,get:function(){return xI.versionInfo}});Object.defineProperty(W,"graphql",{enumerable:!0,get:function(){return II.graphql}});Object.defineProperty(W,"graphqlSync",{enumerable:!0,get:function(){return II.graphqlSync}});Object.defineProperty(W,"GraphQLSchema",{enumerable:!0,get:function(){return Ee.GraphQLSchema}});Object.defineProperty(W,"GraphQLDirective",{enumerable:!0,get:function(){return Ee.GraphQLDirective}});Object.defineProperty(W,"GraphQLScalarType",{enumerable:!0,get:function(){return Ee.GraphQLScalarType}});Object.defineProperty(W,"GraphQLObjectType",{enumerable:!0,get:function(){return Ee.GraphQLObjectType}});Object.defineProperty(W,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Ee.GraphQLInterfaceType}});Object.defineProperty(W,"GraphQLUnionType",{enumerable:!0,get:function(){return Ee.GraphQLUnionType}});Object.defineProperty(W,"GraphQLEnumType",{enumerable:!0,get:function(){return Ee.GraphQLEnumType}});Object.defineProperty(W,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Ee.GraphQLInputObjectType}});Object.defineProperty(W,"GraphQLList",{enumerable:!0,get:function(){return Ee.GraphQLList}});Object.defineProperty(W,"GraphQLNonNull",{enumerable:!0,get:function(){return Ee.GraphQLNonNull}});Object.defineProperty(W,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ee.specifiedScalarTypes}});Object.defineProperty(W,"GraphQLInt",{enumerable:!0,get:function(){return Ee.GraphQLInt}});Object.defineProperty(W,"GraphQLFloat",{enumerable:!0,get:function(){return Ee.GraphQLFloat}});Object.defineProperty(W,"GraphQLString",{enumerable:!0,get:function(){return Ee.GraphQLString}});Object.defineProperty(W,"GraphQLBoolean",{enumerable:!0,get:function(){return Ee.GraphQLBoolean}});Object.defineProperty(W,"GraphQLID",{enumerable:!0,get:function(){return Ee.GraphQLID}});Object.defineProperty(W,"specifiedDirectives",{enumerable:!0,get:function(){return Ee.specifiedDirectives}});Object.defineProperty(W,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ee.GraphQLIncludeDirective}});Object.defineProperty(W,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ee.GraphQLSkipDirective}});Object.defineProperty(W,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ee.GraphQLDeprecatedDirective}});Object.defineProperty(W,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ee.GraphQLSpecifiedByDirective}});Object.defineProperty(W,"TypeKind",{enumerable:!0,get:function(){return Ee.TypeKind}});Object.defineProperty(W,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ee.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(W,"introspectionTypes",{enumerable:!0,get:function(){return Ee.introspectionTypes}});Object.defineProperty(W,"__Schema",{enumerable:!0,get:function(){return Ee.__Schema}});Object.defineProperty(W,"__Directive",{enumerable:!0,get:function(){return Ee.__Directive}});Object.defineProperty(W,"__DirectiveLocation",{enumerable:!0,get:function(){return Ee.__DirectiveLocation}});Object.defineProperty(W,"__Type",{enumerable:!0,get:function(){return Ee.__Type}});Object.defineProperty(W,"__Field",{enumerable:!0,get:function(){return Ee.__Field}});Object.defineProperty(W,"__InputValue",{enumerable:!0,get:function(){return Ee.__InputValue}});Object.defineProperty(W,"__EnumValue",{enumerable:!0,get:function(){return Ee.__EnumValue}});Object.defineProperty(W,"__TypeKind",{enumerable:!0,get:function(){return Ee.__TypeKind}});Object.defineProperty(W,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Ee.SchemaMetaFieldDef}});Object.defineProperty(W,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Ee.TypeMetaFieldDef}});Object.defineProperty(W,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Ee.TypeNameMetaFieldDef}});Object.defineProperty(W,"isSchema",{enumerable:!0,get:function(){return Ee.isSchema}});Object.defineProperty(W,"isDirective",{enumerable:!0,get:function(){return Ee.isDirective}});Object.defineProperty(W,"isType",{enumerable:!0,get:function(){return Ee.isType}});Object.defineProperty(W,"isScalarType",{enumerable:!0,get:function(){return Ee.isScalarType}});Object.defineProperty(W,"isObjectType",{enumerable:!0,get:function(){return Ee.isObjectType}});Object.defineProperty(W,"isInterfaceType",{enumerable:!0,get:function(){return Ee.isInterfaceType}});Object.defineProperty(W,"isUnionType",{enumerable:!0,get:function(){return Ee.isUnionType}});Object.defineProperty(W,"isEnumType",{enumerable:!0,get:function(){return Ee.isEnumType}});Object.defineProperty(W,"isInputObjectType",{enumerable:!0,get:function(){return Ee.isInputObjectType}});Object.defineProperty(W,"isListType",{enumerable:!0,get:function(){return Ee.isListType}});Object.defineProperty(W,"isNonNullType",{enumerable:!0,get:function(){return Ee.isNonNullType}});Object.defineProperty(W,"isInputType",{enumerable:!0,get:function(){return Ee.isInputType}});Object.defineProperty(W,"isOutputType",{enumerable:!0,get:function(){return Ee.isOutputType}});Object.defineProperty(W,"isLeafType",{enumerable:!0,get:function(){return Ee.isLeafType}});Object.defineProperty(W,"isCompositeType",{enumerable:!0,get:function(){return Ee.isCompositeType}});Object.defineProperty(W,"isAbstractType",{enumerable:!0,get:function(){return Ee.isAbstractType}});Object.defineProperty(W,"isWrappingType",{enumerable:!0,get:function(){return Ee.isWrappingType}});Object.defineProperty(W,"isNullableType",{enumerable:!0,get:function(){return Ee.isNullableType}});Object.defineProperty(W,"isNamedType",{enumerable:!0,get:function(){return Ee.isNamedType}});Object.defineProperty(W,"isRequiredArgument",{enumerable:!0,get:function(){return Ee.isRequiredArgument}});Object.defineProperty(W,"isRequiredInputField",{enumerable:!0,get:function(){return Ee.isRequiredInputField}});Object.defineProperty(W,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ee.isSpecifiedScalarType}});Object.defineProperty(W,"isIntrospectionType",{enumerable:!0,get:function(){return Ee.isIntrospectionType}});Object.defineProperty(W,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ee.isSpecifiedDirective}});Object.defineProperty(W,"assertSchema",{enumerable:!0,get:function(){return Ee.assertSchema}});Object.defineProperty(W,"assertDirective",{enumerable:!0,get:function(){return Ee.assertDirective}});Object.defineProperty(W,"assertType",{enumerable:!0,get:function(){return Ee.assertType}});Object.defineProperty(W,"assertScalarType",{enumerable:!0,get:function(){return Ee.assertScalarType}});Object.defineProperty(W,"assertObjectType",{enumerable:!0,get:function(){return Ee.assertObjectType}});Object.defineProperty(W,"assertInterfaceType",{enumerable:!0,get:function(){return Ee.assertInterfaceType}});Object.defineProperty(W,"assertUnionType",{enumerable:!0,get:function(){return Ee.assertUnionType}});Object.defineProperty(W,"assertEnumType",{enumerable:!0,get:function(){return Ee.assertEnumType}});Object.defineProperty(W,"assertInputObjectType",{enumerable:!0,get:function(){return Ee.assertInputObjectType}});Object.defineProperty(W,"assertListType",{enumerable:!0,get:function(){return Ee.assertListType}});Object.defineProperty(W,"assertNonNullType",{enumerable:!0,get:function(){return Ee.assertNonNullType}});Object.defineProperty(W,"assertInputType",{enumerable:!0,get:function(){return Ee.assertInputType}});Object.defineProperty(W,"assertOutputType",{enumerable:!0,get:function(){return Ee.assertOutputType}});Object.defineProperty(W,"assertLeafType",{enumerable:!0,get:function(){return Ee.assertLeafType}});Object.defineProperty(W,"assertCompositeType",{enumerable:!0,get:function(){return Ee.assertCompositeType}});Object.defineProperty(W,"assertAbstractType",{enumerable:!0,get:function(){return Ee.assertAbstractType}});Object.defineProperty(W,"assertWrappingType",{enumerable:!0,get:function(){return Ee.assertWrappingType}});Object.defineProperty(W,"assertNullableType",{enumerable:!0,get:function(){return Ee.assertNullableType}});Object.defineProperty(W,"assertNamedType",{enumerable:!0,get:function(){return Ee.assertNamedType}});Object.defineProperty(W,"getNullableType",{enumerable:!0,get:function(){return Ee.getNullableType}});Object.defineProperty(W,"getNamedType",{enumerable:!0,get:function(){return Ee.getNamedType}});Object.defineProperty(W,"validateSchema",{enumerable:!0,get:function(){return Ee.validateSchema}});Object.defineProperty(W,"assertValidSchema",{enumerable:!0,get:function(){return Ee.assertValidSchema}});Object.defineProperty(W,"Token",{enumerable:!0,get:function(){return jt.Token}});Object.defineProperty(W,"Source",{enumerable:!0,get:function(){return jt.Source}});Object.defineProperty(W,"Location",{enumerable:!0,get:function(){return jt.Location}});Object.defineProperty(W,"getLocation",{enumerable:!0,get:function(){return jt.getLocation}});Object.defineProperty(W,"printLocation",{enumerable:!0,get:function(){return jt.printLocation}});Object.defineProperty(W,"printSourceLocation",{enumerable:!0,get:function(){return jt.printSourceLocation}});Object.defineProperty(W,"Lexer",{enumerable:!0,get:function(){return jt.Lexer}});Object.defineProperty(W,"TokenKind",{enumerable:!0,get:function(){return jt.TokenKind}});Object.defineProperty(W,"parse",{enumerable:!0,get:function(){return jt.parse}});Object.defineProperty(W,"parseValue",{enumerable:!0,get:function(){return jt.parseValue}});Object.defineProperty(W,"parseType",{enumerable:!0,get:function(){return jt.parseType}});Object.defineProperty(W,"print",{enumerable:!0,get:function(){return jt.print}});Object.defineProperty(W,"visit",{enumerable:!0,get:function(){return jt.visit}});Object.defineProperty(W,"visitInParallel",{enumerable:!0,get:function(){return jt.visitInParallel}});Object.defineProperty(W,"getVisitFn",{enumerable:!0,get:function(){return jt.getVisitFn}});Object.defineProperty(W,"BREAK",{enumerable:!0,get:function(){return jt.BREAK}});Object.defineProperty(W,"Kind",{enumerable:!0,get:function(){return jt.Kind}});Object.defineProperty(W,"DirectiveLocation",{enumerable:!0,get:function(){return jt.DirectiveLocation}});Object.defineProperty(W,"isDefinitionNode",{enumerable:!0,get:function(){return jt.isDefinitionNode}});Object.defineProperty(W,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return jt.isExecutableDefinitionNode}});Object.defineProperty(W,"isSelectionNode",{enumerable:!0,get:function(){return jt.isSelectionNode}});Object.defineProperty(W,"isValueNode",{enumerable:!0,get:function(){return jt.isValueNode}});Object.defineProperty(W,"isTypeNode",{enumerable:!0,get:function(){return jt.isTypeNode}});Object.defineProperty(W,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return jt.isTypeSystemDefinitionNode}});Object.defineProperty(W,"isTypeDefinitionNode",{enumerable:!0,get:function(){return jt.isTypeDefinitionNode}});Object.defineProperty(W,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return jt.isTypeSystemExtensionNode}});Object.defineProperty(W,"isTypeExtensionNode",{enumerable:!0,get:function(){return jt.isTypeExtensionNode}});Object.defineProperty(W,"execute",{enumerable:!0,get:function(){return zl.execute}});Object.defineProperty(W,"executeSync",{enumerable:!0,get:function(){return zl.executeSync}});Object.defineProperty(W,"defaultFieldResolver",{enumerable:!0,get:function(){return zl.defaultFieldResolver}});Object.defineProperty(W,"defaultTypeResolver",{enumerable:!0,get:function(){return zl.defaultTypeResolver}});Object.defineProperty(W,"responsePathAsArray",{enumerable:!0,get:function(){return zl.responsePathAsArray}});Object.defineProperty(W,"getDirectiveValues",{enumerable:!0,get:function(){return zl.getDirectiveValues}});Object.defineProperty(W,"subscribe",{enumerable:!0,get:function(){return RI.subscribe}});Object.defineProperty(W,"createSourceEventStream",{enumerable:!0,get:function(){return RI.createSourceEventStream}});Object.defineProperty(W,"validate",{enumerable:!0,get:function(){return it.validate}});Object.defineProperty(W,"ValidationContext",{enumerable:!0,get:function(){return it.ValidationContext}});Object.defineProperty(W,"specifiedRules",{enumerable:!0,get:function(){return it.specifiedRules}});Object.defineProperty(W,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return it.ExecutableDefinitionsRule}});Object.defineProperty(W,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return it.FieldsOnCorrectTypeRule}});Object.defineProperty(W,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return it.FragmentsOnCompositeTypesRule}});Object.defineProperty(W,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return it.KnownArgumentNamesRule}});Object.defineProperty(W,"KnownDirectivesRule",{enumerable:!0,get:function(){return it.KnownDirectivesRule}});Object.defineProperty(W,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return it.KnownFragmentNamesRule}});Object.defineProperty(W,"KnownTypeNamesRule",{enumerable:!0,get:function(){return it.KnownTypeNamesRule}});Object.defineProperty(W,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return it.LoneAnonymousOperationRule}});Object.defineProperty(W,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return it.NoFragmentCyclesRule}});Object.defineProperty(W,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return it.NoUndefinedVariablesRule}});Object.defineProperty(W,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return it.NoUnusedFragmentsRule}});Object.defineProperty(W,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return it.NoUnusedVariablesRule}});Object.defineProperty(W,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return it.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(W,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return it.PossibleFragmentSpreadsRule}});Object.defineProperty(W,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return it.ProvidedRequiredArgumentsRule}});Object.defineProperty(W,"ScalarLeafsRule",{enumerable:!0,get:function(){return it.ScalarLeafsRule}});Object.defineProperty(W,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return it.SingleFieldSubscriptionsRule}});Object.defineProperty(W,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return it.UniqueArgumentNamesRule}});Object.defineProperty(W,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return it.UniqueDirectivesPerLocationRule}});Object.defineProperty(W,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return it.UniqueFragmentNamesRule}});Object.defineProperty(W,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return it.UniqueInputFieldNamesRule}});Object.defineProperty(W,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return it.UniqueOperationNamesRule}});Object.defineProperty(W,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return it.UniqueVariableNamesRule}});Object.defineProperty(W,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return it.ValuesOfCorrectTypeRule}});Object.defineProperty(W,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return it.VariablesAreInputTypesRule}});Object.defineProperty(W,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return it.VariablesInAllowedPositionRule}});Object.defineProperty(W,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return it.LoneSchemaDefinitionRule}});Object.defineProperty(W,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return it.UniqueOperationTypesRule}});Object.defineProperty(W,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return it.UniqueTypeNamesRule}});Object.defineProperty(W,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return it.UniqueEnumValueNamesRule}});Object.defineProperty(W,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return it.UniqueFieldDefinitionNamesRule}});Object.defineProperty(W,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return it.UniqueDirectiveNamesRule}});Object.defineProperty(W,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return it.PossibleTypeExtensionsRule}});Object.defineProperty(W,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return it.NoDeprecatedCustomRule}});Object.defineProperty(W,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return it.NoSchemaIntrospectionCustomRule}});Object.defineProperty(W,"GraphQLError",{enumerable:!0,get:function(){return Xd.GraphQLError}});Object.defineProperty(W,"syntaxError",{enumerable:!0,get:function(){return Xd.syntaxError}});Object.defineProperty(W,"locatedError",{enumerable:!0,get:function(){return Xd.locatedError}});Object.defineProperty(W,"printError",{enumerable:!0,get:function(){return Xd.printError}});Object.defineProperty(W,"formatError",{enumerable:!0,get:function(){return Xd.formatError}});Object.defineProperty(W,"getIntrospectionQuery",{enumerable:!0,get:function(){return pt.getIntrospectionQuery}});Object.defineProperty(W,"getOperationAST",{enumerable:!0,get:function(){return pt.getOperationAST}});Object.defineProperty(W,"getOperationRootType",{enumerable:!0,get:function(){return pt.getOperationRootType}});Object.defineProperty(W,"introspectionFromSchema",{enumerable:!0,get:function(){return pt.introspectionFromSchema}});Object.defineProperty(W,"buildClientSchema",{enumerable:!0,get:function(){return pt.buildClientSchema}});Object.defineProperty(W,"buildASTSchema",{enumerable:!0,get:function(){return pt.buildASTSchema}});Object.defineProperty(W,"buildSchema",{enumerable:!0,get:function(){return pt.buildSchema}});Object.defineProperty(W,"getDescription",{enumerable:!0,get:function(){return pt.getDescription}});Object.defineProperty(W,"extendSchema",{enumerable:!0,get:function(){return pt.extendSchema}});Object.defineProperty(W,"lexicographicSortSchema",{enumerable:!0,get:function(){return pt.lexicographicSortSchema}});Object.defineProperty(W,"printSchema",{enumerable:!0,get:function(){return pt.printSchema}});Object.defineProperty(W,"printType",{enumerable:!0,get:function(){return pt.printType}});Object.defineProperty(W,"printIntrospectionSchema",{enumerable:!0,get:function(){return pt.printIntrospectionSchema}});Object.defineProperty(W,"typeFromAST",{enumerable:!0,get:function(){return pt.typeFromAST}});Object.defineProperty(W,"valueFromAST",{enumerable:!0,get:function(){return pt.valueFromAST}});Object.defineProperty(W,"valueFromASTUntyped",{enumerable:!0,get:function(){return pt.valueFromASTUntyped}});Object.defineProperty(W,"astFromValue",{enumerable:!0,get:function(){return pt.astFromValue}});Object.defineProperty(W,"TypeInfo",{enumerable:!0,get:function(){return pt.TypeInfo}});Object.defineProperty(W,"visitWithTypeInfo",{enumerable:!0,get:function(){return pt.visitWithTypeInfo}});Object.defineProperty(W,"coerceInputValue",{enumerable:!0,get:function(){return pt.coerceInputValue}});Object.defineProperty(W,"concatAST",{enumerable:!0,get:function(){return pt.concatAST}});Object.defineProperty(W,"separateOperations",{enumerable:!0,get:function(){return pt.separateOperations}});Object.defineProperty(W,"stripIgnoredCharacters",{enumerable:!0,get:function(){return pt.stripIgnoredCharacters}});Object.defineProperty(W,"isEqualType",{enumerable:!0,get:function(){return pt.isEqualType}});Object.defineProperty(W,"isTypeSubTypeOf",{enumerable:!0,get:function(){return pt.isTypeSubTypeOf}});Object.defineProperty(W,"doTypesOverlap",{enumerable:!0,get:function(){return pt.doTypesOverlap}});Object.defineProperty(W,"assertValidName",{enumerable:!0,get:function(){return pt.assertValidName}});Object.defineProperty(W,"isValidNameError",{enumerable:!0,get:function(){return pt.isValidNameError}});Object.defineProperty(W,"BreakingChangeType",{enumerable:!0,get:function(){return pt.BreakingChangeType}});Object.defineProperty(W,"DangerousChangeType",{enumerable:!0,get:function(){return pt.DangerousChangeType}});Object.defineProperty(W,"findBreakingChanges",{enumerable:!0,get:function(){return pt.findBreakingChanges}});Object.defineProperty(W,"findDangerousChanges",{enumerable:!0,get:function(){return pt.findDangerousChanges}});Object.defineProperty(W,"findDeprecatedUsages",{enumerable:!0,get:function(){return pt.findDeprecatedUsages}});var xI=Xw(),II=ox(),Ee=sx(),jt=fx(),zl=dx(),RI=Cx(),it=wx(),Xd=Lx(),pt=LI()});var PI=U((fne,FI)=>{FI.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}}});var qI=U((dne,MI)=>{"use strict";var dW=PI(),jI={"text/plain":"Text","text/html":"Url",default:"Text"},pW="Copy to clipboard: #{key}, Enter";function hW(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function vW(e,t){var r,n,a,o,s,c,d=!1;t||(t={}),r=t.debug||!1;try{a=dW(),o=document.createRange(),s=document.getSelection(),c=document.createElement("span"),c.textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(m){if(m.stopPropagation(),t.format)if(m.preventDefault(),typeof m.clipboardData=="undefined"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=jI[t.format]||jI.default;window.clipboardData.setData(E,e)}else m.clipboardData.clearData(),m.clipboardData.setData(t.format,e);t.onCopy&&(m.preventDefault(),t.onCopy(m.clipboardData))}),document.body.appendChild(c),o.selectNodeContents(c),s.addRange(o);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(m){r&&console.error("unable to copy using execCommand: ",m),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(E){r&&console.error("unable to copy using clipboardData: ",E),r&&console.error("falling back to prompt"),n=hW("message"in t?t.message:pW),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}MI.exports=vW});var VI=U((pne,Jg)=>{"use strict";function BI(e,t){if(e!=null)return e;var r=new Error(t!==void 0?t:"Got unexpected "+e);throw r.framesToPop=1,r}Jg.exports=BI;Jg.exports.default=BI;Object.defineProperty(Jg.exports,"__esModule",{value:!0})});var GI=U(ro=>{"use strict";var gW=ro&&ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.getFragmentDependenciesForAST=ro.getFragmentDependencies=void 0;var qS=Nt(),UI=gW(VI()),mW=(e,t)=>{if(!t)return[];let r;try{r=qS.parse(e,{allowLegacySDLImplementsInterfaces:!0,allowLegacySDLEmptyFields:!0})}catch(n){return[]}return ro.getFragmentDependenciesForAST(r,t)};ro.getFragmentDependencies=mW;var yW=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;qS.visit(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let a=new Set;n.forEach(s=>{!r.has(s)&&t.has(s)&&a.add(UI.default(t.get(s)))});let o=[];return a.forEach(s=>{qS.visit(s,{FragmentSpread(c){!n.has(c.name.value)&&t.get(c.name.value)&&(a.add(UI.default(t.get(c.name.value))),n.add(c.name.value))}}),r.has(s.name.value)||o.push(s)}),o};ro.getFragmentDependenciesForAST=yW});var KI=U(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.pointToOffset=Wl.getASTNodeAtPosition=void 0;var bW=Nt();function EW(e,t,r){let n=QI(e,r),a;return bW.visit(t,{enter(o){if(o.kind!=="Name"&&o.loc&&o.loc.start<=n&&n<=o.loc.end)a=o;else return!1},leave(o){if(o.loc&&o.loc.start<=n&&n<=o.loc.end)return!1}}),a}Wl.getASTNodeAtPosition=EW;function QI(e,t){let r=e.split(`
|
|
`).slice(0,t.line);return t.character+r.map(n=>n.length+1).reduce((n,a)=>n+a,0)}Wl.pointToOffset=QI});var HI=U(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.locToRange=Sa.offsetToPosition=Sa.Position=Sa.Range=void 0;var BS=class{constructor(t,r){this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r}setStart(t,r){this.start=new Zd(t,r)}setEnd(t,r){this.end=new Zd(t,r)}};Sa.Range=BS;var Zd=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line<n.line||this.line===n.line&&this.character<=n.character,this.line=t,this.character=r}setLine(t){this.line=t}setCharacter(t){this.character=t}};Sa.Position=Zd;function VS(e,t){let r=`
|
|
`,n=e.slice(0,t),a=n.split(r).length-1,o=n.lastIndexOf(r);return new Zd(a,t-o-1)}Sa.offsetToPosition=VS;function TW(e,t){let r=VS(e,t.start),n=VS(e,t.end);return new BS(r,n)}Sa.locToRange=TW});var zI=U(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});Object.defineProperty(US,"ExecutableDefinitions",{enumerable:!0,get:function(){return _W.ExecutableDefinitionsRule}});var _W=gg()});var WI=U(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.validateWithCustomRules=void 0;var $d=Nt(),SW=zI();function DW(e,t,r,n){let a=$d.specifiedRules.filter(s=>!(s===$d.NoUnusedFragmentsRule||s===SW.ExecutableDefinitions||n&&s===$d.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(a,r),$d.validate(e,t,a).filter(s=>{if(s.message.indexOf("Unknown directive")!==-1&&s.nodes){let c=s.nodes[0];if(c&&c.kind===$d.Kind.DIRECTIVE){let d=c.name.value;if(d==="arguments"||d==="argumentDefinitions")return!1}}return!0})}Xg.validateWithCustomRules=DW});var is=U(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.validateWithCustomRules=Er.offsetToPosition=Er.locToRange=Er.Range=Er.Position=Er.pointToOffset=Er.getASTNodeAtPosition=Er.getFragmentDependenciesForAST=Er.getFragmentDependencies=void 0;var YI=GI();Object.defineProperty(Er,"getFragmentDependencies",{enumerable:!0,get:function(){return YI.getFragmentDependencies}});Object.defineProperty(Er,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return YI.getFragmentDependenciesForAST}});var JI=KI();Object.defineProperty(Er,"getASTNodeAtPosition",{enumerable:!0,get:function(){return JI.getASTNodeAtPosition}});Object.defineProperty(Er,"pointToOffset",{enumerable:!0,get:function(){return JI.pointToOffset}});var Zg=HI();Object.defineProperty(Er,"Position",{enumerable:!0,get:function(){return Zg.Position}});Object.defineProperty(Er,"Range",{enumerable:!0,get:function(){return Zg.Range}});Object.defineProperty(Er,"locToRange",{enumerable:!0,get:function(){return Zg.locToRange}});Object.defineProperty(Er,"offsetToPosition",{enumerable:!0,get:function(){return Zg.offsetToPosition}});var kW=WI();Object.defineProperty(Er,"validateWithCustomRules",{enumerable:!0,get:function(){return kW.validateWithCustomRules}})});var rR=U((kne,LW)=>{LW.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var zS=U((Cne,nR)=>{"use strict";nR.exports=rR()});var $g=U((One,iR)=>{iR.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var uR=U((wne,oR)=>{"use strict";var aR={};function xW(e){var t,r,n=aR[e];if(n)return n;for(n=aR[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}function em(e,t,r){var n,a,o,s,c,d="";for(typeof t!="string"&&(r=t,t=em.defaultChars),typeof r=="undefined"&&(r=!0),c=xW(t),n=0,a=e.length;n<a;n++){if(o=e.charCodeAt(n),r&&o===37&&n+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3))){d+=e.slice(n,n+3),n+=2;continue}if(o<128){d+=c[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<a&&(s=e.charCodeAt(n+1),s>=56320&&s<=57343)){d+=encodeURIComponent(e[n]+e[n+1]),n++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[n])}return d}em.defaultChars=";/?:@&=+$,-_.!~*'()#";em.componentChars="-_.!~*'()";oR.exports=em});var cR=U((Nne,lR)=>{"use strict";var sR={};function IW(e){var t,r,n=sR[e];if(n)return n;for(n=sR[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)r=e.charCodeAt(t),n[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}function tm(e,t){var r;return typeof t!="string"&&(t=tm.defaultChars),r=IW(t),e.replace(/(%[a-f0-9]{2})+/gi,function(n){var a,o,s,c,d,h,m,E="";for(a=0,o=n.length;a<o;a+=3){if(s=parseInt(n.slice(a+1,a+3),16),s<128){E+=r[s];continue}if((s&224)==192&&a+3<o&&(c=parseInt(n.slice(a+4,a+6),16),(c&192)==128)){m=s<<6&1984|c&63,m<128?E+="\uFFFD\uFFFD":E+=String.fromCharCode(m),a+=3;continue}if((s&240)==224&&a+6<o&&(c=parseInt(n.slice(a+4,a+6),16),d=parseInt(n.slice(a+7,a+9),16),(c&192)==128&&(d&192)==128)){m=s<<12&61440|c<<6&4032|d&63,m<2048||m>=55296&&m<=57343?E+="\uFFFD\uFFFD\uFFFD":E+=String.fromCharCode(m),a+=6;continue}if((s&248)==240&&a+9<o&&(c=parseInt(n.slice(a+4,a+6),16),d=parseInt(n.slice(a+7,a+9),16),h=parseInt(n.slice(a+10,a+12),16),(c&192)==128&&(d&192)==128&&(h&192)==128)){m=s<<18&1835008|c<<12&258048|d<<6&4032|h&63,m<65536||m>1114111?E+="\uFFFD\uFFFD\uFFFD\uFFFD":(m-=65536,E+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),a+=9;continue}E+="\uFFFD"}return E})}tm.defaultChars=";/?:@&=+$,#";tm.componentChars="";lR.exports=tm});var dR=U((Ane,fR)=>{"use strict";fR.exports=function(t){var r="";return r+=t.protocol||"",r+=t.slashes?"//":"",r+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?r+="["+t.hostname+"]":r+=t.hostname||"",r+=t.port?":"+t.port:"",r+=t.pathname||"",r+=t.search||"",r+=t.hash||"",r}});var bR=U((Lne,yR)=>{"use strict";function rm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var RW=/^([a-z0-9.+-]+:)/i,FW=/:[0-9]*$/,PW=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jW=["<",">",'"',"`"," ","\r",`
|
|
`," "],MW=["{","}","|","\\","^","`"].concat(jW),qW=["'"].concat(MW),pR=["%","/","?",";","#"].concat(qW),hR=["/","?","#"],BW=255,vR=/^[+a-z0-9A-Z_-]{0,63}$/,VW=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gR={javascript:!0,"javascript:":!0},mR={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function UW(e,t){if(e&&e instanceof rm)return e;var r=new rm;return r.parse(e,t),r}rm.prototype.parse=function(e,t){var r,n,a,o,s,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=PW.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=RW.exec(c);if(h&&(h=h[0],a=h.toLowerCase(),this.protocol=h,c=c.substr(h.length)),(t||h||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=c.substr(0,2)==="//",s&&!(h&&gR[h])&&(c=c.substr(2),this.slashes=!0)),!gR[h]&&(s||h&&!mR[h])){var m=-1;for(r=0;r<hR.length;r++)o=c.indexOf(hR[r]),o!==-1&&(m===-1||o<m)&&(m=o);var E,b;for(m===-1?b=c.lastIndexOf("@"):b=c.lastIndexOf("@",m),b!==-1&&(E=c.slice(0,b),c=c.slice(b+1),this.auth=E),m=-1,r=0;r<pR.length;r++)o=c.indexOf(pR[r]),o!==-1&&(m===-1||o<m)&&(m=o);m===-1&&(m=c.length),c[m-1]===":"&&m--;var C=c.slice(0,m);c=c.slice(m),this.parseHost(C),this.hostname=this.hostname||"";var L=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!L){var S=this.hostname.split(/\./);for(r=0,n=S.length;r<n;r++){var y=S[r];if(!!y&&!y.match(vR)){for(var T="",g=0,k=y.length;g<k;g++)y.charCodeAt(g)>127?T+="x":T+=y[g];if(!T.match(vR)){var N=S.slice(0,r),w=S.slice(r+1),D=y.match(VW);D&&(N.push(D[1]),w.unshift(D[2])),w.length&&(c=w.join(".")+c),this.hostname=N.join(".");break}}}}this.hostname.length>BW&&(this.hostname=""),L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var P=c.indexOf("?");return P!==-1&&(this.search=c.substr(P),c=c.slice(0,P)),c&&(this.pathname=c),mR[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};rm.prototype.parseHost=function(e){var t=FW.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};yR.exports=UW});var WS=U((xne,tp)=>{"use strict";tp.exports.encode=uR();tp.exports.decode=cR();tp.exports.format=dR();tp.exports.parse=bR()});var YS=U((Ine,ER)=>{ER.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var JS=U((Rne,TR)=>{TR.exports=/[\0-\x1F\x7F-\x9F]/});var SR=U((Fne,_R)=>{_R.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var XS=U((Pne,DR)=>{DR.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var kR=U(Yl=>{"use strict";Yl.Any=YS();Yl.Cc=JS();Yl.Cf=SR();Yl.P=$g();Yl.Z=XS()});var St=U(Lr=>{"use strict";function GW(e){return Object.prototype.toString.call(e)}function QW(e){return GW(e)==="[object String]"}var KW=Object.prototype.hasOwnProperty;function CR(e,t){return KW.call(e,t)}function HW(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function zW(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function OR(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function wR(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var NR=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,WW=/&([a-z#][a-z0-9]{1,31});/gi,YW=new RegExp(NR.source+"|"+WW.source,"gi"),JW=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,AR=zS();function XW(e,t){var r=0;return CR(AR,t)?AR[t]:t.charCodeAt(0)===35&&JW.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),OR(r))?wR(r):e}function ZW(e){return e.indexOf("\\")<0?e:e.replace(NR,"$1")}function $W(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(YW,function(t,r,n){return r||XW(t,n)})}var eY=/[&<>"]/,tY=/[&<>"]/g,rY={"&":"&","<":"<",">":">",'"':"""};function nY(e){return rY[e]}function iY(e){return eY.test(e)?e.replace(tY,nY):e}var aY=/[.?*+^$[\]\\(){}|-]/g;function oY(e){return e.replace(aY,"\\$&")}function uY(e){switch(e){case 9:case 32:return!0}return!1}function sY(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var lY=$g();function cY(e){return lY.test(e)}function fY(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function dY(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}Lr.lib={};Lr.lib.mdurl=WS();Lr.lib.ucmicro=kR();Lr.assign=HW;Lr.isString=QW;Lr.has=CR;Lr.unescapeMd=ZW;Lr.unescapeAll=$W;Lr.isValidEntityCode=OR;Lr.fromCodePoint=wR;Lr.escapeHtml=iY;Lr.arrayReplaceAt=zW;Lr.isSpace=uY;Lr.isWhiteSpace=sY;Lr.isMdAsciiPunct=fY;Lr.isPunctChar=cY;Lr.escapeRE=oY;Lr.normalizeReference=dY});var xR=U((qne,LR)=>{"use strict";LR.exports=function(t,r,n){var a,o,s,c,d=-1,h=t.posMax,m=t.pos;for(t.pos=r+1,a=1;t.pos<h;){if(s=t.src.charCodeAt(t.pos),s===93&&(a--,a===0)){o=!0;break}if(c=t.pos,t.md.inline.skipToken(t),s===91){if(c===t.pos-1)a++;else if(n)return t.pos=m,-1}}return o&&(d=t.pos),t.pos=m,d}});var FR=U((Bne,RR)=>{"use strict";var IR=St().unescapeAll;RR.exports=function(t,r,n){var a,o,s=0,c=r,d={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<n;){if(a=t.charCodeAt(r),a===10)return d;if(a===62)return d.pos=r+1,d.str=IR(t.slice(c+1,r)),d.ok=!0,d;if(a===92&&r+1<n){r+=2;continue}r++}return d}for(o=0;r<n&&(a=t.charCodeAt(r),!(a===32||a<32||a===127));){if(a===92&&r+1<n){r+=2;continue}if(a===40&&o++,a===41){if(o===0)break;o--}r++}return c===r||o!==0||(d.str=IR(t.slice(c,r)),d.lines=s,d.pos=r,d.ok=!0),d}});var jR=U((Vne,PR)=>{"use strict";var pY=St().unescapeAll;PR.exports=function(t,r,n){var a,o,s=0,c=r,d={ok:!1,pos:0,lines:0,str:""};if(r>=n||(o=t.charCodeAt(r),o!==34&&o!==39&&o!==40))return d;for(r++,o===40&&(o=41);r<n;){if(a=t.charCodeAt(r),a===o)return d.pos=r+1,d.lines=s,d.str=pY(t.slice(c+1,r)),d.ok=!0,d;a===10?s++:a===92&&r+1<n&&(r++,t.charCodeAt(r)===10&&s++),r++}return d}});var MR=U(nm=>{"use strict";nm.parseLinkLabel=xR();nm.parseLinkDestination=FR();nm.parseLinkTitle=jR()});var BR=U((Gne,qR)=>{"use strict";var hY=St().assign,vY=St().unescapeAll,os=St().escapeHtml,Da={};Da.code_inline=function(e,t,r,n,a){var o=e[t];return"<code"+a.renderAttrs(o)+">"+os(e[t].content)+"</code>"};Da.code_block=function(e,t,r,n,a){var o=e[t];return"<pre"+a.renderAttrs(o)+"><code>"+os(e[t].content)+`</code></pre>
|
|
`};Da.fence=function(e,t,r,n,a){var o=e[t],s=o.info?vY(o.info).trim():"",c="",d,h,m,E;return s&&(c=s.split(/\s+/g)[0]),r.highlight?d=r.highlight(o.content,c)||os(o.content):d=os(o.content),d.indexOf("<pre")===0?d+`
|
|
`:s?(h=o.attrIndex("class"),m=o.attrs?o.attrs.slice():[],h<0?m.push(["class",r.langPrefix+c]):m[h][1]+=" "+r.langPrefix+c,E={attrs:m},"<pre><code"+a.renderAttrs(E)+">"+d+`</code></pre>
|
|
`):"<pre><code"+a.renderAttrs(o)+">"+d+`</code></pre>
|
|
`};Da.image=function(e,t,r,n,a){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,r,n),a.renderToken(e,t,r)};Da.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`};Da.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`:`
|
|
`};Da.text=function(e,t){return os(e[t].content)};Da.html_block=function(e,t){return e[t].content};Da.html_inline=function(e,t){return e[t].content};function Jl(){this.rules=hY({},Da)}Jl.prototype.renderAttrs=function(t){var r,n,a;if(!t.attrs)return"";for(a="",r=0,n=t.attrs.length;r<n;r++)a+=" "+os(t.attrs[r][0])+'="'+os(t.attrs[r][1])+'"';return a};Jl.prototype.renderToken=function(t,r,n){var a,o="",s=!1,c=t[r];return c.hidden?"":(c.block&&c.nesting!==-1&&r&&t[r-1].hidden&&(o+=`
|
|
`),o+=(c.nesting===-1?"</":"<")+c.tag,o+=this.renderAttrs(c),c.nesting===0&&n.xhtmlOut&&(o+=" /"),c.block&&(s=!0,c.nesting===1&&r+1<t.length&&(a=t[r+1],(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===c.tag)&&(s=!1))),o+=s?`>
|
|
`:">",o)};Jl.prototype.renderInline=function(e,t,r){for(var n,a="",o=this.rules,s=0,c=e.length;s<c;s++)n=e[s].type,typeof o[n]!="undefined"?a+=o[n](e,s,t,r,this):a+=this.renderToken(e,s,t);return a};Jl.prototype.renderInlineAsText=function(e,t,r){for(var n="",a=0,o=e.length;a<o;a++)e[a].type==="text"?n+=e[a].content:e[a].type==="image"&&(n+=this.renderInlineAsText(e[a].children,t,r));return n};Jl.prototype.render=function(e,t,r){var n,a,o,s="",c=this.rules;for(n=0,a=e.length;n<a;n++)o=e[n].type,o==="inline"?s+=this.renderInline(e[n].children,t,r):typeof c[o]!="undefined"?s+=c[e[n].type](e,n,t,r,this):s+=this.renderToken(e,n,t,r);return s};qR.exports=Jl});var im=U((Qne,VR)=>{"use strict";function Ji(){this.__rules__=[],this.__cache__=null}Ji.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ji.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){!r.enabled||r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){!n.enabled||r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn)})})};Ji.prototype.at=function(e,t,r){var n=this.__find__(e),a=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=a.alt||[],this.__cache__=null};Ji.prototype.before=function(e,t,r,n){var a=this.__find__(e),o=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Ji.prototype.after=function(e,t,r,n){var a=this.__find__(e),o=n||{};if(a===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(a+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Ji.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ji.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!0,r.push(n)},this),this.__cache__=null,r};Ji.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Ji.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var a=this.__find__(n);if(a<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[a].enabled=!1,r.push(n)},this),this.__cache__=null,r};Ji.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};VR.exports=Ji});var GR=U((Kne,UR)=>{"use strict";var gY=/\r\n?|\n/g,mY=/\0/g;UR.exports=function(t){var r;r=t.src.replace(gY,`
|
|
`),r=r.replace(mY,"\uFFFD"),t.src=r}});var KR=U((Hne,QR)=>{"use strict";QR.exports=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var zR=U((zne,HR)=>{"use strict";HR.exports=function(t){var r=t.tokens,n,a,o;for(a=0,o=r.length;a<o;a++)n=r[a],n.type==="inline"&&t.md.inline.parse(n.content,t.md,t.env,n.children)}});var YR=U((Wne,WR)=>{"use strict";var yY=St().arrayReplaceAt;function bY(e){return/^<a[>\s]/i.test(e)}function EY(e){return/^<\/a\s*>/i.test(e)}WR.exports=function(t){var r,n,a,o,s,c,d,h,m,E,b,C,L,S,y,T,g=t.tokens,k;if(!!t.md.options.linkify){for(n=0,a=g.length;n<a;n++)if(!(g[n].type!=="inline"||!t.md.linkify.pretest(g[n].content)))for(o=g[n].children,L=0,r=o.length-1;r>=0;r--){if(c=o[r],c.type==="link_close"){for(r--;o[r].level!==c.level&&o[r].type!=="link_open";)r--;continue}if(c.type==="html_inline"&&(bY(c.content)&&L>0&&L--,EY(c.content)&&L++),!(L>0)&&c.type==="text"&&t.md.linkify.test(c.content)){for(m=c.content,k=t.md.linkify.match(m),d=[],C=c.level,b=0,h=0;h<k.length;h++)S=k[h].url,y=t.md.normalizeLink(S),!!t.md.validateLink(y)&&(T=k[h].text,k[h].schema?k[h].schema==="mailto:"&&!/^mailto:/i.test(T)?T=t.md.normalizeLinkText("mailto:"+T).replace(/^mailto:/,""):T=t.md.normalizeLinkText(T):T=t.md.normalizeLinkText("http://"+T).replace(/^http:\/\//,""),E=k[h].index,E>b&&(s=new t.Token("text","",0),s.content=m.slice(b,E),s.level=C,d.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",y]],s.level=C++,s.markup="linkify",s.info="auto",d.push(s),s=new t.Token("text","",0),s.content=T,s.level=C,d.push(s),s=new t.Token("link_close","a",-1),s.level=--C,s.markup="linkify",s.info="auto",d.push(s),b=k[h].lastIndex);b<m.length&&(s=new t.Token("text","",0),s.content=m.slice(b),s.level=C,d.push(s)),g[n].children=o=yY(o,r,d)}}}}});var ZR=U((Yne,XR)=>{"use strict";var JR=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,TY=/\((c|tm|r|p)\)/i,_Y=/\((c|tm|r|p)\)/ig,SY={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function DY(e,t){return SY[t.toLowerCase()]}function kY(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&(r.content=r.content.replace(_Y,DY)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function CY(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&JR.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1\u2014$2").replace(/(^|\s)--(\s|$)/mg,"$1\u2013$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1\u2013$2")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}XR.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(TY.test(t.tokens[r].content)&&kY(t.tokens[r].children),JR.test(t.tokens[r].content)&&CY(t.tokens[r].children))}});var aF=U((Jne,iF)=>{"use strict";var $R=St().isWhiteSpace,eF=St().isPunctChar,tF=St().isMdAsciiPunct,OY=/['"]/,rF=/['"]/g,nF="\u2019";function am(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function wY(e,t){var r,n,a,o,s,c,d,h,m,E,b,C,L,S,y,T,g,k,N,w,D;for(N=[],r=0;r<e.length;r++){for(n=e[r],d=e[r].level,g=N.length-1;g>=0&&!(N[g].level<=d);g--);if(N.length=g+1,n.type!=="text")continue;a=n.content,s=0,c=a.length;e:for(;s<c&&(rF.lastIndex=s,o=rF.exec(a),!!o);){if(y=T=!0,s=o.index+1,k=o[0]==="'",m=32,o.index-1>=0)m=a.charCodeAt(o.index-1);else for(g=r-1;g>=0&&!(e[g].type==="softbreak"||e[g].type==="hardbreak");g--)if(e[g].type==="text"){m=e[g].content.charCodeAt(e[g].content.length-1);break}if(E=32,s<c)E=a.charCodeAt(s);else for(g=r+1;g<e.length&&!(e[g].type==="softbreak"||e[g].type==="hardbreak");g++)if(e[g].type==="text"){E=e[g].content.charCodeAt(0);break}if(b=tF(m)||eF(String.fromCharCode(m)),C=tF(E)||eF(String.fromCharCode(E)),L=$R(m),S=$R(E),S?y=!1:C&&(L||b||(y=!1)),L?T=!1:b&&(S||C||(T=!1)),E===34&&o[0]==='"'&&m>=48&&m<=57&&(T=y=!1),y&&T&&(y=!1,T=C),!y&&!T){k&&(n.content=am(n.content,o.index,nF));continue}if(T){for(g=N.length-1;g>=0&&(h=N[g],!(N[g].level<d));g--)if(h.single===k&&N[g].level===d){h=N[g],k?(w=t.md.options.quotes[2],D=t.md.options.quotes[3]):(w=t.md.options.quotes[0],D=t.md.options.quotes[1]),n.content=am(n.content,o.index,D),e[h.token].content=am(e[h.token].content,h.pos,w),s+=D.length-1,h.token===r&&(s+=w.length-1),a=n.content,c=a.length,N.length=g;continue e}}y?N.push({token:r,pos:o.index,single:k,level:d}):T&&k&&(n.content=am(n.content,o.index,nF))}}}iF.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type!=="inline"||!OY.test(t.tokens[r].content)||wY(t.tokens[r].children,t)}});var om=U((Xne,oF)=>{"use strict";function Xl(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Xl.prototype.attrIndex=function(t){var r,n,a;if(!this.attrs)return-1;for(r=this.attrs,n=0,a=r.length;n<a;n++)if(r[n][0]===t)return n;return-1};Xl.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Xl.prototype.attrSet=function(t,r){var n=this.attrIndex(t),a=[t,r];n<0?this.attrPush(a):this.attrs[n]=a};Xl.prototype.attrGet=function(t){var r=this.attrIndex(t),n=null;return r>=0&&(n=this.attrs[r][1]),n};Xl.prototype.attrJoin=function(t,r){var n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};oF.exports=Xl});var lF=U((Zne,sF)=>{"use strict";var NY=om();function uF(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}uF.prototype.Token=NY;sF.exports=uF});var fF=U(($ne,cF)=>{"use strict";var AY=im(),ZS=[["normalize",GR()],["block",KR()],["inline",zR()],["linkify",YR()],["replacements",ZR()],["smartquotes",aF()]];function $S(){this.ruler=new AY;for(var e=0;e<ZS.length;e++)this.ruler.push(ZS[e][0],ZS[e][1])}$S.prototype.process=function(e){var t,r,n;for(n=this.ruler.getRules(""),t=0,r=n.length;t<r;t++)n[t](e)};$S.prototype.State=lF();cF.exports=$S});var hF=U((eie,pF)=>{"use strict";var LY=St().isSpace;function e1(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function dF(e){var t=[],r=0,n=e.length,a,o=0,s=0,c=!1,d=0;for(a=e.charCodeAt(r);r<n;)a===96?c?(c=!1,d=r):o%2==0&&(c=!0,d=r):a===124&&o%2==0&&!c&&(t.push(e.substring(s,r)),s=r+1),a===92?o++:o=0,r++,r===n&&c&&(c=!1,r=d+1),a=e.charCodeAt(r);return t.push(e.substring(s)),t}pF.exports=function(t,r,n,a){var o,s,c,d,h,m,E,b,C,L,S,y;if(r+2>n||(h=r+1,t.sCount[h]<t.blkIndent)||t.sCount[h]-t.blkIndent>=4||(c=t.bMarks[h]+t.tShift[h],c>=t.eMarks[h])||(o=t.src.charCodeAt(c++),o!==124&&o!==45&&o!==58))return!1;for(;c<t.eMarks[h];){if(o=t.src.charCodeAt(c),o!==124&&o!==45&&o!==58&&!LY(o))return!1;c++}for(s=e1(t,r+1),m=s.split("|"),C=[],d=0;d<m.length;d++){if(L=m[d].trim(),!L){if(d===0||d===m.length-1)continue;return!1}if(!/^:?-+:?$/.test(L))return!1;L.charCodeAt(L.length-1)===58?C.push(L.charCodeAt(0)===58?"center":"right"):L.charCodeAt(0)===58?C.push("left"):C.push("")}if(s=e1(t,r).trim(),s.indexOf("|")===-1||t.sCount[r]-t.blkIndent>=4||(m=dF(s.replace(/^\||\|$/g,"")),E=m.length,E>C.length))return!1;if(a)return!0;for(b=t.push("table_open","table",1),b.map=S=[r,0],b=t.push("thead_open","thead",1),b.map=[r,r+1],b=t.push("tr_open","tr",1),b.map=[r,r+1],d=0;d<m.length;d++)b=t.push("th_open","th",1),b.map=[r,r+1],C[d]&&(b.attrs=[["style","text-align:"+C[d]]]),b=t.push("inline","",0),b.content=m[d].trim(),b.map=[r,r+1],b.children=[],b=t.push("th_close","th",-1);for(b=t.push("tr_close","tr",-1),b=t.push("thead_close","thead",-1),b=t.push("tbody_open","tbody",1),b.map=y=[r+2,0],h=r+2;h<n&&!(t.sCount[h]<t.blkIndent||(s=e1(t,h).trim(),s.indexOf("|")===-1)||t.sCount[h]-t.blkIndent>=4);h++){for(m=dF(s.replace(/^\||\|$/g,"")),b=t.push("tr_open","tr",1),d=0;d<E;d++)b=t.push("td_open","td",1),C[d]&&(b.attrs=[["style","text-align:"+C[d]]]),b=t.push("inline","",0),b.content=m[d]?m[d].trim():"",b.children=[],b=t.push("td_close","td",-1);b=t.push("tr_close","tr",-1)}return b=t.push("tbody_close","tbody",-1),b=t.push("table_close","table",-1),S[1]=y[1]=h,t.line=h,!0}});var gF=U((tie,vF)=>{"use strict";vF.exports=function(t,r,n){var a,o,s;if(t.sCount[r]-t.blkIndent<4)return!1;for(o=a=r+1;a<n;){if(t.isEmpty(a)){a++;continue}if(t.sCount[a]-t.blkIndent>=4){a++,o=a;continue}break}return t.line=o,s=t.push("code_block","code",0),s.content=t.getLines(r,o,4+t.blkIndent,!0),s.map=[r,t.line],!0}});var yF=U((rie,mF)=>{"use strict";mF.exports=function(t,r,n,a){var o,s,c,d,h,m,E,b=!1,C=t.bMarks[r]+t.tShift[r],L=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||C+3>L||(o=t.src.charCodeAt(C),o!==126&&o!==96)||(h=C,C=t.skipChars(C,o),s=C-h,s<3)||(E=t.src.slice(h,C),c=t.src.slice(C,L),o===96&&c.indexOf(String.fromCharCode(o))>=0))return!1;if(a)return!0;for(d=r;d++,!(d>=n||(C=h=t.bMarks[d]+t.tShift[d],L=t.eMarks[d],C<L&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(C)===o&&!(t.sCount[d]-t.blkIndent>=4)&&(C=t.skipChars(C,o),!(C-h<s)&&(C=t.skipSpaces(C),!(C<L)))){b=!0;break}return s=t.sCount[r],t.line=d+(b?1:0),m=t.push("fence","code",0),m.info=c,m.content=t.getLines(r+1,d,s,!0),m.markup=E,m.map=[r,t.line],!0}});var TF=U((nie,EF)=>{"use strict";var bF=St().isSpace;EF.exports=function(t,r,n,a){var o,s,c,d,h,m,E,b,C,L,S,y,T,g,k,N,w,D,F,P,B=t.lineMax,z=t.bMarks[r]+t.tShift[r],G=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(z++)!==62)return!1;if(a)return!0;for(d=C=t.sCount[r]+z-(t.bMarks[r]+t.tShift[r]),t.src.charCodeAt(z)===32?(z++,d++,C++,o=!1,N=!0):t.src.charCodeAt(z)===9?(N=!0,(t.bsCount[r]+C)%4==3?(z++,d++,C++,o=!1):o=!0):N=!1,L=[t.bMarks[r]],t.bMarks[r]=z;z<G&&(s=t.src.charCodeAt(z),bF(s));){s===9?C+=4-(C+t.bsCount[r]+(o?1:0))%4:C++;z++}for(S=[t.bsCount[r]],t.bsCount[r]=t.sCount[r]+1+(N?1:0),m=z>=G,g=[t.sCount[r]],t.sCount[r]=C-d,k=[t.tShift[r]],t.tShift[r]=z-t.bMarks[r],D=t.md.block.ruler.getRules("blockquote"),T=t.parentType,t.parentType="blockquote",P=!1,b=r+1;b<n&&(t.sCount[b]<t.blkIndent&&(P=!0),z=t.bMarks[b]+t.tShift[b],G=t.eMarks[b],!(z>=G));b++){if(t.src.charCodeAt(z++)===62&&!P){for(d=C=t.sCount[b]+z-(t.bMarks[b]+t.tShift[b]),t.src.charCodeAt(z)===32?(z++,d++,C++,o=!1,N=!0):t.src.charCodeAt(z)===9?(N=!0,(t.bsCount[b]+C)%4==3?(z++,d++,C++,o=!1):o=!0):N=!1,L.push(t.bMarks[b]),t.bMarks[b]=z;z<G&&(s=t.src.charCodeAt(z),bF(s));){s===9?C+=4-(C+t.bsCount[b]+(o?1:0))%4:C++;z++}m=z>=G,S.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(N?1:0),g.push(t.sCount[b]),t.sCount[b]=C-d,k.push(t.tShift[b]),t.tShift[b]=z-t.bMarks[b];continue}if(m)break;for(w=!1,c=0,h=D.length;c<h;c++)if(D[c](t,b,n,!0)){w=!0;break}if(w){t.lineMax=b,t.blkIndent!==0&&(L.push(t.bMarks[b]),S.push(t.bsCount[b]),k.push(t.tShift[b]),g.push(t.sCount[b]),t.sCount[b]-=t.blkIndent);break}L.push(t.bMarks[b]),S.push(t.bsCount[b]),k.push(t.tShift[b]),g.push(t.sCount[b]),t.sCount[b]=-1}for(y=t.blkIndent,t.blkIndent=0,F=t.push("blockquote_open","blockquote",1),F.markup=">",F.map=E=[r,0],t.md.block.tokenize(t,r,b),F=t.push("blockquote_close","blockquote",-1),F.markup=">",t.lineMax=B,t.parentType=T,E[1]=t.line,c=0;c<k.length;c++)t.bMarks[c+r]=L[c],t.tShift[c+r]=k[c],t.sCount[c+r]=g[c],t.bsCount[c+r]=S[c];return t.blkIndent=y,!0}});var SF=U((iie,_F)=>{"use strict";var xY=St().isSpace;_F.exports=function(t,r,n,a){var o,s,c,d,h=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h<m;){if(c=t.src.charCodeAt(h++),c!==o&&!xY(c))return!1;c===o&&s++}return s<3?!1:(a||(t.line=r+1,d=t.push("hr","hr",0),d.map=[r,t.line],d.markup=Array(s+1).join(String.fromCharCode(o))),!0)}});var wF=U((aie,OF)=>{"use strict";var DF=St().isSpace;function kF(e,t){var r,n,a,o;return n=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n<a&&(o=e.src.charCodeAt(n),!DF(o))?-1:n}function CF(e,t){var r,n=e.bMarks[t]+e.tShift[t],a=n,o=e.eMarks[t];if(a+1>=o||(r=e.src.charCodeAt(a++),r<48||r>57))return-1;for(;;){if(a>=o)return-1;if(r=e.src.charCodeAt(a++),r>=48&&r<=57){if(a-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return a<o&&(r=e.src.charCodeAt(a),!DF(r))?-1:a}function IY(e,t){var r,n,a=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===a&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}OF.exports=function(t,r,n,a){var o,s,c,d,h,m,E,b,C,L,S,y,T,g,k,N,w,D,F,P,B,z,G,M,j,ce,ke,pe,we=!1,Ne=!0;if(t.sCount[r]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]<t.blkIndent)return!1;if(a&&t.parentType==="paragraph"&&t.tShift[r]>=t.blkIndent&&(we=!0),(G=CF(t,r))>=0){if(E=!0,j=t.bMarks[r]+t.tShift[r],T=Number(t.src.substr(j,G-j-1)),we&&T!==1)return!1}else if((G=kF(t,r))>=0)E=!1;else return!1;if(we&&t.skipSpaces(G)>=t.eMarks[r])return!1;if(y=t.src.charCodeAt(G-1),a)return!0;for(S=t.tokens.length,E?(pe=t.push("ordered_list_open","ol",1),T!==1&&(pe.attrs=[["start",T]])):pe=t.push("bullet_list_open","ul",1),pe.map=L=[r,0],pe.markup=String.fromCharCode(y),k=r,M=!1,ke=t.md.block.ruler.getRules("list"),D=t.parentType,t.parentType="list";k<n;){for(z=G,g=t.eMarks[k],m=N=t.sCount[k]+G-(t.bMarks[r]+t.tShift[r]);z<g;){if(o=t.src.charCodeAt(z),o===9)N+=4-(N+t.bsCount[k])%4;else if(o===32)N++;else break;z++}if(s=z,s>=g?h=1:h=N-m,h>4&&(h=1),d=m+h,pe=t.push("list_item_open","li",1),pe.markup=String.fromCharCode(y),pe.map=b=[r,0],B=t.tight,P=t.tShift[r],F=t.sCount[r],w=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=d,t.tight=!0,t.tShift[r]=s-t.bMarks[r],t.sCount[r]=N,s>=g&&t.isEmpty(r+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,r,n,!0),(!t.tight||M)&&(Ne=!1),M=t.line-r>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=w,t.tShift[r]=P,t.sCount[r]=F,t.tight=B,pe=t.push("list_item_close","li",-1),pe.markup=String.fromCharCode(y),k=r=t.line,b[1]=k,s=t.bMarks[r],k>=n||t.sCount[k]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)break;for(ce=!1,c=0,C=ke.length;c<C;c++)if(ke[c](t,k,n,!0)){ce=!0;break}if(ce)break;if(E){if(G=CF(t,k),G<0)break}else if(G=kF(t,k),G<0)break;if(y!==t.src.charCodeAt(G-1))break}return E?pe=t.push("ordered_list_close","ol",-1):pe=t.push("bullet_list_close","ul",-1),pe.markup=String.fromCharCode(y),L[1]=k,t.line=k,t.parentType=D,Ne&&IY(t,S),!0}});var AF=U((oie,NF)=>{"use strict";var RY=St().normalizeReference,um=St().isSpace;NF.exports=function(t,r,n,a){var o,s,c,d,h,m,E,b,C,L,S,y,T,g,k,N,w=0,D=t.bMarks[r]+t.tShift[r],F=t.eMarks[r],P=r+1;if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(D)!==91)return!1;for(;++D<F;)if(t.src.charCodeAt(D)===93&&t.src.charCodeAt(D-1)!==92){if(D+1===F||t.src.charCodeAt(D+1)!==58)return!1;break}for(d=t.lineMax,k=t.md.block.ruler.getRules("reference"),L=t.parentType,t.parentType="reference";P<d&&!t.isEmpty(P);P++)if(!(t.sCount[P]-t.blkIndent>3)&&!(t.sCount[P]<0)){for(g=!1,m=0,E=k.length;m<E;m++)if(k[m](t,P,d,!0)){g=!0;break}if(g)break}for(T=t.getLines(r,P,t.blkIndent,!1).trim(),F=T.length,D=1;D<F;D++){if(o=T.charCodeAt(D),o===91)return!1;if(o===93){C=D;break}else o===10?w++:o===92&&(D++,D<F&&T.charCodeAt(D)===10&&w++)}if(C<0||T.charCodeAt(C+1)!==58)return!1;for(D=C+2;D<F;D++)if(o=T.charCodeAt(D),o===10)w++;else if(!um(o))break;if(S=t.md.helpers.parseLinkDestination(T,D,F),!S.ok||(h=t.md.normalizeLink(S.str),!t.md.validateLink(h)))return!1;for(D=S.pos,w+=S.lines,s=D,c=w,y=D;D<F;D++)if(o=T.charCodeAt(D),o===10)w++;else if(!um(o))break;for(S=t.md.helpers.parseLinkTitle(T,D,F),D<F&&y!==D&&S.ok?(N=S.str,D=S.pos,w+=S.lines):(N="",D=s,w=c);D<F&&(o=T.charCodeAt(D),!!um(o));)D++;if(D<F&&T.charCodeAt(D)!==10&&N)for(N="",D=s,w=c;D<F&&(o=T.charCodeAt(D),!!um(o));)D++;return D<F&&T.charCodeAt(D)!==10||(b=RY(T.slice(1,C)),!b)?!1:(a||(typeof t.env.references=="undefined"&&(t.env.references={}),typeof t.env.references[b]=="undefined"&&(t.env.references[b]={title:N,href:h}),t.parentType=L,t.line=r+w+1),!0)}});var IF=U((uie,xF)=>{"use strict";var LF=St().isSpace;xF.exports=function(t,r,n,a){var o,s,c,d,h=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h),o!==35||h>=m))return!1;for(s=1,o=t.src.charCodeAt(++h);o===35&&h<m&&s<=6;)s++,o=t.src.charCodeAt(++h);return s>6||h<m&&!LF(o)?!1:(a||(m=t.skipSpacesBack(m,h),c=t.skipCharsBack(m,35,h),c>h&&LF(t.src.charCodeAt(c-1))&&(m=c),t.line=r+1,d=t.push("heading_open","h"+String(s),1),d.markup="########".slice(0,s),d.map=[r,t.line],d=t.push("inline","",0),d.content=t.src.slice(h,m).trim(),d.map=[r,t.line],d.children=[],d=t.push("heading_close","h"+String(s),-1),d.markup="########".slice(0,s)),!0)}});var FF=U((sie,RF)=>{"use strict";RF.exports=function(t,r,n){var a,o,s,c,d,h,m,E,b,C=r+1,L,S=t.md.block.ruler.getRules("paragraph");if(t.sCount[r]-t.blkIndent>=4)return!1;for(L=t.parentType,t.parentType="paragraph";C<n&&!t.isEmpty(C);C++)if(!(t.sCount[C]-t.blkIndent>3)){if(t.sCount[C]>=t.blkIndent&&(h=t.bMarks[C]+t.tShift[C],m=t.eMarks[C],h<m&&(b=t.src.charCodeAt(h),(b===45||b===61)&&(h=t.skipChars(h,b),h=t.skipSpaces(h),h>=m)))){E=b===61?1:2;break}if(!(t.sCount[C]<0)){for(o=!1,s=0,c=S.length;s<c;s++)if(S[s](t,C,n,!0)){o=!0;break}if(o)break}}return E?(a=t.getLines(r,C,t.blkIndent,!1).trim(),t.line=C+1,d=t.push("heading_open","h"+String(E),1),d.markup=String.fromCharCode(b),d.map=[r,t.line],d=t.push("inline","",0),d.content=a,d.map=[r,t.line-1],d.children=[],d=t.push("heading_close","h"+String(E),-1),d.markup=String.fromCharCode(b),t.parentType=L,!0):!1}});var jF=U((lie,PF)=>{"use strict";PF.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var r1=U((cie,t1)=>{"use strict";var FY="[a-zA-Z_:][a-zA-Z0-9:._-]*",PY="[^\"'=<>`\\x00-\\x20]+",jY="'[^']*'",MY='"[^"]*"',qY="(?:"+PY+"|"+jY+"|"+MY+")",BY="(?:\\s+"+FY+"(?:\\s*=\\s*"+qY+")?)",MF="<[A-Za-z][A-Za-z0-9\\-]*"+BY+"*\\s*\\/?>",qF="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",VY="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",UY="<[?].*?[?]>",GY="<![A-Z]+\\s+[^>]*>",QY="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",KY=new RegExp("^(?:"+MF+"|"+qF+"|"+VY+"|"+UY+"|"+GY+"|"+QY+")"),HY=new RegExp("^(?:"+MF+"|"+qF+")");t1.exports.HTML_TAG_RE=KY;t1.exports.HTML_OPEN_CLOSE_TAG_RE=HY});var VF=U((fie,BF)=>{"use strict";var zY=jF(),WY=r1().HTML_OPEN_CLOSE_TAG_RE,Zl=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+zY.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(WY.source+"\\s*$"),/^$/,!1]];BF.exports=function(t,r,n,a){var o,s,c,d,h=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(h)!==60)return!1;for(d=t.src.slice(h,m),o=0;o<Zl.length&&!Zl[o][0].test(d);o++);if(o===Zl.length)return!1;if(a)return Zl[o][2];if(s=r+1,!Zl[o][1].test(d)){for(;s<n&&!(t.sCount[s]<t.blkIndent);s++)if(h=t.bMarks[s]+t.tShift[s],m=t.eMarks[s],d=t.src.slice(h,m),Zl[o][1].test(d)){d.length!==0&&s++;break}}return t.line=s,c=t.push("html_block","",0),c.map=[r,s],c.content=t.getLines(r,s,t.blkIndent,!0),!0}});var GF=U((die,UF)=>{"use strict";UF.exports=function(t,r){var n,a,o,s,c,d,h=r+1,m=t.md.block.ruler.getRules("paragraph"),E=t.lineMax;for(d=t.parentType,t.parentType="paragraph";h<E&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)&&!(t.sCount[h]<0)){for(a=!1,o=0,s=m.length;o<s;o++)if(m[o](t,h,E,!0)){a=!0;break}if(a)break}return n=t.getLines(r,h,t.blkIndent,!1).trim(),t.line=h,c=t.push("paragraph_open","p",1),c.map=[r,t.line],c=t.push("inline","",0),c.content=n,c.map=[r,t.line],c.children=[],c=t.push("paragraph_close","p",-1),t.parentType=d,!0}});var HF=U((pie,KF)=>{"use strict";var QF=om(),sm=St().isSpace;function ka(e,t,r,n){var a,o,s,c,d,h,m,E;for(this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,E=!1,s=c=h=m=0,d=o.length;c<d;c++){if(a=o.charCodeAt(c),!E)if(sm(a)){h++,a===9?m+=4-m%4:m++;continue}else E=!0;(a===10||c===d-1)&&(a!==10&&c++,this.bMarks.push(s),this.eMarks.push(c),this.tShift.push(h),this.sCount.push(m),this.bsCount.push(0),E=!1,h=0,m=0,s=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ka.prototype.push=function(e,t,r){var n=new QF(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};ka.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};ka.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};ka.prototype.skipSpaces=function(t){for(var r,n=this.src.length;t<n&&(r=this.src.charCodeAt(t),!!sm(r));t++);return t};ka.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!sm(this.src.charCodeAt(--t)))return t+1;return t};ka.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};ka.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};ka.prototype.getLines=function(t,r,n,a){var o,s,c,d,h,m,E,b=t;if(t>=r)return"";for(m=new Array(r-t),o=0;b<r;b++,o++){for(s=0,E=d=this.bMarks[b],b+1<r||a?h=this.eMarks[b]+1:h=this.eMarks[b];d<h&&s<n;){if(c=this.src.charCodeAt(d),sm(c))c===9?s+=4-(s+this.bsCount[b])%4:s++;else if(d-E<this.tShift[b])s++;else break;d++}s>n?m[o]=new Array(s-n+1).join(" ")+this.src.slice(d,h):m[o]=this.src.slice(d,h)}return m.join("")};ka.prototype.Token=QF;KF.exports=ka});var WF=U((hie,zF)=>{"use strict";var YY=im(),lm=[["table",hF(),["paragraph","reference"]],["code",gF()],["fence",yF(),["paragraph","reference","blockquote","list"]],["blockquote",TF(),["paragraph","reference","blockquote","list"]],["hr",SF(),["paragraph","reference","blockquote","list"]],["list",wF(),["paragraph","reference","blockquote"]],["reference",AF()],["heading",IF(),["paragraph","reference","blockquote"]],["lheading",FF()],["html_block",VF(),["paragraph","reference","blockquote"]],["paragraph",GF()]];function cm(){this.ruler=new YY;for(var e=0;e<lm.length;e++)this.ruler.push(lm[e][0],lm[e][1],{alt:(lm[e][2]||[]).slice()})}cm.prototype.tokenize=function(e,t,r){for(var n,a,o=this.ruler.getRules(""),s=o.length,c=t,d=!1,h=e.md.options.maxNesting;c<r&&(e.line=c=e.skipEmptyLines(c),!(c>=r||e.sCount[c]<e.blkIndent));){if(e.level>=h){e.line=r;break}for(a=0;a<s&&(n=o[a](e,c,r,!1),!n);a++);e.tight=!d,e.isEmpty(e.line-1)&&(d=!0),c=e.line,c<r&&e.isEmpty(c)&&(d=!0,c++,e.line=c)}};cm.prototype.parse=function(e,t,r,n){var a;!e||(a=new this.State(e,t,r,n),this.tokenize(a,a.line,a.lineMax))};cm.prototype.State=HF();zF.exports=cm});var JF=U((vie,YF)=>{"use strict";function JY(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}YF.exports=function(t,r){for(var n=t.pos;n<t.posMax&&!JY(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(r||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}});var ZF=U((gie,XF)=>{"use strict";var XY=St().isSpace;XF.exports=function(t,r){var n,a,o=t.pos;if(t.src.charCodeAt(o)!==10)return!1;for(n=t.pending.length-1,a=t.posMax,r||(n>=0&&t.pending.charCodeAt(n)===32?n>=1&&t.pending.charCodeAt(n-1)===32?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),o++;o<a&&XY(t.src.charCodeAt(o));)o++;return t.pos=o,!0}});var tP=U((mie,eP)=>{"use strict";var ZY=St().isSpace,n1=[];for(var $F=0;$F<256;$F++)n1.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){n1[e.charCodeAt(0)]=1});eP.exports=function(t,r){var n,a=t.pos,o=t.posMax;if(t.src.charCodeAt(a)!==92)return!1;if(a++,a<o){if(n=t.src.charCodeAt(a),n<256&&n1[n]!==0)return r||(t.pending+=t.src[a]),t.pos+=2,!0;if(n===10){for(r||t.push("hardbreak","br",0),a++;a<o&&(n=t.src.charCodeAt(a),!!ZY(n));)a++;return t.pos=a,!0}}return r||(t.pending+="\\"),t.pos++,!0}});var nP=U((yie,rP)=>{"use strict";rP.exports=function(t,r){var n,a,o,s,c,d,h=t.pos,m=t.src.charCodeAt(h);if(m!==96)return!1;for(n=h,h++,a=t.posMax;h<a&&t.src.charCodeAt(h)===96;)h++;for(o=t.src.slice(n,h),s=c=h;(s=t.src.indexOf("`",c))!==-1;){for(c=s+1;c<a&&t.src.charCodeAt(c)===96;)c++;if(c-s===o.length)return r||(d=t.push("code_inline","code",0),d.markup=o,d.content=t.src.slice(h,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=c,!0}return r||(t.pending+=o),t.pos+=o.length,!0}});var a1=U((bie,i1)=>{"use strict";i1.exports.tokenize=function(t,r){var n,a,o,s,c,d=t.pos,h=t.src.charCodeAt(d);if(r||h!==126||(a=t.scanDelims(t.pos,!0),s=a.length,c=String.fromCharCode(h),s<2))return!1;for(s%2&&(o=t.push("text","",0),o.content=c,s--),n=0;n<s;n+=2)o=t.push("text","",0),o.content=c+c,t.delimiters.push({marker:h,length:0,jump:n,token:t.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return t.pos+=a.length,!0};function iP(e,t){var r,n,a,o,s,c=[],d=t.length;for(r=0;r<d;r++)a=t[r],a.marker===126&&a.end!==-1&&(o=t[a.end],s=e.tokens[a.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=e.tokens[o.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&c.push(o.token-1));for(;c.length;){for(r=c.pop(),n=r+1;n<e.tokens.length&&e.tokens[n].type==="s_close";)n++;n--,r!==n&&(s=e.tokens[n],e.tokens[n]=e.tokens[r],e.tokens[r]=s)}}i1.exports.postProcess=function(t){var r,n=t.tokens_meta,a=t.tokens_meta.length;for(iP(t,t.delimiters),r=0;r<a;r++)n[r]&&n[r].delimiters&&iP(t,n[r].delimiters)}});var u1=U((Eie,o1)=>{"use strict";o1.exports.tokenize=function(t,r){var n,a,o,s=t.pos,c=t.src.charCodeAt(s);if(r||c!==95&&c!==42)return!1;for(a=t.scanDelims(t.pos,c===42),n=0;n<a.length;n++)o=t.push("text","",0),o.content=String.fromCharCode(c),t.delimiters.push({marker:c,length:a.length,jump:n,token:t.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return t.pos+=a.length,!0};function aP(e,t){var r,n,a,o,s,c,d=t.length;for(r=d-1;r>=0;r--)n=t[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(a=t[n.end],c=r>0&&t[r-1].end===n.end+1&&t[r-1].token===n.token-1&&t[n.end+1].token===a.token+1&&t[r-1].marker===n.marker,s=String.fromCharCode(n.marker),o=e.tokens[n.token],o.type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?s+s:s,o.content="",o=e.tokens[a.token],o.type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?s+s:s,o.content="",c&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}o1.exports.postProcess=function(t){var r,n=t.tokens_meta,a=t.tokens_meta.length;for(aP(t,t.delimiters),r=0;r<a;r++)n[r]&&n[r].delimiters&&aP(t,n[r].delimiters)}});var uP=U((Tie,oP)=>{"use strict";var $Y=St().normalizeReference,s1=St().isSpace;oP.exports=function(t,r){var n,a,o,s,c,d,h,m,E,b,C="",L=t.pos,S=t.posMax,y=t.pos,T=!0;if(t.src.charCodeAt(t.pos)!==91||(c=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(d=s+1,d<S&&t.src.charCodeAt(d)===40){for(T=!1,d++;d<S&&(a=t.src.charCodeAt(d),!(!s1(a)&&a!==10));d++);if(d>=S)return!1;for(y=d,h=t.md.helpers.parseLinkDestination(t.src,d,t.posMax),h.ok&&(C=t.md.normalizeLink(h.str),t.md.validateLink(C)?d=h.pos:C=""),y=d;d<S&&(a=t.src.charCodeAt(d),!(!s1(a)&&a!==10));d++);if(h=t.md.helpers.parseLinkTitle(t.src,d,t.posMax),d<S&&y!==d&&h.ok)for(E=h.str,d=h.pos;d<S&&(a=t.src.charCodeAt(d),!(!s1(a)&&a!==10));d++);else E="";(d>=S||t.src.charCodeAt(d)!==41)&&(T=!0),d++}if(T){if(typeof t.env.references=="undefined")return!1;if(d<S&&t.src.charCodeAt(d)===91?(y=d+1,d=t.md.helpers.parseLinkLabel(t,d),d>=0?o=t.src.slice(y,d++):d=s+1):d=s+1,o||(o=t.src.slice(c,s)),m=t.env.references[$Y(o)],!m)return t.pos=L,!1;C=m.href,E=m.title}return r||(t.pos=c,t.posMax=s,b=t.push("link_open","a",1),b.attrs=n=[["href",C]],E&&n.push(["title",E]),t.md.inline.tokenize(t),b=t.push("link_close","a",-1)),t.pos=d,t.posMax=S,!0}});var lP=U((_ie,sP)=>{"use strict";var eJ=St().normalizeReference,l1=St().isSpace;sP.exports=function(t,r){var n,a,o,s,c,d,h,m,E,b,C,L,S,y="",T=t.pos,g=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(d=t.pos+2,c=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),c<0))return!1;if(h=c+1,h<g&&t.src.charCodeAt(h)===40){for(h++;h<g&&(a=t.src.charCodeAt(h),!(!l1(a)&&a!==10));h++);if(h>=g)return!1;for(S=h,E=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),E.ok&&(y=t.md.normalizeLink(E.str),t.md.validateLink(y)?h=E.pos:y=""),S=h;h<g&&(a=t.src.charCodeAt(h),!(!l1(a)&&a!==10));h++);if(E=t.md.helpers.parseLinkTitle(t.src,h,t.posMax),h<g&&S!==h&&E.ok)for(b=E.str,h=E.pos;h<g&&(a=t.src.charCodeAt(h),!(!l1(a)&&a!==10));h++);else b="";if(h>=g||t.src.charCodeAt(h)!==41)return t.pos=T,!1;h++}else{if(typeof t.env.references=="undefined")return!1;if(h<g&&t.src.charCodeAt(h)===91?(S=h+1,h=t.md.helpers.parseLinkLabel(t,h),h>=0?s=t.src.slice(S,h++):h=c+1):h=c+1,s||(s=t.src.slice(d,c)),m=t.env.references[eJ(s)],!m)return t.pos=T,!1;y=m.href,b=m.title}return r||(o=t.src.slice(d,c),t.md.inline.parse(o,t.md,t.env,L=[]),C=t.push("image","img",0),C.attrs=n=[["src",y],["alt",""]],C.children=L,C.content=o,b&&n.push(["title",b])),t.pos=h,t.posMax=g,!0}});var pP=U((Sie,dP)=>{"use strict";var cP=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,fP=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;dP.exports=function(t,r){var n,a,o,s,c,d,h=t.pos;return t.src.charCodeAt(h)!==60||(n=t.src.slice(h),n.indexOf(">")<0)?!1:fP.test(n)?(a=n.match(fP),s=a[0].slice(1,-1),c=t.md.normalizeLink(s),t.md.validateLink(c)?(r||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(s),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=a[0].length,!0):!1):cP.test(n)?(o=n.match(cP),s=o[0].slice(1,-1),c=t.md.normalizeLink("mailto:"+s),t.md.validateLink(c)?(r||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(s),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=o[0].length,!0):!1):!1}});var vP=U((Die,hP)=>{"use strict";var tJ=r1().HTML_TAG_RE;function rJ(e){var t=e|32;return t>=97&&t<=122}hP.exports=function(t,r){var n,a,o,s,c=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(c)!==60||c+2>=o)||(n=t.src.charCodeAt(c+1),n!==33&&n!==63&&n!==47&&!rJ(n))||(a=t.src.slice(c).match(tJ),!a)?!1:(r||(s=t.push("html_inline","",0),s.content=t.src.slice(c,c+a[0].length)),t.pos+=a[0].length,!0)}});var bP=U((kie,yP)=>{"use strict";var gP=zS(),nJ=St().has,iJ=St().isValidEntityCode,mP=St().fromCodePoint,aJ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oJ=/^&([a-z][a-z0-9]{1,31});/i;yP.exports=function(t,r){var n,a,o,s=t.pos,c=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1<c){if(n=t.src.charCodeAt(s+1),n===35){if(o=t.src.slice(s).match(aJ),o)return r||(a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),t.pending+=iJ(a)?mP(a):mP(65533)),t.pos+=o[0].length,!0}else if(o=t.src.slice(s).match(oJ),o&&nJ(gP,o[1]))return r||(t.pending+=gP[o[1]]),t.pos+=o[0].length,!0}return r||(t.pending+="&"),t.pos++,!0}});var _P=U((Cie,TP)=>{"use strict";function EP(e,t){var r,n,a,o,s,c,d,h,m={},E=t.length;for(r=0;r<E;r++)if(a=t[r],a.length=a.length||0,!!a.close){for(m.hasOwnProperty(a.marker)||(m[a.marker]=[-1,-1,-1]),s=m[a.marker][a.length%3],c=-1,n=r-a.jump-1;n>s;n-=o.jump+1)if(o=t[n],o.marker===a.marker&&(c===-1&&(c=n),o.open&&o.end<0&&o.level===a.level&&(d=!1,(o.close||a.open)&&(o.length+a.length)%3==0&&(o.length%3!=0||a.length%3!=0)&&(d=!0),!d))){h=n>0&&!t[n-1].open?t[n-1].jump+1:0,a.jump=r-n+h,a.open=!1,o.end=r,o.jump=h,o.close=!1,c=-1;break}c!==-1&&(m[a.marker][(a.length||0)%3]=c)}}TP.exports=function(t){var r,n=t.tokens_meta,a=t.tokens_meta.length;for(EP(t,t.delimiters),r=0;r<a;r++)n[r]&&n[r].delimiters&&EP(t,n[r].delimiters)}});var DP=U((Oie,SP)=>{"use strict";SP.exports=function(t){var r,n,a=0,o=t.tokens,s=t.tokens.length;for(r=n=0;r<s;r++)o[r].nesting<0&&a--,o[r].level=a,o[r].nesting>0&&a++,o[r].type==="text"&&r+1<s&&o[r+1].type==="text"?o[r+1].content=o[r].content+o[r+1].content:(r!==n&&(o[n]=o[r]),n++);r!==n&&(o.length=n)}});var NP=U((wie,wP)=>{"use strict";var c1=om(),kP=St().isWhiteSpace,CP=St().isPunctChar,OP=St().isMdAsciiPunct;function rp(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}rp.prototype.pushPending=function(){var e=new c1("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};rp.prototype.push=function(e,t,r){this.pending&&this.pushPending();var n=new c1(e,t,r),a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};rp.prototype.scanDelims=function(e,t){var r=e,n,a,o,s,c,d,h,m,E,b=!0,C=!0,L=this.posMax,S=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;r<L&&this.src.charCodeAt(r)===S;)r++;return o=r-e,a=r<L?this.src.charCodeAt(r):32,h=OP(n)||CP(String.fromCharCode(n)),E=OP(a)||CP(String.fromCharCode(a)),d=kP(n),m=kP(a),m?b=!1:E&&(d||h||(b=!1)),d?C=!1:h&&(m||E||(C=!1)),t?(s=b,c=C):(s=b&&(!C||h),c=C&&(!b||E)),{can_open:s,can_close:c,length:o}};rp.prototype.Token=c1;wP.exports=rp});var xP=U((Nie,LP)=>{"use strict";var AP=im(),f1=[["text",JF()],["newline",ZF()],["escape",tP()],["backticks",nP()],["strikethrough",a1().tokenize],["emphasis",u1().tokenize],["link",uP()],["image",lP()],["autolink",pP()],["html_inline",vP()],["entity",bP()]],d1=[["balance_pairs",_P()],["strikethrough",a1().postProcess],["emphasis",u1().postProcess],["text_collapse",DP()]];function np(){var e;for(this.ruler=new AP,e=0;e<f1.length;e++)this.ruler.push(f1[e][0],f1[e][1]);for(this.ruler2=new AP,e=0;e<d1.length;e++)this.ruler2.push(d1[e][0],d1[e][1])}np.prototype.skipToken=function(e){var t,r,n=e.pos,a=this.ruler.getRules(""),o=a.length,s=e.md.options.maxNesting,c=e.cache;if(typeof c[n]!="undefined"){e.pos=c[n];return}if(e.level<s)for(r=0;r<o&&(e.level++,t=a[r](e,!0),e.level--,!t);r++);else e.pos=e.posMax;t||e.pos++,c[n]=e.pos};np.prototype.tokenize=function(e){for(var t,r,n=this.ruler.getRules(""),a=n.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(r=0;r<a&&(t=n[r](e,!1),!t);r++);if(t){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};np.prototype.parse=function(e,t,r,n){var a,o,s,c=new this.State(e,t,r,n);for(this.tokenize(c),o=this.ruler2.getRules(""),s=o.length,a=0;a<s;a++)o[a](c)};np.prototype.State=NP();LP.exports=np});var RP=U((Aie,IP)=>{"use strict";IP.exports=function(e){var t={};t.src_Any=YS().source,t.src_Cc=JS().source,t.src_Z=XS().source,t.src_P=$g().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var BP=U((Lie,qP)=>{"use strict";function p1(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){!r||Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function fm(e){return Object.prototype.toString.call(e)}function uJ(e){return fm(e)==="[object String]"}function sJ(e){return fm(e)==="[object Object]"}function lJ(e){return fm(e)==="[object RegExp]"}function FP(e){return fm(e)==="[object Function]"}function cJ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var PP={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function fJ(e){return Object.keys(e||{}).reduce(function(t,r){return t||PP.hasOwnProperty(r)},!1)}var dJ={"http:":{validate:function(e,t,r){var n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},pJ="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",hJ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function vJ(e){e.__index__=-1,e.__text_cache__=""}function gJ(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function jP(){return function(e,t){t.normalize(e)}}function dm(e){var t=e.re=RP()(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(pJ),r.push(t.src_xn),t.src_tlds=r.join("|");function n(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var a=[];e.__compiled__={};function o(c,d){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+d)}Object.keys(e.__schemas__).forEach(function(c){var d=e.__schemas__[c];if(d!==null){var h={validate:null,link:null};if(e.__compiled__[c]=h,sJ(d)){lJ(d.validate)?h.validate=gJ(d.validate):FP(d.validate)?h.validate=d.validate:o(c,d),FP(d.normalize)?h.normalize=d.normalize:d.normalize?o(c,d):h.normalize=jP();return}if(uJ(d)){a.push(c);return}o(c,d)}}),a.forEach(function(c){!e.__compiled__[e.__schemas__[c]]||(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:jP()};var s=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(cJ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),vJ(e)}function mJ(e,t){var r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function MP(e,t){var r=new mJ(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Ci(e,t){if(!(this instanceof Ci))return new Ci(e,t);t||fJ(e)&&(t=e,e={}),this.__opts__=p1({},PP,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p1({},dJ,e),this.__compiled__={},this.__tlds__=hJ,this.__tlds_replaced__=!1,this.re={},dm(this)}Ci.prototype.add=function(t,r){return this.__schemas__[t]=r,dm(this),this};Ci.prototype.set=function(t){return this.__opts__=p1(this.__opts__,t),this};Ci.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,n,a,o,s,c,d,h,m;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(r=d.exec(t))!==null;)if(o=this.testSchemaAt(t,r[2],d.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(s=a.index+a[1].length,c=a.index+a[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=c))),this.__index__>=0};Ci.prototype.pretest=function(t){return this.re.pretest.test(t)};Ci.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Ci.prototype.match=function(t){var r=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(MP(this,r)),r=this.__last_index__);for(var a=r?t.slice(r):t;this.test(a);)n.push(MP(this,r)),a=a.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Ci.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,o){return n!==o[a-1]}).reverse(),dm(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,dm(this),this)};Ci.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Ci.prototype.onCompile=function(){};qP.exports=Ci});var XP=U((xie,JP)=>{"use strict";var $l=2147483647,Ca=36,h1=1,ip=26,yJ=38,bJ=700,VP=72,UP=128,GP="-",EJ=/^xn--/,TJ=/[^\0-\x7E]/,_J=/[\x2E\u3002\uFF0E\uFF61]/g,SJ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v1=Ca-h1,Oa=Math.floor,g1=String.fromCharCode;function us(e){throw new RangeError(SJ[e])}function DJ(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function QP(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(_J,".");let a=e.split("."),o=DJ(a,t).join(".");return n+o}function KP(e){let t=[],r=0,n=e.length;for(;r<n;){let a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){let o=e.charCodeAt(r++);(o&64512)==56320?t.push(((a&1023)<<10)+(o&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}var kJ=e=>String.fromCodePoint(...e),CJ=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Ca},HP=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},zP=function(e,t,r){let n=0;for(e=r?Oa(e/bJ):e>>1,e+=Oa(e/t);e>v1*ip>>1;n+=Ca)e=Oa(e/v1);return Oa(n+(v1+1)*e/(e+yJ))},WP=function(e){let t=[],r=e.length,n=0,a=UP,o=VP,s=e.lastIndexOf(GP);s<0&&(s=0);for(let c=0;c<s;++c)e.charCodeAt(c)>=128&&us("not-basic"),t.push(e.charCodeAt(c));for(let c=s>0?s+1:0;c<r;){let d=n;for(let m=1,E=Ca;;E+=Ca){c>=r&&us("invalid-input");let b=CJ(e.charCodeAt(c++));(b>=Ca||b>Oa(($l-n)/m))&&us("overflow"),n+=b*m;let C=E<=o?h1:E>=o+ip?ip:E-o;if(b<C)break;let L=Ca-C;m>Oa($l/L)&&us("overflow"),m*=L}let h=t.length+1;o=zP(n-d,h,d==0),Oa(n/h)>$l-a&&us("overflow"),a+=Oa(n/h),n%=h,t.splice(n++,0,a)}return String.fromCodePoint(...t)},YP=function(e){let t=[];e=KP(e);let r=e.length,n=UP,a=0,o=VP;for(let d of e)d<128&&t.push(g1(d));let s=t.length,c=s;for(s&&t.push(GP);c<r;){let d=$l;for(let m of e)m>=n&&m<d&&(d=m);let h=c+1;d-n>Oa(($l-a)/h)&&us("overflow"),a+=(d-n)*h,n=d;for(let m of e)if(m<n&&++a>$l&&us("overflow"),m==n){let E=a;for(let b=Ca;;b+=Ca){let C=b<=o?h1:b>=o+ip?ip:b-o;if(E<C)break;let L=E-C,S=Ca-C;t.push(g1(HP(C+L%S,0))),E=Oa(L/S)}t.push(g1(HP(E,0))),o=zP(a,h,c==s),a=0,++c}++a,++n}return t.join("")},OJ=function(e){return QP(e,function(t){return EJ.test(t)?WP(t.slice(4).toLowerCase()):t})},wJ=function(e){return QP(e,function(t){return TJ.test(t)?"xn--"+YP(t):t})},NJ={version:"2.1.0",ucs2:{decode:KP,encode:kJ},decode:WP,encode:YP,toASCII:wJ,toUnicode:OJ};JP.exports=NJ});var $P=U((Iie,ZP)=>{"use strict";ZP.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var tj=U((Rie,ej)=>{"use strict";ej.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var nj=U((Fie,rj)=>{"use strict";rj.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var uj=U((Pie,oj)=>{"use strict";var ap=St(),AJ=MR(),LJ=BR(),xJ=fF(),IJ=WF(),RJ=xP(),FJ=BP(),ec=WS(),ij=XP(),PJ={default:$P(),zero:tj(),commonmark:nj()},jJ=/^(vbscript|javascript|file|data):/,MJ=/^data:image\/(gif|png|jpeg|webp);/;function qJ(e){var t=e.trim().toLowerCase();return jJ.test(t)?!!MJ.test(t):!0}var aj=["http:","https:","mailto:"];function BJ(e){var t=ec.parse(e,!0);if(t.hostname&&(!t.protocol||aj.indexOf(t.protocol)>=0))try{t.hostname=ij.toASCII(t.hostname)}catch(r){}return ec.encode(ec.format(t))}function VJ(e){var t=ec.parse(e,!0);if(t.hostname&&(!t.protocol||aj.indexOf(t.protocol)>=0))try{t.hostname=ij.toUnicode(t.hostname)}catch(r){}return ec.decode(ec.format(t))}function Oi(e,t){if(!(this instanceof Oi))return new Oi(e,t);t||ap.isString(e)||(t=e||{},e="default"),this.inline=new RJ,this.block=new IJ,this.core=new xJ,this.renderer=new LJ,this.linkify=new FJ,this.validateLink=qJ,this.normalizeLink=BJ,this.normalizeLinkText=VJ,this.utils=ap,this.helpers=ap.assign({},AJ),this.options={},this.configure(e),t&&this.set(t)}Oi.prototype.set=function(e){return ap.assign(this.options,e),this};Oi.prototype.configure=function(e){var t=this,r;if(ap.isString(e)&&(r=e,e=PJ[r],!e))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Oi.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Oi.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Oi.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Oi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};Oi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Oi.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Oi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};oj.exports=Oi});var pm=U((jie,sj)=>{"use strict";sj.exports=uj()});var ct=U((m1,y1)=>{(function(e,t){typeof m1=="object"&&typeof y1!="undefined"?y1.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.CodeMirror=t())})(m1,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=n||a||o,c=s&&(n?document.documentMode||6:+(o||a)[1]),d=!o&&/WebKit\//.test(e),h=d&&/Qt\/\d+\.\d+/.test(e),m=!o&&/Chrome\//.test(e),E=/Opera\//.test(e),b=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),L=/PhantomJS/.test(e),S=b&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),y=/Android/.test(e),T=S||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=S||/Mac/.test(t),k=/\bCrOS\b/.test(e),N=/win/i.test(t),w=E&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(E=!1,d=!0);var D=g&&(h||E&&(w==null||w<12.11)),F=r||s&&c>=9;function P(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var B=function(i,u){var f=i.className,l=P(u).exec(f);if(l){var p=f.slice(l.index+l[0].length);i.className=f.slice(0,l.index)+(p?l[1]+p:"")}};function z(i){for(var u=i.childNodes.length;u>0;--u)i.removeChild(i.firstChild);return i}function G(i,u){return z(i).appendChild(u)}function M(i,u,f,l){var p=document.createElement(i);if(f&&(p.className=f),l&&(p.style.cssText=l),typeof u=="string")p.appendChild(document.createTextNode(u));else if(u)for(var v=0;v<u.length;++v)p.appendChild(u[v]);return p}function j(i,u,f,l){var p=M(i,u,f,l);return p.setAttribute("role","presentation"),p}var ce;document.createRange?ce=function(i,u,f,l){var p=document.createRange();return p.setEnd(l||i,f),p.setStart(i,u),p}:ce=function(i,u,f){var l=document.body.createTextRange();try{l.moveToElementText(i.parentNode)}catch(p){return l}return l.collapse(!0),l.moveEnd("character",f),l.moveStart("character",u),l};function ke(i,u){if(u.nodeType==3&&(u=u.parentNode),i.contains)return i.contains(u);do if(u.nodeType==11&&(u=u.host),u==i)return!0;while(u=u.parentNode)}function pe(){var i;try{i=document.activeElement}catch(u){i=document.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function we(i,u){var f=i.className;P(u).test(f)||(i.className+=(f?" ":"")+u)}function Ne(i,u){for(var f=i.split(" "),l=0;l<f.length;l++)f[l]&&!P(f[l]).test(u)&&(u+=" "+f[l]);return u}var qe=function(i){i.select()};S?qe=function(i){i.selectionStart=0,i.selectionEnd=i.value.length}:s&&(qe=function(i){try{i.select()}catch(u){}});function ht(i){var u=Array.prototype.slice.call(arguments,1);return function(){return i.apply(null,u)}}function at(i,u,f){u||(u={});for(var l in i)i.hasOwnProperty(l)&&(f!==!1||!u.hasOwnProperty(l))&&(u[l]=i[l]);return u}function st(i,u,f,l,p){u==null&&(u=i.search(/[^\s\u00a0]/),u==-1&&(u=i.length));for(var v=l||0,_=p||0;;){var O=i.indexOf(" ",v);if(O<0||O>=u)return _+(u-v);_+=O-v,_+=f-_%f,v=O+1}}var vt=function(){this.id=null,this.f=null,this.time=0,this.handler=ht(this.onTimeout,this)};vt.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},vt.prototype.set=function(i,u){this.f=u;var f=+new Date+i;(!this.id||f<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,i),this.time=f)};function Oe(i,u){for(var f=0;f<i.length;++f)if(i[f]==u)return f;return-1}var xe=50,Ue={toString:function(){return"CodeMirror.Pass"}},Ze={scroll:!1},wn={origin:"*mouse"},tt={origin:"+move"};function Mt(i,u,f){for(var l=0,p=0;;){var v=i.indexOf(" ",l);v==-1&&(v=i.length);var _=v-l;if(v==i.length||p+_>=u)return l+Math.min(_,u-p);if(p+=v-l,p+=f-p%f,l=v+1,p>=u)return l}}var Xr=[""];function pn(i){for(;Xr.length<=i;)Xr.push(ee(Xr)+" ");return Xr[i]}function ee(i){return i[i.length-1]}function De(i,u){for(var f=[],l=0;l<i.length;l++)f[l]=u(i[l],l);return f}function be(i,u,f){for(var l=0,p=f(u);l<i.length&&f(i[l])<=p;)l++;i.splice(l,0,u)}function me(){}function je(i,u){var f;return Object.create?f=Object.create(i):(me.prototype=i,f=new me),u&&at(u,f),f}var $e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function We(i){return/\w/.test(i)||i>"\x80"&&(i.toUpperCase()!=i.toLowerCase()||$e.test(i))}function rt(i,u){return u?u.source.indexOf("\\w")>-1&&We(i)?!0:u.test(i):We(i)}function li(i){for(var u in i)if(i.hasOwnProperty(u)&&i[u])return!1;return!0}var ao=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xa(i){return i.charCodeAt(0)>=768&&ao.test(i)}function Ia(i,u,f){for(;(f<0?u>0:u<i.length)&&xa(i.charAt(u));)u+=f;return u}function Nn(i,u,f){for(var l=u>f?-1:1;;){if(u==f)return u;var p=(u+f)/2,v=l<0?Math.ceil(p):Math.floor(p);if(v==u)return i(v)?u:f;i(v)?f=v:u=v+l}}function cu(i,u,f,l){if(!i)return l(u,f,"ltr",0);for(var p=!1,v=0;v<i.length;++v){var _=i[v];(_.from<f&&_.to>u||u==f&&_.to==u)&&(l(Math.max(_.from,u),Math.min(_.to,f),_.level==1?"rtl":"ltr",v),p=!0)}p||l(u,f,"ltr")}var te=null;function q(i,u,f){var l;te=null;for(var p=0;p<i.length;++p){var v=i[p];if(v.from<u&&v.to>u)return p;v.to==u&&(v.from!=v.to&&f=="before"?l=p:te=p),v.from==u&&(v.from!=v.to&&f!="before"?l=p:te=p)}return l!=null?l:te}var X=function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(x){return x<=247?i.charAt(x):1424<=x&&x<=1524?"R":1536<=x&&x<=1785?u.charAt(x-1536):1774<=x&&x<=2220?"r":8192<=x&&x<=8203?"w":x==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,v=/[LRr]/,_=/[Lb1n]/,O=/[1n]/;function A(x,V,Q){this.level=x,this.from=V,this.to=Q}return function(x,V){var Q=V=="ltr"?"L":"R";if(x.length==0||V=="ltr"&&!l.test(x))return!1;for(var J=x.length,Y=[],re=0;re<J;++re)Y.push(f(x.charCodeAt(re)));for(var ae=0,le=Q;ae<J;++ae){var he=Y[ae];he=="m"?Y[ae]=le:le=he}for(var Se=0,ve=Q;Se<J;++Se){var Ce=Y[Se];Ce=="1"&&ve=="r"?Y[Se]="n":v.test(Ce)&&(ve=Ce,Ce=="r"&&(Y[Se]="R"))}for(var Pe=1,Fe=Y[0];Pe<J-1;++Pe){var Je=Y[Pe];Je=="+"&&Fe=="1"&&Y[Pe+1]=="1"?Y[Pe]="1":Je==","&&Fe==Y[Pe+1]&&(Fe=="1"||Fe=="n")&&(Y[Pe]=Fe),Fe=Je}for(var xt=0;xt<J;++xt){var Dr=Y[xt];if(Dr==",")Y[xt]="N";else if(Dr=="%"){var Wt=void 0;for(Wt=xt+1;Wt<J&&Y[Wt]=="%";++Wt);for(var xn=xt&&Y[xt-1]=="!"||Wt<J&&Y[Wt]=="1"?"1":"N",mn=xt;mn<Wt;++mn)Y[mn]=xn;xt=Wt-1}}for(var cr=0,yn=Q;cr<J;++cr){var Fr=Y[cr];yn=="L"&&Fr=="1"?Y[cr]="L":v.test(Fr)&&(yn=Fr)}for(var mr=0;mr<J;++mr)if(p.test(Y[mr])){var fr=void 0;for(fr=mr+1;fr<J&&p.test(Y[fr]);++fr);for(var er=(mr?Y[mr-1]:Q)=="L",bn=(fr<J?Y[fr]:Q)=="L",Fs=er==bn?er?"L":"R":Q,go=mr;go<fr;++go)Y[go]=Fs;mr=fr-1}for(var Gr=[],aa,kr=0;kr<J;)if(_.test(Y[kr])){var qy=kr;for(++kr;kr<J&&_.test(Y[kr]);++kr);Gr.push(new A(0,qy,kr))}else{var qa=kr,Eu=Gr.length,Tu=V=="rtl"?1:0;for(++kr;kr<J&&Y[kr]!="L";++kr);for(var $r=qa;$r<kr;)if(O.test(Y[$r])){qa<$r&&(Gr.splice(Eu,0,new A(1,qa,$r)),Eu+=Tu);var Ps=$r;for(++$r;$r<kr&&O.test(Y[$r]);++$r);Gr.splice(Eu,0,new A(2,Ps,$r)),Eu+=Tu,qa=$r}else++$r;qa<kr&&Gr.splice(Eu,0,new A(1,qa,kr))}return V=="ltr"&&(Gr[0].level==1&&(aa=x.match(/^\s+/))&&(Gr[0].from=aa[0].length,Gr.unshift(new A(0,0,aa[0].length))),ee(Gr).level==1&&(aa=x.match(/\s+$/))&&(ee(Gr).to-=aa[0].length,Gr.push(new A(0,J-aa[0].length,J)))),V=="rtl"?Gr.reverse():Gr}}();function Z(i,u){var f=i.order;return f==null&&(f=i.order=X(i.text,u)),f}var H=[],R=function(i,u,f){if(i.addEventListener)i.addEventListener(u,f,!1);else if(i.attachEvent)i.attachEvent("on"+u,f);else{var l=i._handlers||(i._handlers={});l[u]=(l[u]||H).concat(f)}};function $(i,u){return i._handlers&&i._handlers[u]||H}function ie(i,u,f){if(i.removeEventListener)i.removeEventListener(u,f,!1);else if(i.detachEvent)i.detachEvent("on"+u,f);else{var l=i._handlers,p=l&&l[u];if(p){var v=Oe(p,f);v>-1&&(l[u]=p.slice(0,v).concat(p.slice(v+1)))}}}function fe(i,u){var f=$(i,u);if(!!f.length)for(var l=Array.prototype.slice.call(arguments,2),p=0;p<f.length;++p)f[p].apply(null,l)}function Qe(i,u,f){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),fe(i,f||u.type,i,u),gr(u)||u.codemirrorIgnore}function It(i){var u=i._handlers&&i._handlers.cursorActivity;if(!!u)for(var f=i.curOp.cursorActivityHandlers||(i.curOp.cursorActivityHandlers=[]),l=0;l<u.length;++l)Oe(f,u[l])==-1&&f.push(u[l])}function Dt(i,u){return $(i,u).length>0}function nr(i){i.prototype.on=function(u,f){R(this,u,f)},i.prototype.off=function(u,f){ie(this,u,f)}}function Rt(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function Ye(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function gr(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function ci(i){Rt(i),Ye(i)}function Ri(i){return i.target||i.srcElement}function xp(i){var u=i.which;return u==null&&(i.button&1?u=1:i.button&2?u=3:i.button&4&&(u=2)),g&&i.ctrlKey&&u==1&&(u=3),u}var Ec=function(){if(s&&c<9)return!1;var i=M("div");return"draggable"in i||"dragDrop"in i}(),hn;function Ip(i){if(hn==null){var u=M("span","\u200B");G(i,M("span",[u,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(hn=u.offsetWidth<=1&&u.offsetHeight>2&&!(s&&c<8))}var f=hn?M("span","\u200B"):M("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var Tc;function Zi(i){if(Tc!=null)return Tc;var u=G(i,document.createTextNode("A\u062EA")),f=ce(u,0,1).getBoundingClientRect(),l=ce(u,1,2).getBoundingClientRect();return z(i),!f||f.left==f.right?!1:Tc=l.right-f.right<3}var _c=`
|
|
|
|
b`.split(/\n/).length!=3?function(i){for(var u=0,f=[],l=i.length;u<=l;){var p=i.indexOf(`
|
|
`,u);p==-1&&(p=i.length);var v=i.slice(u,i.charAt(p-1)=="\r"?p-1:p),_=v.indexOf("\r");_!=-1?(f.push(v.slice(0,_)),u+=_+1):(f.push(v),u=p+1)}return f}:function(i){return i.split(/\r\n?|\n/)},Rp=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch(u){return!1}}:function(i){var u;try{u=i.ownerDocument.selection.createRange()}catch(f){}return!u||u.parentElement()!=i?!1:u.compareEndPoints("StartToEnd",u)!=0},Fp=function(){var i=M("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")}(),Sc=null;function oo(i){if(Sc!=null)return Sc;var u=G(i,M("span","x")),f=u.getBoundingClientRect(),l=ce(u,0,1).getBoundingClientRect();return Sc=Math.abs(f.left-l.left)>1}var fi={},Kn={};function Pp(i,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),fi[i]=u}function Ra(i,u){Kn[i]=u}function vs(i){if(typeof i=="string"&&Kn.hasOwnProperty(i))i=Kn[i];else if(i&&typeof i.name=="string"&&Kn.hasOwnProperty(i.name)){var u=Kn[i.name];typeof u=="string"&&(u={name:u}),i=je(u,i),i.name=u.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return vs("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return vs("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function gs(i,u){u=vs(u);var f=fi[u.name];if(!f)return gs(i,"text/plain");var l=f(i,u);if(Fi.hasOwnProperty(u.name)){var p=Fi[u.name];for(var v in p)!p.hasOwnProperty(v)||(l.hasOwnProperty(v)&&(l["_"+v]=l[v]),l[v]=p[v])}if(l.name=u.name,u.helperType&&(l.helperType=u.helperType),u.modeProps)for(var _ in u.modeProps)l[_]=u.modeProps[_];return l}var Fi={};function Pi(i,u){var f=Fi.hasOwnProperty(i)?Fi[i]:Fi[i]={};at(u,f)}function Hn(i,u){if(u===!0)return u;if(i.copyState)return i.copyState(u);var f={};for(var l in u){var p=u[l];p instanceof Array&&(p=p.concat([])),f[l]=p}return f}function Dc(i,u){for(var f;i.innerMode&&(f=i.innerMode(u),!(!f||f.mode==i));)u=f.state,i=f.mode;return f||{mode:i,state:u}}function kc(i,u,f){return i.startState?i.startState(u,f):!0}var $t=function(i,u,f){this.pos=this.start=0,this.string=i,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(i){var u=this.string.charAt(this.pos),f;if(typeof i=="string"?f=u==i:f=u&&(i.test?i.test(u):i(u)),f)return++this.pos,u},$t.prototype.eatWhile=function(i){for(var u=this.pos;this.eat(i););return this.pos>u},$t.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(i){var u=this.string.indexOf(i,this.pos);if(u>-1)return this.pos=u,!0},$t.prototype.backUp=function(i){this.pos-=i},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=st(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return st(this.string,null,this.tabSize)-(this.lineStart?st(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(i,u,f){if(typeof i=="string"){var l=function(_){return f?_.toLowerCase():_},p=this.string.substr(this.pos,i.length);if(l(p)==l(i))return u!==!1&&(this.pos+=i.length),!0}else{var v=this.string.slice(this.pos).match(i);return v&&v.index>0?null:(v&&u!==!1&&(this.pos+=v[0].length),v)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(i,u){this.lineStart+=i;try{return u()}finally{this.lineStart-=i}},$t.prototype.lookAhead=function(i){var u=this.lineOracle;return u&&u.lookAhead(i)},$t.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function Ae(i,u){if(u-=i.first,u<0||u>=i.size)throw new Error("There is no line "+(u+i.first)+" in the document.");for(var f=i;!f.lines;)for(var l=0;;++l){var p=f.children[l],v=p.chunkSize();if(u<v){f=p;break}u-=v}return f.lines[u]}function $i(i,u,f){var l=[],p=u.line;return i.iter(u.line,f.line+1,function(v){var _=v.text;p==f.line&&(_=_.slice(0,f.ch)),p==u.line&&(_=_.slice(u.ch)),l.push(_),++p}),l}function Cc(i,u,f){var l=[];return i.iter(u,f,function(p){l.push(p.text)}),l}function An(i,u){var f=u-i.height;if(f)for(var l=i;l;l=l.parent)l.height+=f}function gt(i){if(i.parent==null)return null;for(var u=i.parent,f=Oe(u.lines,i),l=u.parent;l;u=l,l=l.parent)for(var p=0;l.children[p]!=u;++p)f+=l.children[p].chunkSize();return f+u.first}function ea(i,u){var f=i.first;e:do{for(var l=0;l<i.children.length;++l){var p=i.children[l],v=p.height;if(u<v){i=p;continue e}u-=v,f+=p.chunkSize()}return f}while(!i.lines);for(var _=0;_<i.lines.length;++_){var O=i.lines[_],A=O.height;if(u<A)break;u-=A}return f+_}function fu(i,u){return u>=i.first&&u<i.first+i.size}function Oc(i,u){return String(i.lineNumberFormatter(u+i.firstLineNumber))}function oe(i,u,f){if(f===void 0&&(f=null),!(this instanceof oe))return new oe(i,u,f);this.line=i,this.ch=u,this.sticky=f}function I(i,u){return i.line-u.line||i.ch-u.ch}function K(i,u){return i.sticky==u.sticky&&I(i,u)==0}function ne(i){return oe(i.line,i.ch)}function se(i,u){return I(i,u)<0?u:i}function Be(i,u){return I(i,u)<0?i:u}function ot(i,u){return Math.max(i.first,Math.min(u,i.first+i.size-1))}function _e(i,u){if(u.line<i.first)return oe(i.first,0);var f=i.first+i.size-1;return u.line>f?oe(f,Ae(i,f).text.length):Vr(u,Ae(i,u.line).text.length)}function Vr(i,u){var f=i.ch;return f==null||f>u?oe(i.line,u):f<0?oe(i.line,0):i}function zn(i,u){for(var f=[],l=0;l<u.length;l++)f[l]=_e(i,u[l]);return f}var ms=function(i,u){this.state=i,this.lookAhead=u},ta=function(i,u,f,l){this.state=u,this.doc=i,this.line=f,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};ta.prototype.lookAhead=function(i){var u=this.doc.getLine(this.line+i);return u!=null&&i>this.maxLookAhead&&(this.maxLookAhead=i),u},ta.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},ta.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ta.fromSaved=function(i,u,f){return u instanceof ms?new ta(i,Hn(i.mode,u.state),f,u.lookAhead):new ta(i,Hn(i.mode,u),f)},ta.prototype.save=function(i){var u=i!==!1?Hn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ms(u,this.maxLookAhead):u};function FD(i,u,f,l){var p=[i.state.modeGen],v={};VD(i,u.text,i.doc.mode,f,function(x,V){return p.push(x,V)},v,l);for(var _=f.state,O=function(x){f.baseTokens=p;var V=i.state.overlays[x],Q=1,J=0;f.state=!0,VD(i,u.text,V.mode,f,function(Y,re){for(var ae=Q;J<Y;){var le=p[Q];le>Y&&p.splice(Q,1,Y,p[Q+1],le),Q+=2,J=Math.min(Y,le)}if(!!re)if(V.opaque)p.splice(ae,Q-ae,Y,"overlay "+re),Q=ae+2;else for(;ae<Q;ae+=2){var he=p[ae+1];p[ae+1]=(he?he+" ":"")+"overlay "+re}},v),f.state=_,f.baseTokens=null,f.baseTokenPos=1},A=0;A<i.state.overlays.length;++A)O(A);return{styles:p,classes:v.bgClass||v.textClass?v:null}}function PD(i,u,f){if(!u.styles||u.styles[0]!=i.state.modeGen){var l=wc(i,gt(u)),p=u.text.length>i.options.maxHighlightLength&&Hn(i.doc.mode,l.state),v=FD(i,u,l);p&&(l.state=p),u.stateAfter=l.save(!p),u.styles=v.styles,v.classes?u.styleClasses=v.classes:u.styleClasses&&(u.styleClasses=null),f===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return u.styles}function wc(i,u,f){var l=i.doc,p=i.display;if(!l.mode.startState)return new ta(l,!0,u);var v=r3(i,u,f),_=v>l.first&&Ae(l,v-1).stateAfter,O=_?ta.fromSaved(l,_,v):new ta(l,kc(l.mode),v);return l.iter(v,u,function(A){Ym(i,A.text,O);var x=O.line;A.stateAfter=x==u-1||x%5==0||x>=p.viewFrom&&x<p.viewTo?O.save():null,O.nextLine()}),f&&(l.modeFrontier=O.line),O}function Ym(i,u,f,l){var p=i.doc.mode,v=new $t(u,i.options.tabSize,f);for(v.start=v.pos=l||0,u==""&&jD(p,f.state);!v.eol();)Jm(p,v,f.state),v.start=v.pos}function jD(i,u){if(i.blankLine)return i.blankLine(u);if(!!i.innerMode){var f=Dc(i,u);if(f.mode.blankLine)return f.mode.blankLine(f.state)}}function Jm(i,u,f,l){for(var p=0;p<10;p++){l&&(l[0]=Dc(i,f).mode);var v=i.token(u,f);if(u.pos>u.start)return v}throw new Error("Mode "+i.name+" failed to advance stream.")}var MD=function(i,u,f){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=u||null,this.state=f};function qD(i,u,f,l){var p=i.doc,v=p.mode,_;u=_e(p,u);var O=Ae(p,u.line),A=wc(i,u.line,f),x=new $t(O.text,i.options.tabSize,A),V;for(l&&(V=[]);(l||x.pos<u.ch)&&!x.eol();)x.start=x.pos,_=Jm(v,x,A.state),l&&V.push(new MD(x,_,Hn(p.mode,A.state)));return l?V:new MD(x,_,A.state)}function BD(i,u){if(i)for(;;){var f=i.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!f)break;i=i.slice(0,f.index)+i.slice(f.index+f[0].length);var l=f[1]?"bgClass":"textClass";u[l]==null?u[l]=f[2]:new RegExp("(?:^|\\s)"+f[2]+"(?:$|\\s)").test(u[l])||(u[l]+=" "+f[2])}return i}function VD(i,u,f,l,p,v,_){var O=f.flattenSpans;O==null&&(O=i.options.flattenSpans);var A=0,x=null,V=new $t(u,i.options.tabSize,l),Q,J=i.options.addModeClass&&[null];for(u==""&&BD(jD(f,l.state),v);!V.eol();){if(V.pos>i.options.maxHighlightLength?(O=!1,_&&Ym(i,u,l,V.pos),V.pos=u.length,Q=null):Q=BD(Jm(f,V,l.state,J),v),J){var Y=J[0].name;Y&&(Q="m-"+(Q?Y+" "+Q:Y))}if(!O||x!=Q){for(;A<V.start;)A=Math.min(V.start,A+5e3),p(A,x);x=Q}V.start=V.pos}for(;A<V.pos;){var re=Math.min(V.pos,A+5e3);p(re,x),A=re}}function r3(i,u,f){for(var l,p,v=i.doc,_=f?-1:u-(i.doc.mode.innerMode?1e3:100),O=u;O>_;--O){if(O<=v.first)return v.first;var A=Ae(v,O-1),x=A.stateAfter;if(x&&(!f||O+(x instanceof ms?x.lookAhead:0)<=v.modeFrontier))return O;var V=st(A.text,null,i.options.tabSize);(p==null||l>V)&&(p=O-1,l=V)}return p}function n3(i,u){if(i.modeFrontier=Math.min(i.modeFrontier,u),!(i.highlightFrontier<u-10)){for(var f=i.first,l=u-1;l>f;l--){var p=Ae(i,l).stateAfter;if(p&&(!(p instanceof ms)||l+p.lookAhead<u)){f=l+1;break}}i.highlightFrontier=Math.min(i.highlightFrontier,f)}}var UD=!1,Fa=!1;function i3(){UD=!0}function a3(){Fa=!0}function jp(i,u,f){this.marker=i,this.from=u,this.to=f}function Nc(i,u){if(i)for(var f=0;f<i.length;++f){var l=i[f];if(l.marker==u)return l}}function o3(i,u){for(var f,l=0;l<i.length;++l)i[l]!=u&&(f||(f=[])).push(i[l]);return f}function u3(i,u,f){var l=f&&window.WeakSet&&(f.markedSpans||(f.markedSpans=new WeakSet));l&&l.has(i.markedSpans)?i.markedSpans.push(u):(i.markedSpans=i.markedSpans?i.markedSpans.concat([u]):[u],l&&l.add(i.markedSpans)),u.marker.attachLine(i)}function s3(i,u,f){var l;if(i)for(var p=0;p<i.length;++p){var v=i[p],_=v.marker,O=v.from==null||(_.inclusiveLeft?v.from<=u:v.from<u);if(O||v.from==u&&_.type=="bookmark"&&(!f||!v.marker.insertLeft)){var A=v.to==null||(_.inclusiveRight?v.to>=u:v.to>u);(l||(l=[])).push(new jp(_,v.from,A?null:v.to))}}return l}function l3(i,u,f){var l;if(i)for(var p=0;p<i.length;++p){var v=i[p],_=v.marker,O=v.to==null||(_.inclusiveRight?v.to>=u:v.to>u);if(O||v.from==u&&_.type=="bookmark"&&(!f||v.marker.insertLeft)){var A=v.from==null||(_.inclusiveLeft?v.from<=u:v.from<u);(l||(l=[])).push(new jp(_,A?null:v.from-u,v.to==null?null:v.to-u))}}return l}function Xm(i,u){if(u.full)return null;var f=fu(i,u.from.line)&&Ae(i,u.from.line).markedSpans,l=fu(i,u.to.line)&&Ae(i,u.to.line).markedSpans;if(!f&&!l)return null;var p=u.from.ch,v=u.to.ch,_=I(u.from,u.to)==0,O=s3(f,p,_),A=l3(l,v,_),x=u.text.length==1,V=ee(u.text).length+(x?p:0);if(O)for(var Q=0;Q<O.length;++Q){var J=O[Q];if(J.to==null){var Y=Nc(A,J.marker);Y?x&&(J.to=Y.to==null?null:Y.to+V):J.to=p}}if(A)for(var re=0;re<A.length;++re){var ae=A[re];if(ae.to!=null&&(ae.to+=V),ae.from==null){var le=Nc(O,ae.marker);le||(ae.from=V,x&&(O||(O=[])).push(ae))}else ae.from+=V,x&&(O||(O=[])).push(ae)}O&&(O=GD(O)),A&&A!=O&&(A=GD(A));var he=[O];if(!x){var Se=u.text.length-2,ve;if(Se>0&&O)for(var Ce=0;Ce<O.length;++Ce)O[Ce].to==null&&(ve||(ve=[])).push(new jp(O[Ce].marker,null,null));for(var Pe=0;Pe<Se;++Pe)he.push(ve);he.push(A)}return he}function GD(i){for(var u=0;u<i.length;++u){var f=i[u];f.from!=null&&f.from==f.to&&f.marker.clearWhenEmpty!==!1&&i.splice(u--,1)}return i.length?i:null}function c3(i,u,f){var l=null;if(i.iter(u.line,f.line+1,function(Y){if(Y.markedSpans)for(var re=0;re<Y.markedSpans.length;++re){var ae=Y.markedSpans[re].marker;ae.readOnly&&(!l||Oe(l,ae)==-1)&&(l||(l=[])).push(ae)}}),!l)return null;for(var p=[{from:u,to:f}],v=0;v<l.length;++v)for(var _=l[v],O=_.find(0),A=0;A<p.length;++A){var x=p[A];if(!(I(x.to,O.from)<0||I(x.from,O.to)>0)){var V=[A,1],Q=I(x.from,O.from),J=I(x.to,O.to);(Q<0||!_.inclusiveLeft&&!Q)&&V.push({from:x.from,to:O.from}),(J>0||!_.inclusiveRight&&!J)&&V.push({from:O.to,to:x.to}),p.splice.apply(p,V),A+=V.length-3}}return p}function QD(i){var u=i.markedSpans;if(!!u){for(var f=0;f<u.length;++f)u[f].marker.detachLine(i);i.markedSpans=null}}function KD(i,u){if(!!u){for(var f=0;f<u.length;++f)u[f].marker.attachLine(i);i.markedSpans=u}}function Mp(i){return i.inclusiveLeft?-1:0}function qp(i){return i.inclusiveRight?1:0}function Zm(i,u){var f=i.lines.length-u.lines.length;if(f!=0)return f;var l=i.find(),p=u.find(),v=I(l.from,p.from)||Mp(i)-Mp(u);if(v)return-v;var _=I(l.to,p.to)||qp(i)-qp(u);return _||u.id-i.id}function HD(i,u){var f=Fa&&i.markedSpans,l;if(f)for(var p=void 0,v=0;v<f.length;++v)p=f[v],p.marker.collapsed&&(u?p.from:p.to)==null&&(!l||Zm(l,p.marker)<0)&&(l=p.marker);return l}function zD(i){return HD(i,!0)}function Bp(i){return HD(i,!1)}function f3(i,u){var f=Fa&&i.markedSpans,l;if(f)for(var p=0;p<f.length;++p){var v=f[p];v.marker.collapsed&&(v.from==null||v.from<u)&&(v.to==null||v.to>u)&&(!l||Zm(l,v.marker)<0)&&(l=v.marker)}return l}function WD(i,u,f,l,p){var v=Ae(i,u),_=Fa&&v.markedSpans;if(_)for(var O=0;O<_.length;++O){var A=_[O];if(!!A.marker.collapsed){var x=A.marker.find(0),V=I(x.from,f)||Mp(A.marker)-Mp(p),Q=I(x.to,l)||qp(A.marker)-qp(p);if(!(V>=0&&Q<=0||V<=0&&Q>=0)&&(V<=0&&(A.marker.inclusiveRight&&p.inclusiveLeft?I(x.to,f)>=0:I(x.to,f)>0)||V>=0&&(A.marker.inclusiveRight&&p.inclusiveLeft?I(x.from,l)<=0:I(x.from,l)<0)))return!0}}}function ra(i){for(var u;u=zD(i);)i=u.find(-1,!0).line;return i}function d3(i){for(var u;u=Bp(i);)i=u.find(1,!0).line;return i}function p3(i){for(var u,f;u=Bp(i);)i=u.find(1,!0).line,(f||(f=[])).push(i);return f}function $m(i,u){var f=Ae(i,u),l=ra(f);return f==l?u:gt(l)}function YD(i,u){if(u>i.lastLine())return u;var f=Ae(i,u),l;if(!uo(i,f))return u;for(;l=Bp(f);)f=l.find(1,!0).line;return gt(f)+1}function uo(i,u){var f=Fa&&u.markedSpans;if(f){for(var l=void 0,p=0;p<f.length;++p)if(l=f[p],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&ey(i,u,l))return!0}}}function ey(i,u,f){if(f.to==null){var l=f.marker.find(1,!0);return ey(i,l.line,Nc(l.line.markedSpans,f.marker))}if(f.marker.inclusiveRight&&f.to==u.text.length)return!0;for(var p=void 0,v=0;v<u.markedSpans.length;++v)if(p=u.markedSpans[v],p.marker.collapsed&&!p.marker.widgetNode&&p.from==f.to&&(p.to==null||p.to!=f.from)&&(p.marker.inclusiveLeft||f.marker.inclusiveRight)&&ey(i,u,p))return!0}function Pa(i){i=ra(i);for(var u=0,f=i.parent,l=0;l<f.lines.length;++l){var p=f.lines[l];if(p==i)break;u+=p.height}for(var v=f.parent;v;f=v,v=f.parent)for(var _=0;_<v.children.length;++_){var O=v.children[_];if(O==f)break;u+=O.height}return u}function Vp(i){if(i.height==0)return 0;for(var u=i.text.length,f,l=i;f=zD(l);){var p=f.find(0,!0);l=p.from.line,u+=p.from.ch-p.to.ch}for(l=i;f=Bp(l);){var v=f.find(0,!0);u-=l.text.length-v.from.ch,l=v.to.line,u+=l.text.length-v.to.ch}return u}function ty(i){var u=i.display,f=i.doc;u.maxLine=Ae(f,f.first),u.maxLineLength=Vp(u.maxLine),u.maxLineChanged=!0,f.iter(function(l){var p=Vp(l);p>u.maxLineLength&&(u.maxLineLength=p,u.maxLine=l)})}var ys=function(i,u,f){this.text=i,KD(this,u),this.height=f?f(this):1};ys.prototype.lineNo=function(){return gt(this)},nr(ys);function h3(i,u,f,l){i.text=u,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),QD(i),KD(i,f);var p=l?l(i):1;p!=i.height&&An(i,p)}function v3(i){i.parent=null,QD(i)}var g3={},m3={};function JD(i,u){if(!i||/^\s*$/.test(i))return null;var f=u.addModeClass?m3:g3;return f[i]||(f[i]=i.replace(/\S+/g,"cm-$&"))}function XD(i,u){var f=j("span",null,null,d?"padding-right: .1px":null),l={pre:j("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};u.measure={};for(var p=0;p<=(u.rest?u.rest.length:0);p++){var v=p?u.rest[p-1]:u.line,_=void 0;l.pos=0,l.addToken=b3,Zi(i.display.measure)&&(_=Z(v,i.doc.direction))&&(l.addToken=T3(l.addToken,_)),l.map=[];var O=u!=i.display.externalMeasured&>(v);_3(v,l,PD(i,v,O)),v.styleClasses&&(v.styleClasses.bgClass&&(l.bgClass=Ne(v.styleClasses.bgClass,l.bgClass||"")),v.styleClasses.textClass&&(l.textClass=Ne(v.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ip(i.display.measure))),p==0?(u.measure.map=l.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(l.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(d){var A=l.content.lastChild;(/\bcm-tab\b/.test(A.className)||A.querySelector&&A.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return fe(i,"renderLine",i,u.line,l.pre),l.pre.className&&(l.textClass=Ne(l.pre.className,l.textClass||"")),l}function y3(i){var u=M("span","\u2022","cm-invalidchar");return u.title="\\u"+i.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function b3(i,u,f,l,p,v,_){if(!!u){var O=i.splitSpaces?E3(u,i.trailingSpace):u,A=i.cm.state.specialChars,x=!1,V;if(!A.test(u))i.col+=u.length,V=document.createTextNode(O),i.map.push(i.pos,i.pos+u.length,V),s&&c<9&&(x=!0),i.pos+=u.length;else{V=document.createDocumentFragment();for(var Q=0;;){A.lastIndex=Q;var J=A.exec(u),Y=J?J.index-Q:u.length-Q;if(Y){var re=document.createTextNode(O.slice(Q,Q+Y));s&&c<9?V.appendChild(M("span",[re])):V.appendChild(re),i.map.push(i.pos,i.pos+Y,re),i.col+=Y,i.pos+=Y}if(!J)break;Q+=Y+1;var ae=void 0;if(J[0]==" "){var le=i.cm.options.tabSize,he=le-i.col%le;ae=V.appendChild(M("span",pn(he),"cm-tab")),ae.setAttribute("role","presentation"),ae.setAttribute("cm-text"," "),i.col+=he}else J[0]=="\r"||J[0]==`
|
|
`?(ae=V.appendChild(M("span",J[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ae.setAttribute("cm-text",J[0]),i.col+=1):(ae=i.cm.options.specialCharPlaceholder(J[0]),ae.setAttribute("cm-text",J[0]),s&&c<9?V.appendChild(M("span",[ae])):V.appendChild(ae),i.col+=1);i.map.push(i.pos,i.pos+1,ae),i.pos++}}if(i.trailingSpace=O.charCodeAt(u.length-1)==32,f||l||p||x||v||_){var Se=f||"";l&&(Se+=l),p&&(Se+=p);var ve=M("span",[V],Se,v);if(_)for(var Ce in _)_.hasOwnProperty(Ce)&&Ce!="style"&&Ce!="class"&&ve.setAttribute(Ce,_[Ce]);return i.content.appendChild(ve)}i.content.appendChild(V)}}function E3(i,u){if(i.length>1&&!/ /.test(i))return i;for(var f=u,l="",p=0;p<i.length;p++){var v=i.charAt(p);v==" "&&f&&(p==i.length-1||i.charCodeAt(p+1)==32)&&(v="\xA0"),l+=v,f=v==" "}return l}function T3(i,u){return function(f,l,p,v,_,O,A){p=p?p+" cm-force-border":"cm-force-border";for(var x=f.pos,V=x+l.length;;){for(var Q=void 0,J=0;J<u.length&&(Q=u[J],!(Q.to>x&&Q.from<=x));J++);if(Q.to>=V)return i(f,l,p,v,_,O,A);i(f,l.slice(0,Q.to-x),p,v,null,O,A),v=null,l=l.slice(Q.to-x),x=Q.to}}}function ZD(i,u,f,l){var p=!l&&f.widgetNode;p&&i.map.push(i.pos,i.pos+u,p),!l&&i.cm.display.input.needsContentAttribute&&(p||(p=i.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",f.id)),p&&(i.cm.display.input.setUneditable(p),i.content.appendChild(p)),i.pos+=u,i.trailingSpace=!1}function _3(i,u,f){var l=i.markedSpans,p=i.text,v=0;if(!l){for(var _=1;_<f.length;_+=2)u.addToken(u,p.slice(v,v=f[_]),JD(f[_+1],u.cm.options));return}for(var O=p.length,A=0,x=1,V="",Q,J,Y=0,re,ae,le,he,Se;;){if(Y==A){re=ae=le=J="",Se=null,he=null,Y=1/0;for(var ve=[],Ce=void 0,Pe=0;Pe<l.length;++Pe){var Fe=l[Pe],Je=Fe.marker;if(Je.type=="bookmark"&&Fe.from==A&&Je.widgetNode)ve.push(Je);else if(Fe.from<=A&&(Fe.to==null||Fe.to>A||Je.collapsed&&Fe.to==A&&Fe.from==A)){if(Fe.to!=null&&Fe.to!=A&&Y>Fe.to&&(Y=Fe.to,ae=""),Je.className&&(re+=" "+Je.className),Je.css&&(J=(J?J+";":"")+Je.css),Je.startStyle&&Fe.from==A&&(le+=" "+Je.startStyle),Je.endStyle&&Fe.to==Y&&(Ce||(Ce=[])).push(Je.endStyle,Fe.to),Je.title&&((Se||(Se={})).title=Je.title),Je.attributes)for(var xt in Je.attributes)(Se||(Se={}))[xt]=Je.attributes[xt];Je.collapsed&&(!he||Zm(he.marker,Je)<0)&&(he=Fe)}else Fe.from>A&&Y>Fe.from&&(Y=Fe.from)}if(Ce)for(var Dr=0;Dr<Ce.length;Dr+=2)Ce[Dr+1]==Y&&(ae+=" "+Ce[Dr]);if(!he||he.from==A)for(var Wt=0;Wt<ve.length;++Wt)ZD(u,0,ve[Wt]);if(he&&(he.from||0)==A){if(ZD(u,(he.to==null?O+1:he.to)-A,he.marker,he.from==null),he.to==null)return;he.to==A&&(he=!1)}}if(A>=O)break;for(var xn=Math.min(O,Y);;){if(V){var mn=A+V.length;if(!he){var cr=mn>xn?V.slice(0,xn-A):V;u.addToken(u,cr,Q?Q+re:re,le,A+cr.length==Y?ae:"",J,Se)}if(mn>=xn){V=V.slice(xn-A),A=xn;break}A=mn,le=""}V=p.slice(v,v=f[x++]),Q=JD(f[x++],u.cm.options)}}}function $D(i,u,f){this.line=u,this.rest=p3(u),this.size=this.rest?gt(ee(this.rest))-f+1:1,this.node=this.text=null,this.hidden=uo(i,u)}function Up(i,u,f){for(var l=[],p,v=u;v<f;v=p){var _=new $D(i.doc,Ae(i.doc,v),v);p=v+_.size,l.push(_)}return l}var bs=null;function S3(i){bs?bs.ops.push(i):i.ownsGroup=bs={ops:[i],delayedCallbacks:[]}}function D3(i){var u=i.delayedCallbacks,f=0;do{for(;f<u.length;f++)u[f].call(null);for(var l=0;l<i.ops.length;l++){var p=i.ops[l];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(f<u.length)}function k3(i,u){var f=i.ownsGroup;if(!!f)try{D3(f)}finally{bs=null,u(f)}}var Ac=null;function Tr(i,u){var f=$(i,u);if(!!f.length){var l=Array.prototype.slice.call(arguments,2),p;bs?p=bs.delayedCallbacks:Ac?p=Ac:(p=Ac=[],setTimeout(C3,0));for(var v=function(O){p.push(function(){return f[O].apply(null,l)})},_=0;_<f.length;++_)v(_)}}function C3(){var i=Ac;Ac=null;for(var u=0;u<i.length;++u)i[u]()}function ek(i,u,f,l){for(var p=0;p<u.changes.length;p++){var v=u.changes[p];v=="text"?w3(i,u):v=="gutter"?rk(i,u,f,l):v=="class"?ry(i,u):v=="widget"&&N3(i,u,l)}u.changes=null}function Lc(i){return i.node==i.text&&(i.node=M("div",null,null,"position: relative"),i.text.parentNode&&i.text.parentNode.replaceChild(i.node,i.text),i.node.appendChild(i.text),s&&c<8&&(i.node.style.zIndex=2)),i.node}function O3(i,u){var f=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(f&&(f+=" CodeMirror-linebackground"),u.background)f?u.background.className=f:(u.background.parentNode.removeChild(u.background),u.background=null);else if(f){var l=Lc(u);u.background=l.insertBefore(M("div",null,f),l.firstChild),i.display.input.setUneditable(u.background)}}function tk(i,u){var f=i.display.externalMeasured;return f&&f.line==u.line?(i.display.externalMeasured=null,u.measure=f.measure,f.built):XD(i,u)}function w3(i,u){var f=u.text.className,l=tk(i,u);u.text==u.node&&(u.node=l.pre),u.text.parentNode.replaceChild(l.pre,u.text),u.text=l.pre,l.bgClass!=u.bgClass||l.textClass!=u.textClass?(u.bgClass=l.bgClass,u.textClass=l.textClass,ry(i,u)):f&&(u.text.className=f)}function ry(i,u){O3(i,u),u.line.wrapClass?Lc(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var f=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=f||""}function rk(i,u,f,l){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var p=Lc(u);u.gutterBackground=M("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(i.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),i.display.input.setUneditable(u.gutterBackground),p.insertBefore(u.gutterBackground,u.text)}var v=u.line.gutterMarkers;if(i.options.lineNumbers||v){var _=Lc(u),O=u.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(i.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(O.setAttribute("aria-hidden","true"),i.display.input.setUneditable(O),_.insertBefore(O,u.text),u.line.gutterClass&&(O.className+=" "+u.line.gutterClass),i.options.lineNumbers&&(!v||!v["CodeMirror-linenumbers"])&&(u.lineNumber=O.appendChild(M("div",Oc(i.options,f),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+i.display.lineNumInnerWidth+"px"))),v)for(var A=0;A<i.display.gutterSpecs.length;++A){var x=i.display.gutterSpecs[A].className,V=v.hasOwnProperty(x)&&v[x];V&&O.appendChild(M("div",[V],"CodeMirror-gutter-elt","left: "+l.gutterLeft[x]+"px; width: "+l.gutterWidth[x]+"px"))}}}function N3(i,u,f){u.alignable&&(u.alignable=null);for(var l=P("CodeMirror-linewidget"),p=u.node.firstChild,v=void 0;p;p=v)v=p.nextSibling,l.test(p.className)&&u.node.removeChild(p);nk(i,u,f)}function A3(i,u,f,l){var p=tk(i,u);return u.text=u.node=p.pre,p.bgClass&&(u.bgClass=p.bgClass),p.textClass&&(u.textClass=p.textClass),ry(i,u),rk(i,u,f,l),nk(i,u,l),u.node}function nk(i,u,f){if(ik(i,u.line,u,f,!0),u.rest)for(var l=0;l<u.rest.length;l++)ik(i,u.rest[l],u,f,!1)}function ik(i,u,f,l,p){if(!!u.widgets)for(var v=Lc(f),_=0,O=u.widgets;_<O.length;++_){var A=O[_],x=M("div",[A.node],"CodeMirror-linewidget"+(A.className?" "+A.className:""));A.handleMouseEvents||x.setAttribute("cm-ignore-events","true"),L3(A,x,f,l),i.display.input.setUneditable(x),p&&A.above?v.insertBefore(x,f.gutter||f.text):v.appendChild(x),Tr(A,"redraw")}}function L3(i,u,f,l){if(i.noHScroll){(f.alignable||(f.alignable=[])).push(u);var p=l.wrapperWidth;u.style.left=l.fixedPos+"px",i.coverGutter||(p-=l.gutterTotalWidth,u.style.paddingLeft=l.gutterTotalWidth+"px"),u.style.width=p+"px"}i.coverGutter&&(u.style.zIndex=5,u.style.position="relative",i.noHScroll||(u.style.marginLeft=-l.gutterTotalWidth+"px"))}function xc(i){if(i.height!=null)return i.height;var u=i.doc.cm;if(!u)return 0;if(!ke(document.body,i.node)){var f="position: relative;";i.coverGutter&&(f+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),i.noHScroll&&(f+="width: "+u.display.wrapper.clientWidth+"px;"),G(u.display.measure,M("div",[i.node],null,f))}return i.height=i.node.parentNode.offsetHeight}function ja(i,u){for(var f=Ri(u);f!=i.wrapper;f=f.parentNode)if(!f||f.nodeType==1&&f.getAttribute("cm-ignore-events")=="true"||f.parentNode==i.sizer&&f!=i.mover)return!0}function Gp(i){return i.lineSpace.offsetTop}function ny(i){return i.mover.offsetHeight-i.lineSpace.offsetHeight}function ak(i){if(i.cachedPaddingH)return i.cachedPaddingH;var u=G(i.measure,M("pre","x","CodeMirror-line-like")),f=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,l={left:parseInt(f.paddingLeft),right:parseInt(f.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(i.cachedPaddingH=l),l}function na(i){return xe-i.display.nativeBarWidth}function du(i){return i.display.scroller.clientWidth-na(i)-i.display.barWidth}function iy(i){return i.display.scroller.clientHeight-na(i)-i.display.barHeight}function x3(i,u,f){var l=i.options.lineWrapping,p=l&&du(i);if(!u.measure.heights||l&&u.measure.width!=p){var v=u.measure.heights=[];if(l){u.measure.width=p;for(var _=u.text.firstChild.getClientRects(),O=0;O<_.length-1;O++){var A=_[O],x=_[O+1];Math.abs(A.bottom-x.bottom)>2&&v.push((A.bottom+x.top)/2-f.top)}}v.push(f.bottom-f.top)}}function ok(i,u,f){if(i.line==u)return{map:i.measure.map,cache:i.measure.cache};for(var l=0;l<i.rest.length;l++)if(i.rest[l]==u)return{map:i.measure.maps[l],cache:i.measure.caches[l]};for(var p=0;p<i.rest.length;p++)if(gt(i.rest[p])>f)return{map:i.measure.maps[p],cache:i.measure.caches[p],before:!0}}function I3(i,u){u=ra(u);var f=gt(u),l=i.display.externalMeasured=new $D(i.doc,u,f);l.lineN=f;var p=l.built=XD(i,l);return l.text=p.pre,G(i.display.lineMeasure,p.pre),l}function uk(i,u,f,l){return ia(i,Es(i,u),f,l)}function ay(i,u){if(u>=i.display.viewFrom&&u<i.display.viewTo)return i.display.view[vu(i,u)];var f=i.display.externalMeasured;if(f&&u>=f.lineN&&u<f.lineN+f.size)return f}function Es(i,u){var f=gt(u),l=ay(i,f);l&&!l.text?l=null:l&&l.changes&&(ek(i,l,f,fy(i)),i.curOp.forceUpdate=!0),l||(l=I3(i,u));var p=ok(l,u,f);return{line:u,view:l,rect:null,map:p.map,cache:p.cache,before:p.before,hasHeights:!1}}function ia(i,u,f,l,p){u.before&&(f=-1);var v=f+(l||""),_;return u.cache.hasOwnProperty(v)?_=u.cache[v]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(x3(i,u.view,u.rect),u.hasHeights=!0),_=F3(i,u,f,l),_.bogus||(u.cache[v]=_)),{left:_.left,right:_.right,top:p?_.rtop:_.top,bottom:p?_.rbottom:_.bottom}}var sk={left:0,right:0,top:0,bottom:0};function lk(i,u,f){for(var l,p,v,_,O,A,x=0;x<i.length;x+=3)if(O=i[x],A=i[x+1],u<O?(p=0,v=1,_="left"):u<A?(p=u-O,v=p+1):(x==i.length-3||u==A&&i[x+3]>u)&&(v=A-O,p=v-1,u>=A&&(_="right")),p!=null){if(l=i[x+2],O==A&&f==(l.insertLeft?"left":"right")&&(_=f),f=="left"&&p==0)for(;x&&i[x-2]==i[x-3]&&i[x-1].insertLeft;)l=i[(x-=3)+2],_="left";if(f=="right"&&p==A-O)for(;x<i.length-3&&i[x+3]==i[x+4]&&!i[x+5].insertLeft;)l=i[(x+=3)+2],_="right";break}return{node:l,start:p,end:v,collapse:_,coverStart:O,coverEnd:A}}function R3(i,u){var f=sk;if(u=="left")for(var l=0;l<i.length&&(f=i[l]).left==f.right;l++);else for(var p=i.length-1;p>=0&&(f=i[p]).left==f.right;p--);return f}function F3(i,u,f,l){var p=lk(u.map,f,l),v=p.node,_=p.start,O=p.end,A=p.collapse,x;if(v.nodeType==3){for(var V=0;V<4;V++){for(;_&&xa(u.line.text.charAt(p.coverStart+_));)--_;for(;p.coverStart+O<p.coverEnd&&xa(u.line.text.charAt(p.coverStart+O));)++O;if(s&&c<9&&_==0&&O==p.coverEnd-p.coverStart?x=v.parentNode.getBoundingClientRect():x=R3(ce(v,_,O).getClientRects(),l),x.left||x.right||_==0)break;O=_,_=_-1,A="right"}s&&c<11&&(x=P3(i.display.measure,x))}else{_>0&&(A=l="right");var Q;i.options.lineWrapping&&(Q=v.getClientRects()).length>1?x=Q[l=="right"?Q.length-1:0]:x=v.getBoundingClientRect()}if(s&&c<9&&!_&&(!x||!x.left&&!x.right)){var J=v.parentNode.getClientRects()[0];J?x={left:J.left,right:J.left+_s(i.display),top:J.top,bottom:J.bottom}:x=sk}for(var Y=x.top-u.rect.top,re=x.bottom-u.rect.top,ae=(Y+re)/2,le=u.view.measure.heights,he=0;he<le.length-1&&!(ae<le[he]);he++);var Se=he?le[he-1]:0,ve=le[he],Ce={left:(A=="right"?x.right:x.left)-u.rect.left,right:(A=="left"?x.left:x.right)-u.rect.left,top:Se,bottom:ve};return!x.left&&!x.right&&(Ce.bogus=!0),i.options.singleCursorHeightPerLine||(Ce.rtop=Y,Ce.rbottom=re),Ce}function P3(i,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!oo(i))return u;var f=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*f,right:u.right*f,top:u.top*l,bottom:u.bottom*l}}function ck(i){if(i.measure&&(i.measure.cache={},i.measure.heights=null,i.rest))for(var u=0;u<i.rest.length;u++)i.measure.caches[u]={}}function fk(i){i.display.externalMeasure=null,z(i.display.lineMeasure);for(var u=0;u<i.display.view.length;u++)ck(i.display.view[u])}function Ic(i){fk(i),i.display.cachedCharWidth=i.display.cachedTextHeight=i.display.cachedPaddingH=null,i.options.lineWrapping||(i.display.maxLineChanged=!0),i.display.lineNumChars=null}function dk(){return m&&y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pk(){return m&&y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function oy(i){var u=0;if(i.widgets)for(var f=0;f<i.widgets.length;++f)i.widgets[f].above&&(u+=xc(i.widgets[f]));return u}function Qp(i,u,f,l,p){if(!p){var v=oy(u);f.top+=v,f.bottom+=v}if(l=="line")return f;l||(l="local");var _=Pa(u);if(l=="local"?_+=Gp(i.display):_-=i.display.viewOffset,l=="page"||l=="window"){var O=i.display.lineSpace.getBoundingClientRect();_+=O.top+(l=="window"?0:pk());var A=O.left+(l=="window"?0:dk());f.left+=A,f.right+=A}return f.top+=_,f.bottom+=_,f}function hk(i,u,f){if(f=="div")return u;var l=u.left,p=u.top;if(f=="page")l-=dk(),p-=pk();else if(f=="local"||!f){var v=i.display.sizer.getBoundingClientRect();l+=v.left,p+=v.top}var _=i.display.lineSpace.getBoundingClientRect();return{left:l-_.left,top:p-_.top}}function uy(i,u,f,l,p){return l||(l=Ae(i.doc,u.line)),Qp(i,l,uk(i,l,u.ch,p),f)}function ji(i,u,f,l,p,v){l=l||Ae(i.doc,u.line),p||(p=Es(i,l));function _(re,ae){var le=ia(i,p,re,ae?"right":"left",v);return ae?le.left=le.right:le.right=le.left,Qp(i,l,le,f)}var O=Z(l,i.doc.direction),A=u.ch,x=u.sticky;if(A>=l.text.length?(A=l.text.length,x="before"):A<=0&&(A=0,x="after"),!O)return _(x=="before"?A-1:A,x=="before");function V(re,ae,le){var he=O[ae],Se=he.level==1;return _(le?re-1:re,Se!=le)}var Q=q(O,A,x),J=te,Y=V(A,Q,x=="before");return J!=null&&(Y.other=V(A,J,x!="before")),Y}function vk(i,u){var f=0;u=_e(i.doc,u),i.options.lineWrapping||(f=_s(i.display)*u.ch);var l=Ae(i.doc,u.line),p=Pa(l)+Gp(i.display);return{left:f,right:f,top:p,bottom:p+l.height}}function sy(i,u,f,l,p){var v=oe(i,u,f);return v.xRel=p,l&&(v.outside=l),v}function ly(i,u,f){var l=i.doc;if(f+=i.display.viewOffset,f<0)return sy(l.first,0,null,-1,-1);var p=ea(l,f),v=l.first+l.size-1;if(p>v)return sy(l.first+l.size-1,Ae(l,v).text.length,null,1,1);u<0&&(u=0);for(var _=Ae(l,p);;){var O=j3(i,_,p,u,f),A=f3(_,O.ch+(O.xRel>0||O.outside>0?1:0));if(!A)return O;var x=A.find(1);if(x.line==p)return x;_=Ae(l,p=x.line)}}function gk(i,u,f,l){l-=oy(u);var p=u.text.length,v=Nn(function(_){return ia(i,f,_-1).bottom<=l},p,0);return p=Nn(function(_){return ia(i,f,_).top>l},v,p),{begin:v,end:p}}function mk(i,u,f,l){f||(f=Es(i,u));var p=Qp(i,u,ia(i,f,l),"line").top;return gk(i,u,f,p)}function cy(i,u,f,l){return i.bottom<=f?!1:i.top>f?!0:(l?i.left:i.right)>u}function j3(i,u,f,l,p){p-=Pa(u);var v=Es(i,u),_=oy(u),O=0,A=u.text.length,x=!0,V=Z(u,i.doc.direction);if(V){var Q=(i.options.lineWrapping?q3:M3)(i,u,f,v,V,l,p);x=Q.level!=1,O=x?Q.from:Q.to-1,A=x?Q.to:Q.from-1}var J=null,Y=null,re=Nn(function(Pe){var Fe=ia(i,v,Pe);return Fe.top+=_,Fe.bottom+=_,cy(Fe,l,p,!1)?(Fe.top<=p&&Fe.left<=l&&(J=Pe,Y=Fe),!0):!1},O,A),ae,le,he=!1;if(Y){var Se=l-Y.left<Y.right-l,ve=Se==x;re=J+(ve?0:1),le=ve?"after":"before",ae=Se?Y.left:Y.right}else{!x&&(re==A||re==O)&&re++,le=re==0?"after":re==u.text.length?"before":ia(i,v,re-(x?1:0)).bottom+_<=p==x?"after":"before";var Ce=ji(i,oe(f,re,le),"line",u,v);ae=Ce.left,he=p<Ce.top?-1:p>=Ce.bottom?1:0}return re=Ia(u.text,re,1),sy(f,re,le,he,l-ae)}function M3(i,u,f,l,p,v,_){var O=Nn(function(Q){var J=p[Q],Y=J.level!=1;return cy(ji(i,oe(f,Y?J.to:J.from,Y?"before":"after"),"line",u,l),v,_,!0)},0,p.length-1),A=p[O];if(O>0){var x=A.level!=1,V=ji(i,oe(f,x?A.from:A.to,x?"after":"before"),"line",u,l);cy(V,v,_,!0)&&V.top>_&&(A=p[O-1])}return A}function q3(i,u,f,l,p,v,_){var O=gk(i,u,l,_),A=O.begin,x=O.end;/\s/.test(u.text.charAt(x-1))&&x--;for(var V=null,Q=null,J=0;J<p.length;J++){var Y=p[J];if(!(Y.from>=x||Y.to<=A)){var re=Y.level!=1,ae=ia(i,l,re?Math.min(x,Y.to)-1:Math.max(A,Y.from)).right,le=ae<v?v-ae+1e9:ae-v;(!V||Q>le)&&(V=Y,Q=le)}}return V||(V=p[p.length-1]),V.from<A&&(V={from:A,to:V.to,level:V.level}),V.to>x&&(V={from:V.from,to:x,level:V.level}),V}var pu;function Ts(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(pu==null){pu=M("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)pu.appendChild(document.createTextNode("x")),pu.appendChild(M("br"));pu.appendChild(document.createTextNode("x"))}G(i.measure,pu);var f=pu.offsetHeight/50;return f>3&&(i.cachedTextHeight=f),z(i.measure),f||1}function _s(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var u=M("span","xxxxxxxxxx"),f=M("pre",[u],"CodeMirror-line-like");G(i.measure,f);var l=u.getBoundingClientRect(),p=(l.right-l.left)/10;return p>2&&(i.cachedCharWidth=p),p||10}function fy(i){for(var u=i.display,f={},l={},p=u.gutters.clientLeft,v=u.gutters.firstChild,_=0;v;v=v.nextSibling,++_){var O=i.display.gutterSpecs[_].className;f[O]=v.offsetLeft+v.clientLeft+p,l[O]=v.clientWidth}return{fixedPos:dy(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:f,gutterWidth:l,wrapperWidth:u.wrapper.clientWidth}}function dy(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function yk(i){var u=Ts(i.display),f=i.options.lineWrapping,l=f&&Math.max(5,i.display.scroller.clientWidth/_s(i.display)-3);return function(p){if(uo(i.doc,p))return 0;var v=0;if(p.widgets)for(var _=0;_<p.widgets.length;_++)p.widgets[_].height&&(v+=p.widgets[_].height);return f?v+(Math.ceil(p.text.length/l)||1)*u:v+u}}function py(i){var u=i.doc,f=yk(i);u.iter(function(l){var p=f(l);p!=l.height&&An(l,p)})}function hu(i,u,f,l){var p=i.display;if(!f&&Ri(u).getAttribute("cm-not-content")=="true")return null;var v,_,O=p.lineSpace.getBoundingClientRect();try{v=u.clientX-O.left,_=u.clientY-O.top}catch(Q){return null}var A=ly(i,v,_),x;if(l&&A.xRel>0&&(x=Ae(i.doc,A.line).text).length==A.ch){var V=st(x,x.length,i.options.tabSize)-x.length;A=oe(A.line,Math.max(0,Math.round((v-ak(i.display).left)/_s(i.display))-V))}return A}function vu(i,u){if(u>=i.display.viewTo||(u-=i.display.viewFrom,u<0))return null;for(var f=i.display.view,l=0;l<f.length;l++)if(u-=f[l].size,u<0)return l}function vn(i,u,f,l){u==null&&(u=i.doc.first),f==null&&(f=i.doc.first+i.doc.size),l||(l=0);var p=i.display;if(l&&f<p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>u)&&(p.updateLineNumbers=u),i.curOp.viewChanged=!0,u>=p.viewTo)Fa&&$m(i.doc,u)<p.viewTo&&lo(i);else if(f<=p.viewFrom)Fa&&YD(i.doc,f+l)>p.viewFrom?lo(i):(p.viewFrom+=l,p.viewTo+=l);else if(u<=p.viewFrom&&f>=p.viewTo)lo(i);else if(u<=p.viewFrom){var v=Kp(i,f,f+l,1);v?(p.view=p.view.slice(v.index),p.viewFrom=v.lineN,p.viewTo+=l):lo(i)}else if(f>=p.viewTo){var _=Kp(i,u,u,-1);_?(p.view=p.view.slice(0,_.index),p.viewTo=_.lineN):lo(i)}else{var O=Kp(i,u,u,-1),A=Kp(i,f,f+l,1);O&&A?(p.view=p.view.slice(0,O.index).concat(Up(i,O.lineN,A.lineN)).concat(p.view.slice(A.index)),p.viewTo+=l):lo(i)}var x=p.externalMeasured;x&&(f<x.lineN?x.lineN+=l:u<x.lineN+x.size&&(p.externalMeasured=null))}function so(i,u,f){i.curOp.viewChanged=!0;var l=i.display,p=i.display.externalMeasured;if(p&&u>=p.lineN&&u<p.lineN+p.size&&(l.externalMeasured=null),!(u<l.viewFrom||u>=l.viewTo)){var v=l.view[vu(i,u)];if(v.node!=null){var _=v.changes||(v.changes=[]);Oe(_,f)==-1&&_.push(f)}}}function lo(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function Kp(i,u,f,l){var p=vu(i,u),v,_=i.display.view;if(!Fa||f==i.doc.first+i.doc.size)return{index:p,lineN:f};for(var O=i.display.viewFrom,A=0;A<p;A++)O+=_[A].size;if(O!=u){if(l>0){if(p==_.length-1)return null;v=O+_[p].size-u,p++}else v=O-u;u+=v,f+=v}for(;$m(i.doc,f)!=f;){if(p==(l<0?0:_.length-1))return null;f+=l*_[p-(l<0?1:0)].size,p+=l}return{index:p,lineN:f}}function B3(i,u,f){var l=i.display,p=l.view;p.length==0||u>=l.viewTo||f<=l.viewFrom?(l.view=Up(i,u,f),l.viewFrom=u):(l.viewFrom>u?l.view=Up(i,u,l.viewFrom).concat(l.view):l.viewFrom<u&&(l.view=l.view.slice(vu(i,u))),l.viewFrom=u,l.viewTo<f?l.view=l.view.concat(Up(i,l.viewTo,f)):l.viewTo>f&&(l.view=l.view.slice(0,vu(i,f)))),l.viewTo=f}function bk(i){for(var u=i.display.view,f=0,l=0;l<u.length;l++){var p=u[l];!p.hidden&&(!p.node||p.changes)&&++f}return f}function Rc(i){i.display.input.showSelection(i.display.input.prepareSelection())}function Ek(i,u){u===void 0&&(u=!0);for(var f=i.doc,l={},p=l.cursors=document.createDocumentFragment(),v=l.selection=document.createDocumentFragment(),_=0;_<f.sel.ranges.length;_++)if(!(!u&&_==f.sel.primIndex)){var O=f.sel.ranges[_];if(!(O.from().line>=i.display.viewTo||O.to().line<i.display.viewFrom)){var A=O.empty();(A||i.options.showCursorWhenSelecting)&&Tk(i,O.head,p),A||V3(i,O,v)}}return l}function Tk(i,u,f){var l=ji(i,u,"div",null,null,!i.options.singleCursorHeightPerLine),p=f.appendChild(M("div","\xA0","CodeMirror-cursor"));if(p.style.left=l.left+"px",p.style.top=l.top+"px",p.style.height=Math.max(0,l.bottom-l.top)*i.options.cursorHeight+"px",l.other){var v=f.appendChild(M("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=l.other.left+"px",v.style.top=l.other.top+"px",v.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Hp(i,u){return i.top-u.top||i.left-u.left}function V3(i,u,f){var l=i.display,p=i.doc,v=document.createDocumentFragment(),_=ak(i.display),O=_.left,A=Math.max(l.sizerWidth,du(i)-l.sizer.offsetLeft)-_.right,x=p.direction=="ltr";function V(ve,Ce,Pe,Fe){Ce<0&&(Ce=0),Ce=Math.round(Ce),Fe=Math.round(Fe),v.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+ve+`px;
|
|
top: `+Ce+"px; width: "+(Pe==null?A-ve:Pe)+`px;
|
|
height: `+(Fe-Ce)+"px"))}function Q(ve,Ce,Pe){var Fe=Ae(p,ve),Je=Fe.text.length,xt,Dr;function Wt(cr,yn){return uy(i,oe(ve,cr),"div",Fe,yn)}function xn(cr,yn,Fr){var mr=mk(i,Fe,null,cr),fr=yn=="ltr"==(Fr=="after")?"left":"right",er=Fr=="after"?mr.begin:mr.end-(/\s/.test(Fe.text.charAt(mr.end-1))?2:1);return Wt(er,fr)[fr]}var mn=Z(Fe,p.direction);return cu(mn,Ce||0,Pe==null?Je:Pe,function(cr,yn,Fr,mr){var fr=Fr=="ltr",er=Wt(cr,fr?"left":"right"),bn=Wt(yn-1,fr?"right":"left"),Fs=Ce==null&&cr==0,go=Pe==null&&yn==Je,Gr=mr==0,aa=!mn||mr==mn.length-1;if(bn.top-er.top<=3){var kr=(x?Fs:go)&&Gr,qy=(x?go:Fs)&&aa,qa=kr?O:(fr?er:bn).left,Eu=qy?A:(fr?bn:er).right;V(qa,er.top,Eu-qa,er.bottom)}else{var Tu,$r,Ps,By;fr?(Tu=x&&Fs&&Gr?O:er.left,$r=x?A:xn(cr,Fr,"before"),Ps=x?O:xn(yn,Fr,"after"),By=x&&go&&aa?A:bn.right):(Tu=x?xn(cr,Fr,"before"):O,$r=!x&&Fs&&Gr?A:er.right,Ps=!x&&go&&aa?O:bn.left,By=x?xn(yn,Fr,"after"):A),V(Tu,er.top,$r-Tu,er.bottom),er.bottom<bn.top&&V(O,er.bottom,null,bn.top),V(Ps,bn.top,By-Ps,bn.bottom)}(!xt||Hp(er,xt)<0)&&(xt=er),Hp(bn,xt)<0&&(xt=bn),(!Dr||Hp(er,Dr)<0)&&(Dr=er),Hp(bn,Dr)<0&&(Dr=bn)}),{start:xt,end:Dr}}var J=u.from(),Y=u.to();if(J.line==Y.line)Q(J.line,J.ch,Y.ch);else{var re=Ae(p,J.line),ae=Ae(p,Y.line),le=ra(re)==ra(ae),he=Q(J.line,J.ch,le?re.text.length+1:null).end,Se=Q(Y.line,le?0:null,Y.ch).start;le&&(he.top<Se.top-2?(V(he.right,he.top,null,he.bottom),V(O,Se.top,Se.left,Se.bottom)):V(he.right,he.top,Se.left-he.right,he.bottom)),he.bottom<Se.top&&V(O,he.bottom,null,Se.top)}f.appendChild(v)}function hy(i){if(!!i.state.focused){var u=i.display;clearInterval(u.blinker);var f=!0;u.cursorDiv.style.visibility="",i.options.cursorBlinkRate>0?u.blinker=setInterval(function(){i.hasFocus()||Ss(i),u.cursorDiv.style.visibility=(f=!f)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function _k(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||gy(i))}function vy(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&Ss(i))},100)}function gy(i,u){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(fe(i,"focus",i,u),i.state.focused=!0,we(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),d&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),hy(i))}function Ss(i,u){i.state.delayingBlurEvent||(i.state.focused&&(fe(i,"blur",i,u),i.state.focused=!1,B(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function zp(i){for(var u=i.display,f=u.lineDiv.offsetTop,l=0;l<u.view.length;l++){var p=u.view[l],v=i.options.lineWrapping,_=void 0,O=0;if(!p.hidden){if(s&&c<8){var A=p.node.offsetTop+p.node.offsetHeight;_=A-f,f=A}else{var x=p.node.getBoundingClientRect();_=x.bottom-x.top,!v&&p.text.firstChild&&(O=p.text.firstChild.getBoundingClientRect().right-x.left-1)}var V=p.line.height-_;if((V>.005||V<-.005)&&(An(p.line,_),Sk(p.line),p.rest))for(var Q=0;Q<p.rest.length;Q++)Sk(p.rest[Q]);if(O>i.display.sizerWidth){var J=Math.ceil(O/_s(i.display));J>i.display.maxLineLength&&(i.display.maxLineLength=J,i.display.maxLine=p.line,i.display.maxLineChanged=!0)}}}}function Sk(i){if(i.widgets)for(var u=0;u<i.widgets.length;++u){var f=i.widgets[u],l=f.node.parentNode;l&&(f.height=l.offsetHeight)}}function Wp(i,u,f){var l=f&&f.top!=null?Math.max(0,f.top):i.scroller.scrollTop;l=Math.floor(l-Gp(i));var p=f&&f.bottom!=null?f.bottom:l+i.wrapper.clientHeight,v=ea(u,l),_=ea(u,p);if(f&&f.ensure){var O=f.ensure.from.line,A=f.ensure.to.line;O<v?(v=O,_=ea(u,Pa(Ae(u,O))+i.wrapper.clientHeight)):Math.min(A,u.lastLine())>=_&&(v=ea(u,Pa(Ae(u,A))-i.wrapper.clientHeight),_=A)}return{from:v,to:Math.max(_,v+1)}}function U3(i,u){if(!Qe(i,"scrollCursorIntoView")){var f=i.display,l=f.sizer.getBoundingClientRect(),p=null;if(u.top+l.top<0?p=!0:u.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(p=!1),p!=null&&!L){var v=M("div","\u200B",null,`position: absolute;
|
|
top: `+(u.top-f.viewOffset-Gp(i.display))+`px;
|
|
height: `+(u.bottom-u.top+na(i)+f.barHeight)+`px;
|
|
left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");i.display.lineSpace.appendChild(v),v.scrollIntoView(p),i.display.lineSpace.removeChild(v)}}}function G3(i,u,f,l){l==null&&(l=0);var p;!i.options.lineWrapping&&u==f&&(f=u.sticky=="before"?oe(u.line,u.ch+1,"before"):u,u=u.ch?oe(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var v=0;v<5;v++){var _=!1,O=ji(i,u),A=!f||f==u?O:ji(i,f);p={left:Math.min(O.left,A.left),top:Math.min(O.top,A.top)-l,right:Math.max(O.left,A.left),bottom:Math.max(O.bottom,A.bottom)+l};var x=my(i,p),V=i.doc.scrollTop,Q=i.doc.scrollLeft;if(x.scrollTop!=null&&(Pc(i,x.scrollTop),Math.abs(i.doc.scrollTop-V)>1&&(_=!0)),x.scrollLeft!=null&&(gu(i,x.scrollLeft),Math.abs(i.doc.scrollLeft-Q)>1&&(_=!0)),!_)break}return p}function Q3(i,u){var f=my(i,u);f.scrollTop!=null&&Pc(i,f.scrollTop),f.scrollLeft!=null&&gu(i,f.scrollLeft)}function my(i,u){var f=i.display,l=Ts(i.display);u.top<0&&(u.top=0);var p=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:f.scroller.scrollTop,v=iy(i),_={};u.bottom-u.top>v&&(u.bottom=u.top+v);var O=i.doc.height+ny(f),A=u.top<l,x=u.bottom>O-l;if(u.top<p)_.scrollTop=A?0:u.top;else if(u.bottom>p+v){var V=Math.min(u.top,(x?O:u.bottom)-v);V!=p&&(_.scrollTop=V)}var Q=i.options.fixedGutter?0:f.gutters.offsetWidth,J=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:f.scroller.scrollLeft-Q,Y=du(i)-f.gutters.offsetWidth,re=u.right-u.left>Y;return re&&(u.right=u.left+Y),u.left<10?_.scrollLeft=0:u.left<J?_.scrollLeft=Math.max(0,u.left+Q-(re?0:10)):u.right>Y+J-3&&(_.scrollLeft=u.right+(re?0:10)-Y),_}function yy(i,u){u!=null&&(Yp(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+u)}function Ds(i){Yp(i);var u=i.getCursor();i.curOp.scrollToPos={from:u,to:u,margin:i.options.cursorScrollMargin}}function Fc(i,u,f){(u!=null||f!=null)&&Yp(i),u!=null&&(i.curOp.scrollLeft=u),f!=null&&(i.curOp.scrollTop=f)}function K3(i,u){Yp(i),i.curOp.scrollToPos=u}function Yp(i){var u=i.curOp.scrollToPos;if(u){i.curOp.scrollToPos=null;var f=vk(i,u.from),l=vk(i,u.to);Dk(i,f,l,u.margin)}}function Dk(i,u,f,l){var p=my(i,{left:Math.min(u.left,f.left),top:Math.min(u.top,f.top)-l,right:Math.max(u.right,f.right),bottom:Math.max(u.bottom,f.bottom)+l});Fc(i,p.scrollLeft,p.scrollTop)}function Pc(i,u){Math.abs(i.doc.scrollTop-u)<2||(r||Ey(i,{top:u}),kk(i,u,!0),r&&Ey(i),qc(i,100))}function kk(i,u,f){u=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,u)),!(i.display.scroller.scrollTop==u&&!f)&&(i.doc.scrollTop=u,i.display.scrollbars.setScrollTop(u),i.display.scroller.scrollTop!=u&&(i.display.scroller.scrollTop=u))}function gu(i,u,f,l){u=Math.max(0,Math.min(u,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((f?u==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-u)<2)&&!l)&&(i.doc.scrollLeft=u,Ak(i),i.display.scroller.scrollLeft!=u&&(i.display.scroller.scrollLeft=u),i.display.scrollbars.setScrollLeft(u))}function jc(i){var u=i.display,f=u.gutters.offsetWidth,l=Math.round(i.doc.height+ny(i.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:i.options.fixedGutter?f:0,docHeight:l,scrollHeight:l+na(i)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:f}}var mu=function(i,u,f){this.cm=f;var l=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=p.tabIndex=-1,i(l),i(p),R(l,"scroll",function(){l.clientHeight&&u(l.scrollTop,"vertical")}),R(p,"scroll",function(){p.clientWidth&&u(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mu.prototype.update=function(i){var u=i.scrollWidth>i.clientWidth+1,f=i.scrollHeight>i.clientHeight+1,l=i.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=u?l+"px":"0";var p=i.viewHeight-(u?l:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+p)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=f?l+"px":"0",this.horiz.style.left=i.barLeft+"px";var v=i.viewWidth-i.barLeft-(f?l:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:f?l:0,bottom:u?l:0}},mu.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mu.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mu.prototype.zeroWidthHack=function(){var i=g&&!C?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new vt,this.disableVert=new vt},mu.prototype.enableZeroWidthBar=function(i,u,f){i.style.pointerEvents="auto";function l(){var p=i.getBoundingClientRect(),v=f=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);v!=i?i.style.pointerEvents="none":u.set(1e3,l)}u.set(1e3,l)},mu.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var Mc=function(){};Mc.prototype.update=function(){return{bottom:0,right:0}},Mc.prototype.setScrollLeft=function(){},Mc.prototype.setScrollTop=function(){},Mc.prototype.clear=function(){};function ks(i,u){u||(u=jc(i));var f=i.display.barWidth,l=i.display.barHeight;Ck(i,u);for(var p=0;p<4&&f!=i.display.barWidth||l!=i.display.barHeight;p++)f!=i.display.barWidth&&i.options.lineWrapping&&zp(i),Ck(i,jc(i)),f=i.display.barWidth,l=i.display.barHeight}function Ck(i,u){var f=i.display,l=f.scrollbars.update(u);f.sizer.style.paddingRight=(f.barWidth=l.right)+"px",f.sizer.style.paddingBottom=(f.barHeight=l.bottom)+"px",f.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(f.scrollbarFiller.style.display="block",f.scrollbarFiller.style.height=l.bottom+"px",f.scrollbarFiller.style.width=l.right+"px"):f.scrollbarFiller.style.display="",l.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(f.gutterFiller.style.display="block",f.gutterFiller.style.height=l.bottom+"px",f.gutterFiller.style.width=u.gutterWidth+"px"):f.gutterFiller.style.display=""}var Ok={native:mu,null:Mc};function wk(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&B(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new Ok[i.options.scrollbarStyle](function(u){i.display.wrapper.insertBefore(u,i.display.scrollbarFiller),R(u,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,f){f=="horizontal"?gu(i,u):Pc(i,u)},i),i.display.scrollbars.addClass&&we(i.display.wrapper,i.display.scrollbars.addClass)}var H3=0;function yu(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++H3,markArrays:null},S3(i.curOp)}function bu(i){var u=i.curOp;u&&k3(u,function(f){for(var l=0;l<f.ops.length;l++)f.ops[l].cm.curOp=null;z3(f)})}function z3(i){for(var u=i.ops,f=0;f<u.length;f++)W3(u[f]);for(var l=0;l<u.length;l++)Y3(u[l]);for(var p=0;p<u.length;p++)J3(u[p]);for(var v=0;v<u.length;v++)X3(u[v]);for(var _=0;_<u.length;_++)Z3(u[_])}function W3(i){var u=i.cm,f=u.display;eB(u),i.updateMaxLine&&ty(u),i.mustUpdate=i.viewChanged||i.forceUpdate||i.scrollTop!=null||i.scrollToPos&&(i.scrollToPos.from.line<f.viewFrom||i.scrollToPos.to.line>=f.viewTo)||f.maxLineChanged&&u.options.lineWrapping,i.update=i.mustUpdate&&new Jp(u,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function Y3(i){i.updatedDisplay=i.mustUpdate&&by(i.cm,i.update)}function J3(i){var u=i.cm,f=u.display;i.updatedDisplay&&zp(u),i.barMeasure=jc(u),f.maxLineChanged&&!u.options.lineWrapping&&(i.adjustWidthTo=uk(u,f.maxLine,f.maxLine.text.length).left+3,u.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+i.adjustWidthTo+na(u)+u.display.barWidth),i.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+i.adjustWidthTo-du(u))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=f.input.prepareSelection())}function X3(i){var u=i.cm;i.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft<u.doc.scrollLeft&&gu(u,Math.min(u.display.scroller.scrollLeft,i.maxScrollLeft),!0),u.display.maxLineChanged=!1);var f=i.focus&&i.focus==pe();i.preparedSelection&&u.display.input.showSelection(i.preparedSelection,f),(i.updatedDisplay||i.startHeight!=u.doc.height)&&ks(u,i.barMeasure),i.updatedDisplay&&_y(u,i.barMeasure),i.selectionChanged&&hy(u),u.state.focused&&i.updateInput&&u.display.input.reset(i.typing),f&&_k(i.cm)}function Z3(i){var u=i.cm,f=u.display,l=u.doc;if(i.updatedDisplay&&Nk(u,i.update),f.wheelStartX!=null&&(i.scrollTop!=null||i.scrollLeft!=null||i.scrollToPos)&&(f.wheelStartX=f.wheelStartY=null),i.scrollTop!=null&&kk(u,i.scrollTop,i.forceScroll),i.scrollLeft!=null&&gu(u,i.scrollLeft,!0,!0),i.scrollToPos){var p=G3(u,_e(l,i.scrollToPos.from),_e(l,i.scrollToPos.to),i.scrollToPos.margin);U3(u,p)}var v=i.maybeHiddenMarkers,_=i.maybeUnhiddenMarkers;if(v)for(var O=0;O<v.length;++O)v[O].lines.length||fe(v[O],"hide");if(_)for(var A=0;A<_.length;++A)_[A].lines.length&&fe(_[A],"unhide");f.wrapper.offsetHeight&&(l.scrollTop=u.display.scroller.scrollTop),i.changeObjs&&fe(u,"changes",u,i.changeObjs),i.update&&i.update.finish()}function Ln(i,u){if(i.curOp)return u();yu(i);try{return u()}finally{bu(i)}}function _r(i,u){return function(){if(i.curOp)return u.apply(i,arguments);yu(i);try{return u.apply(i,arguments)}finally{bu(i)}}}function Zr(i){return function(){if(this.curOp)return i.apply(this,arguments);yu(this);try{return i.apply(this,arguments)}finally{bu(this)}}}function Sr(i){return function(){var u=this.cm;if(!u||u.curOp)return i.apply(this,arguments);yu(u);try{return i.apply(this,arguments)}finally{bu(u)}}}function qc(i,u){i.doc.highlightFrontier<i.display.viewTo&&i.state.highlight.set(u,ht($3,i))}function $3(i){var u=i.doc;if(!(u.highlightFrontier>=i.display.viewTo)){var f=+new Date+i.options.workTime,l=wc(i,u.highlightFrontier),p=[];u.iter(l.line,Math.min(u.first+u.size,i.display.viewTo+500),function(v){if(l.line>=i.display.viewFrom){var _=v.styles,O=v.text.length>i.options.maxHighlightLength?Hn(u.mode,l.state):null,A=FD(i,v,l,!0);O&&(l.state=O),v.styles=A.styles;var x=v.styleClasses,V=A.classes;V?v.styleClasses=V:x&&(v.styleClasses=null);for(var Q=!_||_.length!=v.styles.length||x!=V&&(!x||!V||x.bgClass!=V.bgClass||x.textClass!=V.textClass),J=0;!Q&&J<_.length;++J)Q=_[J]!=v.styles[J];Q&&p.push(l.line),v.stateAfter=l.save(),l.nextLine()}else v.text.length<=i.options.maxHighlightLength&&Ym(i,v.text,l),v.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>f)return qc(i,i.options.workDelay),!0}),u.highlightFrontier=l.line,u.modeFrontier=Math.max(u.modeFrontier,l.line),p.length&&Ln(i,function(){for(var v=0;v<p.length;v++)so(i,p[v],"text")})}}var Jp=function(i,u,f){var l=i.display;this.viewport=u,this.visible=Wp(l,i.doc,u),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=du(i),this.force=f,this.dims=fy(i),this.events=[]};Jp.prototype.signal=function(i,u){Dt(i,u)&&this.events.push(arguments)},Jp.prototype.finish=function(){for(var i=0;i<this.events.length;i++)fe.apply(null,this.events[i])};function eB(i){var u=i.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=na(i)+"px",u.sizer.style.marginBottom=-u.nativeBarWidth+"px",u.sizer.style.borderRightWidth=na(i)+"px",u.scrollbarsClipped=!0)}function tB(i){if(i.hasFocus())return null;var u=pe();if(!u||!ke(i.display.lineDiv,u))return null;var f={activeElt:u};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ke(i.display.lineDiv,l.anchorNode)&&(f.anchorNode=l.anchorNode,f.anchorOffset=l.anchorOffset,f.focusNode=l.focusNode,f.focusOffset=l.focusOffset)}return f}function rB(i){if(!(!i||!i.activeElt||i.activeElt==pe())&&(i.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(i.activeElt.nodeName)&&i.anchorNode&&ke(document.body,i.anchorNode)&&ke(document.body,i.focusNode))){var u=window.getSelection(),f=document.createRange();f.setEnd(i.anchorNode,i.anchorOffset),f.collapse(!1),u.removeAllRanges(),u.addRange(f),u.extend(i.focusNode,i.focusOffset)}}function by(i,u){var f=i.display,l=i.doc;if(u.editorIsHidden)return lo(i),!1;if(!u.force&&u.visible.from>=f.viewFrom&&u.visible.to<=f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo)&&f.renderedView==f.view&&bk(i)==0)return!1;Lk(i)&&(lo(i),u.dims=fy(i));var p=l.first+l.size,v=Math.max(u.visible.from-i.options.viewportMargin,l.first),_=Math.min(p,u.visible.to+i.options.viewportMargin);f.viewFrom<v&&v-f.viewFrom<20&&(v=Math.max(l.first,f.viewFrom)),f.viewTo>_&&f.viewTo-_<20&&(_=Math.min(p,f.viewTo)),Fa&&(v=$m(i.doc,v),_=YD(i.doc,_));var O=v!=f.viewFrom||_!=f.viewTo||f.lastWrapHeight!=u.wrapperHeight||f.lastWrapWidth!=u.wrapperWidth;B3(i,v,_),f.viewOffset=Pa(Ae(i.doc,f.viewFrom)),i.display.mover.style.top=f.viewOffset+"px";var A=bk(i);if(!O&&A==0&&!u.force&&f.renderedView==f.view&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo))return!1;var x=tB(i);return A>4&&(f.lineDiv.style.display="none"),nB(i,f.updateLineNumbers,u.dims),A>4&&(f.lineDiv.style.display=""),f.renderedView=f.view,rB(x),z(f.cursorDiv),z(f.selectionDiv),f.gutters.style.height=f.sizer.style.minHeight=0,O&&(f.lastWrapHeight=u.wrapperHeight,f.lastWrapWidth=u.wrapperWidth,qc(i,400)),f.updateLineNumbers=null,!0}function Nk(i,u){for(var f=u.viewport,l=!0;;l=!1){if(!l||!i.options.lineWrapping||u.oldDisplayWidth==du(i)){if(f&&f.top!=null&&(f={top:Math.min(i.doc.height+ny(i.display)-iy(i),f.top)}),u.visible=Wp(i.display,i.doc,f),u.visible.from>=i.display.viewFrom&&u.visible.to<=i.display.viewTo)break}else l&&(u.visible=Wp(i.display,i.doc,f));if(!by(i,u))break;zp(i);var p=jc(i);Rc(i),ks(i,p),_y(i,p),u.force=!1}u.signal(i,"update",i),(i.display.viewFrom!=i.display.reportedViewFrom||i.display.viewTo!=i.display.reportedViewTo)&&(u.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function Ey(i,u){var f=new Jp(i,u);if(by(i,f)){zp(i),Nk(i,f);var l=jc(i);Rc(i),ks(i,l),_y(i,l),f.finish()}}function nB(i,u,f){var l=i.display,p=i.options.lineNumbers,v=l.lineDiv,_=v.firstChild;function O(re){var ae=re.nextSibling;return d&&g&&i.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ae}for(var A=l.view,x=l.viewFrom,V=0;V<A.length;V++){var Q=A[V];if(!Q.hidden)if(!Q.node||Q.node.parentNode!=v){var J=A3(i,Q,x,f);v.insertBefore(J,_)}else{for(;_!=Q.node;)_=O(_);var Y=p&&u!=null&&u<=x&&Q.lineNumber;Q.changes&&(Oe(Q.changes,"gutter")>-1&&(Y=!1),ek(i,Q,x,f)),Y&&(z(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(Oc(i.options,x)))),_=Q.node.nextSibling}x+=Q.size}for(;_;)_=O(_)}function Ty(i){var u=i.gutters.offsetWidth;i.sizer.style.marginLeft=u+"px",Tr(i,"gutterChanged",i)}function _y(i,u){i.display.sizer.style.minHeight=u.docHeight+"px",i.display.heightForcer.style.top=u.docHeight+"px",i.display.gutters.style.height=u.docHeight+i.display.barHeight+na(i)+"px"}function Ak(i){var u=i.display,f=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!i.options.fixedGutter))){for(var l=dy(u)-u.scroller.scrollLeft+i.doc.scrollLeft,p=u.gutters.offsetWidth,v=l+"px",_=0;_<f.length;_++)if(!f[_].hidden){i.options.fixedGutter&&(f[_].gutter&&(f[_].gutter.style.left=v),f[_].gutterBackground&&(f[_].gutterBackground.style.left=v));var O=f[_].alignable;if(O)for(var A=0;A<O.length;A++)O[A].style.left=v}i.options.fixedGutter&&(u.gutters.style.left=l+p+"px")}}function Lk(i){if(!i.options.lineNumbers)return!1;var u=i.doc,f=Oc(i.options,u.first+u.size-1),l=i.display;if(f.length!=l.lineNumChars){var p=l.measure.appendChild(M("div",[M("div",f)],"CodeMirror-linenumber CodeMirror-gutter-elt")),v=p.firstChild.offsetWidth,_=p.offsetWidth-v;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(v,l.lineGutter.offsetWidth-_)+1,l.lineNumWidth=l.lineNumInnerWidth+_,l.lineNumChars=l.lineNumInnerWidth?f.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",Ty(i.display),!0}return!1}function Sy(i,u){for(var f=[],l=!1,p=0;p<i.length;p++){var v=i[p],_=null;if(typeof v!="string"&&(_=v.style,v=v.className),v=="CodeMirror-linenumbers")if(u)l=!0;else continue;f.push({className:v,style:_})}return u&&!l&&f.push({className:"CodeMirror-linenumbers",style:null}),f}function xk(i){var u=i.gutters,f=i.gutterSpecs;z(u),i.lineGutter=null;for(var l=0;l<f.length;++l){var p=f[l],v=p.className,_=p.style,O=u.appendChild(M("div",null,"CodeMirror-gutter "+v));_&&(O.style.cssText=_),v=="CodeMirror-linenumbers"&&(i.lineGutter=O,O.style.width=(i.lineNumWidth||1)+"px")}u.style.display=f.length?"":"none",Ty(i)}function Bc(i){xk(i.display),vn(i),Ak(i)}function iB(i,u,f,l){var p=this;this.input=f,p.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),p.scrollbarFiller.setAttribute("cm-not-content","true"),p.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),p.gutterFiller.setAttribute("cm-not-content","true"),p.lineDiv=j("div",null,"CodeMirror-code"),p.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),p.cursorDiv=M("div",null,"CodeMirror-cursors"),p.measure=M("div",null,"CodeMirror-measure"),p.lineMeasure=M("div",null,"CodeMirror-measure"),p.lineSpace=j("div",[p.measure,p.lineMeasure,p.selectionDiv,p.cursorDiv,p.lineDiv],null,"position: relative; outline: none");var v=j("div",[p.lineSpace],"CodeMirror-lines");p.mover=M("div",[v],null,"position: relative"),p.sizer=M("div",[p.mover],"CodeMirror-sizer"),p.sizerWidth=null,p.heightForcer=M("div",null,null,"position: absolute; height: "+xe+"px; width: 1px;"),p.gutters=M("div",null,"CodeMirror-gutters"),p.lineGutter=null,p.scroller=M("div",[p.sizer,p.heightForcer,p.gutters],"CodeMirror-scroll"),p.scroller.setAttribute("tabIndex","-1"),p.wrapper=M("div",[p.scrollbarFiller,p.gutterFiller,p.scroller],"CodeMirror"),s&&c<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!d&&!(r&&T)&&(p.scroller.draggable=!0),i&&(i.appendChild?i.appendChild(p.wrapper):i(p.wrapper)),p.viewFrom=p.viewTo=u.first,p.reportedViewFrom=p.reportedViewTo=u.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=Sy(l.gutters,l.lineNumbers),xk(p),f.init(p)}var Xp=0,Wn=null;s?Wn=-.53:r?Wn=15:m?Wn=-.7:b&&(Wn=-1/3);function Ik(i){var u=i.wheelDeltaX,f=i.wheelDeltaY;return u==null&&i.detail&&i.axis==i.HORIZONTAL_AXIS&&(u=i.detail),f==null&&i.detail&&i.axis==i.VERTICAL_AXIS?f=i.detail:f==null&&(f=i.wheelDelta),{x:u,y:f}}function aB(i){var u=Ik(i);return u.x*=Wn,u.y*=Wn,u}function Rk(i,u){var f=Ik(u),l=f.x,p=f.y,v=i.display,_=v.scroller,O=_.scrollWidth>_.clientWidth,A=_.scrollHeight>_.clientHeight;if(!!(l&&O||p&&A)){if(p&&g&&d){e:for(var x=u.target,V=v.view;x!=_;x=x.parentNode)for(var Q=0;Q<V.length;Q++)if(V[Q].node==x){i.display.currentWheelTarget=x;break e}}if(l&&!r&&!E&&Wn!=null){p&&A&&Pc(i,Math.max(0,_.scrollTop+p*Wn)),gu(i,Math.max(0,_.scrollLeft+l*Wn)),(!p||p&&A)&&Rt(u),v.wheelStartX=null;return}if(p&&Wn!=null){var J=p*Wn,Y=i.doc.scrollTop,re=Y+v.wrapper.clientHeight;J<0?Y=Math.max(0,Y+J-50):re=Math.min(i.doc.height,re+J+50),Ey(i,{top:Y,bottom:re})}Xp<20&&(v.wheelStartX==null?(v.wheelStartX=_.scrollLeft,v.wheelStartY=_.scrollTop,v.wheelDX=l,v.wheelDY=p,setTimeout(function(){if(v.wheelStartX!=null){var ae=_.scrollLeft-v.wheelStartX,le=_.scrollTop-v.wheelStartY,he=le&&v.wheelDY&&le/v.wheelDY||ae&&v.wheelDX&&ae/v.wheelDX;v.wheelStartX=v.wheelStartY=null,!!he&&(Wn=(Wn*Xp+he)/(Xp+1),++Xp)}},200)):(v.wheelDX+=l,v.wheelDY+=p))}}var Yn=function(i,u){this.ranges=i,this.primIndex=u};Yn.prototype.primary=function(){return this.ranges[this.primIndex]},Yn.prototype.equals=function(i){if(i==this)return!0;if(i.primIndex!=this.primIndex||i.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var f=this.ranges[u],l=i.ranges[u];if(!K(f.anchor,l.anchor)||!K(f.head,l.head))return!1}return!0},Yn.prototype.deepCopy=function(){for(var i=[],u=0;u<this.ranges.length;u++)i[u]=new mt(ne(this.ranges[u].anchor),ne(this.ranges[u].head));return new Yn(i,this.primIndex)},Yn.prototype.somethingSelected=function(){for(var i=0;i<this.ranges.length;i++)if(!this.ranges[i].empty())return!0;return!1},Yn.prototype.contains=function(i,u){u||(u=i);for(var f=0;f<this.ranges.length;f++){var l=this.ranges[f];if(I(u,l.from())>=0&&I(i,l.to())<=0)return f}return-1};var mt=function(i,u){this.anchor=i,this.head=u};mt.prototype.from=function(){return Be(this.anchor,this.head)},mt.prototype.to=function(){return se(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Mi(i,u,f){var l=i&&i.options.selectionsMayTouch,p=u[f];u.sort(function(J,Y){return I(J.from(),Y.from())}),f=Oe(u,p);for(var v=1;v<u.length;v++){var _=u[v],O=u[v-1],A=I(O.to(),_.from());if(l&&!_.empty()?A>0:A>=0){var x=Be(O.from(),_.from()),V=se(O.to(),_.to()),Q=O.empty()?_.from()==_.head:O.from()==O.head;v<=f&&--f,u.splice(--v,2,new mt(Q?V:x,Q?x:V))}}return new Yn(u,f)}function co(i,u){return new Yn([new mt(i,u||i)],0)}function fo(i){return i.text?oe(i.from.line+i.text.length-1,ee(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function Fk(i,u){if(I(i,u.from)<0)return i;if(I(i,u.to)<=0)return fo(u);var f=i.line+u.text.length-(u.to.line-u.from.line)-1,l=i.ch;return i.line==u.to.line&&(l+=fo(u).ch-u.to.ch),oe(f,l)}function Dy(i,u){for(var f=[],l=0;l<i.sel.ranges.length;l++){var p=i.sel.ranges[l];f.push(new mt(Fk(p.anchor,u),Fk(p.head,u)))}return Mi(i.cm,f,i.sel.primIndex)}function Pk(i,u,f){return i.line==u.line?oe(f.line,i.ch-u.ch+f.ch):oe(f.line+(i.line-u.line),i.ch)}function oB(i,u,f){for(var l=[],p=oe(i.first,0),v=p,_=0;_<u.length;_++){var O=u[_],A=Pk(O.from,p,v),x=Pk(fo(O),p,v);if(p=O.to,v=x,f=="around"){var V=i.sel.ranges[_],Q=I(V.head,V.anchor)<0;l[_]=new mt(Q?x:A,Q?A:x)}else l[_]=new mt(A,A)}return new Yn(l,i.sel.primIndex)}function ky(i){i.doc.mode=gs(i.options,i.doc.modeOption),Vc(i)}function Vc(i){i.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),i.doc.modeFrontier=i.doc.highlightFrontier=i.doc.first,qc(i,100),i.state.modeGen++,i.curOp&&vn(i)}function jk(i,u){return u.from.ch==0&&u.to.ch==0&&ee(u.text)==""&&(!i.cm||i.cm.options.wholeLineUpdateBefore)}function Cy(i,u,f,l){function p(Se){return f?f[Se]:null}function v(Se,ve,Ce){h3(Se,ve,Ce,l),Tr(Se,"change",Se,u)}function _(Se,ve){for(var Ce=[],Pe=Se;Pe<ve;++Pe)Ce.push(new ys(x[Pe],p(Pe),l));return Ce}var O=u.from,A=u.to,x=u.text,V=Ae(i,O.line),Q=Ae(i,A.line),J=ee(x),Y=p(x.length-1),re=A.line-O.line;if(u.full)i.insert(0,_(0,x.length)),i.remove(x.length,i.size-x.length);else if(jk(i,u)){var ae=_(0,x.length-1);v(Q,Q.text,Y),re&&i.remove(O.line,re),ae.length&&i.insert(O.line,ae)}else if(V==Q)if(x.length==1)v(V,V.text.slice(0,O.ch)+J+V.text.slice(A.ch),Y);else{var le=_(1,x.length-1);le.push(new ys(J+V.text.slice(A.ch),Y,l)),v(V,V.text.slice(0,O.ch)+x[0],p(0)),i.insert(O.line+1,le)}else if(x.length==1)v(V,V.text.slice(0,O.ch)+x[0]+Q.text.slice(A.ch),p(0)),i.remove(O.line+1,re);else{v(V,V.text.slice(0,O.ch)+x[0],p(0)),v(Q,J+Q.text.slice(A.ch),Y);var he=_(1,x.length-1);re>1&&i.remove(O.line+1,re-1),i.insert(O.line+1,he)}Tr(i,"change",i,u)}function po(i,u,f){function l(p,v,_){if(p.linked)for(var O=0;O<p.linked.length;++O){var A=p.linked[O];if(A.doc!=v){var x=_&&A.sharedHist;f&&!x||(u(A.doc,x),l(A.doc,p,x))}}}l(i,null,!0)}function Mk(i,u){if(u.cm)throw new Error("This document is already in use.");i.doc=u,u.cm=i,py(i),ky(i),qk(i),i.options.direction=u.direction,i.options.lineWrapping||ty(i),i.options.mode=u.modeOption,vn(i)}function qk(i){(i.doc.direction=="rtl"?we:B)(i.display.lineDiv,"CodeMirror-rtl")}function uB(i){Ln(i,function(){qk(i),vn(i)})}function Zp(i){this.done=[],this.undone=[],this.undoDepth=i?i.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=i?i.maxGeneration:1}function Oy(i,u){var f={from:ne(u.from),to:fo(u),text:$i(i,u.from,u.to)};return Uk(i,f,u.from.line,u.to.line+1),po(i,function(l){return Uk(l,f,u.from.line,u.to.line+1)},!0),f}function Bk(i){for(;i.length;){var u=ee(i);if(u.ranges)i.pop();else break}}function sB(i,u){if(u)return Bk(i.done),ee(i.done);if(i.done.length&&!ee(i.done).ranges)return ee(i.done);if(i.done.length>1&&!i.done[i.done.length-2].ranges)return i.done.pop(),ee(i.done)}function Vk(i,u,f,l){var p=i.history;p.undone.length=0;var v=+new Date,_,O;if((p.lastOp==l||p.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&p.lastModTime>v-(i.cm?i.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(_=sB(p,p.lastOp==l)))O=ee(_.changes),I(u.from,u.to)==0&&I(u.from,O.to)==0?O.to=fo(u):_.changes.push(Oy(i,u));else{var A=ee(p.done);for((!A||!A.ranges)&&$p(i.sel,p.done),_={changes:[Oy(i,u)],generation:p.generation},p.done.push(_);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(f),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=v,p.lastOp=p.lastSelOp=l,p.lastOrigin=p.lastSelOrigin=u.origin,O||fe(i,"historyAdded")}function lB(i,u,f,l){var p=u.charAt(0);return p=="*"||p=="+"&&f.ranges.length==l.ranges.length&&f.somethingSelected()==l.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function cB(i,u,f,l){var p=i.history,v=l&&l.origin;f==p.lastSelOp||v&&p.lastSelOrigin==v&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==v||lB(i,v,ee(p.done),u))?p.done[p.done.length-1]=u:$p(u,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=v,p.lastSelOp=f,l&&l.clearRedo!==!1&&Bk(p.undone)}function $p(i,u){var f=ee(u);f&&f.ranges&&f.equals(i)||u.push(i)}function Uk(i,u,f,l){var p=u["spans_"+i.id],v=0;i.iter(Math.max(i.first,f),Math.min(i.first+i.size,l),function(_){_.markedSpans&&((p||(p=u["spans_"+i.id]={}))[v]=_.markedSpans),++v})}function fB(i){if(!i)return null;for(var u,f=0;f<i.length;++f)i[f].marker.explicitlyCleared?u||(u=i.slice(0,f)):u&&u.push(i[f]);return u?u.length?u:null:i}function dB(i,u){var f=u["spans_"+i.id];if(!f)return null;for(var l=[],p=0;p<u.text.length;++p)l.push(fB(f[p]));return l}function Gk(i,u){var f=dB(i,u),l=Xm(i,u);if(!f)return l;if(!l)return f;for(var p=0;p<f.length;++p){var v=f[p],_=l[p];if(v&&_){e:for(var O=0;O<_.length;++O){for(var A=_[O],x=0;x<v.length;++x)if(v[x].marker==A.marker)continue e;v.push(A)}}else _&&(f[p]=_)}return f}function Cs(i,u,f){for(var l=[],p=0;p<i.length;++p){var v=i[p];if(v.ranges){l.push(f?Yn.prototype.deepCopy.call(v):v);continue}var _=v.changes,O=[];l.push({changes:O});for(var A=0;A<_.length;++A){var x=_[A],V=void 0;if(O.push({from:x.from,to:x.to,text:x.text}),u)for(var Q in x)(V=Q.match(/^spans_(\d+)$/))&&Oe(u,Number(V[1]))>-1&&(ee(O)[Q]=x[Q],delete x[Q])}}return l}function wy(i,u,f,l){if(l){var p=i.anchor;if(f){var v=I(u,p)<0;v!=I(f,p)<0?(p=u,u=f):v!=I(u,f)<0&&(u=f)}return new mt(p,u)}else return new mt(f||u,u)}function eh(i,u,f,l,p){p==null&&(p=i.cm&&(i.cm.display.shift||i.extend)),Ur(i,new Yn([wy(i.sel.primary(),u,f,p)],0),l)}function Qk(i,u,f){for(var l=[],p=i.cm&&(i.cm.display.shift||i.extend),v=0;v<i.sel.ranges.length;v++)l[v]=wy(i.sel.ranges[v],u[v],null,p);var _=Mi(i.cm,l,i.sel.primIndex);Ur(i,_,f)}function Ny(i,u,f,l){var p=i.sel.ranges.slice(0);p[u]=f,Ur(i,Mi(i.cm,p,i.sel.primIndex),l)}function Kk(i,u,f,l){Ur(i,co(u,f),l)}function pB(i,u,f){var l={ranges:u.ranges,update:function(p){this.ranges=[];for(var v=0;v<p.length;v++)this.ranges[v]=new mt(_e(i,p[v].anchor),_e(i,p[v].head))},origin:f&&f.origin};return fe(i,"beforeSelectionChange",i,l),i.cm&&fe(i.cm,"beforeSelectionChange",i.cm,l),l.ranges!=u.ranges?Mi(i.cm,l.ranges,l.ranges.length-1):u}function Hk(i,u,f){var l=i.history.done,p=ee(l);p&&p.ranges?(l[l.length-1]=u,th(i,u,f)):Ur(i,u,f)}function Ur(i,u,f){th(i,u,f),cB(i,i.sel,i.cm?i.cm.curOp.id:NaN,f)}function th(i,u,f){(Dt(i,"beforeSelectionChange")||i.cm&&Dt(i.cm,"beforeSelectionChange"))&&(u=pB(i,u,f));var l=f&&f.bias||(I(u.primary().head,i.sel.primary().head)<0?-1:1);zk(i,Yk(i,u,l,!0)),!(f&&f.scroll===!1)&&i.cm&&i.cm.getOption("readOnly")!="nocursor"&&Ds(i.cm)}function zk(i,u){u.equals(i.sel)||(i.sel=u,i.cm&&(i.cm.curOp.updateInput=1,i.cm.curOp.selectionChanged=!0,It(i.cm)),Tr(i,"cursorActivity",i))}function Wk(i){zk(i,Yk(i,i.sel,null,!1))}function Yk(i,u,f,l){for(var p,v=0;v<u.ranges.length;v++){var _=u.ranges[v],O=u.ranges.length==i.sel.ranges.length&&i.sel.ranges[v],A=rh(i,_.anchor,O&&O.anchor,f,l),x=rh(i,_.head,O&&O.head,f,l);(p||A!=_.anchor||x!=_.head)&&(p||(p=u.ranges.slice(0,v)),p[v]=new mt(A,x))}return p?Mi(i.cm,p,u.primIndex):u}function Os(i,u,f,l,p){var v=Ae(i,u.line);if(v.markedSpans)for(var _=0;_<v.markedSpans.length;++_){var O=v.markedSpans[_],A=O.marker,x="selectLeft"in A?!A.selectLeft:A.inclusiveLeft,V="selectRight"in A?!A.selectRight:A.inclusiveRight;if((O.from==null||(x?O.from<=u.ch:O.from<u.ch))&&(O.to==null||(V?O.to>=u.ch:O.to>u.ch))){if(p&&(fe(A,"beforeCursorEnter"),A.explicitlyCleared))if(v.markedSpans){--_;continue}else break;if(!A.atomic)continue;if(f){var Q=A.find(l<0?1:-1),J=void 0;if((l<0?V:x)&&(Q=Jk(i,Q,-l,Q&&Q.line==u.line?v:null)),Q&&Q.line==u.line&&(J=I(Q,f))&&(l<0?J<0:J>0))return Os(i,Q,u,l,p)}var Y=A.find(l<0?-1:1);return(l<0?x:V)&&(Y=Jk(i,Y,l,Y.line==u.line?v:null)),Y?Os(i,Y,u,l,p):null}}return u}function rh(i,u,f,l,p){var v=l||1,_=Os(i,u,f,v,p)||!p&&Os(i,u,f,v,!0)||Os(i,u,f,-v,p)||!p&&Os(i,u,f,-v,!0);return _||(i.cantEdit=!0,oe(i.first,0))}function Jk(i,u,f,l){return f<0&&u.ch==0?u.line>i.first?_e(i,oe(u.line-1)):null:f>0&&u.ch==(l||Ae(i,u.line)).text.length?u.line<i.first+i.size-1?oe(u.line+1,0):null:new oe(u.line,u.ch+f)}function Xk(i){i.setSelection(oe(i.firstLine(),0),oe(i.lastLine()),Ze)}function Zk(i,u,f){var l={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return l.canceled=!0}};return f&&(l.update=function(p,v,_,O){p&&(l.from=_e(i,p)),v&&(l.to=_e(i,v)),_&&(l.text=_),O!==void 0&&(l.origin=O)}),fe(i,"beforeChange",i,l),i.cm&&fe(i.cm,"beforeChange",i.cm,l),l.canceled?(i.cm&&(i.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function ws(i,u,f){if(i.cm){if(!i.cm.curOp)return _r(i.cm,ws)(i,u,f);if(i.cm.state.suppressEdits)return}if(!((Dt(i,"beforeChange")||i.cm&&Dt(i.cm,"beforeChange"))&&(u=Zk(i,u,!0),!u))){var l=UD&&!f&&c3(i,u.from,u.to);if(l)for(var p=l.length-1;p>=0;--p)$k(i,{from:l[p].from,to:l[p].to,text:p?[""]:u.text,origin:u.origin});else $k(i,u)}}function $k(i,u){if(!(u.text.length==1&&u.text[0]==""&&I(u.from,u.to)==0)){var f=Dy(i,u);Vk(i,u,f,i.cm?i.cm.curOp.id:NaN),Uc(i,u,f,Xm(i,u));var l=[];po(i,function(p,v){!v&&Oe(l,p.history)==-1&&(nC(p.history,u),l.push(p.history)),Uc(p,u,null,Xm(p,u))})}}function nh(i,u,f){var l=i.cm&&i.cm.state.suppressEdits;if(!(l&&!f)){for(var p=i.history,v,_=i.sel,O=u=="undo"?p.done:p.undone,A=u=="undo"?p.undone:p.done,x=0;x<O.length&&(v=O[x],!(f?v.ranges&&!v.equals(i.sel):!v.ranges));x++);if(x!=O.length){for(p.lastOrigin=p.lastSelOrigin=null;;)if(v=O.pop(),v.ranges){if($p(v,A),f&&!v.equals(i.sel)){Ur(i,v,{clearRedo:!1});return}_=v}else if(l){O.push(v);return}else break;var V=[];$p(_,A),A.push({changes:V,generation:p.generation}),p.generation=v.generation||++p.maxGeneration;for(var Q=Dt(i,"beforeChange")||i.cm&&Dt(i.cm,"beforeChange"),J=function(ae){var le=v.changes[ae];if(le.origin=u,Q&&!Zk(i,le,!1))return O.length=0,{};V.push(Oy(i,le));var he=ae?Dy(i,le):ee(O);Uc(i,le,he,Gk(i,le)),!ae&&i.cm&&i.cm.scrollIntoView({from:le.from,to:fo(le)});var Se=[];po(i,function(ve,Ce){!Ce&&Oe(Se,ve.history)==-1&&(nC(ve.history,le),Se.push(ve.history)),Uc(ve,le,null,Gk(ve,le))})},Y=v.changes.length-1;Y>=0;--Y){var re=J(Y);if(re)return re.v}}}}function eC(i,u){if(u!=0&&(i.first+=u,i.sel=new Yn(De(i.sel.ranges,function(p){return new mt(oe(p.anchor.line+u,p.anchor.ch),oe(p.head.line+u,p.head.ch))}),i.sel.primIndex),i.cm)){vn(i.cm,i.first,i.first-u,u);for(var f=i.cm.display,l=f.viewFrom;l<f.viewTo;l++)so(i.cm,l,"gutter")}}function Uc(i,u,f,l){if(i.cm&&!i.cm.curOp)return _r(i.cm,Uc)(i,u,f,l);if(u.to.line<i.first){eC(i,u.text.length-1-(u.to.line-u.from.line));return}if(!(u.from.line>i.lastLine())){if(u.from.line<i.first){var p=u.text.length-1-(i.first-u.from.line);eC(i,p),u={from:oe(i.first,0),to:oe(u.to.line+p,u.to.ch),text:[ee(u.text)],origin:u.origin}}var v=i.lastLine();u.to.line>v&&(u={from:u.from,to:oe(v,Ae(i,v).text.length),text:[u.text[0]],origin:u.origin}),u.removed=$i(i,u.from,u.to),f||(f=Dy(i,u)),i.cm?hB(i.cm,u,l):Cy(i,u,l),th(i,f,Ze),i.cantEdit&&rh(i,oe(i.firstLine(),0))&&(i.cantEdit=!1)}}function hB(i,u,f){var l=i.doc,p=i.display,v=u.from,_=u.to,O=!1,A=v.line;i.options.lineWrapping||(A=gt(ra(Ae(l,v.line))),l.iter(A,_.line+1,function(Y){if(Y==p.maxLine)return O=!0,!0})),l.sel.contains(u.from,u.to)>-1&&It(i),Cy(l,u,f,yk(i)),i.options.lineWrapping||(l.iter(A,v.line+u.text.length,function(Y){var re=Vp(Y);re>p.maxLineLength&&(p.maxLine=Y,p.maxLineLength=re,p.maxLineChanged=!0,O=!1)}),O&&(i.curOp.updateMaxLine=!0)),n3(l,v.line),qc(i,400);var x=u.text.length-(_.line-v.line)-1;u.full?vn(i):v.line==_.line&&u.text.length==1&&!jk(i.doc,u)?so(i,v.line,"text"):vn(i,v.line,_.line+1,x);var V=Dt(i,"changes"),Q=Dt(i,"change");if(Q||V){var J={from:v,to:_,text:u.text,removed:u.removed,origin:u.origin};Q&&Tr(i,"change",i,J),V&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(J)}i.display.selForContextMenu=null}function Ns(i,u,f,l,p){var v;l||(l=f),I(l,f)<0&&(v=[l,f],f=v[0],l=v[1]),typeof u=="string"&&(u=i.splitLines(u)),ws(i,{from:f,to:l,text:u,origin:p})}function tC(i,u,f,l){f<i.line?i.line+=l:u<i.line&&(i.line=u,i.ch=0)}function rC(i,u,f,l){for(var p=0;p<i.length;++p){var v=i[p],_=!0;if(v.ranges){v.copied||(v=i[p]=v.deepCopy(),v.copied=!0);for(var O=0;O<v.ranges.length;O++)tC(v.ranges[O].anchor,u,f,l),tC(v.ranges[O].head,u,f,l);continue}for(var A=0;A<v.changes.length;++A){var x=v.changes[A];if(f<x.from.line)x.from=oe(x.from.line+l,x.from.ch),x.to=oe(x.to.line+l,x.to.ch);else if(u<=x.to.line){_=!1;break}}_||(i.splice(0,p+1),p=0)}}function nC(i,u){var f=u.from.line,l=u.to.line,p=u.text.length-(l-f)-1;rC(i.done,f,l,p),rC(i.undone,f,l,p)}function Gc(i,u,f,l){var p=u,v=u;return typeof u=="number"?v=Ae(i,ot(i,u)):p=gt(u),p==null?null:(l(v,p)&&i.cm&&so(i.cm,p,f),v)}function Qc(i){this.lines=i,this.parent=null;for(var u=0,f=0;f<i.length;++f)i[f].parent=this,u+=i[f].height;this.height=u}Qc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(i,u){for(var f=i,l=i+u;f<l;++f){var p=this.lines[f];this.height-=p.height,v3(p),Tr(p,"delete")}this.lines.splice(i,u)},collapse:function(i){i.push.apply(i,this.lines)},insertInner:function(i,u,f){this.height+=f,this.lines=this.lines.slice(0,i).concat(u).concat(this.lines.slice(i));for(var l=0;l<u.length;++l)u[l].parent=this},iterN:function(i,u,f){for(var l=i+u;i<l;++i)if(f(this.lines[i]))return!0}};function Kc(i){this.children=i;for(var u=0,f=0,l=0;l<i.length;++l){var p=i[l];u+=p.chunkSize(),f+=p.height,p.parent=this}this.size=u,this.height=f,this.parent=null}Kc.prototype={chunkSize:function(){return this.size},removeInner:function(i,u){this.size-=u;for(var f=0;f<this.children.length;++f){var l=this.children[f],p=l.chunkSize();if(i<p){var v=Math.min(u,p-i),_=l.height;if(l.removeInner(i,v),this.height-=_-l.height,p==v&&(this.children.splice(f--,1),l.parent=null),(u-=v)==0)break;i=0}else i-=p}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof Qc))){var O=[];this.collapse(O),this.children=[new Qc(O)],this.children[0].parent=this}},collapse:function(i){for(var u=0;u<this.children.length;++u)this.children[u].collapse(i)},insertInner:function(i,u,f){this.size+=u.length,this.height+=f;for(var l=0;l<this.children.length;++l){var p=this.children[l],v=p.chunkSize();if(i<=v){if(p.insertInner(i,u,f),p.lines&&p.lines.length>50){for(var _=p.lines.length%25+25,O=_;O<p.lines.length;){var A=new Qc(p.lines.slice(O,O+=25));p.height-=A.height,this.children.splice(++l,0,A),A.parent=this}p.lines=p.lines.slice(0,_),this.maybeSpill()}break}i-=v}},maybeSpill:function(){if(!(this.children.length<=10)){var i=this;do{var u=i.children.splice(i.children.length-5,5),f=new Kc(u);if(i.parent){i.size-=f.size,i.height-=f.height;var p=Oe(i.parent.children,i);i.parent.children.splice(p+1,0,f)}else{var l=new Kc(i.children);l.parent=i,i.children=[l,f],i=l}f.parent=i.parent}while(i.children.length>10);i.parent.maybeSpill()}},iterN:function(i,u,f){for(var l=0;l<this.children.length;++l){var p=this.children[l],v=p.chunkSize();if(i<v){var _=Math.min(u,v-i);if(p.iterN(i,_,f))return!0;if((u-=_)==0)break;i=0}else i-=v}}};var Hc=function(i,u,f){if(f)for(var l in f)f.hasOwnProperty(l)&&(this[l]=f[l]);this.doc=i,this.node=u};Hc.prototype.clear=function(){var i=this.doc.cm,u=this.line.widgets,f=this.line,l=gt(f);if(!(l==null||!u)){for(var p=0;p<u.length;++p)u[p]==this&&u.splice(p--,1);u.length||(f.widgets=null);var v=xc(this);An(f,Math.max(0,f.height-v)),i&&(Ln(i,function(){iC(i,f,-v),so(i,l,"widget")}),Tr(i,"lineWidgetCleared",i,this,l))}},Hc.prototype.changed=function(){var i=this,u=this.height,f=this.doc.cm,l=this.line;this.height=null;var p=xc(this)-u;!p||(uo(this.doc,l)||An(l,l.height+p),f&&Ln(f,function(){f.curOp.forceUpdate=!0,iC(f,l,p),Tr(f,"lineWidgetChanged",f,i,gt(l))}))},nr(Hc);function iC(i,u,f){Pa(u)<(i.curOp&&i.curOp.scrollTop||i.doc.scrollTop)&&yy(i,f)}function vB(i,u,f,l){var p=new Hc(i,f,l),v=i.cm;return v&&p.noHScroll&&(v.display.alignWidgets=!0),Gc(i,u,"widget",function(_){var O=_.widgets||(_.widgets=[]);if(p.insertAt==null?O.push(p):O.splice(Math.min(O.length,Math.max(0,p.insertAt)),0,p),p.line=_,v&&!uo(i,_)){var A=Pa(_)<i.scrollTop;An(_,_.height+xc(p)),A&&yy(v,p.height),v.curOp.forceUpdate=!0}return!0}),v&&Tr(v,"lineWidgetAdded",v,p,typeof u=="number"?u:gt(u)),p}var aC=0,ho=function(i,u){this.lines=[],this.type=u,this.doc=i,this.id=++aC};ho.prototype.clear=function(){if(!this.explicitlyCleared){var i=this.doc.cm,u=i&&!i.curOp;if(u&&yu(i),Dt(this,"clear")){var f=this.find();f&&Tr(this,"clear",f.from,f.to)}for(var l=null,p=null,v=0;v<this.lines.length;++v){var _=this.lines[v],O=Nc(_.markedSpans,this);i&&!this.collapsed?so(i,gt(_),"text"):i&&(O.to!=null&&(p=gt(_)),O.from!=null&&(l=gt(_))),_.markedSpans=o3(_.markedSpans,O),O.from==null&&this.collapsed&&!uo(this.doc,_)&&i&&An(_,Ts(i.display))}if(i&&this.collapsed&&!i.options.lineWrapping)for(var A=0;A<this.lines.length;++A){var x=ra(this.lines[A]),V=Vp(x);V>i.display.maxLineLength&&(i.display.maxLine=x,i.display.maxLineLength=V,i.display.maxLineChanged=!0)}l!=null&&i&&this.collapsed&&vn(i,l,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&Wk(i.doc)),i&&Tr(i,"markerCleared",i,this,l,p),u&&bu(i),this.parent&&this.parent.clear()}},ho.prototype.find=function(i,u){i==null&&this.type=="bookmark"&&(i=1);for(var f,l,p=0;p<this.lines.length;++p){var v=this.lines[p],_=Nc(v.markedSpans,this);if(_.from!=null&&(f=oe(u?v:gt(v),_.from),i==-1))return f;if(_.to!=null&&(l=oe(u?v:gt(v),_.to),i==1))return l}return f&&{from:f,to:l}},ho.prototype.changed=function(){var i=this,u=this.find(-1,!0),f=this,l=this.doc.cm;!u||!l||Ln(l,function(){var p=u.line,v=gt(u.line),_=ay(l,v);if(_&&(ck(_),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!uo(f.doc,p)&&f.height!=null){var O=f.height;f.height=null;var A=xc(f)-O;A&&An(p,p.height+A)}Tr(l,"markerChanged",l,i)})},ho.prototype.attachLine=function(i){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||Oe(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(i)},ho.prototype.detachLine=function(i){if(this.lines.splice(Oe(this.lines,i),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},nr(ho);function As(i,u,f,l,p){if(l&&l.shared)return gB(i,u,f,l,p);if(i.cm&&!i.cm.curOp)return _r(i.cm,As)(i,u,f,l,p);var v=new ho(i,p),_=I(u,f);if(l&&at(l,v,!1),_>0||_==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=j("span",[v.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(WD(i,u.line,u,f,v)||u.line!=f.line&&WD(i,f.line,u,f,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");a3()}v.addToHistory&&Vk(i,{from:u,to:f,origin:"markText"},i.sel,NaN);var O=u.line,A=i.cm,x;if(i.iter(O,f.line+1,function(Q){A&&v.collapsed&&!A.options.lineWrapping&&ra(Q)==A.display.maxLine&&(x=!0),v.collapsed&&O!=u.line&&An(Q,0),u3(Q,new jp(v,O==u.line?u.ch:null,O==f.line?f.ch:null),i.cm&&i.cm.curOp),++O}),v.collapsed&&i.iter(u.line,f.line+1,function(Q){uo(i,Q)&&An(Q,0)}),v.clearOnEnter&&R(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(i3(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),v.collapsed&&(v.id=++aC,v.atomic=!0),A){if(x&&(A.curOp.updateMaxLine=!0),v.collapsed)vn(A,u.line,f.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var V=u.line;V<=f.line;V++)so(A,V,"text");v.atomic&&Wk(A.doc),Tr(A,"markerAdded",A,v)}return v}var zc=function(i,u){this.markers=i,this.primary=u;for(var f=0;f<i.length;++f)i[f].parent=this};zc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var i=0;i<this.markers.length;++i)this.markers[i].clear();Tr(this,"clear")}},zc.prototype.find=function(i,u){return this.primary.find(i,u)},nr(zc);function gB(i,u,f,l,p){l=at(l),l.shared=!1;var v=[As(i,u,f,l,p)],_=v[0],O=l.widgetNode;return po(i,function(A){O&&(l.widgetNode=O.cloneNode(!0)),v.push(As(A,_e(A,u),_e(A,f),l,p));for(var x=0;x<A.linked.length;++x)if(A.linked[x].isParent)return;_=ee(v)}),new zc(v,_)}function oC(i){return i.findMarks(oe(i.first,0),i.clipPos(oe(i.lastLine())),function(u){return u.parent})}function mB(i,u){for(var f=0;f<u.length;f++){var l=u[f],p=l.find(),v=i.clipPos(p.from),_=i.clipPos(p.to);if(I(v,_)){var O=As(i,v,_,l.primary,l.primary.type);l.markers.push(O),O.parent=l}}}function yB(i){for(var u=function(l){var p=i[l],v=[p.primary.doc];po(p.primary.doc,function(A){return v.push(A)});for(var _=0;_<p.markers.length;_++){var O=p.markers[_];Oe(v,O.doc)==-1&&(O.parent=null,p.markers.splice(_--,1))}},f=0;f<i.length;f++)u(f)}var bB=0,gn=function(i,u,f,l,p){if(!(this instanceof gn))return new gn(i,u,f,l,p);f==null&&(f=0),Kc.call(this,[new Qc([new ys("",null)])]),this.first=f,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=f;var v=oe(f,0);this.sel=co(v),this.history=new Zp(null),this.id=++bB,this.modeOption=u,this.lineSep=l,this.direction=p=="rtl"?"rtl":"ltr",this.extend=!1,typeof i=="string"&&(i=this.splitLines(i)),Cy(this,{from:v,to:v,text:i}),Ur(this,co(v),Ze)};gn.prototype=je(Kc.prototype,{constructor:gn,iter:function(i,u,f){f?this.iterN(i-this.first,u-i,f):this.iterN(this.first,this.first+this.size,i)},insert:function(i,u){for(var f=0,l=0;l<u.length;++l)f+=u[l].height;this.insertInner(i-this.first,u,f)},remove:function(i,u){this.removeInner(i-this.first,u)},getValue:function(i){var u=Cc(this,this.first,this.first+this.size);return i===!1?u:u.join(i||this.lineSeparator())},setValue:Sr(function(i){var u=oe(this.first,0),f=this.first+this.size-1;ws(this,{from:u,to:oe(f,Ae(this,f).text.length),text:this.splitLines(i),origin:"setValue",full:!0},!0),this.cm&&Fc(this.cm,0,0),Ur(this,co(u),Ze)}),replaceRange:function(i,u,f,l){u=_e(this,u),f=f?_e(this,f):u,Ns(this,i,u,f,l)},getRange:function(i,u,f){var l=$i(this,_e(this,i),_e(this,u));return f===!1?l:f===""?l.join(""):l.join(f||this.lineSeparator())},getLine:function(i){var u=this.getLineHandle(i);return u&&u.text},getLineHandle:function(i){if(fu(this,i))return Ae(this,i)},getLineNumber:function(i){return gt(i)},getLineHandleVisualStart:function(i){return typeof i=="number"&&(i=Ae(this,i)),ra(i)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(i){return _e(this,i)},getCursor:function(i){var u=this.sel.primary(),f;return i==null||i=="head"?f=u.head:i=="anchor"?f=u.anchor:i=="end"||i=="to"||i===!1?f=u.to():f=u.from(),f},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Sr(function(i,u,f){Kk(this,_e(this,typeof i=="number"?oe(i,u||0):i),null,f)}),setSelection:Sr(function(i,u,f){Kk(this,_e(this,i),_e(this,u||i),f)}),extendSelection:Sr(function(i,u,f){eh(this,_e(this,i),u&&_e(this,u),f)}),extendSelections:Sr(function(i,u){Qk(this,zn(this,i),u)}),extendSelectionsBy:Sr(function(i,u){var f=De(this.sel.ranges,i);Qk(this,zn(this,f),u)}),setSelections:Sr(function(i,u,f){if(!!i.length){for(var l=[],p=0;p<i.length;p++)l[p]=new mt(_e(this,i[p].anchor),_e(this,i[p].head||i[p].anchor));u==null&&(u=Math.min(i.length-1,this.sel.primIndex)),Ur(this,Mi(this.cm,l,u),f)}}),addSelection:Sr(function(i,u,f){var l=this.sel.ranges.slice(0);l.push(new mt(_e(this,i),_e(this,u||i))),Ur(this,Mi(this.cm,l,l.length-1),f)}),getSelection:function(i){for(var u=this.sel.ranges,f,l=0;l<u.length;l++){var p=$i(this,u[l].from(),u[l].to());f=f?f.concat(p):p}return i===!1?f:f.join(i||this.lineSeparator())},getSelections:function(i){for(var u=[],f=this.sel.ranges,l=0;l<f.length;l++){var p=$i(this,f[l].from(),f[l].to());i!==!1&&(p=p.join(i||this.lineSeparator())),u[l]=p}return u},replaceSelection:function(i,u,f){for(var l=[],p=0;p<this.sel.ranges.length;p++)l[p]=i;this.replaceSelections(l,u,f||"+input")},replaceSelections:Sr(function(i,u,f){for(var l=[],p=this.sel,v=0;v<p.ranges.length;v++){var _=p.ranges[v];l[v]={from:_.from(),to:_.to(),text:this.splitLines(i[v]),origin:f}}for(var O=u&&u!="end"&&oB(this,l,u),A=l.length-1;A>=0;A--)ws(this,l[A]);O?Hk(this,O):this.cm&&Ds(this.cm)}),undo:Sr(function(){nh(this,"undo")}),redo:Sr(function(){nh(this,"redo")}),undoSelection:Sr(function(){nh(this,"undo",!0)}),redoSelection:Sr(function(){nh(this,"redo",!0)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,u=0,f=0,l=0;l<i.done.length;l++)i.done[l].ranges||++u;for(var p=0;p<i.undone.length;p++)i.undone[p].ranges||++f;return{undo:u,redo:f}},clearHistory:function(){var i=this;this.history=new Zp(this.history),po(this,function(u){return u.history=i.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(i){return i&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(i){return this.history.generation==(i||this.cleanGeneration)},getHistory:function(){return{done:Cs(this.history.done),undone:Cs(this.history.undone)}},setHistory:function(i){var u=this.history=new Zp(this.history);u.done=Cs(i.done.slice(0),null,!0),u.undone=Cs(i.undone.slice(0),null,!0)},setGutterMarker:Sr(function(i,u,f){return Gc(this,i,"gutter",function(l){var p=l.gutterMarkers||(l.gutterMarkers={});return p[u]=f,!f&&li(p)&&(l.gutterMarkers=null),!0})}),clearGutter:Sr(function(i){var u=this;this.iter(function(f){f.gutterMarkers&&f.gutterMarkers[i]&&Gc(u,f,"gutter",function(){return f.gutterMarkers[i]=null,li(f.gutterMarkers)&&(f.gutterMarkers=null),!0})})}),lineInfo:function(i){var u;if(typeof i=="number"){if(!fu(this,i)||(u=i,i=Ae(this,i),!i))return null}else if(u=gt(i),u==null)return null;return{line:u,handle:i,text:i.text,gutterMarkers:i.gutterMarkers,textClass:i.textClass,bgClass:i.bgClass,wrapClass:i.wrapClass,widgets:i.widgets}},addLineClass:Sr(function(i,u,f){return Gc(this,i,u=="gutter"?"gutter":"class",function(l){var p=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass";if(!l[p])l[p]=f;else{if(P(f).test(l[p]))return!1;l[p]+=" "+f}return!0})}),removeLineClass:Sr(function(i,u,f){return Gc(this,i,u=="gutter"?"gutter":"class",function(l){var p=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass",v=l[p];if(v)if(f==null)l[p]=null;else{var _=v.match(P(f));if(!_)return!1;var O=_.index+_[0].length;l[p]=v.slice(0,_.index)+(!_.index||O==v.length?"":" ")+v.slice(O)||null}else return!1;return!0})}),addLineWidget:Sr(function(i,u,f){return vB(this,i,u,f)}),removeLineWidget:function(i){i.clear()},markText:function(i,u,f){return As(this,_e(this,i),_e(this,u),f,f&&f.type||"range")},setBookmark:function(i,u){var f={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return i=_e(this,i),As(this,i,i,f,"bookmark")},findMarksAt:function(i){i=_e(this,i);var u=[],f=Ae(this,i.line).markedSpans;if(f)for(var l=0;l<f.length;++l){var p=f[l];(p.from==null||p.from<=i.ch)&&(p.to==null||p.to>=i.ch)&&u.push(p.marker.parent||p.marker)}return u},findMarks:function(i,u,f){i=_e(this,i),u=_e(this,u);var l=[],p=i.line;return this.iter(i.line,u.line+1,function(v){var _=v.markedSpans;if(_)for(var O=0;O<_.length;O++){var A=_[O];!(A.to!=null&&p==i.line&&i.ch>=A.to||A.from==null&&p!=i.line||A.from!=null&&p==u.line&&A.from>=u.ch)&&(!f||f(A.marker))&&l.push(A.marker.parent||A.marker)}++p}),l},getAllMarks:function(){var i=[];return this.iter(function(u){var f=u.markedSpans;if(f)for(var l=0;l<f.length;++l)f[l].from!=null&&i.push(f[l].marker)}),i},posFromIndex:function(i){var u,f=this.first,l=this.lineSeparator().length;return this.iter(function(p){var v=p.text.length+l;if(v>i)return u=i,!0;i-=v,++f}),_e(this,oe(f,u))},indexFromPos:function(i){i=_e(this,i);var u=i.ch;if(i.line<this.first||i.ch<0)return 0;var f=this.lineSeparator().length;return this.iter(this.first,i.line,function(l){u+=l.text.length+f}),u},copy:function(i){var u=new gn(Cc(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,i&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(i){i||(i={});var u=this.first,f=this.first+this.size;i.from!=null&&i.from>u&&(u=i.from),i.to!=null&&i.to<f&&(f=i.to);var l=new gn(Cc(this,u,f),i.mode||this.modeOption,u,this.lineSep,this.direction);return i.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:i.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:i.sharedHist}],mB(l,oC(this)),l},unlinkDoc:function(i){if(i instanceof Gt&&(i=i.doc),this.linked)for(var u=0;u<this.linked.length;++u){var f=this.linked[u];if(f.doc==i){this.linked.splice(u,1),i.unlinkDoc(this),yB(oC(this));break}}if(i.history==this.history){var l=[i.id];po(i,function(p){return l.push(p.id)},!0),i.history=new Zp(null),i.history.done=Cs(this.history.done,l),i.history.undone=Cs(this.history.undone,l)}},iterLinkedDocs:function(i){po(this,i)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(i){return this.lineSep?i.split(this.lineSep):_c(i)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Sr(function(i){i!="rtl"&&(i="ltr"),i!=this.direction&&(this.direction=i,this.iter(function(u){return u.order=null}),this.cm&&uB(this.cm))})}),gn.prototype.eachLine=gn.prototype.iter;var uC=0;function EB(i){var u=this;if(sC(u),!(Qe(u,i)||ja(u.display,i))){Rt(i),s&&(uC=+new Date);var f=hu(u,i,!0),l=i.dataTransfer.files;if(!(!f||u.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var p=l.length,v=Array(p),_=0,O=function(){++_==p&&_r(u,function(){f=_e(u.doc,f);var Y={from:f,to:f,text:u.doc.splitLines(v.filter(function(re){return re!=null}).join(u.doc.lineSeparator())),origin:"paste"};ws(u.doc,Y),Hk(u.doc,co(_e(u.doc,f),_e(u.doc,fo(Y))))})()},A=function(Y,re){if(u.options.allowDropFileTypes&&Oe(u.options.allowDropFileTypes,Y.type)==-1){O();return}var ae=new FileReader;ae.onerror=function(){return O()},ae.onload=function(){var le=ae.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){O();return}v[re]=le,O()},ae.readAsText(Y)},x=0;x<l.length;x++)A(l[x],x);else{if(u.state.draggingText&&u.doc.sel.contains(f)>-1){u.state.draggingText(i),setTimeout(function(){return u.display.input.focus()},20);return}try{var V=i.dataTransfer.getData("Text");if(V){var Q;if(u.state.draggingText&&!u.state.draggingText.copy&&(Q=u.listSelections()),th(u.doc,co(f,f)),Q)for(var J=0;J<Q.length;++J)Ns(u.doc,"",Q[J].anchor,Q[J].head,"drag");u.replaceSelection(V,"around","paste"),u.display.input.focus()}}catch(Y){}}}}function TB(i,u){if(s&&(!i.state.draggingText||+new Date-uC<100)){ci(u);return}if(!(Qe(i,u)||ja(i.display,u))&&(u.dataTransfer.setData("Text",i.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!b)){var f=M("img",null,null,"position: fixed; left: 0; top: 0;");f.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(f.width=f.height=1,i.display.wrapper.appendChild(f),f._top=f.offsetTop),u.dataTransfer.setDragImage(f,0,0),E&&f.parentNode.removeChild(f)}}function _B(i,u){var f=hu(i,u);if(!!f){var l=document.createDocumentFragment();Tk(i,f,l),i.display.dragCursor||(i.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),i.display.lineSpace.insertBefore(i.display.dragCursor,i.display.cursorDiv)),G(i.display.dragCursor,l)}}function sC(i){i.display.dragCursor&&(i.display.lineSpace.removeChild(i.display.dragCursor),i.display.dragCursor=null)}function lC(i){if(!!document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),f=[],l=0;l<u.length;l++){var p=u[l].CodeMirror;p&&f.push(p)}f.length&&f[0].operation(function(){for(var v=0;v<f.length;v++)i(f[v])})}}var cC=!1;function SB(){cC||(DB(),cC=!0)}function DB(){var i;R(window,"resize",function(){i==null&&(i=setTimeout(function(){i=null,lC(kB)},100))}),R(window,"blur",function(){return lC(Ss)})}function kB(i){var u=i.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,i.setSize()}for(var vo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Wc=0;Wc<10;Wc++)vo[Wc+48]=vo[Wc+96]=String(Wc);for(var ih=65;ih<=90;ih++)vo[ih]=String.fromCharCode(ih);for(var Yc=1;Yc<=12;Yc++)vo[Yc+111]=vo[Yc+63235]="F"+Yc;var Ma={};Ma.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ma.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ma.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ma.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ma.default=g?Ma.macDefault:Ma.pcDefault;function CB(i){var u=i.split(/-(?!$)/);i=u[u.length-1];for(var f,l,p,v,_=0;_<u.length-1;_++){var O=u[_];if(/^(cmd|meta|m)$/i.test(O))v=!0;else if(/^a(lt)?$/i.test(O))f=!0;else if(/^(c|ctrl|control)$/i.test(O))l=!0;else if(/^s(hift)?$/i.test(O))p=!0;else throw new Error("Unrecognized modifier name: "+O)}return f&&(i="Alt-"+i),l&&(i="Ctrl-"+i),v&&(i="Cmd-"+i),p&&(i="Shift-"+i),i}function OB(i){var u={};for(var f in i)if(i.hasOwnProperty(f)){var l=i[f];if(/^(name|fallthrough|(de|at)tach)$/.test(f))continue;if(l=="..."){delete i[f];continue}for(var p=De(f.split(" "),CB),v=0;v<p.length;v++){var _=void 0,O=void 0;v==p.length-1?(O=p.join(" "),_=l):(O=p.slice(0,v+1).join(" "),_="...");var A=u[O];if(!A)u[O]=_;else if(A!=_)throw new Error("Inconsistent bindings for "+O)}delete i[f]}for(var x in u)i[x]=u[x];return i}function Ls(i,u,f,l){u=ah(u);var p=u.call?u.call(i,l):u[i];if(p===!1)return"nothing";if(p==="...")return"multi";if(p!=null&&f(p))return"handled";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!="[object Array]")return Ls(i,u.fallthrough,f,l);for(var v=0;v<u.fallthrough.length;v++){var _=Ls(i,u.fallthrough[v],f,l);if(_)return _}}}function fC(i){var u=typeof i=="string"?i:vo[i.keyCode];return u=="Ctrl"||u=="Alt"||u=="Shift"||u=="Mod"}function dC(i,u,f){var l=i;return u.altKey&&l!="Alt"&&(i="Alt-"+i),(D?u.metaKey:u.ctrlKey)&&l!="Ctrl"&&(i="Ctrl-"+i),(D?u.ctrlKey:u.metaKey)&&l!="Mod"&&(i="Cmd-"+i),!f&&u.shiftKey&&l!="Shift"&&(i="Shift-"+i),i}function pC(i,u){if(E&&i.keyCode==34&&i.char)return!1;var f=vo[i.keyCode];return f==null||i.altGraphKey?!1:(i.keyCode==3&&i.code&&(f=i.code),dC(f,i,u))}function ah(i){return typeof i=="string"?Ma[i]:i}function xs(i,u){for(var f=i.doc.sel.ranges,l=[],p=0;p<f.length;p++){for(var v=u(f[p]);l.length&&I(v.from,ee(l).to)<=0;){var _=l.pop();if(I(_.from,v.from)<0){v.from=_.from;break}}l.push(v)}Ln(i,function(){for(var O=l.length-1;O>=0;O--)Ns(i.doc,"",l[O].from,l[O].to,"+delete");Ds(i)})}function Ay(i,u,f){var l=Ia(i.text,u+f,f);return l<0||l>i.text.length?null:l}function Ly(i,u,f){var l=Ay(i,u.ch,f);return l==null?null:new oe(u.line,l,f<0?"after":"before")}function xy(i,u,f,l,p){if(i){u.doc.direction=="rtl"&&(p=-p);var v=Z(f,u.doc.direction);if(v){var _=p<0?ee(v):v[0],O=p<0==(_.level==1),A=O?"after":"before",x;if(_.level>0||u.doc.direction=="rtl"){var V=Es(u,f);x=p<0?f.text.length-1:0;var Q=ia(u,V,x).top;x=Nn(function(J){return ia(u,V,J).top==Q},p<0==(_.level==1)?_.from:_.to-1,x),A=="before"&&(x=Ay(f,x,1))}else x=p<0?_.to:_.from;return new oe(l,x,A)}}return new oe(l,p<0?f.text.length:0,p<0?"before":"after")}function wB(i,u,f,l){var p=Z(u,i.doc.direction);if(!p)return Ly(u,f,l);f.ch>=u.text.length?(f.ch=u.text.length,f.sticky="before"):f.ch<=0&&(f.ch=0,f.sticky="after");var v=q(p,f.ch,f.sticky),_=p[v];if(i.doc.direction=="ltr"&&_.level%2==0&&(l>0?_.to>f.ch:_.from<f.ch))return Ly(u,f,l);var O=function(he,Se){return Ay(u,he instanceof oe?he.ch:he,Se)},A,x=function(he){return i.options.lineWrapping?(A=A||Es(i,u),mk(i,u,A,he)):{begin:0,end:u.text.length}},V=x(f.sticky=="before"?O(f,-1):f.ch);if(i.doc.direction=="rtl"||_.level==1){var Q=_.level==1==l<0,J=O(f,Q?1:-1);if(J!=null&&(Q?J<=_.to&&J<=V.end:J>=_.from&&J>=V.begin)){var Y=Q?"before":"after";return new oe(f.line,J,Y)}}var re=function(he,Se,ve){for(var Ce=function(xt,Dr){return Dr?new oe(f.line,O(xt,1),"before"):new oe(f.line,xt,"after")};he>=0&&he<p.length;he+=Se){var Pe=p[he],Fe=Se>0==(Pe.level!=1),Je=Fe?ve.begin:O(ve.end,-1);if(Pe.from<=Je&&Je<Pe.to||(Je=Fe?Pe.from:O(Pe.to,-1),ve.begin<=Je&&Je<ve.end))return Ce(Je,Fe)}},ae=re(v+l,l,V);if(ae)return ae;var le=l>0?V.end:O(V.begin,-1);return le!=null&&!(l>0&&le==u.text.length)&&(ae=re(l>0?0:p.length-1,l,x(le)),ae)?ae:null}var Jc={selectAll:Xk,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),Ze)},killLine:function(i){return xs(i,function(u){if(u.empty()){var f=Ae(i.doc,u.head.line).text.length;return u.head.ch==f&&u.head.line<i.lastLine()?{from:u.head,to:oe(u.head.line+1,0)}:{from:u.head,to:oe(u.head.line,f)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(i){return xs(i,function(u){return{from:oe(u.from().line,0),to:_e(i.doc,oe(u.to().line+1,0))}})},delLineLeft:function(i){return xs(i,function(u){return{from:oe(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(i){return xs(i,function(u){var f=i.charCoords(u.head,"div").top+5,l=i.coordsChar({left:0,top:f},"div");return{from:l,to:u.from()}})},delWrappedLineRight:function(i){return xs(i,function(u){var f=i.charCoords(u.head,"div").top+5,l=i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:f},"div");return{from:u.from(),to:l}})},undo:function(i){return i.undo()},redo:function(i){return i.redo()},undoSelection:function(i){return i.undoSelection()},redoSelection:function(i){return i.redoSelection()},goDocStart:function(i){return i.extendSelection(oe(i.firstLine(),0))},goDocEnd:function(i){return i.extendSelection(oe(i.lastLine()))},goLineStart:function(i){return i.extendSelectionsBy(function(u){return hC(i,u.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(i){return i.extendSelectionsBy(function(u){return vC(i,u.head)},{origin:"+move",bias:1})},goLineEnd:function(i){return i.extendSelectionsBy(function(u){return NB(i,u.head.line)},{origin:"+move",bias:-1})},goLineRight:function(i){return i.extendSelectionsBy(function(u){var f=i.cursorCoords(u.head,"div").top+5;return i.coordsChar({left:i.display.lineDiv.offsetWidth+100,top:f},"div")},tt)},goLineLeft:function(i){return i.extendSelectionsBy(function(u){var f=i.cursorCoords(u.head,"div").top+5;return i.coordsChar({left:0,top:f},"div")},tt)},goLineLeftSmart:function(i){return i.extendSelectionsBy(function(u){var f=i.cursorCoords(u.head,"div").top+5,l=i.coordsChar({left:0,top:f},"div");return l.ch<i.getLine(l.line).search(/\S/)?vC(i,u.head):l},tt)},goLineUp:function(i){return i.moveV(-1,"line")},goLineDown:function(i){return i.moveV(1,"line")},goPageUp:function(i){return i.moveV(-1,"page")},goPageDown:function(i){return i.moveV(1,"page")},goCharLeft:function(i){return i.moveH(-1,"char")},goCharRight:function(i){return i.moveH(1,"char")},goColumnLeft:function(i){return i.moveH(-1,"column")},goColumnRight:function(i){return i.moveH(1,"column")},goWordLeft:function(i){return i.moveH(-1,"word")},goGroupRight:function(i){return i.moveH(1,"group")},goGroupLeft:function(i){return i.moveH(-1,"group")},goWordRight:function(i){return i.moveH(1,"word")},delCharBefore:function(i){return i.deleteH(-1,"codepoint")},delCharAfter:function(i){return i.deleteH(1,"char")},delWordBefore:function(i){return i.deleteH(-1,"word")},delWordAfter:function(i){return i.deleteH(1,"word")},delGroupBefore:function(i){return i.deleteH(-1,"group")},delGroupAfter:function(i){return i.deleteH(1,"group")},indentAuto:function(i){return i.indentSelection("smart")},indentMore:function(i){return i.indentSelection("add")},indentLess:function(i){return i.indentSelection("subtract")},insertTab:function(i){return i.replaceSelection(" ")},insertSoftTab:function(i){for(var u=[],f=i.listSelections(),l=i.options.tabSize,p=0;p<f.length;p++){var v=f[p].from(),_=st(i.getLine(v.line),v.ch,l);u.push(pn(l-_%l))}i.replaceSelections(u)},defaultTab:function(i){i.somethingSelected()?i.indentSelection("add"):i.execCommand("insertTab")},transposeChars:function(i){return Ln(i,function(){for(var u=i.listSelections(),f=[],l=0;l<u.length;l++)if(!!u[l].empty()){var p=u[l].head,v=Ae(i.doc,p.line).text;if(v){if(p.ch==v.length&&(p=new oe(p.line,p.ch-1)),p.ch>0)p=new oe(p.line,p.ch+1),i.replaceRange(v.charAt(p.ch-1)+v.charAt(p.ch-2),oe(p.line,p.ch-2),p,"+transpose");else if(p.line>i.doc.first){var _=Ae(i.doc,p.line-1).text;_&&(p=new oe(p.line,1),i.replaceRange(v.charAt(0)+i.doc.lineSeparator()+_.charAt(_.length-1),oe(p.line-1,_.length-1),p,"+transpose"))}}f.push(new mt(p,p))}i.setSelections(f)})},newlineAndIndent:function(i){return Ln(i,function(){for(var u=i.listSelections(),f=u.length-1;f>=0;f--)i.replaceRange(i.doc.lineSeparator(),u[f].anchor,u[f].head,"+input");u=i.listSelections();for(var l=0;l<u.length;l++)i.indentLine(u[l].from().line,null,!0);Ds(i)})},openLine:function(i){return i.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(i){return i.toggleOverwrite()}};function hC(i,u){var f=Ae(i.doc,u),l=ra(f);return l!=f&&(u=gt(l)),xy(!0,i,l,u,1)}function NB(i,u){var f=Ae(i.doc,u),l=d3(f);return l!=f&&(u=gt(l)),xy(!0,i,f,u,-1)}function vC(i,u){var f=hC(i,u.line),l=Ae(i.doc,f.line),p=Z(l,i.doc.direction);if(!p||p[0].level==0){var v=Math.max(f.ch,l.text.search(/\S/)),_=u.line==f.line&&u.ch<=v&&u.ch;return oe(f.line,_?0:v,f.sticky)}return f}function oh(i,u,f){if(typeof u=="string"&&(u=Jc[u],!u))return!1;i.display.input.ensurePolled();var l=i.display.shift,p=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),f&&(i.display.shift=!1),p=u(i)!=Ue}finally{i.display.shift=l,i.state.suppressEdits=!1}return p}function AB(i,u,f){for(var l=0;l<i.state.keyMaps.length;l++){var p=Ls(u,i.state.keyMaps[l],f,i);if(p)return p}return i.options.extraKeys&&Ls(u,i.options.extraKeys,f,i)||Ls(u,i.options.keyMap,f,i)}var LB=new vt;function Xc(i,u,f,l){var p=i.state.keySeq;if(p){if(fC(u))return"handled";if(/\'$/.test(u)?i.state.keySeq=null:LB.set(50,function(){i.state.keySeq==p&&(i.state.keySeq=null,i.display.input.reset())}),gC(i,p+" "+u,f,l))return!0}return gC(i,u,f,l)}function gC(i,u,f,l){var p=AB(i,u,l);return p=="multi"&&(i.state.keySeq=u),p=="handled"&&Tr(i,"keyHandled",i,u,f),(p=="handled"||p=="multi")&&(Rt(f),hy(i)),!!p}function mC(i,u){var f=pC(u,!0);return f?u.shiftKey&&!i.state.keySeq?Xc(i,"Shift-"+f,u,function(l){return oh(i,l,!0)})||Xc(i,f,u,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return oh(i,l)}):Xc(i,f,u,function(l){return oh(i,l)}):!1}function xB(i,u,f){return Xc(i,"'"+f+"'",u,function(l){return oh(i,l,!0)})}var Iy=null;function yC(i){var u=this;if(!(i.target&&i.target!=u.display.input.getField())&&(u.curOp.focus=pe(),!Qe(u,i))){s&&c<11&&i.keyCode==27&&(i.returnValue=!1);var f=i.keyCode;u.display.shift=f==16||i.shiftKey;var l=mC(u,i);E&&(Iy=l?f:null,!l&&f==88&&!Fp&&(g?i.metaKey:i.ctrlKey)&&u.replaceSelection("",null,"cut")),r&&!g&&!l&&f==46&&i.shiftKey&&!i.ctrlKey&&document.execCommand&&document.execCommand("cut"),f==18&&!/\bCodeMirror-crosshair\b/.test(u.display.lineDiv.className)&&IB(u)}}function IB(i){var u=i.display.lineDiv;we(u,"CodeMirror-crosshair");function f(l){(l.keyCode==18||!l.altKey)&&(B(u,"CodeMirror-crosshair"),ie(document,"keyup",f),ie(document,"mouseover",f))}R(document,"keyup",f),R(document,"mouseover",f)}function bC(i){i.keyCode==16&&(this.doc.sel.shift=!1),Qe(this,i)}function EC(i){var u=this;if(!(i.target&&i.target!=u.display.input.getField())&&!(ja(u.display,i)||Qe(u,i)||i.ctrlKey&&!i.altKey||g&&i.metaKey)){var f=i.keyCode,l=i.charCode;if(E&&f==Iy){Iy=null,Rt(i);return}if(!(E&&(!i.which||i.which<10)&&mC(u,i))){var p=String.fromCharCode(l==null?f:l);p!="\b"&&(xB(u,i,p)||u.display.input.onKeyPress(i))}}}var RB=400,Ry=function(i,u,f){this.time=i,this.pos=u,this.button=f};Ry.prototype.compare=function(i,u,f){return this.time+RB>i&&I(u,this.pos)==0&&f==this.button};var Zc,$c;function FB(i,u){var f=+new Date;return $c&&$c.compare(f,i,u)?(Zc=$c=null,"triple"):Zc&&Zc.compare(f,i,u)?($c=new Ry(f,i,u),Zc=null,"double"):(Zc=new Ry(f,i,u),$c=null,"single")}function TC(i){var u=this,f=u.display;if(!(Qe(u,i)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=i.shiftKey,ja(f,i)){d||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!Fy(u,i)){var l=hu(u,i),p=xp(i),v=l?FB(l,p):"single";window.focus(),p==1&&u.state.selectingText&&u.state.selectingText(i),!(l&&PB(u,p,l,v,i))&&(p==1?l?MB(u,l,v,i):Ri(i)==f.scroller&&Rt(i):p==2?(l&&eh(u.doc,l),setTimeout(function(){return f.input.focus()},20)):p==3&&(F?u.display.input.onContextMenu(i):vy(u)))}}}function PB(i,u,f,l,p){var v="Click";return l=="double"?v="Double"+v:l=="triple"&&(v="Triple"+v),v=(u==1?"Left":u==2?"Middle":"Right")+v,Xc(i,dC(v,p),p,function(_){if(typeof _=="string"&&(_=Jc[_]),!_)return!1;var O=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),O=_(i,f)!=Ue}finally{i.state.suppressEdits=!1}return O})}function jB(i,u,f){var l=i.getOption("configureMouse"),p=l?l(i,u,f):{};if(p.unit==null){var v=k?f.shiftKey&&f.metaKey:f.altKey;p.unit=v?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(p.extend==null||i.doc.extend)&&(p.extend=i.doc.extend||f.shiftKey),p.addNew==null&&(p.addNew=g?f.metaKey:f.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(g?f.altKey:f.ctrlKey)),p}function MB(i,u,f,l){s?setTimeout(ht(_k,i),0):i.curOp.focus=pe();var p=jB(i,f,l),v=i.doc.sel,_;i.options.dragDrop&&Ec&&!i.isReadOnly()&&f=="single"&&(_=v.contains(u))>-1&&(I((_=v.ranges[_]).from(),u)<0||u.xRel>0)&&(I(_.to(),u)>0||u.xRel<0)?qB(i,l,u,p):BB(i,l,u,p)}function qB(i,u,f,l){var p=i.display,v=!1,_=_r(i,function(x){d&&(p.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:vy(i)),ie(p.wrapper.ownerDocument,"mouseup",_),ie(p.wrapper.ownerDocument,"mousemove",O),ie(p.scroller,"dragstart",A),ie(p.scroller,"drop",_),v||(Rt(x),l.addNew||eh(i.doc,f,null,null,l.extend),d&&!b||s&&c==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),O=function(x){v=v||Math.abs(u.clientX-x.clientX)+Math.abs(u.clientY-x.clientY)>=10},A=function(){return v=!0};d&&(p.scroller.draggable=!0),i.state.draggingText=_,_.copy=!l.moveOnDrag,R(p.wrapper.ownerDocument,"mouseup",_),R(p.wrapper.ownerDocument,"mousemove",O),R(p.scroller,"dragstart",A),R(p.scroller,"drop",_),i.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function _C(i,u,f){if(f=="char")return new mt(u,u);if(f=="word")return i.findWordAt(u);if(f=="line")return new mt(oe(u.line,0),_e(i.doc,oe(u.line+1,0)));var l=f(i,u);return new mt(l.from,l.to)}function BB(i,u,f,l){s&&vy(i);var p=i.display,v=i.doc;Rt(u);var _,O,A=v.sel,x=A.ranges;if(l.addNew&&!l.extend?(O=v.sel.contains(f),O>-1?_=x[O]:_=new mt(f,f)):(_=v.sel.primary(),O=v.sel.primIndex),l.unit=="rectangle")l.addNew||(_=new mt(f,f)),f=hu(i,u,!0,!0),O=-1;else{var V=_C(i,f,l.unit);l.extend?_=wy(_,V.anchor,V.head,l.extend):_=V}l.addNew?O==-1?(O=x.length,Ur(v,Mi(i,x.concat([_]),O),{scroll:!1,origin:"*mouse"})):x.length>1&&x[O].empty()&&l.unit=="char"&&!l.extend?(Ur(v,Mi(i,x.slice(0,O).concat(x.slice(O+1)),0),{scroll:!1,origin:"*mouse"}),A=v.sel):Ny(v,O,_,wn):(O=0,Ur(v,new Yn([_],0),wn),A=v.sel);var Q=f;function J(ve){if(I(Q,ve)!=0)if(Q=ve,l.unit=="rectangle"){for(var Ce=[],Pe=i.options.tabSize,Fe=st(Ae(v,f.line).text,f.ch,Pe),Je=st(Ae(v,ve.line).text,ve.ch,Pe),xt=Math.min(Fe,Je),Dr=Math.max(Fe,Je),Wt=Math.min(f.line,ve.line),xn=Math.min(i.lastLine(),Math.max(f.line,ve.line));Wt<=xn;Wt++){var mn=Ae(v,Wt).text,cr=Mt(mn,xt,Pe);xt==Dr?Ce.push(new mt(oe(Wt,cr),oe(Wt,cr))):mn.length>cr&&Ce.push(new mt(oe(Wt,cr),oe(Wt,Mt(mn,Dr,Pe))))}Ce.length||Ce.push(new mt(f,f)),Ur(v,Mi(i,A.ranges.slice(0,O).concat(Ce),O),{origin:"*mouse",scroll:!1}),i.scrollIntoView(ve)}else{var yn=_,Fr=_C(i,ve,l.unit),mr=yn.anchor,fr;I(Fr.anchor,mr)>0?(fr=Fr.head,mr=Be(yn.from(),Fr.anchor)):(fr=Fr.anchor,mr=se(yn.to(),Fr.head));var er=A.ranges.slice(0);er[O]=VB(i,new mt(_e(v,mr),fr)),Ur(v,Mi(i,er,O),wn)}}var Y=p.wrapper.getBoundingClientRect(),re=0;function ae(ve){var Ce=++re,Pe=hu(i,ve,!0,l.unit=="rectangle");if(!!Pe)if(I(Pe,Q)!=0){i.curOp.focus=pe(),J(Pe);var Fe=Wp(p,v);(Pe.line>=Fe.to||Pe.line<Fe.from)&&setTimeout(_r(i,function(){re==Ce&&ae(ve)}),150)}else{var Je=ve.clientY<Y.top?-20:ve.clientY>Y.bottom?20:0;Je&&setTimeout(_r(i,function(){re==Ce&&(p.scroller.scrollTop+=Je,ae(ve))}),50)}}function le(ve){i.state.selectingText=!1,re=1/0,ve&&(Rt(ve),p.input.focus()),ie(p.wrapper.ownerDocument,"mousemove",he),ie(p.wrapper.ownerDocument,"mouseup",Se),v.history.lastSelOrigin=null}var he=_r(i,function(ve){ve.buttons===0||!xp(ve)?le(ve):ae(ve)}),Se=_r(i,le);i.state.selectingText=Se,R(p.wrapper.ownerDocument,"mousemove",he),R(p.wrapper.ownerDocument,"mouseup",Se)}function VB(i,u){var f=u.anchor,l=u.head,p=Ae(i.doc,f.line);if(I(f,l)==0&&f.sticky==l.sticky)return u;var v=Z(p);if(!v)return u;var _=q(v,f.ch,f.sticky),O=v[_];if(O.from!=f.ch&&O.to!=f.ch)return u;var A=_+(O.from==f.ch==(O.level!=1)?0:1);if(A==0||A==v.length)return u;var x;if(l.line!=f.line)x=(l.line-f.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var V=q(v,l.ch,l.sticky),Q=V-_||(l.ch-f.ch)*(O.level==1?-1:1);V==A-1||V==A?x=Q<0:x=Q>0}var J=v[A+(x?-1:0)],Y=x==(J.level==1),re=Y?J.from:J.to,ae=Y?"after":"before";return f.ch==re&&f.sticky==ae?u:new mt(new oe(f.line,re,ae),l)}function SC(i,u,f,l){var p,v;if(u.touches)p=u.touches[0].clientX,v=u.touches[0].clientY;else try{p=u.clientX,v=u.clientY}catch(J){return!1}if(p>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;l&&Rt(u);var _=i.display,O=_.lineDiv.getBoundingClientRect();if(v>O.bottom||!Dt(i,f))return gr(u);v-=O.top-_.viewOffset;for(var A=0;A<i.display.gutterSpecs.length;++A){var x=_.gutters.childNodes[A];if(x&&x.getBoundingClientRect().right>=p){var V=ea(i.doc,v),Q=i.display.gutterSpecs[A];return fe(i,f,i,V,Q.className,u),gr(u)}}}function Fy(i,u){return SC(i,u,"gutterClick",!0)}function DC(i,u){ja(i.display,u)||UB(i,u)||Qe(i,u,"contextmenu")||F||i.display.input.onContextMenu(u)}function UB(i,u){return Dt(i,"gutterContextMenu")?SC(i,u,"gutterContextMenu",!1):!1}function kC(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ic(i)}var Is={toString:function(){return"CodeMirror.Init"}},CC={},uh={};function GB(i){var u=i.optionHandlers;function f(l,p,v,_){i.defaults[l]=p,v&&(u[l]=_?function(O,A,x){x!=Is&&v(O,A,x)}:v)}i.defineOption=f,i.Init=Is,f("value","",function(l,p){return l.setValue(p)},!0),f("mode",null,function(l,p){l.doc.modeOption=p,ky(l)},!0),f("indentUnit",2,ky,!0),f("indentWithTabs",!1),f("smartIndent",!0),f("tabSize",4,function(l){Vc(l),Ic(l),vn(l)},!0),f("lineSeparator",null,function(l,p){if(l.doc.lineSep=p,!!p){var v=[],_=l.doc.first;l.doc.iter(function(A){for(var x=0;;){var V=A.text.indexOf(p,x);if(V==-1)break;x=V+p.length,v.push(oe(_,V))}_++});for(var O=v.length-1;O>=0;O--)Ns(l.doc,p,v[O],oe(v[O].line,v[O].ch+p.length))}}),f("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,p,v){l.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),v!=Is&&l.refresh()}),f("specialCharPlaceholder",y3,function(l){return l.refresh()},!0),f("electricChars",!0),f("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),f("spellcheck",!1,function(l,p){return l.getInputField().spellcheck=p},!0),f("autocorrect",!1,function(l,p){return l.getInputField().autocorrect=p},!0),f("autocapitalize",!1,function(l,p){return l.getInputField().autocapitalize=p},!0),f("rtlMoveVisually",!N),f("wholeLineUpdateBefore",!0),f("theme","default",function(l){kC(l),Bc(l)},!0),f("keyMap","default",function(l,p,v){var _=ah(p),O=v!=Is&&ah(v);O&&O.detach&&O.detach(l,_),_.attach&&_.attach(l,O||null)}),f("extraKeys",null),f("configureMouse",null),f("lineWrapping",!1,KB,!0),f("gutters",[],function(l,p){l.display.gutterSpecs=Sy(p,l.options.lineNumbers),Bc(l)},!0),f("fixedGutter",!0,function(l,p){l.display.gutters.style.left=p?dy(l.display)+"px":"0",l.refresh()},!0),f("coverGutterNextToScrollbar",!1,function(l){return ks(l)},!0),f("scrollbarStyle","native",function(l){wk(l),ks(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),f("lineNumbers",!1,function(l,p){l.display.gutterSpecs=Sy(l.options.gutters,p),Bc(l)},!0),f("firstLineNumber",1,Bc,!0),f("lineNumberFormatter",function(l){return l},Bc,!0),f("showCursorWhenSelecting",!1,Rc,!0),f("resetSelectionOnContextMenu",!0),f("lineWiseCopyCut",!0),f("pasteLinesPerSelection",!0),f("selectionsMayTouch",!1),f("readOnly",!1,function(l,p){p=="nocursor"&&(Ss(l),l.display.input.blur()),l.display.input.readOnlyChanged(p)}),f("screenReaderLabel",null,function(l,p){p=p===""?null:p,l.display.input.screenReaderLabelChanged(p)}),f("disableInput",!1,function(l,p){p||l.display.input.reset()},!0),f("dragDrop",!0,QB),f("allowDropFileTypes",null),f("cursorBlinkRate",530),f("cursorScrollMargin",0),f("cursorHeight",1,Rc,!0),f("singleCursorHeightPerLine",!0,Rc,!0),f("workTime",100),f("workDelay",100),f("flattenSpans",!0,Vc,!0),f("addModeClass",!1,Vc,!0),f("pollInterval",100),f("undoDepth",200,function(l,p){return l.doc.history.undoDepth=p}),f("historyEventDelay",1250),f("viewportMargin",10,function(l){return l.refresh()},!0),f("maxHighlightLength",1e4,Vc,!0),f("moveInputWithCursor",!0,function(l,p){p||l.display.input.resetPosition()}),f("tabindex",null,function(l,p){return l.display.input.getField().tabIndex=p||""}),f("autofocus",null),f("direction","ltr",function(l,p){return l.doc.setDirection(p)},!0),f("phrases",null)}function QB(i,u,f){var l=f&&f!=Is;if(!u!=!l){var p=i.display.dragFunctions,v=u?R:ie;v(i.display.scroller,"dragstart",p.start),v(i.display.scroller,"dragenter",p.enter),v(i.display.scroller,"dragover",p.over),v(i.display.scroller,"dragleave",p.leave),v(i.display.scroller,"drop",p.drop)}}function KB(i){i.options.lineWrapping?(we(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(B(i.display.wrapper,"CodeMirror-wrap"),ty(i)),py(i),vn(i),Ic(i),setTimeout(function(){return ks(i)},100)}function Gt(i,u){var f=this;if(!(this instanceof Gt))return new Gt(i,u);this.options=u=u?at(u):{},at(CC,u,!1);var l=u.value;typeof l=="string"?l=new gn(l,u.mode,null,u.lineSeparator,u.direction):u.mode&&(l.modeOption=u.mode),this.doc=l;var p=new Gt.inputStyles[u.inputStyle](this),v=this.display=new iB(i,l,p,u);v.wrapper.CodeMirror=this,kC(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wk(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new vt,keySeq:null,specialChars:null},u.autofocus&&!T&&v.input.focus(),s&&c<11&&setTimeout(function(){return f.display.input.reset(!0)},20),HB(this),SB(),yu(this),this.curOp.forceUpdate=!0,Mk(this,l),u.autofocus&&!T||this.hasFocus()?setTimeout(function(){f.hasFocus()&&!f.state.focused&&gy(f)},20):Ss(this);for(var _ in uh)uh.hasOwnProperty(_)&&uh[_](this,u[_],Is);Lk(this),u.finishInit&&u.finishInit(this);for(var O=0;O<Py.length;++O)Py[O](this);bu(this),d&&u.lineWrapping&&getComputedStyle(v.lineDiv).textRendering=="optimizelegibility"&&(v.lineDiv.style.textRendering="auto")}Gt.defaults=CC,Gt.optionHandlers=uh;function HB(i){var u=i.display;R(u.scroller,"mousedown",_r(i,TC)),s&&c<11?R(u.scroller,"dblclick",_r(i,function(A){if(!Qe(i,A)){var x=hu(i,A);if(!(!x||Fy(i,A)||ja(i.display,A))){Rt(A);var V=i.findWordAt(x);eh(i.doc,V.anchor,V.head)}}})):R(u.scroller,"dblclick",function(A){return Qe(i,A)||Rt(A)}),R(u.scroller,"contextmenu",function(A){return DC(i,A)}),R(u.input.getField(),"contextmenu",function(A){u.scroller.contains(A.target)||DC(i,A)});var f,l={end:0};function p(){u.activeTouch&&(f=setTimeout(function(){return u.activeTouch=null},1e3),l=u.activeTouch,l.end=+new Date)}function v(A){if(A.touches.length!=1)return!1;var x=A.touches[0];return x.radiusX<=1&&x.radiusY<=1}function _(A,x){if(x.left==null)return!0;var V=x.left-A.left,Q=x.top-A.top;return V*V+Q*Q>20*20}R(u.scroller,"touchstart",function(A){if(!Qe(i,A)&&!v(A)&&!Fy(i,A)){u.input.ensurePolled(),clearTimeout(f);var x=+new Date;u.activeTouch={start:x,moved:!1,prev:x-l.end<=300?l:null},A.touches.length==1&&(u.activeTouch.left=A.touches[0].pageX,u.activeTouch.top=A.touches[0].pageY)}}),R(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),R(u.scroller,"touchend",function(A){var x=u.activeTouch;if(x&&!ja(u,A)&&x.left!=null&&!x.moved&&new Date-x.start<300){var V=i.coordsChar(u.activeTouch,"page"),Q;!x.prev||_(x,x.prev)?Q=new mt(V,V):!x.prev.prev||_(x,x.prev.prev)?Q=i.findWordAt(V):Q=new mt(oe(V.line,0),_e(i.doc,oe(V.line+1,0))),i.setSelection(Q.anchor,Q.head),i.focus(),Rt(A)}p()}),R(u.scroller,"touchcancel",p),R(u.scroller,"scroll",function(){u.scroller.clientHeight&&(Pc(i,u.scroller.scrollTop),gu(i,u.scroller.scrollLeft,!0),fe(i,"scroll",i))}),R(u.scroller,"mousewheel",function(A){return Rk(i,A)}),R(u.scroller,"DOMMouseScroll",function(A){return Rk(i,A)}),R(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(A){Qe(i,A)||ci(A)},over:function(A){Qe(i,A)||(_B(i,A),ci(A))},start:function(A){return TB(i,A)},drop:_r(i,EB),leave:function(A){Qe(i,A)||sC(i)}};var O=u.input.getField();R(O,"keyup",function(A){return bC.call(i,A)}),R(O,"keydown",_r(i,yC)),R(O,"keypress",_r(i,EC)),R(O,"focus",function(A){return gy(i,A)}),R(O,"blur",function(A){return Ss(i,A)})}var Py=[];Gt.defineInitHook=function(i){return Py.push(i)};function ef(i,u,f,l){var p=i.doc,v;f==null&&(f="add"),f=="smart"&&(p.mode.indent?v=wc(i,u).state:f="prev");var _=i.options.tabSize,O=Ae(p,u),A=st(O.text,null,_);O.stateAfter&&(O.stateAfter=null);var x=O.text.match(/^\s*/)[0],V;if(!l&&!/\S/.test(O.text))V=0,f="not";else if(f=="smart"&&(V=p.mode.indent(v,O.text.slice(x.length),O.text),V==Ue||V>150)){if(!l)return;f="prev"}f=="prev"?u>p.first?V=st(Ae(p,u-1).text,null,_):V=0:f=="add"?V=A+i.options.indentUnit:f=="subtract"?V=A-i.options.indentUnit:typeof f=="number"&&(V=A+f),V=Math.max(0,V);var Q="",J=0;if(i.options.indentWithTabs)for(var Y=Math.floor(V/_);Y;--Y)J+=_,Q+=" ";if(J<V&&(Q+=pn(V-J)),Q!=x)return Ns(p,Q,oe(u,0),oe(u,x.length),"+input"),O.stateAfter=null,!0;for(var re=0;re<p.sel.ranges.length;re++){var ae=p.sel.ranges[re];if(ae.head.line==u&&ae.head.ch<x.length){var le=oe(u,x.length);Ny(p,re,new mt(le,le));break}}}var qi=null;function sh(i){qi=i}function jy(i,u,f,l,p){var v=i.doc;i.display.shift=!1,l||(l=v.sel);var _=+new Date-200,O=p=="paste"||i.state.pasteIncoming>_,A=_c(u),x=null;if(O&&l.ranges.length>1)if(qi&&qi.text.join(`
|
|
`)==u){if(l.ranges.length%qi.text.length==0){x=[];for(var V=0;V<qi.text.length;V++)x.push(v.splitLines(qi.text[V]))}}else A.length==l.ranges.length&&i.options.pasteLinesPerSelection&&(x=De(A,function(he){return[he]}));for(var Q=i.curOp.updateInput,J=l.ranges.length-1;J>=0;J--){var Y=l.ranges[J],re=Y.from(),ae=Y.to();Y.empty()&&(f&&f>0?re=oe(re.line,re.ch-f):i.state.overwrite&&!O?ae=oe(ae.line,Math.min(Ae(v,ae.line).text.length,ae.ch+ee(A).length)):O&&qi&&qi.lineWise&&qi.text.join(`
|
|
`)==A.join(`
|
|
`)&&(re=ae=oe(re.line,0)));var le={from:re,to:ae,text:x?x[J%x.length]:A,origin:p||(O?"paste":i.state.cutIncoming>_?"cut":"+input")};ws(i.doc,le),Tr(i,"inputRead",i,le)}u&&!O&&wC(i,u),Ds(i),i.curOp.updateInput<2&&(i.curOp.updateInput=Q),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function OC(i,u){var f=i.clipboardData&&i.clipboardData.getData("Text");if(f)return i.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Ln(u,function(){return jy(u,f,0,null,"paste")}),!0}function wC(i,u){if(!(!i.options.electricChars||!i.options.smartIndent))for(var f=i.doc.sel,l=f.ranges.length-1;l>=0;l--){var p=f.ranges[l];if(!(p.head.ch>100||l&&f.ranges[l-1].head.line==p.head.line)){var v=i.getModeAt(p.head),_=!1;if(v.electricChars){for(var O=0;O<v.electricChars.length;O++)if(u.indexOf(v.electricChars.charAt(O))>-1){_=ef(i,p.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Ae(i.doc,p.head.line).text.slice(0,p.head.ch))&&(_=ef(i,p.head.line,"smart"));_&&Tr(i,"electricInput",i,p.head.line)}}}function NC(i){for(var u=[],f=[],l=0;l<i.doc.sel.ranges.length;l++){var p=i.doc.sel.ranges[l].head.line,v={anchor:oe(p,0),head:oe(p+1,0)};f.push(v),u.push(i.getRange(v.anchor,v.head))}return{text:u,ranges:f}}function AC(i,u,f,l){i.setAttribute("autocorrect",f?"":"off"),i.setAttribute("autocapitalize",l?"":"off"),i.setAttribute("spellcheck",!!u)}function LC(){var i=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),u=M("div",[i],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?i.style.width="1000px":i.setAttribute("wrap","off"),S&&(i.style.border="1px solid black"),AC(i),u}function zB(i){var u=i.optionHandlers,f=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,p){var v=this.options,_=v[l];v[l]==p&&l!="mode"||(v[l]=p,u.hasOwnProperty(l)&&_r(this,u[l])(this,p,_),fe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,p){this.state.keyMaps[p?"push":"unshift"](ah(l))},removeKeyMap:function(l){for(var p=this.state.keyMaps,v=0;v<p.length;++v)if(p[v]==l||p[v].name==l)return p.splice(v,1),!0},addOverlay:Zr(function(l,p){var v=l.token?l:i.getMode(this.options,l);if(v.startState)throw new Error("Overlays may not be stateful.");be(this.state.overlays,{mode:v,modeSpec:l,opaque:p&&p.opaque,priority:p&&p.priority||0},function(_){return _.priority}),this.state.modeGen++,vn(this)}),removeOverlay:Zr(function(l){for(var p=this.state.overlays,v=0;v<p.length;++v){var _=p[v].modeSpec;if(_==l||typeof l=="string"&&_.name==l){p.splice(v,1),this.state.modeGen++,vn(this);return}}}),indentLine:Zr(function(l,p,v){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),fu(this.doc,l)&&ef(this,l,p,v)}),indentSelection:Zr(function(l){for(var p=this.doc.sel.ranges,v=-1,_=0;_<p.length;_++){var O=p[_];if(O.empty())O.head.line>v&&(ef(this,O.head.line,l,!0),v=O.head.line,_==this.doc.sel.primIndex&&Ds(this));else{var A=O.from(),x=O.to(),V=Math.max(v,A.line);v=Math.min(this.lastLine(),x.line-(x.ch?0:1))+1;for(var Q=V;Q<v;++Q)ef(this,Q,l);var J=this.doc.sel.ranges;A.ch==0&&p.length==J.length&&J[_].from().ch>0&&Ny(this.doc,_,new mt(A,J[_].to()),Ze)}}}),getTokenAt:function(l,p){return qD(this,l,p)},getLineTokens:function(l,p){return qD(this,oe(l),p,!0)},getTokenTypeAt:function(l){l=_e(this.doc,l);var p=PD(this,Ae(this.doc,l.line)),v=0,_=(p.length-1)/2,O=l.ch,A;if(O==0)A=p[2];else for(;;){var x=v+_>>1;if((x?p[x*2-1]:0)>=O)_=x;else if(p[x*2+1]<O)v=x+1;else{A=p[x*2+2];break}}var V=A?A.indexOf("overlay "):-1;return V<0?A:V==0?null:A.slice(0,V-1)},getModeAt:function(l){var p=this.doc.mode;return p.innerMode?i.innerMode(p,this.getTokenAt(l).state).mode:p},getHelper:function(l,p){return this.getHelpers(l,p)[0]},getHelpers:function(l,p){var v=[];if(!f.hasOwnProperty(p))return v;var _=f[p],O=this.getModeAt(l);if(typeof O[p]=="string")_[O[p]]&&v.push(_[O[p]]);else if(O[p])for(var A=0;A<O[p].length;A++){var x=_[O[p][A]];x&&v.push(x)}else O.helperType&&_[O.helperType]?v.push(_[O.helperType]):_[O.name]&&v.push(_[O.name]);for(var V=0;V<_._global.length;V++){var Q=_._global[V];Q.pred(O,this)&&Oe(v,Q.val)==-1&&v.push(Q.val)}return v},getStateAfter:function(l,p){var v=this.doc;return l=ot(v,l==null?v.first+v.size-1:l),wc(this,l+1,p).state},cursorCoords:function(l,p){var v,_=this.doc.sel.primary();return l==null?v=_.head:typeof l=="object"?v=_e(this.doc,l):v=l?_.from():_.to(),ji(this,v,p||"page")},charCoords:function(l,p){return uy(this,_e(this.doc,l),p||"page")},coordsChar:function(l,p){return l=hk(this,l,p||"page"),ly(this,l.left,l.top)},lineAtHeight:function(l,p){return l=hk(this,{top:l,left:0},p||"page").top,ea(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,p,v){var _=!1,O;if(typeof l=="number"){var A=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>A&&(l=A,_=!0),O=Ae(this.doc,l)}else O=l;return Qp(this,O,{top:0,left:0},p||"page",v||_).top+(_?this.doc.height-Pa(O):0)},defaultTextHeight:function(){return Ts(this.display)},defaultCharWidth:function(){return _s(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,p,v,_,O){var A=this.display;l=ji(this,_e(this.doc,l));var x=l.bottom,V=l.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),A.sizer.appendChild(p),_=="over")x=l.top;else if(_=="above"||_=="near"){var Q=Math.max(A.wrapper.clientHeight,this.doc.height),J=Math.max(A.sizer.clientWidth,A.lineSpace.clientWidth);(_=="above"||l.bottom+p.offsetHeight>Q)&&l.top>p.offsetHeight?x=l.top-p.offsetHeight:l.bottom+p.offsetHeight<=Q&&(x=l.bottom),V+p.offsetWidth>J&&(V=J-p.offsetWidth)}p.style.top=x+"px",p.style.left=p.style.right="",O=="right"?(V=A.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(O=="left"?V=0:O=="middle"&&(V=(A.sizer.clientWidth-p.offsetWidth)/2),p.style.left=V+"px"),v&&Q3(this,{left:V,top:x,right:V+p.offsetWidth,bottom:x+p.offsetHeight})},triggerOnKeyDown:Zr(yC),triggerOnKeyPress:Zr(EC),triggerOnKeyUp:bC,triggerOnMouseDown:Zr(TC),execCommand:function(l){if(Jc.hasOwnProperty(l))return Jc[l].call(null,this)},triggerElectric:Zr(function(l){wC(this,l)}),findPosH:function(l,p,v,_){var O=1;p<0&&(O=-1,p=-p);for(var A=_e(this.doc,l),x=0;x<p&&(A=My(this.doc,A,O,v,_),!A.hitSide);++x);return A},moveH:Zr(function(l,p){var v=this;this.extendSelectionsBy(function(_){return v.display.shift||v.doc.extend||_.empty()?My(v.doc,_.head,l,p,v.options.rtlMoveVisually):l<0?_.from():_.to()},tt)}),deleteH:Zr(function(l,p){var v=this.doc.sel,_=this.doc;v.somethingSelected()?_.replaceSelection("",null,"+delete"):xs(this,function(O){var A=My(_,O.head,l,p,!1);return l<0?{from:A,to:O.head}:{from:O.head,to:A}})}),findPosV:function(l,p,v,_){var O=1,A=_;p<0&&(O=-1,p=-p);for(var x=_e(this.doc,l),V=0;V<p;++V){var Q=ji(this,x,"div");if(A==null?A=Q.left:Q.left=A,x=xC(this,Q,O,v),x.hitSide)break}return x},moveV:Zr(function(l,p){var v=this,_=this.doc,O=[],A=!this.display.shift&&!_.extend&&_.sel.somethingSelected();if(_.extendSelectionsBy(function(V){if(A)return l<0?V.from():V.to();var Q=ji(v,V.head,"div");V.goalColumn!=null&&(Q.left=V.goalColumn),O.push(Q.left);var J=xC(v,Q,l,p);return p=="page"&&V==_.sel.primary()&&yy(v,uy(v,J,"div").top-Q.top),J},tt),O.length)for(var x=0;x<_.sel.ranges.length;x++)_.sel.ranges[x].goalColumn=O[x]}),findWordAt:function(l){var p=this.doc,v=Ae(p,l.line).text,_=l.ch,O=l.ch;if(v){var A=this.getHelper(l,"wordChars");(l.sticky=="before"||O==v.length)&&_?--_:++O;for(var x=v.charAt(_),V=rt(x,A)?function(Q){return rt(Q,A)}:/\s/.test(x)?function(Q){return/\s/.test(Q)}:function(Q){return!/\s/.test(Q)&&!rt(Q)};_>0&&V(v.charAt(_-1));)--_;for(;O<v.length&&V(v.charAt(O));)++O}return new mt(oe(l.line,_),oe(l.line,O))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):B(this.display.cursorDiv,"CodeMirror-overwrite"),fe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Zr(function(l,p){Fc(this,l,p)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-na(this)-this.display.barHeight,width:l.scrollWidth-na(this)-this.display.barWidth,clientHeight:iy(this),clientWidth:du(this)}},scrollIntoView:Zr(function(l,p){l==null?(l={from:this.doc.sel.primary().head,to:null},p==null&&(p=this.options.cursorScrollMargin)):typeof l=="number"?l={from:oe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=p||0,l.from.line!=null?K3(this,l):Dk(this,l.from,l.to,l.margin)}),setSize:Zr(function(l,p){var v=this,_=function(A){return typeof A=="number"||/^\d+$/.test(String(A))?A+"px":A};l!=null&&(this.display.wrapper.style.width=_(l)),p!=null&&(this.display.wrapper.style.height=_(p)),this.options.lineWrapping&&fk(this);var O=this.display.viewFrom;this.doc.iter(O,this.display.viewTo,function(A){if(A.widgets){for(var x=0;x<A.widgets.length;x++)if(A.widgets[x].noHScroll){so(v,O,"widget");break}}++O}),this.curOp.forceUpdate=!0,fe(this,"refresh",this)}),operation:function(l){return Ln(this,l)},startOperation:function(){return yu(this)},endOperation:function(){return bu(this)},refresh:Zr(function(){var l=this.display.cachedTextHeight;vn(this),this.curOp.forceUpdate=!0,Ic(this),Fc(this,this.doc.scrollLeft,this.doc.scrollTop),Ty(this.display),(l==null||Math.abs(l-Ts(this.display))>.5||this.options.lineWrapping)&&py(this),fe(this,"refresh",this)}),swapDoc:Zr(function(l){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),Mk(this,l),Ic(this),this.display.input.reset(),Fc(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,p),p}),phrase:function(l){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,l)?p[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},nr(i),i.registerHelper=function(l,p,v){f.hasOwnProperty(l)||(f[l]=i[l]={_global:[]}),f[l][p]=v},i.registerGlobalHelper=function(l,p,v,_){i.registerHelper(l,p,_),f[l]._global.push({pred:v,val:_})}}function My(i,u,f,l,p){var v=u,_=f,O=Ae(i,u.line),A=p&&i.direction=="rtl"?-f:f;function x(){var Se=u.line+A;return Se<i.first||Se>=i.first+i.size?!1:(u=new oe(Se,u.ch,u.sticky),O=Ae(i,Se))}function V(Se){var ve;if(l=="codepoint"){var Ce=O.text.charCodeAt(u.ch+(f>0?0:-1));if(isNaN(Ce))ve=null;else{var Pe=f>0?Ce>=55296&&Ce<56320:Ce>=56320&&Ce<57343;ve=new oe(u.line,Math.max(0,Math.min(O.text.length,u.ch+f*(Pe?2:1))),-f)}}else p?ve=wB(i.cm,O,u,f):ve=Ly(O,u,f);if(ve==null)if(!Se&&x())u=xy(p,i.cm,O,u.line,A);else return!1;else u=ve;return!0}if(l=="char"||l=="codepoint")V();else if(l=="column")V(!0);else if(l=="word"||l=="group")for(var Q=null,J=l=="group",Y=i.cm&&i.cm.getHelper(u,"wordChars"),re=!0;!(f<0&&!V(!re));re=!1){var ae=O.text.charAt(u.ch)||`
|
|
`,le=rt(ae,Y)?"w":J&&ae==`
|
|
`?"n":!J||/\s/.test(ae)?null:"p";if(J&&!re&&!le&&(le="s"),Q&&Q!=le){f<0&&(f=1,V(),u.sticky="after");break}if(le&&(Q=le),f>0&&!V(!re))break}var he=rh(i,u,v,_,!0);return K(v,he)&&(he.hitSide=!0),he}function xC(i,u,f,l){var p=i.doc,v=u.left,_;if(l=="page"){var O=Math.min(i.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),A=Math.max(O-.5*Ts(i.display),3);_=(f>0?u.bottom:u.top)+f*A}else l=="line"&&(_=f>0?u.bottom+3:u.top-3);for(var x;x=ly(i,v,_),!!x.outside;){if(f<0?_<=0:_>=p.height){x.hitSide=!0;break}_+=f*5}return x}var kt=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new vt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.prototype.init=function(i){var u=this,f=this,l=f.cm,p=f.div=i.lineDiv;p.contentEditable=!0,AC(p,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function v(O){for(var A=O.target;A;A=A.parentNode){if(A==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(A.className))break}return!1}R(p,"paste",function(O){!v(O)||Qe(l,O)||OC(O,l)||c<=11&&setTimeout(_r(l,function(){return u.updateFromDOM()}),20)}),R(p,"compositionstart",function(O){u.composing={data:O.data,done:!1}}),R(p,"compositionupdate",function(O){u.composing||(u.composing={data:O.data,done:!1})}),R(p,"compositionend",function(O){u.composing&&(O.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),R(p,"touchstart",function(){return f.forceCompositionEnd()}),R(p,"input",function(){u.composing||u.readFromDOMSoon()});function _(O){if(!(!v(O)||Qe(l,O))){if(l.somethingSelected())sh({lineWise:!1,text:l.getSelections()}),O.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var A=NC(l);sh({lineWise:!0,text:A.text}),O.type=="cut"&&l.operation(function(){l.setSelections(A.ranges,0,Ze),l.replaceSelection("",null,"cut")})}else return;if(O.clipboardData){O.clipboardData.clearData();var x=qi.text.join(`
|
|
`);if(O.clipboardData.setData("Text",x),O.clipboardData.getData("Text")==x){O.preventDefault();return}}var V=LC(),Q=V.firstChild;l.display.lineSpace.insertBefore(V,l.display.lineSpace.firstChild),Q.value=qi.text.join(`
|
|
`);var J=pe();qe(Q),setTimeout(function(){l.display.lineSpace.removeChild(V),J.focus(),J==p&&f.showPrimarySelection()},50)}}R(p,"copy",_),R(p,"cut",_)},kt.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var i=Ek(this.cm,!1);return i.focus=pe()==this.div,i},kt.prototype.showSelection=function(i,u){!i||!this.cm.display.view.length||((i.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(i))},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var i=this.getSelection(),u=this.cm,f=u.doc.sel.primary(),l=f.from(),p=f.to();if(u.display.viewTo==u.display.viewFrom||l.line>=u.display.viewTo||p.line<u.display.viewFrom){i.removeAllRanges();return}var v=lh(u,i.anchorNode,i.anchorOffset),_=lh(u,i.focusNode,i.focusOffset);if(!(v&&!v.bad&&_&&!_.bad&&I(Be(v,_),l)==0&&I(se(v,_),p)==0)){var O=u.display.view,A=l.line>=u.display.viewFrom&&IC(u,l)||{node:O[0].measure.map[2],offset:0},x=p.line<u.display.viewTo&&IC(u,p);if(!x){var V=O[O.length-1].measure,Q=V.maps?V.maps[V.maps.length-1]:V.map;x={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!A||!x){i.removeAllRanges();return}var J=i.rangeCount&&i.getRangeAt(0),Y;try{Y=ce(A.node,A.offset,x.offset,x.node)}catch(re){}Y&&(!r&&u.state.focused?(i.collapse(A.node,A.offset),Y.collapsed||(i.removeAllRanges(),i.addRange(Y))):(i.removeAllRanges(),i.addRange(Y)),J&&i.anchorNode==null?i.addRange(J):r&&this.startGracePeriod()),this.rememberSelection()}},kt.prototype.startGracePeriod=function(){var i=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){i.gracePeriod=!1,i.selectionChanged()&&i.cm.operation(function(){return i.cm.curOp.selectionChanged=!0})},20)},kt.prototype.showMultipleSelections=function(i){G(this.cm.display.cursorDiv,i.cursors),G(this.cm.display.selectionDiv,i.selection)},kt.prototype.rememberSelection=function(){var i=this.getSelection();this.lastAnchorNode=i.anchorNode,this.lastAnchorOffset=i.anchorOffset,this.lastFocusNode=i.focusNode,this.lastFocusOffset=i.focusOffset},kt.prototype.selectionInEditor=function(){var i=this.getSelection();if(!i.rangeCount)return!1;var u=i.getRangeAt(0).commonAncestorContainer;return ke(this.div,u)},kt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||pe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},kt.prototype.blur=function(){this.div.blur()},kt.prototype.getField=function(){return this.div},kt.prototype.supportsTouch=function(){return!0},kt.prototype.receivedFocus=function(){var i=this;this.selectionInEditor()?this.pollSelection():Ln(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},kt.prototype.selectionChanged=function(){var i=this.getSelection();return i.anchorNode!=this.lastAnchorNode||i.anchorOffset!=this.lastAnchorOffset||i.focusNode!=this.lastFocusNode||i.focusOffset!=this.lastFocusOffset},kt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var i=this.getSelection(),u=this.cm;if(y&&m&&this.cm.display.gutterSpecs.length&&WB(i.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var f=lh(u,i.anchorNode,i.anchorOffset),l=lh(u,i.focusNode,i.focusOffset);f&&l&&Ln(u,function(){Ur(u.doc,co(f,l),Ze),(f.bad||l.bad)&&(u.curOp.selectionChanged=!0)})}}},kt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var i=this.cm,u=i.display,f=i.doc.sel.primary(),l=f.from(),p=f.to();if(l.ch==0&&l.line>i.firstLine()&&(l=oe(l.line-1,Ae(i.doc,l.line-1).length)),p.ch==Ae(i.doc,p.line).text.length&&p.line<i.lastLine()&&(p=oe(p.line+1,0)),l.line<u.viewFrom||p.line>u.viewTo-1)return!1;var v,_,O;l.line==u.viewFrom||(v=vu(i,l.line))==0?(_=gt(u.view[0].line),O=u.view[0].node):(_=gt(u.view[v].line),O=u.view[v-1].node.nextSibling);var A=vu(i,p.line),x,V;if(A==u.view.length-1?(x=u.viewTo-1,V=u.lineDiv.lastChild):(x=gt(u.view[A+1].line)-1,V=u.view[A+1].node.previousSibling),!O)return!1;for(var Q=i.doc.splitLines(YB(i,O,V,_,x)),J=$i(i.doc,oe(_,0),oe(x,Ae(i.doc,x).text.length));Q.length>1&&J.length>1;)if(ee(Q)==ee(J))Q.pop(),J.pop(),x--;else if(Q[0]==J[0])Q.shift(),J.shift(),_++;else break;for(var Y=0,re=0,ae=Q[0],le=J[0],he=Math.min(ae.length,le.length);Y<he&&ae.charCodeAt(Y)==le.charCodeAt(Y);)++Y;for(var Se=ee(Q),ve=ee(J),Ce=Math.min(Se.length-(Q.length==1?Y:0),ve.length-(J.length==1?Y:0));re<Ce&&Se.charCodeAt(Se.length-re-1)==ve.charCodeAt(ve.length-re-1);)++re;if(Q.length==1&&J.length==1&&_==l.line)for(;Y&&Y>l.ch&&Se.charCodeAt(Se.length-re-1)==ve.charCodeAt(ve.length-re-1);)Y--,re++;Q[Q.length-1]=Se.slice(0,Se.length-re).replace(/^\u200b+/,""),Q[0]=Q[0].slice(Y).replace(/\u200b+$/,"");var Pe=oe(_,Y),Fe=oe(x,J.length?ee(J).length-re:0);if(Q.length>1||Q[0]||I(Pe,Fe))return Ns(i.doc,Q,Pe,Fe,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},kt.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(i.readDOMTimeout=null,i.composing)if(i.composing.done)i.composing=null;else return;i.updateFromDOM()},80))},kt.prototype.updateFromDOM=function(){var i=this;(this.cm.isReadOnly()||!this.pollContent())&&Ln(this.cm,function(){return vn(i.cm)})},kt.prototype.setUneditable=function(i){i.contentEditable="false"},kt.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||_r(this.cm,jy)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},kt.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function IC(i,u){var f=ay(i,u.line);if(!f||f.hidden)return null;var l=Ae(i.doc,u.line),p=ok(f,l,u.line),v=Z(l,i.doc.direction),_="left";if(v){var O=q(v,u.ch);_=O%2?"right":"left"}var A=lk(p.map,u.ch,_);return A.offset=A.collapse=="right"?A.end:A.start,A}function WB(i){for(var u=i;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function Rs(i,u){return u&&(i.bad=!0),i}function YB(i,u,f,l,p){var v="",_=!1,O=i.doc.lineSeparator(),A=!1;function x(Y){return function(re){return re.id==Y}}function V(){_&&(v+=O,A&&(v+=O),_=A=!1)}function Q(Y){Y&&(V(),v+=Y)}function J(Y){if(Y.nodeType==1){var re=Y.getAttribute("cm-text");if(re){Q(re);return}var ae=Y.getAttribute("cm-marker"),le;if(ae){var he=i.findMarks(oe(l,0),oe(p+1,0),x(+ae));he.length&&(le=he[0].find(0))&&Q($i(i.doc,le.from,le.to).join(O));return}if(Y.getAttribute("contenteditable")=="false")return;var Se=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Se&&V();for(var ve=0;ve<Y.childNodes.length;ve++)J(Y.childNodes[ve]);/^(pre|p)$/i.test(Y.nodeName)&&(A=!0),Se&&(_=!0)}else Y.nodeType==3&&Q(Y.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;J(u),u!=f;)u=u.nextSibling,A=!1;return v}function lh(i,u,f){var l;if(u==i.display.lineDiv){if(l=i.display.lineDiv.childNodes[f],!l)return Rs(i.clipPos(oe(i.display.viewTo-1)),!0);u=null,f=0}else for(l=u;;l=l.parentNode){if(!l||l==i.display.lineDiv)return null;if(l.parentNode&&l.parentNode==i.display.lineDiv)break}for(var p=0;p<i.display.view.length;p++){var v=i.display.view[p];if(v.node==l)return JB(v,u,f)}}function JB(i,u,f){var l=i.text.firstChild,p=!1;if(!u||!ke(l,u))return Rs(oe(gt(i.line),0),!0);if(u==l&&(p=!0,u=l.childNodes[f],f=0,!u)){var v=i.rest?ee(i.rest):i.line;return Rs(oe(gt(v),v.text.length),p)}var _=u.nodeType==3?u:null,O=u;for(!_&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(_=u.firstChild,f&&(f=_.nodeValue.length));O.parentNode!=l;)O=O.parentNode;var A=i.measure,x=A.maps;function V(le,he,Se){for(var ve=-1;ve<(x?x.length:0);ve++)for(var Ce=ve<0?A.map:x[ve],Pe=0;Pe<Ce.length;Pe+=3){var Fe=Ce[Pe+2];if(Fe==le||Fe==he){var Je=gt(ve<0?i.line:i.rest[ve]),xt=Ce[Pe]+Se;return(Se<0||Fe!=le)&&(xt=Ce[Pe+(Se?1:0)]),oe(Je,xt)}}}var Q=V(_,O,f);if(Q)return Rs(Q,p);for(var J=O.nextSibling,Y=_?_.nodeValue.length-f:0;J;J=J.nextSibling){if(Q=V(J,J.firstChild,0),Q)return Rs(oe(Q.line,Q.ch-Y),p);Y+=J.textContent.length}for(var re=O.previousSibling,ae=f;re;re=re.previousSibling){if(Q=V(re,re.firstChild,-1),Q)return Rs(oe(Q.line,Q.ch+ae),p);ae+=re.textContent.length}}var ir=function(i){this.cm=i,this.prevInput="",this.pollingFast=!1,this.polling=new vt,this.hasSelection=!1,this.composing=null};ir.prototype.init=function(i){var u=this,f=this,l=this.cm;this.createField(i);var p=this.textarea;i.wrapper.insertBefore(this.wrapper,i.wrapper.firstChild),S&&(p.style.width="0px"),R(p,"input",function(){s&&c>=9&&u.hasSelection&&(u.hasSelection=null),f.poll()}),R(p,"paste",function(_){Qe(l,_)||OC(_,l)||(l.state.pasteIncoming=+new Date,f.fastPoll())});function v(_){if(!Qe(l,_)){if(l.somethingSelected())sh({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var O=NC(l);sh({lineWise:!0,text:O.text}),_.type=="cut"?l.setSelections(O.ranges,null,Ze):(f.prevInput="",p.value=O.text.join(`
|
|
`),qe(p))}else return;_.type=="cut"&&(l.state.cutIncoming=+new Date)}}R(p,"cut",v),R(p,"copy",v),R(i.scroller,"paste",function(_){if(!(ja(i,_)||Qe(l,_))){if(!p.dispatchEvent){l.state.pasteIncoming=+new Date,f.focus();return}var O=new Event("paste");O.clipboardData=_.clipboardData,p.dispatchEvent(O)}}),R(i.lineSpace,"selectstart",function(_){ja(i,_)||Rt(_)}),R(p,"compositionstart",function(){var _=l.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:_,range:l.markText(_,l.getCursor("to"),{className:"CodeMirror-composing"})}}),R(p,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},ir.prototype.createField=function(i){this.wrapper=LC(),this.textarea=this.wrapper.firstChild},ir.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},ir.prototype.prepareSelection=function(){var i=this.cm,u=i.display,f=i.doc,l=Ek(i);if(i.options.moveInputWithCursor){var p=ji(i,f.sel.primary().head,"div"),v=u.wrapper.getBoundingClientRect(),_=u.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,p.top+_.top-v.top)),l.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,p.left+_.left-v.left))}return l},ir.prototype.showSelection=function(i){var u=this.cm,f=u.display;G(f.cursorDiv,i.cursors),G(f.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},ir.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing)){var u=this.cm;if(u.somethingSelected()){this.prevInput="";var f=u.getSelection();this.textarea.value=f,u.state.focused&&qe(this.textarea),s&&c>=9&&(this.hasSelection=f)}else i||(this.prevInput=this.textarea.value="",s&&c>=9&&(this.hasSelection=null))}},ir.prototype.getField=function(){return this.textarea},ir.prototype.supportsTouch=function(){return!1},ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||pe()!=this.textarea))try{this.textarea.focus()}catch(i){}},ir.prototype.blur=function(){this.textarea.blur()},ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ir.prototype.receivedFocus=function(){this.slowPoll()},ir.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},ir.prototype.fastPoll=function(){var i=!1,u=this;u.pollingFast=!0;function f(){var l=u.poll();!l&&!i?(i=!0,u.polling.set(60,f)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,f)},ir.prototype.poll=function(){var i=this,u=this.cm,f=this.textarea,l=this.prevInput;if(this.contextMenuPending||!u.state.focused||Rp(f)&&!l&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var p=f.value;if(p==l&&!u.somethingSelected())return!1;if(s&&c>=9&&this.hasSelection===p||g&&/[\uf700-\uf7ff]/.test(p))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var v=p.charCodeAt(0);if(v==8203&&!l&&(l="\u200B"),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var _=0,O=Math.min(l.length,p.length);_<O&&l.charCodeAt(_)==p.charCodeAt(_);)++_;return Ln(u,function(){jy(u,p.slice(_),l.length-_,null,i.composing?"*compose":null),p.length>1e3||p.indexOf(`
|
|
`)>-1?f.value=i.prevInput="":i.prevInput=p,i.composing&&(i.composing.range.clear(),i.composing.range=u.markText(i.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){s&&c>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(i){var u=this,f=u.cm,l=f.display,p=u.textarea;u.contextMenuPending&&u.contextMenuPending();var v=hu(f,i),_=l.scroller.scrollTop;if(!v||E)return;var O=f.options.resetSelectionOnContextMenu;O&&f.doc.sel.contains(v)==-1&&_r(f,Ur)(f.doc,co(v),Ze);var A=p.style.cssText,x=u.wrapper.style.cssText,V=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(i.clientY-V.top-5)+"px; left: "+(i.clientX-V.left-5)+`px;
|
|
z-index: 1000; background: `+(s?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;d&&(Q=window.scrollY),l.input.focus(),d&&window.scrollTo(null,Q),l.input.reset(),f.somethingSelected()||(p.value=u.prevInput=" "),u.contextMenuPending=Y,l.selForContextMenu=f.doc.sel,clearTimeout(l.detectingSelectAll);function J(){if(p.selectionStart!=null){var ae=f.somethingSelected(),le="\u200B"+(ae?p.value:"");p.value="\u21DA",p.value=le,u.prevInput=ae?"":"\u200B",p.selectionStart=1,p.selectionEnd=le.length,l.selForContextMenu=f.doc.sel}}function Y(){if(u.contextMenuPending==Y&&(u.contextMenuPending=!1,u.wrapper.style.cssText=x,p.style.cssText=A,s&&c<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=_),p.selectionStart!=null)){(!s||s&&c<9)&&J();var ae=0,le=function(){l.selForContextMenu==f.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&u.prevInput=="\u200B"?_r(f,Xk)(f):ae++<10?l.detectingSelectAll=setTimeout(le,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(le,200)}}if(s&&c>=9&&J(),F){ci(i);var re=function(){ie(window,"mouseup",re),setTimeout(Y,20)};R(window,"mouseup",re)}else setTimeout(Y,50)},ir.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},ir.prototype.setUneditable=function(){},ir.prototype.needsContentAttribute=!1;function XB(i,u){if(u=u?at(u):{},u.value=i.value,!u.tabindex&&i.tabIndex&&(u.tabindex=i.tabIndex),!u.placeholder&&i.placeholder&&(u.placeholder=i.placeholder),u.autofocus==null){var f=pe();u.autofocus=f==i||i.getAttribute("autofocus")!=null&&f==document.body}function l(){i.value=O.getValue()}var p;if(i.form&&(R(i.form,"submit",l),!u.leaveSubmitMethodAlone)){var v=i.form;p=v.submit;try{var _=v.submit=function(){l(),v.submit=p,v.submit(),v.submit=_}}catch(A){}}u.finishInit=function(A){A.save=l,A.getTextArea=function(){return i},A.toTextArea=function(){A.toTextArea=isNaN,l(),i.parentNode.removeChild(A.getWrapperElement()),i.style.display="",i.form&&(ie(i.form,"submit",l),!u.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=p))}},i.style.display="none";var O=Gt(function(A){return i.parentNode.insertBefore(A,i.nextSibling)},u);return O}function ZB(i){i.off=ie,i.on=R,i.wheelEventPixels=aB,i.Doc=gn,i.splitLines=_c,i.countColumn=st,i.findColumn=Mt,i.isWordChar=We,i.Pass=Ue,i.signal=fe,i.Line=ys,i.changeEnd=fo,i.scrollbarModel=Ok,i.Pos=oe,i.cmpPos=I,i.modes=fi,i.mimeModes=Kn,i.resolveMode=vs,i.getMode=gs,i.modeExtensions=Fi,i.extendMode=Pi,i.copyState=Hn,i.startState=kc,i.innerMode=Dc,i.commands=Jc,i.keyMap=Ma,i.keyName=pC,i.isModifierKey=fC,i.lookupKey=Ls,i.normalizeKeyMap=OB,i.StringStream=$t,i.SharedTextMarker=zc,i.TextMarker=ho,i.LineWidget=Hc,i.e_preventDefault=Rt,i.e_stopPropagation=Ye,i.e_stop=ci,i.addClass=we,i.contains=ke,i.rmClass=B,i.keyNames=vo}GB(Gt),zB(Gt);var $B="iter insert remove copy getEditor constructor".split(" ");for(var ch in gn.prototype)gn.prototype.hasOwnProperty(ch)&&Oe($B,ch)<0&&(Gt.prototype[ch]=function(i){return function(){return i.apply(this.doc,arguments)}}(gn.prototype[ch]));return nr(gn),Gt.inputStyles={textarea:ir,contenteditable:kt},Gt.defineMode=function(i){!Gt.defaults.mode&&i!="null"&&(Gt.defaults.mode=i),Pp.apply(this,arguments)},Gt.defineMIME=Ra,Gt.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),Gt.defineMIME("text/plain","null"),Gt.defineExtension=function(i,u){Gt.prototype[i]=u},Gt.defineDocExtension=function(i,u){gn.prototype[i]=u},Gt.fromTextArea=XB,ZB(Gt),Gt.version="5.62.2",Gt})});var op=U((pj,hj)=>{(function(e){typeof pj=="object"&&typeof hj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";e.showHint=function(S,y,T){if(!y)return S.showHint(T);T&&T.async&&(y.async=!0);var g={hint:y};if(T)for(var k in T)g[k]=T[k];return S.showHint(g)},e.defineExtension("showHint",function(S){S=s(this,this.getCursor("start"),S);var y=this.listSelections();if(!(y.length>1)){if(this.somethingSelected()){if(!S.hint.supportsSelection)return;for(var T=0;T<y.length;T++)if(y[T].head.line!=y[T].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var g=this.state.completionActive=new n(this,S);!g.options.hint||(e.signal(this,"startCompletion",this),g.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function n(S,y){if(this.cm=S,this.options=y,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var T=this;S.on("cursorActivity",this.activityFunc=function(){T.cursorActivity()})}}var a=window.requestAnimationFrame||function(S){return setTimeout(S,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;n.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(S,y){var T=S.list[y],g=this;this.cm.operation(function(){T.hint?T.hint(g.cm,S,T):g.cm.replaceRange(c(T),T.from||S.from,T.to||S.to,"complete"),e.signal(S,"pick",T),g.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var S=this.startPos;this.data&&(S=this.data.from);var y=this.cm.getCursor(),T=this.cm.getLine(y.line);if(y.line!=this.startPos.line||T.length-y.ch!=this.startLen-this.startPos.ch||y.ch<S.ch||this.cm.somethingSelected()||!y.ch||this.options.closeCharacters.test(T.charAt(y.ch-1)))this.close();else{var g=this;this.debounce=a(function(){g.update()}),this.widget&&this.widget.disable()}},update:function(S){if(this.tick!=null){var y=this,T=++this.tick;b(this.options.hint,this.cm,this.options,function(g){y.tick==T&&y.finishUpdate(g,S)})}},finishUpdate:function(S,y){this.data&&e.signal(this.data,"update");var T=this.widget&&this.widget.picked||y&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=S,S&&S.list.length&&(T&&S.list.length==1?this.pick(S,0):(this.widget=new m(this,S),e.signal(S,"shown")))}};function s(S,y,T){var g=S.options.hintOptions,k={};for(var N in L)k[N]=L[N];if(g)for(var N in g)g[N]!==void 0&&(k[N]=g[N]);if(T)for(var N in T)T[N]!==void 0&&(k[N]=T[N]);return k.hint.resolve&&(k.hint=k.hint.resolve(S,y)),k}function c(S){return typeof S=="string"?S:S.text}function d(S,y){var T={Up:function(){y.moveFocus(-1)},Down:function(){y.moveFocus(1)},PageUp:function(){y.moveFocus(-y.menuSize()+1,!0)},PageDown:function(){y.moveFocus(y.menuSize()-1,!0)},Home:function(){y.setFocus(0)},End:function(){y.setFocus(y.length-1)},Enter:y.pick,Tab:y.pick,Esc:y.close},g=/Mac/.test(navigator.platform);g&&(T["Ctrl-P"]=function(){y.moveFocus(-1)},T["Ctrl-N"]=function(){y.moveFocus(1)});var k=S.options.customKeys,N=k?{}:T;function w(P,B){var z;typeof B!="string"?z=function(G){return B(G,y)}:T.hasOwnProperty(B)?z=T[B]:z=B,N[P]=z}if(k)for(var D in k)k.hasOwnProperty(D)&&w(D,k[D]);var F=S.options.extraKeys;if(F)for(var D in F)F.hasOwnProperty(D)&&w(D,F[D]);return N}function h(S,y){for(;y&&y!=S;){if(y.nodeName.toUpperCase()==="LI"&&y.parentNode==S)return y;y=y.parentNode}}function m(S,y){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=S,this.data=y,this.picked=!1;var T=this,g=S.cm,k=g.getInputField().ownerDocument,N=k.defaultView||k.parentWindow,w=this.hints=k.createElement("ul");w.setAttribute("role","listbox"),w.setAttribute("aria-expanded","true"),w.id=this.id;var D=S.cm.options.theme;w.className="CodeMirror-hints "+D,this.selectedHint=y.selectedHint||0;for(var F=y.list,P=0;P<F.length;++P){var B=w.appendChild(k.createElement("li")),z=F[P],G=t+(P!=this.selectedHint?"":" "+r);z.className!=null&&(G=z.className+" "+G),B.className=G,P==this.selectedHint&&B.setAttribute("aria-selected","true"),B.id=this.id+"-"+P,B.setAttribute("role","option"),z.render?z.render(B,y,z):B.appendChild(k.createTextNode(z.displayText||c(z))),B.hintId=P}var M=S.options.container||k.body,j=g.cursorCoords(S.options.alignWithWord?y.from:null),ce=j.left,ke=j.bottom,pe=!0,we=0,Ne=0;if(M!==k.body){var qe=["absolute","relative","fixed"].indexOf(N.getComputedStyle(M).position)!==-1,ht=qe?M:M.offsetParent,at=ht.getBoundingClientRect(),st=k.body.getBoundingClientRect();we=at.left-st.left-ht.scrollLeft,Ne=at.top-st.top-ht.scrollTop}w.style.left=ce-we+"px",w.style.top=ke-Ne+"px";var vt=N.innerWidth||Math.max(k.body.offsetWidth,k.documentElement.offsetWidth),Oe=N.innerHeight||Math.max(k.body.offsetHeight,k.documentElement.offsetHeight);M.appendChild(w),g.getInputField().setAttribute("aria-autocomplete","list"),g.getInputField().setAttribute("aria-owns",this.id),g.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var xe=S.options.moveOnOverlap?w.getBoundingClientRect():new DOMRect,Ue=S.options.paddingForScrollbar?w.scrollHeight>w.clientHeight+1:!1,Ze;setTimeout(function(){Ze=g.getScrollInfo()});var wn=xe.bottom-Oe;if(wn>0){var tt=xe.bottom-xe.top,Mt=j.top-(j.bottom-xe.top);if(Mt-tt>0)w.style.top=(ke=j.top-tt-Ne)+"px",pe=!1;else if(tt>Oe){w.style.height=Oe-5+"px",w.style.top=(ke=j.bottom-xe.top-Ne)+"px";var Xr=g.getCursor();y.from.ch!=Xr.ch&&(j=g.cursorCoords(Xr),w.style.left=(ce=j.left-we)+"px",xe=w.getBoundingClientRect())}}var pn=xe.right-vt;if(Ue&&(pn+=g.display.nativeBarWidth),pn>0&&(xe.right-xe.left>vt&&(w.style.width=vt-5+"px",pn-=xe.right-xe.left-vt),w.style.left=(ce=j.left-pn-we)+"px"),Ue)for(var ee=w.firstChild;ee;ee=ee.nextSibling)ee.style.paddingRight=g.display.nativeBarWidth+"px";if(g.addKeyMap(this.keyMap=d(S,{moveFocus:function(me,je){T.changeActive(T.selectedHint+me,je)},setFocus:function(me){T.changeActive(me)},menuSize:function(){return T.screenAmount()},length:F.length,close:function(){S.close()},pick:function(){T.pick()},data:y})),S.options.closeOnUnfocus){var De;g.on("blur",this.onBlur=function(){De=setTimeout(function(){S.close()},100)}),g.on("focus",this.onFocus=function(){clearTimeout(De)})}g.on("scroll",this.onScroll=function(){var me=g.getScrollInfo(),je=g.getWrapperElement().getBoundingClientRect();Ze||(Ze=g.getScrollInfo());var $e=ke+Ze.top-me.top,We=$e-(N.pageYOffset||(k.documentElement||k.body).scrollTop);if(pe||(We+=w.offsetHeight),We<=je.top||We>=je.bottom)return S.close();w.style.top=$e+"px",w.style.left=ce+Ze.left-me.left+"px"}),e.on(w,"dblclick",function(me){var je=h(w,me.target||me.srcElement);je&&je.hintId!=null&&(T.changeActive(je.hintId),T.pick())}),e.on(w,"click",function(me){var je=h(w,me.target||me.srcElement);je&&je.hintId!=null&&(T.changeActive(je.hintId),S.options.completeOnSingleClick&&T.pick())}),e.on(w,"mousedown",function(){setTimeout(function(){g.focus()},20)});var be=this.getSelectedHintRange();return(be.from!==0||be.to!==0)&&this.scrollToActive(),e.signal(y,"select",F[this.selectedHint],w.childNodes[this.selectedHint]),!0}m.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var S=this.completion.cm.getInputField();S.removeAttribute("aria-activedescendant"),S.removeAttribute("aria-owns");var y=this.completion.cm;this.completion.options.closeOnUnfocus&&(y.off("blur",this.onBlur),y.off("focus",this.onFocus)),y.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var S=this;this.keyMap={Enter:function(){S.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(S,y){if(S>=this.data.list.length?S=y?this.data.list.length-1:0:S<0&&(S=y?0:this.data.list.length-1),this.selectedHint!=S){var T=this.hints.childNodes[this.selectedHint];T&&(T.className=T.className.replace(" "+r,""),T.removeAttribute("aria-selected")),T=this.hints.childNodes[this.selectedHint=S],T.className+=" "+r,T.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",T.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],T)}},scrollToActive:function(){var S=this.getSelectedHintRange(),y=this.hints.childNodes[S.from],T=this.hints.childNodes[S.to],g=this.hints.firstChild;y.offsetTop<this.hints.scrollTop?this.hints.scrollTop=y.offsetTop-g.offsetTop:T.offsetTop+T.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=T.offsetTop+T.offsetHeight-this.hints.clientHeight+g.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var S=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-S),to:Math.min(this.data.list.length-1,this.selectedHint+S)}}};function E(S,y){if(!S.somethingSelected())return y;for(var T=[],g=0;g<y.length;g++)y[g].supportsSelection&&T.push(y[g]);return T}function b(S,y,T,g){if(S.async)S(y,g,T);else{var k=S(y,T);k&&k.then?k.then(g):g(k)}}function C(S,y){var T=S.getHelpers(y,"hint"),g;if(T.length){var k=function(N,w,D){var F=E(N,T);function P(B){if(B==F.length)return w(null);b(F[B],N,D,function(z){z&&z.list.length>0?w(z):P(B+1)})}P(0)};return k.async=!0,k.supportsSelection=!0,k}else return(g=S.getHelper(S.getCursor(),"hintWords"))?function(N){return e.hint.fromList(N,{words:g})}:e.hint.anyword?function(N,w){return e.hint.anyword(N,w)}:function(){}}e.registerHelper("hint","auto",{resolve:C}),e.registerHelper("hint","fromList",function(S,y){var T=S.getCursor(),g=S.getTokenAt(T),k,N=e.Pos(T.line,g.start),w=T;g.start<T.ch&&/\w/.test(g.string.charAt(T.ch-g.start-1))?k=g.string.substr(0,T.ch-g.start):(k="",N=T);for(var D=[],F=0;F<y.words.length;F++){var P=y.words[F];P.slice(0,k.length)==k&&D.push(P)}if(D.length)return{list:D,from:N,to:w}}),e.commands.autocomplete=e.showHint;var L={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)})});var mj=U((vj,gj)=>{(function(e){typeof vj=="object"&&typeof gj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t={},r=/[^\s\u00a0]/,n=e.Pos,a=e.cmpPos;function o(d){var h=d.search(r);return h==-1?0:h}e.commands.toggleComment=function(d){d.toggleComment()},e.defineExtension("toggleComment",function(d){d||(d=t);for(var h=this,m=1/0,E=this.listSelections(),b=null,C=E.length-1;C>=0;C--){var L=E[C].from(),S=E[C].to();L.line>=m||(S.line>=m&&(S=n(m,0)),m=L.line,b==null?h.uncomment(L,S,d)?b="un":(h.lineComment(L,S,d),b="line"):b=="un"?h.uncomment(L,S,d):h.lineComment(L,S,d))}});function s(d,h,m){return/\bstring\b/.test(d.getTokenTypeAt(n(h.line,0)))&&!/^[\'\"\`]/.test(m)}function c(d,h){var m=d.getMode();return m.useInnerComments===!1||!m.innerMode?m:d.getModeAt(h)}e.defineExtension("lineComment",function(d,h,m){m||(m=t);var E=this,b=c(E,d),C=E.getLine(d.line);if(!(C==null||s(E,d,C))){var L=m.lineComment||b.lineComment;if(!L){(m.blockCommentStart||b.blockCommentStart)&&(m.fullLines=!0,E.blockComment(d,h,m));return}var S=Math.min(h.ch!=0||h.line==d.line?h.line+1:h.line,E.lastLine()+1),y=m.padding==null?" ":m.padding,T=m.commentBlankLines||d.line==h.line;E.operation(function(){if(m.indent){for(var g=null,k=d.line;k<S;++k){var N=E.getLine(k),w=N.slice(0,o(N));(g==null||g.length>w.length)&&(g=w)}for(var k=d.line;k<S;++k){var N=E.getLine(k),D=g.length;!T&&!r.test(N)||(N.slice(0,D)!=g&&(D=o(N)),E.replaceRange(g+L+y,n(k,0),n(k,D)))}}else for(var k=d.line;k<S;++k)(T||r.test(E.getLine(k)))&&E.replaceRange(L+y,n(k,0))})}}),e.defineExtension("blockComment",function(d,h,m){m||(m=t);var E=this,b=c(E,d),C=m.blockCommentStart||b.blockCommentStart,L=m.blockCommentEnd||b.blockCommentEnd;if(!C||!L){(m.lineComment||b.lineComment)&&m.fullLines!=!1&&E.lineComment(d,h,m);return}if(!/\bcomment\b/.test(E.getTokenTypeAt(n(d.line,0)))){var S=Math.min(h.line,E.lastLine());S!=d.line&&h.ch==0&&r.test(E.getLine(S))&&--S;var y=m.padding==null?" ":m.padding;d.line>S||E.operation(function(){if(m.fullLines!=!1){var T=r.test(E.getLine(S));E.replaceRange(y+L,n(S)),E.replaceRange(C+y,n(d.line,0));var g=m.blockCommentLead||b.blockCommentLead;if(g!=null)for(var k=d.line+1;k<=S;++k)(k!=S||T)&&E.replaceRange(g+y,n(k,0))}else{var N=a(E.getCursor("to"),h)==0,w=!E.somethingSelected();E.replaceRange(L,h),N&&E.setSelection(w?h:E.getCursor("from"),h),E.replaceRange(C,d)}})}}),e.defineExtension("uncomment",function(d,h,m){m||(m=t);var E=this,b=c(E,d),C=Math.min(h.ch!=0||h.line==d.line?h.line:h.line-1,E.lastLine()),L=Math.min(d.line,C),S=m.lineComment||b.lineComment,y=[],T=m.padding==null?" ":m.padding,g;e:{if(!S)break e;for(var k=L;k<=C;++k){var N=E.getLine(k),w=N.indexOf(S);if(w>-1&&!/comment/.test(E.getTokenTypeAt(n(k,w+1)))&&(w=-1),w==-1&&r.test(N)||w>-1&&r.test(N.slice(0,w)))break e;y.push(N)}if(E.operation(function(){for(var Ne=L;Ne<=C;++Ne){var qe=y[Ne-L],ht=qe.indexOf(S),at=ht+S.length;ht<0||(qe.slice(at,at+T.length)==T&&(at+=T.length),g=!0,E.replaceRange("",n(Ne,ht),n(Ne,at)))}}),g)return!0}var D=m.blockCommentStart||b.blockCommentStart,F=m.blockCommentEnd||b.blockCommentEnd;if(!D||!F)return!1;var P=m.blockCommentLead||b.blockCommentLead,B=E.getLine(L),z=B.indexOf(D);if(z==-1)return!1;var G=C==L?B:E.getLine(C),M=G.indexOf(F,C==L?z+D.length:0),j=n(L,z+1),ce=n(C,M+1);if(M==-1||!/comment/.test(E.getTokenTypeAt(j))||!/comment/.test(E.getTokenTypeAt(ce))||E.getRange(j,ce,`
|
|
`).indexOf(F)>-1)return!1;var ke=B.lastIndexOf(D,d.ch),pe=ke==-1?-1:B.slice(0,d.ch).indexOf(F,ke+D.length);if(ke!=-1&&pe!=-1&&pe+F.length!=d.ch)return!1;pe=G.indexOf(F,h.ch);var we=G.slice(h.ch).lastIndexOf(D,pe-h.ch);return ke=pe==-1||we==-1?-1:h.ch+we,pe!=-1&&ke!=-1&&ke!=h.ch?!1:(E.operation(function(){E.replaceRange("",n(C,M-(T&&G.slice(M-T.length,M)==T?T.length:0)),n(C,M+F.length));var Ne=z+D.length;if(T&&B.slice(Ne,Ne+T.length)==T&&(Ne+=T.length),E.replaceRange("",n(L,z),n(L,Ne)),P)for(var qe=L+1;qe<=C;++qe){var ht=E.getLine(qe),at=ht.indexOf(P);if(!(at==-1||r.test(ht.slice(0,at)))){var st=at+P.length;T&&ht.slice(st,st+T.length)==T&&(st+=T.length),E.replaceRange("",n(qe,at),n(qe,st))}}}),!0)})})});var up=U((yj,bj)=>{(function(e){typeof yj=="object"&&typeof bj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),r=e.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(m){return m&&m.bracketRegex||/[(){}[\]]/}function o(m,E,b){var C=m.getLineHandle(E.line),L=E.ch-1,S=b&&b.afterCursor;S==null&&(S=/(^| )cm-fat-cursor($| )/.test(m.getWrapperElement().className));var y=a(b),T=!S&&L>=0&&y.test(C.text.charAt(L))&&n[C.text.charAt(L)]||y.test(C.text.charAt(L+1))&&n[C.text.charAt(++L)];if(!T)return null;var g=T.charAt(1)==">"?1:-1;if(b&&b.strict&&g>0!=(L==E.ch))return null;var k=m.getTokenTypeAt(r(E.line,L+1)),N=s(m,r(E.line,L+(g>0?1:0)),g,k,b);return N==null?null:{from:r(E.line,L),to:N&&N.pos,match:N&&N.ch==T.charAt(0),forward:g>0}}function s(m,E,b,C,L){for(var S=L&&L.maxScanLineLength||1e4,y=L&&L.maxScanLines||1e3,T=[],g=a(L),k=b>0?Math.min(E.line+y,m.lastLine()+1):Math.max(m.firstLine()-1,E.line-y),N=E.line;N!=k;N+=b){var w=m.getLine(N);if(!!w){var D=b>0?0:w.length-1,F=b>0?w.length:-1;if(!(w.length>S))for(N==E.line&&(D=E.ch-(b<0?1:0));D!=F;D+=b){var P=w.charAt(D);if(g.test(P)&&(C===void 0||(m.getTokenTypeAt(r(N,D+1))||"")==(C||""))){var B=n[P];if(B&&B.charAt(1)==">"==b>0)T.push(P);else if(T.length)T.pop();else return{pos:r(N,D),ch:P}}}}}return N-b==(b>0?m.lastLine():m.firstLine())?!1:null}function c(m,E,b){for(var C=m.state.matchBrackets.maxHighlightLineLength||1e3,L=b&&b.highlightNonMatching,S=[],y=m.listSelections(),T=0;T<y.length;T++){var g=y[T].empty()&&o(m,y[T].head,b);if(g&&(g.match||L!==!1)&&m.getLine(g.from.line).length<=C){var k=g.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";S.push(m.markText(g.from,r(g.from.line,g.from.ch+1),{className:k})),g.to&&m.getLine(g.to.line).length<=C&&S.push(m.markText(g.to,r(g.to.line,g.to.ch+1),{className:k}))}}if(S.length){t&&m.state.focused&&m.focus();var N=function(){m.operation(function(){for(var w=0;w<S.length;w++)S[w].clear()})};if(E)setTimeout(N,800);else return N}}function d(m){m.operation(function(){m.state.matchBrackets.currentlyHighlighted&&(m.state.matchBrackets.currentlyHighlighted(),m.state.matchBrackets.currentlyHighlighted=null),m.state.matchBrackets.currentlyHighlighted=c(m,!1,m.state.matchBrackets)})}function h(m){m.state.matchBrackets&&m.state.matchBrackets.currentlyHighlighted&&(m.state.matchBrackets.currentlyHighlighted(),m.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(m,E,b){b&&b!=e.Init&&(m.off("cursorActivity",d),m.off("focus",d),m.off("blur",h),h(m)),E&&(m.state.matchBrackets=typeof E=="object"?E:{},m.on("cursorActivity",d),m.on("focus",d),m.on("blur",h))}),e.defineExtension("matchBrackets",function(){c(this,!0)}),e.defineExtension("findMatchingBracket",function(m,E,b){return(b||typeof E=="boolean")&&(b?(b.strict=E,E=b):E=E?{strict:!0}:null),o(this,m,E)}),e.defineExtension("scanForBracket",function(m,E,b,C){return s(this,m,E,b,C)})})});var vm=U((Ej,Tj)=>{(function(e){typeof Ej=="object"&&typeof Tj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},r=e.Pos;e.defineOption("autoCloseBrackets",!1,function(S,y,T){T&&T!=e.Init&&(S.removeKeyMap(a),S.state.closeBrackets=null),y&&(o(n(y,"pairs")),S.state.closeBrackets=y,S.addKeyMap(a))});function n(S,y){return y=="pairs"&&typeof S=="string"?S:typeof S=="object"&&S[y]!=null?S[y]:t[y]}var a={Backspace:d,Enter:h};function o(S){for(var y=0;y<S.length;y++){var T=S.charAt(y),g="'"+T+"'";a[g]||(a[g]=s(T))}}o(t.pairs+"`");function s(S){return function(y){return b(y,S)}}function c(S){var y=S.state.closeBrackets;if(!y||y.override)return y;var T=S.getModeAt(S.getCursor());return T.closeBrackets||y}function d(S){var y=c(S);if(!y||S.getOption("disableInput"))return e.Pass;for(var T=n(y,"pairs"),g=S.listSelections(),k=0;k<g.length;k++){if(!g[k].empty())return e.Pass;var N=C(S,g[k].head);if(!N||T.indexOf(N)%2!=0)return e.Pass}for(var k=g.length-1;k>=0;k--){var w=g[k].head;S.replaceRange("",r(w.line,w.ch-1),r(w.line,w.ch+1),"+delete")}}function h(S){var y=c(S),T=y&&n(y,"explode");if(!T||S.getOption("disableInput"))return e.Pass;for(var g=S.listSelections(),k=0;k<g.length;k++){if(!g[k].empty())return e.Pass;var N=C(S,g[k].head);if(!N||T.indexOf(N)%2!=0)return e.Pass}S.operation(function(){var w=S.lineSeparator()||`
|
|
`;S.replaceSelection(w+w,null),m(S,-1),g=S.listSelections();for(var D=0;D<g.length;D++){var F=g[D].head.line;S.indentLine(F,null,!0),S.indentLine(F+1,null,!0)}})}function m(S,y){for(var T=[],g=S.listSelections(),k=0,N=0;N<g.length;N++){var w=g[N];w.head==S.getCursor()&&(k=N);var D=w.head.ch||y>0?{line:w.head.line,ch:w.head.ch+y}:{line:w.head.line-1};T.push({anchor:D,head:D})}S.setSelections(T,k)}function E(S){var y=e.cmpPos(S.anchor,S.head)>0;return{anchor:new r(S.anchor.line,S.anchor.ch+(y?-1:1)),head:new r(S.head.line,S.head.ch+(y?1:-1))}}function b(S,y){var T=c(S);if(!T||S.getOption("disableInput"))return e.Pass;var g=n(T,"pairs"),k=g.indexOf(y);if(k==-1)return e.Pass;for(var N=n(T,"closeBefore"),w=n(T,"triples"),D=g.charAt(k+1)==y,F=S.listSelections(),P=k%2==0,B,z=0;z<F.length;z++){var G=F[z],M=G.head,j,ce=S.getRange(M,r(M.line,M.ch+1));if(P&&!G.empty())j="surround";else if((D||!P)&&ce==y)D&&L(S,M)?j="both":w.indexOf(y)>=0&&S.getRange(M,r(M.line,M.ch+3))==y+y+y?j="skipThree":j="skip";else if(D&&M.ch>1&&w.indexOf(y)>=0&&S.getRange(r(M.line,M.ch-2),M)==y+y){if(M.ch>2&&/\bstring/.test(S.getTokenTypeAt(r(M.line,M.ch-2))))return e.Pass;j="addFour"}else if(D){var ke=M.ch==0?" ":S.getRange(r(M.line,M.ch-1),M);if(!e.isWordChar(ce)&&ke!=y&&!e.isWordChar(ke))j="both";else return e.Pass}else if(P&&(ce.length===0||/\s/.test(ce)||N.indexOf(ce)>-1))j="both";else return e.Pass;if(!B)B=j;else if(B!=j)return e.Pass}var pe=k%2?g.charAt(k-1):y,we=k%2?y:g.charAt(k+1);S.operation(function(){if(B=="skip")m(S,1);else if(B=="skipThree")m(S,3);else if(B=="surround"){for(var Ne=S.getSelections(),qe=0;qe<Ne.length;qe++)Ne[qe]=pe+Ne[qe]+we;S.replaceSelections(Ne,"around"),Ne=S.listSelections().slice();for(var qe=0;qe<Ne.length;qe++)Ne[qe]=E(Ne[qe]);S.setSelections(Ne)}else B=="both"?(S.replaceSelection(pe+we,null),S.triggerElectric(pe+we),m(S,-1)):B=="addFour"&&(S.replaceSelection(pe+pe+pe+pe,"before"),m(S,1))})}function C(S,y){var T=S.getRange(r(y.line,y.ch-1),r(y.line,y.ch+1));return T.length==2?T:null}function L(S,y){var T=S.getTokenAt(r(y.line,y.ch+1));return/\bstring/.test(T.type)&&T.start==y.ch&&(y.ch==0||!/\bstring/.test(S.getTokenTypeAt(y)))}})});var Dj=U((_j,Sj)=>{(function(e){typeof _j=="object"&&typeof Sj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(o,s,c,d){if(c&&c.call){var h=c;c=null}else var h=a(o,c,"rangeFinder");typeof s=="number"&&(s=e.Pos(s,0));var m=a(o,c,"minFoldSize");function E(S){var y=h(o,s);if(!y||y.to.line-y.from.line<m)return null;if(d==="fold")return y;for(var T=o.findMarksAt(y.from),g=0;g<T.length;++g)if(T[g].__isFold){if(!S)return null;y.cleared=!0,T[g].clear()}return y}var b=E(!0);if(a(o,c,"scanUp"))for(;!b&&s.line>o.firstLine();)s=e.Pos(s.line-1,0),b=E(!1);if(!(!b||b.cleared||d==="unfold")){var C=r(o,c,b);e.on(C,"mousedown",function(S){L.clear(),e.e_preventDefault(S)});var L=o.markText(b.from,b.to,{replacedWith:C,clearOnEnter:a(o,c,"clearOnEnter"),__isFold:!0});L.on("clear",function(S,y){e.signal(o,"unfold",o,S,y)}),e.signal(o,"fold",o,b.from,b.to)}}function r(o,s,c){var d=a(o,s,"widget");if(typeof d=="function"&&(d=d(c.from,c.to)),typeof d=="string"){var h=document.createTextNode(d);d=document.createElement("span"),d.appendChild(h),d.className="CodeMirror-foldmarker"}else d&&(d=d.cloneNode(!0));return d}e.newFoldFunction=function(o,s){return function(c,d){t(c,d,{rangeFinder:o,widget:s})}},e.defineExtension("foldCode",function(o,s,c){t(this,o,s,c)}),e.defineExtension("isFolded",function(o){for(var s=this.findMarksAt(o),c=0;c<s.length;++c)if(s[c].__isFold)return!0}),e.commands.toggleFold=function(o){o.foldCode(o.getCursor())},e.commands.fold=function(o){o.foldCode(o.getCursor(),null,"fold")},e.commands.unfold=function(o){o.foldCode(o.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(o){o.operation(function(){for(var s=o.firstLine(),c=o.lastLine();s<=c;s++)o.foldCode(e.Pos(s,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(o){o.operation(function(){for(var s=o.firstLine(),c=o.lastLine();s<=c;s++)o.foldCode(e.Pos(s,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var o=Array.prototype.slice.call(arguments,0);return function(s,c){for(var d=0;d<o.length;++d){var h=o[d](s,c);if(h)return h}}}),e.registerHelper("fold","auto",function(o,s){for(var c=o.getHelpers(s,"fold"),d=0;d<c.length;d++){var h=c[d](o,s);if(h)return h}});var n={rangeFinder:e.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null);function a(o,s,c){if(s&&s[c]!==void 0)return s[c];var d=o.options.foldOptions;return d&&d[c]!==void 0?d[c]:n[c]}e.defineExtension("foldOption",function(o,s){return a(this,o,s)})})});var sp=U((kj,Cj)=>{(function(e){typeof kj=="object"&&typeof Cj=="object"?e(ct(),Dj()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("foldGutter",!1,function(C,L,S){S&&S!=e.Init&&(C.clearGutter(C.state.foldGutter.options.gutter),C.state.foldGutter=null,C.off("gutterClick",h),C.off("changes",m),C.off("viewportChange",E),C.off("fold",b),C.off("unfold",b),C.off("swapDoc",m)),L&&(C.state.foldGutter=new r(n(L)),d(C),C.on("gutterClick",h),C.on("changes",m),C.on("viewportChange",E),C.on("fold",b),C.on("unfold",b),C.on("swapDoc",m))});var t=e.Pos;function r(C){this.options=C,this.from=this.to=0}function n(C){return C===!0&&(C={}),C.gutter==null&&(C.gutter="CodeMirror-foldgutter"),C.indicatorOpen==null&&(C.indicatorOpen="CodeMirror-foldgutter-open"),C.indicatorFolded==null&&(C.indicatorFolded="CodeMirror-foldgutter-folded"),C}function a(C,L){for(var S=C.findMarks(t(L,0),t(L+1,0)),y=0;y<S.length;++y)if(S[y].__isFold){var T=S[y].find(-1);if(T&&T.line===L)return S[y]}}function o(C){if(typeof C=="string"){var L=document.createElement("div");return L.className=C+" CodeMirror-guttermarker-subtle",L}else return C.cloneNode(!0)}function s(C,L,S){var y=C.state.foldGutter.options,T=L-1,g=C.foldOption(y,"minFoldSize"),k=C.foldOption(y,"rangeFinder"),N=typeof y.indicatorFolded=="string"&&c(y.indicatorFolded),w=typeof y.indicatorOpen=="string"&&c(y.indicatorOpen);C.eachLine(L,S,function(D){++T;var F=null,P=D.gutterMarkers;if(P&&(P=P[y.gutter]),a(C,T)){if(N&&P&&N.test(P.className))return;F=o(y.indicatorFolded)}else{var B=t(T,0),z=k&&k(C,B);if(z&&z.to.line-z.from.line>=g){if(w&&P&&w.test(P.className))return;F=o(y.indicatorOpen)}}!F&&!P||C.setGutterMarker(D,y.gutter,F)})}function c(C){return new RegExp("(^|\\s)"+C+"(?:$|\\s)\\s*")}function d(C){var L=C.getViewport(),S=C.state.foldGutter;!S||(C.operation(function(){s(C,L.from,L.to)}),S.from=L.from,S.to=L.to)}function h(C,L,S){var y=C.state.foldGutter;if(!!y){var T=y.options;if(S==T.gutter){var g=a(C,L);g?g.clear():C.foldCode(t(L,0),T)}}}function m(C){var L=C.state.foldGutter;if(!!L){var S=L.options;L.from=L.to=0,clearTimeout(L.changeUpdate),L.changeUpdate=setTimeout(function(){d(C)},S.foldOnChangeTimeSpan||600)}}function E(C){var L=C.state.foldGutter;if(!!L){var S=L.options;clearTimeout(L.changeUpdate),L.changeUpdate=setTimeout(function(){var y=C.getViewport();L.from==L.to||y.from-L.to>20||L.from-y.to>20?d(C):C.operation(function(){y.from<L.from&&(s(C,y.from,L.from),L.from=y.from),y.to>L.to&&(s(C,L.to,y.to),L.to=y.to)})},S.updateViewportTimeSpan||400)}}function b(C,L){var S=C.state.foldGutter;if(!!S){var y=L.line;y>=S.from&&y<S.to&&s(C,y,y+1)}}})});var lp=U((Oj,wj)=>{(function(e){typeof Oj=="object"&&typeof wj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.registerHelper("fold","brace",function(t,r){var n=r.line,a=t.getLine(n),o;function s(w){for(var D=r.ch,F=0;;){var P=D<=0?-1:a.lastIndexOf(w,D-1);if(P==-1){if(F==1)break;F=1,D=a.length;continue}if(F==1&&P<r.ch)break;if(o=t.getTokenTypeAt(e.Pos(n,P+1)),!/^(comment|string)/.test(o))return P+1;D=P-1}}var c=s("{"),d=s("["),h,m,E;if(c!=null&&(d==null||d>c))E=c,h="{",m="}";else if(d!=null)E=d,h="[",m="]";else return;var b=1,C=t.lastLine(),L,S;e:for(var y=n;y<=C;++y)for(var T=t.getLine(y),g=y==n?E:0;;){var k=T.indexOf(h,g),N=T.indexOf(m,g);if(k<0&&(k=T.length),N<0&&(N=T.length),g=Math.min(k,N),g==T.length)break;if(t.getTokenTypeAt(e.Pos(y,g+1))==o){if(g==k)++b;else if(!--b){L=y,S=g;break e}}++g}if(!(L==null||n==L))return{from:e.Pos(n,E),to:e.Pos(L,S)}}),e.registerHelper("fold","import",function(t,r){function n(h){if(h<t.firstLine()||h>t.lastLine())return null;var m=t.getTokenAt(e.Pos(h,1));if(/\S/.test(m.string)||(m=t.getTokenAt(e.Pos(h,m.end+1))),m.type!="keyword"||m.string!="import")return null;for(var E=h,b=Math.min(t.lastLine(),h+10);E<=b;++E){var C=t.getLine(E),L=C.indexOf(";");if(L!=-1)return{startCh:m.end,end:e.Pos(E,L)}}}var a=r.line,o=n(a),s;if(!o||n(a-1)||(s=n(a-2))&&s.end.line==a-1)return null;for(var c=o.end;;){var d=n(c.line+1);if(d==null)break;c=d.end}return{from:t.clipPos(e.Pos(a,o.startCh+1)),to:c}}),e.registerHelper("fold","include",function(t,r){function n(d){if(d<t.firstLine()||d>t.lastLine())return null;var h=t.getTokenAt(e.Pos(d,1));if(/\S/.test(h.string)||(h=t.getTokenAt(e.Pos(d,h.end+1))),h.type=="meta"&&h.string.slice(0,8)=="#include")return h.start+8}var a=r.line,o=n(a);if(o==null||n(a-1)!=null)return null;for(var s=a;;){var c=n(s+1);if(c==null)break;++s}return{from:e.Pos(a,o+1),to:t.clipPos(e.Pos(s))}})})});var ss=U((Nj,Aj)=>{(function(e){typeof Nj=="object"&&typeof Aj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t=e.Pos;function r(y){var T=y.flags;return T!=null?T:(y.ignoreCase?"i":"")+(y.global?"g":"")+(y.multiline?"m":"")}function n(y,T){for(var g=r(y),k=g,N=0;N<T.length;N++)k.indexOf(T.charAt(N))==-1&&(k+=T.charAt(N));return g==k?y:new RegExp(y.source,k)}function a(y){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(y.source)}function o(y,T,g){T=n(T,"g");for(var k=g.line,N=g.ch,w=y.lastLine();k<=w;k++,N=0){T.lastIndex=N;var D=y.getLine(k),F=T.exec(D);if(F)return{from:t(k,F.index),to:t(k,F.index+F[0].length),match:F}}}function s(y,T,g){if(!a(T))return o(y,T,g);T=n(T,"gm");for(var k,N=1,w=g.line,D=y.lastLine();w<=D;){for(var F=0;F<N&&!(w>D);F++){var P=y.getLine(w++);k=k==null?P:k+`
|
|
`+P}N=N*2,T.lastIndex=g.ch;var B=T.exec(k);if(B){var z=k.slice(0,B.index).split(`
|
|
`),G=B[0].split(`
|
|
`),M=g.line+z.length-1,j=z[z.length-1].length;return{from:t(M,j),to:t(M+G.length-1,G.length==1?j+G[0].length:G[G.length-1].length),match:B}}}}function c(y,T,g){for(var k,N=0;N<=y.length;){T.lastIndex=N;var w=T.exec(y);if(!w)break;var D=w.index+w[0].length;if(D>y.length-g)break;(!k||D>k.index+k[0].length)&&(k=w),N=w.index+1}return k}function d(y,T,g){T=n(T,"g");for(var k=g.line,N=g.ch,w=y.firstLine();k>=w;k--,N=-1){var D=y.getLine(k),F=c(D,T,N<0?0:D.length-N);if(F)return{from:t(k,F.index),to:t(k,F.index+F[0].length),match:F}}}function h(y,T,g){if(!a(T))return d(y,T,g);T=n(T,"gm");for(var k,N=1,w=y.getLine(g.line).length-g.ch,D=g.line,F=y.firstLine();D>=F;){for(var P=0;P<N&&D>=F;P++){var B=y.getLine(D--);k=k==null?B:B+`
|
|
`+k}N*=2;var z=c(k,T,w);if(z){var G=k.slice(0,z.index).split(`
|
|
`),M=z[0].split(`
|
|
`),j=D+G.length,ce=G[G.length-1].length;return{from:t(j,ce),to:t(j+M.length-1,M.length==1?ce+M[0].length:M[M.length-1].length),match:z}}}}var m,E;String.prototype.normalize?(m=function(y){return y.normalize("NFD").toLowerCase()},E=function(y){return y.normalize("NFD")}):(m=function(y){return y.toLowerCase()},E=function(y){return y});function b(y,T,g,k){if(y.length==T.length)return g;for(var N=0,w=g+Math.max(0,y.length-T.length);;){if(N==w)return N;var D=N+w>>1,F=k(y.slice(0,D)).length;if(F==g)return D;F>g?w=D:N=D+1}}function C(y,T,g,k){if(!T.length)return null;var N=k?m:E,w=N(T).split(/\r|\n\r?/);e:for(var D=g.line,F=g.ch,P=y.lastLine()+1-w.length;D<=P;D++,F=0){var B=y.getLine(D).slice(F),z=N(B);if(w.length==1){var G=z.indexOf(w[0]);if(G==-1)continue e;var g=b(B,z,G,N)+F;return{from:t(D,b(B,z,G,N)+F),to:t(D,b(B,z,G+w[0].length,N)+F)}}else{var M=z.length-w[0].length;if(z.slice(M)!=w[0])continue e;for(var j=1;j<w.length-1;j++)if(N(y.getLine(D+j))!=w[j])continue e;var ce=y.getLine(D+w.length-1),ke=N(ce),pe=w[w.length-1];if(ke.slice(0,pe.length)!=pe)continue e;return{from:t(D,b(B,z,M,N)+F),to:t(D+w.length-1,b(ce,ke,pe.length,N))}}}}function L(y,T,g,k){if(!T.length)return null;var N=k?m:E,w=N(T).split(/\r|\n\r?/);e:for(var D=g.line,F=g.ch,P=y.firstLine()-1+w.length;D>=P;D--,F=-1){var B=y.getLine(D);F>-1&&(B=B.slice(0,F));var z=N(B);if(w.length==1){var G=z.lastIndexOf(w[0]);if(G==-1)continue e;return{from:t(D,b(B,z,G,N)),to:t(D,b(B,z,G+w[0].length,N))}}else{var M=w[w.length-1];if(z.slice(0,M.length)!=M)continue e;for(var j=1,g=D-w.length+1;j<w.length-1;j++)if(N(y.getLine(g+j))!=w[j])continue e;var ce=y.getLine(D+1-w.length),ke=N(ce);if(ke.slice(ke.length-w[0].length)!=w[0])continue e;return{from:t(D+1-w.length,b(ce,ke,ce.length-w[0].length,N)),to:t(D,b(B,z,M.length,N))}}}}function S(y,T,g,k){this.atOccurrence=!1,this.doc=y,g=g?y.clipPos(g):t(0,0),this.pos={from:g,to:g};var N;typeof k=="object"?N=k.caseFold:(N=k,k=null),typeof T=="string"?(N==null&&(N=!1),this.matches=function(w,D){return(w?L:C)(y,T,D,N)}):(T=n(T,"gm"),!k||k.multiline!==!1?this.matches=function(w,D){return(w?h:s)(y,T,D)}:this.matches=function(w,D){return(w?d:o)(y,T,D)})}S.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(y){for(var T=this.matches(y,this.doc.clipPos(y?this.pos.from:this.pos.to));T&&e.cmpPos(T.from,T.to)==0;)y?T.from.ch?T.from=t(T.from.line,T.from.ch-1):T.from.line==this.doc.firstLine()?T=null:T=this.matches(y,this.doc.clipPos(t(T.from.line-1))):T.to.ch<this.doc.getLine(T.to.line).length?T.to=t(T.to.line,T.to.ch+1):T.to.line==this.doc.lastLine()?T=null:T=this.matches(y,t(T.to.line+1,0));if(T)return this.pos=T,this.atOccurrence=!0,this.pos.match||!0;var g=t(y?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:g,to:g},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(y,T){if(!!this.atOccurrence){var g=e.splitLines(y);this.doc.replaceRange(g,this.pos.from,this.pos.to,T),this.pos.to=t(this.pos.from.line+g.length-1,g[g.length-1].length+(g.length==1?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(y,T,g){return new S(this.doc,y,T,g)}),e.defineDocExtension("getSearchCursor",function(y,T,g){return new S(this,y,T,g)}),e.defineExtension("selectMatches",function(y,T){for(var g=[],k=this.getSearchCursor(y,this.getCursor("from"),T);k.findNext()&&!(e.cmpPos(k.to(),this.getCursor("to"))>0);)g.push({anchor:k.from(),head:k.to()});g.length&&this.setSelections(g,0)})})});var ls=U((Lj,xj)=>{(function(e){typeof Lj=="object"&&typeof xj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function t(n,a,o){var s=n.getWrapperElement(),c;return c=s.appendChild(document.createElement("div")),o?c.className="CodeMirror-dialog CodeMirror-dialog-bottom":c.className="CodeMirror-dialog CodeMirror-dialog-top",typeof a=="string"?c.innerHTML=a:c.appendChild(a),e.addClass(s,"dialog-opened"),c}function r(n,a){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=a}e.defineExtension("openDialog",function(n,a,o){o||(o={}),r(this,null);var s=t(this,n,o.bottom),c=!1,d=this;function h(b){if(typeof b=="string")m.value=b;else{if(c)return;c=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),d.focus(),o.onClose&&o.onClose(s)}}var m=s.getElementsByTagName("input")[0],E;return m?(m.focus(),o.value&&(m.value=o.value,o.selectValueOnOpen!==!1&&m.select()),o.onInput&&e.on(m,"input",function(b){o.onInput(b,m.value,h)}),o.onKeyUp&&e.on(m,"keyup",function(b){o.onKeyUp(b,m.value,h)}),e.on(m,"keydown",function(b){o&&o.onKeyDown&&o.onKeyDown(b,m.value,h)||((b.keyCode==27||o.closeOnEnter!==!1&&b.keyCode==13)&&(m.blur(),e.e_stop(b),h()),b.keyCode==13&&a(m.value,b))}),o.closeOnBlur!==!1&&e.on(s,"focusout",function(b){b.relatedTarget!==null&&h()})):(E=s.getElementsByTagName("button")[0])&&(e.on(E,"click",function(){h(),d.focus()}),o.closeOnBlur!==!1&&e.on(E,"blur",h),E.focus()),h}),e.defineExtension("openConfirm",function(n,a,o){r(this,null);var s=t(this,n,o&&o.bottom),c=s.getElementsByTagName("button"),d=!1,h=this,m=1;function E(){d||(d=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),h.focus())}c[0].focus();for(var b=0;b<c.length;++b){var C=c[b];(function(L){e.on(C,"click",function(S){e.e_preventDefault(S),E(),L&&L(h)})})(a[b]),e.on(C,"blur",function(){--m,setTimeout(function(){m<=0&&E()},200)}),e.on(C,"focus",function(){++m})}}),e.defineExtension("openNotification",function(n,a){r(this,h);var o=t(this,n,a&&a.bottom),s=!1,c,d=a&&typeof a.duration!="undefined"?a.duration:5e3;function h(){s||(s=!0,clearTimeout(c),e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o))}return e.on(o,"click",function(m){e.e_preventDefault(m),h()}),d&&(c=setTimeout(h,d)),h})})});var E1=U((Ij,Rj)=>{(function(e){typeof Ij=="object"&&typeof Rj=="object"?e(ct(),ss(),ls()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(D,F){return typeof D=="string"?D=new RegExp(D.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),F?"gi":"g"):D.global||(D=new RegExp(D.source,D.ignoreCase?"gi":"g")),{token:function(P){D.lastIndex=P.pos;var B=D.exec(P.string);if(B&&B.index==P.pos)return P.pos+=B[0].length||1,"searching";B?P.pos=B.index:P.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(D){return D.state.search||(D.state.search=new r)}function a(D){return typeof D=="string"&&D==D.toLowerCase()}function o(D,F,P){return D.getSearchCursor(F,P,{caseFold:a(F),multiline:!0})}function s(D,F,P,B,z){D.openDialog(F,B,{value:P,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){L(D)},onKeyDown:z,bottom:D.options.search.bottom})}function c(D,F,P,B,z){D.openDialog?D.openDialog(F,z,{value:B,selectValueOnOpen:!0,bottom:D.options.search.bottom}):z(prompt(P,B))}function d(D,F,P,B){D.openConfirm?D.openConfirm(F,B):confirm(P)&&B[0]()}function h(D){return D.replace(/\\([nrt\\])/g,function(F,P){return P=="n"?`
|
|
`:P=="r"?"\r":P=="t"?" ":P=="\\"?"\\":F})}function m(D){var F=D.match(/^\/(.*)\/([a-z]*)$/);if(F)try{D=new RegExp(F[1],F[2].indexOf("i")==-1?"":"i")}catch(P){}else D=h(D);return(typeof D=="string"?D=="":D.test(""))&&(D=/x^/),D}function E(D,F,P){F.queryText=P,F.query=m(P),D.removeOverlay(F.overlay,a(F.query)),F.overlay=t(F.query,a(F.query)),D.addOverlay(F.overlay),D.showMatchesOnScrollbar&&(F.annotate&&(F.annotate.clear(),F.annotate=null),F.annotate=D.showMatchesOnScrollbar(F.query,a(F.query)))}function b(D,F,P,B){var z=n(D);if(z.query)return C(D,F);var G=D.getSelection()||z.lastQuery;if(G instanceof RegExp&&G.source=="x^"&&(G=null),P&&D.openDialog){var M=null,j=function(ce,ke){e.e_stop(ke),!!ce&&(ce!=z.queryText&&(E(D,z,ce),z.posFrom=z.posTo=D.getCursor()),M&&(M.style.opacity=1),C(D,ke.shiftKey,function(pe,we){var Ne;we.line<3&&document.querySelector&&(Ne=D.display.wrapper.querySelector(".CodeMirror-dialog"))&&Ne.getBoundingClientRect().bottom-4>D.cursorCoords(we,"window").top&&((M=Ne).style.opacity=.4)}))};s(D,y(D),G,j,function(ce,ke){var pe=e.keyName(ce),we=D.getOption("extraKeys"),Ne=we&&we[pe]||e.keyMap[D.getOption("keyMap")][pe];Ne=="findNext"||Ne=="findPrev"||Ne=="findPersistentNext"||Ne=="findPersistentPrev"?(e.e_stop(ce),E(D,n(D),ke),D.execCommand(Ne)):(Ne=="find"||Ne=="findPersistent")&&(e.e_stop(ce),j(ke,ce))}),B&&G&&(E(D,z,G),C(D,F))}else c(D,y(D),"Search for:",G,function(ce){ce&&!z.query&&D.operation(function(){E(D,z,ce),z.posFrom=z.posTo=D.getCursor(),C(D,F)})})}function C(D,F,P){D.operation(function(){var B=n(D),z=o(D,B.query,F?B.posFrom:B.posTo);!z.find(F)&&(z=o(D,B.query,F?e.Pos(D.lastLine()):e.Pos(D.firstLine(),0)),!z.find(F))||(D.setSelection(z.from(),z.to()),D.scrollIntoView({from:z.from(),to:z.to()},20),B.posFrom=z.from(),B.posTo=z.to(),P&&P(z.from(),z.to()))})}function L(D){D.operation(function(){var F=n(D);F.lastQuery=F.query,!!F.query&&(F.query=F.queryText=null,D.removeOverlay(F.overlay),F.annotate&&(F.annotate.clear(),F.annotate=null))})}function S(D,F){var P=D?document.createElement(D):document.createDocumentFragment();for(var B in F)P[B]=F[B];for(var z=2;z<arguments.length;z++){var G=arguments[z];P.appendChild(typeof G=="string"?document.createTextNode(G):G)}return P}function y(D){return S("",null,S("span",{className:"CodeMirror-search-label"},D.phrase("Search:"))," ",S("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",S("span",{style:"color: #888",className:"CodeMirror-search-hint"},D.phrase("(Use /re/ syntax for regexp search)")))}function T(D){return S("",null," ",S("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",S("span",{style:"color: #888",className:"CodeMirror-search-hint"},D.phrase("(Use /re/ syntax for regexp search)")))}function g(D){return S("",null,S("span",{className:"CodeMirror-search-label"},D.phrase("With:"))," ",S("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function k(D){return S("",null,S("span",{className:"CodeMirror-search-label"},D.phrase("Replace?"))," ",S("button",{},D.phrase("Yes"))," ",S("button",{},D.phrase("No"))," ",S("button",{},D.phrase("All"))," ",S("button",{},D.phrase("Stop")))}function N(D,F,P){D.operation(function(){for(var B=o(D,F);B.findNext();)if(typeof F!="string"){var z=D.getRange(B.from(),B.to()).match(F);B.replace(P.replace(/\$(\d)/g,function(G,M){return z[M]}))}else B.replace(P)})}function w(D,F){if(!D.getOption("readOnly")){var P=D.getSelection()||n(D).lastQuery,B=F?D.phrase("Replace all:"):D.phrase("Replace:"),z=S("",null,S("span",{className:"CodeMirror-search-label"},B),T(D));c(D,z,B,P,function(G){!G||(G=m(G),c(D,g(D),D.phrase("Replace with:"),"",function(M){if(M=h(M),F)N(D,G,M);else{L(D);var j=o(D,G,D.getCursor("from")),ce=function(){var pe=j.from(),we;!(we=j.findNext())&&(j=o(D,G),!(we=j.findNext())||pe&&j.from().line==pe.line&&j.from().ch==pe.ch)||(D.setSelection(j.from(),j.to()),D.scrollIntoView({from:j.from(),to:j.to()}),d(D,k(D),D.phrase("Replace?"),[function(){ke(we)},ce,function(){N(D,G,M)}]))},ke=function(pe){j.replace(typeof G=="string"?M:M.replace(/\$(\d)/g,function(we,Ne){return pe[Ne]})),ce()};ce()}}))})}}e.commands.find=function(D){L(D),b(D)},e.commands.findPersistent=function(D){L(D),b(D,!1,!0)},e.commands.findPersistentNext=function(D){b(D,!1,!0,!0)},e.commands.findPersistentPrev=function(D){b(D,!0,!0,!0)},e.commands.findNext=b,e.commands.findPrev=function(D){b(D,!0)},e.commands.clearSearch=L,e.commands.replace=w,e.commands.replaceAll=function(D){w(D,!0)}})});var cp=U((Fj,Pj)=>{(function(e){typeof Fj=="object"&&typeof Pj=="object"?e(ct(),ls()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(a,o,s,c,d){a.openDialog?a.openDialog(o,d,{value:c,selectValueOnOpen:!0,bottom:a.options.search.bottom}):d(prompt(s,c))}function r(a){return a.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+a.phrase("(Use line:column or scroll% syntax)")+"</span>"}function n(a,o){var s=Number(o);return/^[-+]/.test(o)?a.getCursor().line+s:s-1}e.commands.jumpToLine=function(a){var o=a.getCursor();t(a,r(a),a.phrase("Jump to line:"),o.line+1+":"+o.ch,function(s){if(!!s){var c;if(c=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(s))a.setCursor(n(a,c[1]),Number(c[2]));else if(c=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(s)){var d=Math.round(a.lineCount()*Number(c[1])/100);/^[-+]/.test(c[1])&&(d=o.line+d+1),a.setCursor(d-1,o.ch)}else(c=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(s))&&a.setCursor(n(a,c[1]),o.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"})});var gm=U((jj,Mj)=>{(function(e){typeof jj=="object"&&typeof Mj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-lint-markers",r="CodeMirror-lint-line-";function n(w,D,F){var P=document.createElement("div");P.className="CodeMirror-lint-tooltip cm-s-"+w.options.theme,P.appendChild(F.cloneNode(!0)),w.state.lint.options.selfContain?w.getWrapperElement().appendChild(P):document.body.appendChild(P);function B(z){if(!P.parentNode)return e.off(document,"mousemove",B);P.style.top=Math.max(0,z.clientY-P.offsetHeight-5)+"px",P.style.left=z.clientX+5+"px"}return e.on(document,"mousemove",B),B(D),P.style.opacity!=null&&(P.style.opacity=1),P}function a(w){w.parentNode&&w.parentNode.removeChild(w)}function o(w){!w.parentNode||(w.style.opacity==null&&a(w),w.style.opacity=0,setTimeout(function(){a(w)},600))}function s(w,D,F,P){var B=n(w,D,F);function z(){e.off(P,"mouseout",z),B&&(o(B),B=null)}var G=setInterval(function(){if(B)for(var M=P;;M=M.parentNode){if(M&&M.nodeType==11&&(M=M.host),M==document.body)return;if(!M){z();break}}if(!B)return clearInterval(G)},400);e.on(P,"mouseout",z)}function c(w,D,F){this.marked=[],D instanceof Function&&(D={getAnnotations:D}),(!D||D===!0)&&(D={}),this.options={},this.linterOptions=D.options||{};for(var P in d)this.options[P]=d[P];for(var P in D)d.hasOwnProperty(P)?D[P]!=null&&(this.options[P]=D[P]):D.options||(this.linterOptions[P]=D[P]);this.timeout=null,this.hasGutter=F,this.onMouseOver=function(B){N(w,B)},this.waitingFor=0}var d={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function h(w){var D=w.state.lint;D.hasGutter&&w.clearGutter(t),D.options.highlightLines&&m(w);for(var F=0;F<D.marked.length;++F)D.marked[F].clear();D.marked.length=0}function m(w){w.eachLine(function(D){var F=D.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(D.wrapClass);F&&w.removeLineClass(D,"wrap",F[0])})}function E(w,D,F,P,B){var z=document.createElement("div"),G=z;return z.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+F,P&&(G=z.appendChild(document.createElement("div")),G.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),B!=!1&&e.on(G,"mouseover",function(M){s(w,M,D,G)}),z}function b(w,D){return w=="error"?w:D}function C(w){for(var D=[],F=0;F<w.length;++F){var P=w[F],B=P.from.line;(D[B]||(D[B]=[])).push(P)}return D}function L(w){var D=w.severity;D||(D="error");var F=document.createElement("div");return F.className="CodeMirror-lint-message CodeMirror-lint-message-"+D,typeof w.messageHTML!="undefined"?F.innerHTML=w.messageHTML:F.appendChild(document.createTextNode(w.message)),F}function S(w,D){var F=w.state.lint,P=++F.waitingFor;function B(){P=-1,w.off("change",B)}w.on("change",B),D(w.getValue(),function(z,G){w.off("change",B),F.waitingFor==P&&(G&&z instanceof e&&(z=G),w.operation(function(){T(w,z)}))},F.linterOptions,w)}function y(w){var D=w.state.lint;if(!!D){var F=D.options,P=F.getAnnotations||w.getHelper(e.Pos(0,0),"lint");if(!!P)if(F.async||P.async)S(w,P);else{var B=P(w.getValue(),D.linterOptions,w);if(!B)return;B.then?B.then(function(z){w.operation(function(){T(w,z)})}):w.operation(function(){T(w,B)})}}}function T(w,D){var F=w.state.lint;if(!!F){var P=F.options;h(w);for(var B=C(D),z=0;z<B.length;++z){var G=B[z];if(!!G){var M=[];G=G.filter(function(Ne){return M.indexOf(Ne.message)>-1?!1:M.push(Ne.message)});for(var j=null,ce=F.hasGutter&&document.createDocumentFragment(),ke=0;ke<G.length;++ke){var pe=G[ke],we=pe.severity;we||(we="error"),j=b(j,we),P.formatAnnotation&&(pe=P.formatAnnotation(pe)),F.hasGutter&&ce.appendChild(L(pe)),pe.to&&F.marked.push(w.markText(pe.from,pe.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+we,__annotation:pe}))}F.hasGutter&&w.setGutterMarker(z,t,E(w,ce,j,B[z].length>1,P.tooltips)),P.highlightLines&&w.addLineClass(z,"wrap",r+j)}}P.onUpdateLinting&&P.onUpdateLinting(D,B,w)}}function g(w){var D=w.state.lint;!D||(clearTimeout(D.timeout),D.timeout=setTimeout(function(){y(w)},D.options.delay))}function k(w,D,F){for(var P=F.target||F.srcElement,B=document.createDocumentFragment(),z=0;z<D.length;z++){var G=D[z];B.appendChild(L(G))}s(w,F,B,P)}function N(w,D){var F=D.target||D.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(F.className)){for(var P=F.getBoundingClientRect(),B=(P.left+P.right)/2,z=(P.top+P.bottom)/2,G=w.findMarksAt(w.coordsChar({left:B,top:z},"client")),M=[],j=0;j<G.length;++j){var ce=G[j].__annotation;ce&&M.push(ce)}M.length&&k(w,M,D)}}e.defineOption("lint",!1,function(w,D,F){if(F&&F!=e.Init&&(h(w),w.state.lint.options.lintOnChange!==!1&&w.off("change",g),e.off(w.getWrapperElement(),"mouseover",w.state.lint.onMouseOver),clearTimeout(w.state.lint.timeout),delete w.state.lint),D){for(var P=w.getOption("gutters"),B=!1,z=0;z<P.length;++z)P[z]==t&&(B=!0);var G=w.state.lint=new c(w,D,B);G.options.lintOnChange&&w.on("change",g),G.options.tooltips!=!1&&G.options.tooltips!="gutter"&&e.on(w.getWrapperElement(),"mouseover",G.onMouseOver),y(w)}}),e.defineExtension("performLint",function(){y(this)})})});var fp=U((qj,Bj)=>{(function(e){typeof qj=="object"&&typeof Bj=="object"?e(ct(),ss(),up()):typeof define=="function"&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],e):e(CodeMirror)})(function(e){"use strict";var t=e.commands,r=e.Pos;function n(g,k,N){if(N<0&&k.ch==0)return g.clipPos(r(k.line-1));var w=g.getLine(k.line);if(N>0&&k.ch>=w.length)return g.clipPos(r(k.line+1,0));for(var D="start",F,P=k.ch,B=P,z=N<0?0:w.length,G=0;B!=z;B+=N,G++){var M=w.charAt(N<0?B-1:B),j=M!="_"&&e.isWordChar(M)?"w":"o";if(j=="w"&&M.toUpperCase()==M&&(j="W"),D=="start")j!="o"?(D="in",F=j):P=B+N;else if(D=="in"&&F!=j){if(F=="w"&&j=="W"&&N<0&&B--,F=="W"&&j=="w"&&N>0)if(B==P+1){F="w";continue}else B--;break}}return r(k.line,B)}function a(g,k){g.extendSelectionsBy(function(N){return g.display.shift||g.doc.extend||N.empty()?n(g.doc,N.head,k):k<0?N.from():N.to()})}t.goSubwordLeft=function(g){a(g,-1)},t.goSubwordRight=function(g){a(g,1)},t.scrollLineUp=function(g){var k=g.getScrollInfo();if(!g.somethingSelected()){var N=g.lineAtHeight(k.top+k.clientHeight,"local");g.getCursor().line>=N&&g.execCommand("goLineUp")}g.scrollTo(null,k.top-g.defaultTextHeight())},t.scrollLineDown=function(g){var k=g.getScrollInfo();if(!g.somethingSelected()){var N=g.lineAtHeight(k.top,"local")+1;g.getCursor().line<=N&&g.execCommand("goLineDown")}g.scrollTo(null,k.top+g.defaultTextHeight())},t.splitSelectionByLine=function(g){for(var k=g.listSelections(),N=[],w=0;w<k.length;w++)for(var D=k[w].from(),F=k[w].to(),P=D.line;P<=F.line;++P)F.line>D.line&&P==F.line&&F.ch==0||N.push({anchor:P==D.line?D:r(P,0),head:P==F.line?F:r(P)});g.setSelections(N,0)},t.singleSelectionTop=function(g){var k=g.listSelections()[0];g.setSelection(k.anchor,k.head,{scroll:!1})},t.selectLine=function(g){for(var k=g.listSelections(),N=[],w=0;w<k.length;w++){var D=k[w];N.push({anchor:r(D.from().line,0),head:r(D.to().line+1,0)})}g.setSelections(N)};function o(g,k){if(g.isReadOnly())return e.Pass;g.operation(function(){for(var N=g.listSelections().length,w=[],D=-1,F=0;F<N;F++){var P=g.listSelections()[F].head;if(!(P.line<=D)){var B=r(P.line+(k?0:1),0);g.replaceRange(`
|
|
`,B,null,"+insertLine"),g.indentLine(B.line,null,!0),w.push({head:B,anchor:B}),D=P.line+1}}g.setSelections(w)}),g.execCommand("indentAuto")}t.insertLineAfter=function(g){return o(g,!1)},t.insertLineBefore=function(g){return o(g,!0)};function s(g,k){for(var N=k.ch,w=N,D=g.getLine(k.line);N&&e.isWordChar(D.charAt(N-1));)--N;for(;w<D.length&&e.isWordChar(D.charAt(w));)++w;return{from:r(k.line,N),to:r(k.line,w),word:D.slice(N,w)}}t.selectNextOccurrence=function(g){var k=g.getCursor("from"),N=g.getCursor("to"),w=g.state.sublimeFindFullWord==g.doc.sel;if(e.cmpPos(k,N)==0){var D=s(g,k);if(!D.word)return;g.setSelection(D.from,D.to),w=!0}else{var F=g.getRange(k,N),P=w?new RegExp("\\b"+F+"\\b"):F,B=g.getSearchCursor(P,N),z=B.findNext();if(z||(B=g.getSearchCursor(P,r(g.firstLine(),0)),z=B.findNext()),!z||d(g.listSelections(),B.from(),B.to()))return;g.addSelection(B.from(),B.to())}w&&(g.state.sublimeFindFullWord=g.doc.sel)},t.skipAndSelectNextOccurrence=function(g){var k=g.getCursor("anchor"),N=g.getCursor("head");t.selectNextOccurrence(g),e.cmpPos(k,N)!=0&&g.doc.setSelections(g.doc.listSelections().filter(function(w){return w.anchor!=k||w.head!=N}))};function c(g,k){for(var N=g.listSelections(),w=[],D=0;D<N.length;D++){var F=N[D],P=g.findPosV(F.anchor,k,"line",F.anchor.goalColumn),B=g.findPosV(F.head,k,"line",F.head.goalColumn);P.goalColumn=F.anchor.goalColumn!=null?F.anchor.goalColumn:g.cursorCoords(F.anchor,"div").left,B.goalColumn=F.head.goalColumn!=null?F.head.goalColumn:g.cursorCoords(F.head,"div").left;var z={anchor:P,head:B};w.push(F),w.push(z)}g.setSelections(w)}t.addCursorToPrevLine=function(g){c(g,-1)},t.addCursorToNextLine=function(g){c(g,1)};function d(g,k,N){for(var w=0;w<g.length;w++)if(e.cmpPos(g[w].from(),k)==0&&e.cmpPos(g[w].to(),N)==0)return!0;return!1}var h="(){}[]";function m(g){for(var k=g.listSelections(),N=[],w=0;w<k.length;w++){var D=k[w],F=D.head,P=g.scanForBracket(F,-1);if(!P)return!1;for(;;){var B=g.scanForBracket(F,1);if(!B)return!1;if(B.ch==h.charAt(h.indexOf(P.ch)+1)){var z=r(P.pos.line,P.pos.ch+1);if(e.cmpPos(z,D.from())==0&&e.cmpPos(B.pos,D.to())==0){if(P=g.scanForBracket(P.pos,-1),!P)return!1}else{N.push({anchor:z,head:B.pos});break}}F=r(B.pos.line,B.pos.ch+1)}}return g.setSelections(N),!0}t.selectScope=function(g){m(g)||g.execCommand("selectAll")},t.selectBetweenBrackets=function(g){if(!m(g))return e.Pass};function E(g){return g?/\bpunctuation\b/.test(g)?g:void 0:null}t.goToBracket=function(g){g.extendSelectionsBy(function(k){var N=g.scanForBracket(k.head,1,E(g.getTokenTypeAt(k.head)));if(N&&e.cmpPos(N.pos,k.head)!=0)return N.pos;var w=g.scanForBracket(k.head,-1,E(g.getTokenTypeAt(r(k.head.line,k.head.ch+1))));return w&&r(w.pos.line,w.pos.ch+1)||k.head})},t.swapLineUp=function(g){if(g.isReadOnly())return e.Pass;for(var k=g.listSelections(),N=[],w=g.firstLine()-1,D=[],F=0;F<k.length;F++){var P=k[F],B=P.from().line-1,z=P.to().line;D.push({anchor:r(P.anchor.line-1,P.anchor.ch),head:r(P.head.line-1,P.head.ch)}),P.to().ch==0&&!P.empty()&&--z,B>w?N.push(B,z):N.length&&(N[N.length-1]=z),w=z}g.operation(function(){for(var G=0;G<N.length;G+=2){var M=N[G],j=N[G+1],ce=g.getLine(M);g.replaceRange("",r(M,0),r(M+1,0),"+swapLine"),j>g.lastLine()?g.replaceRange(`
|
|
`+ce,r(g.lastLine()),null,"+swapLine"):g.replaceRange(ce+`
|
|
`,r(j,0),null,"+swapLine")}g.setSelections(D),g.scrollIntoView()})},t.swapLineDown=function(g){if(g.isReadOnly())return e.Pass;for(var k=g.listSelections(),N=[],w=g.lastLine()+1,D=k.length-1;D>=0;D--){var F=k[D],P=F.to().line+1,B=F.from().line;F.to().ch==0&&!F.empty()&&P--,P<w?N.push(P,B):N.length&&(N[N.length-1]=B),w=B}g.operation(function(){for(var z=N.length-2;z>=0;z-=2){var G=N[z],M=N[z+1],j=g.getLine(G);G==g.lastLine()?g.replaceRange("",r(G-1),r(G),"+swapLine"):g.replaceRange("",r(G,0),r(G+1,0),"+swapLine"),g.replaceRange(j+`
|
|
`,r(M,0),null,"+swapLine")}g.scrollIntoView()})},t.toggleCommentIndented=function(g){g.toggleComment({indent:!0})},t.joinLines=function(g){for(var k=g.listSelections(),N=[],w=0;w<k.length;w++){for(var D=k[w],F=D.from(),P=F.line,B=D.to().line;w<k.length-1&&k[w+1].from().line==B;)B=k[++w].to().line;N.push({start:P,end:B,anchor:!D.empty()&&F})}g.operation(function(){for(var z=0,G=[],M=0;M<N.length;M++){for(var j=N[M],ce=j.anchor&&r(j.anchor.line-z,j.anchor.ch),ke,pe=j.start;pe<=j.end;pe++){var we=pe-z;pe==j.end&&(ke=r(we,g.getLine(we).length+1)),we<g.lastLine()&&(g.replaceRange(" ",r(we),r(we+1,/^\s*/.exec(g.getLine(we+1))[0].length)),++z)}G.push({anchor:ce||ke,head:ke})}g.setSelections(G,0)})},t.duplicateLine=function(g){g.operation(function(){for(var k=g.listSelections().length,N=0;N<k;N++){var w=g.listSelections()[N];w.empty()?g.replaceRange(g.getLine(w.head.line)+`
|
|
`,r(w.head.line,0)):g.replaceRange(g.getRange(w.from(),w.to()),w.from())}g.scrollIntoView()})};function b(g,k,N){if(g.isReadOnly())return e.Pass;for(var w=g.listSelections(),D=[],F,P=0;P<w.length;P++){var B=w[P];if(!B.empty()){for(var z=B.from().line,G=B.to().line;P<w.length-1&&w[P+1].from().line==G;)G=w[++P].to().line;w[P].to().ch||G--,D.push(z,G)}}D.length?F=!0:D.push(g.firstLine(),g.lastLine()),g.operation(function(){for(var M=[],j=0;j<D.length;j+=2){var ce=D[j],ke=D[j+1],pe=r(ce,0),we=r(ke),Ne=g.getRange(pe,we,!1);k?Ne.sort(function(qe,ht){return qe<ht?-N:qe==ht?0:N}):Ne.sort(function(qe,ht){var at=qe.toUpperCase(),st=ht.toUpperCase();return at!=st&&(qe=at,ht=st),qe<ht?-N:qe==ht?0:N}),g.replaceRange(Ne,pe,we),F&&M.push({anchor:pe,head:r(ke+1,0)})}F&&g.setSelections(M,0)})}t.sortLines=function(g){b(g,!0,1)},t.reverseSortLines=function(g){b(g,!0,-1)},t.sortLinesInsensitive=function(g){b(g,!1,1)},t.reverseSortLinesInsensitive=function(g){b(g,!1,-1)},t.nextBookmark=function(g){var k=g.state.sublimeBookmarks;if(k)for(;k.length;){var N=k.shift(),w=N.find();if(w)return k.push(N),g.setSelection(w.from,w.to)}},t.prevBookmark=function(g){var k=g.state.sublimeBookmarks;if(k)for(;k.length;){k.unshift(k.pop());var N=k[k.length-1].find();if(!N)k.pop();else return g.setSelection(N.from,N.to)}},t.toggleBookmark=function(g){for(var k=g.listSelections(),N=g.state.sublimeBookmarks||(g.state.sublimeBookmarks=[]),w=0;w<k.length;w++){for(var D=k[w].from(),F=k[w].to(),P=k[w].empty()?g.findMarksAt(D):g.findMarks(D,F),B=0;B<P.length;B++)if(P[B].sublimeBookmark){P[B].clear();for(var z=0;z<N.length;z++)N[z]==P[B]&&N.splice(z--,1);break}B==P.length&&N.push(g.markText(D,F,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(g){var k=g.state.sublimeBookmarks;if(k)for(var N=0;N<k.length;N++)k[N].clear();k.length=0},t.selectBookmarks=function(g){var k=g.state.sublimeBookmarks,N=[];if(k)for(var w=0;w<k.length;w++){var D=k[w].find();D?N.push({anchor:D.from,head:D.to}):k.splice(w--,0)}N.length&&g.setSelections(N,0)};function C(g,k){g.operation(function(){for(var N=g.listSelections(),w=[],D=[],F=0;F<N.length;F++){var P=N[F];P.empty()?(w.push(F),D.push("")):D.push(k(g.getRange(P.from(),P.to())))}g.replaceSelections(D,"around","case");for(var F=w.length-1,B;F>=0;F--){var P=N[w[F]];if(!(B&&e.cmpPos(P.head,B)>0)){var z=s(g,P.head);B=z.from,g.replaceRange(k(z.word),z.from,z.to)}}})}t.smartBackspace=function(g){if(g.somethingSelected())return e.Pass;g.operation(function(){for(var k=g.listSelections(),N=g.getOption("indentUnit"),w=k.length-1;w>=0;w--){var D=k[w].head,F=g.getRange({line:D.line,ch:0},D),P=e.countColumn(F,null,g.getOption("tabSize")),B=g.findPosH(D,-1,"char",!1);if(F&&!/\S/.test(F)&&P%N==0){var z=new r(D.line,e.findColumn(F,P-N,N));z.ch!=D.ch&&(B=z)}g.replaceRange("",B,D,"+delete")}})},t.delLineRight=function(g){g.operation(function(){for(var k=g.listSelections(),N=k.length-1;N>=0;N--)g.replaceRange("",k[N].anchor,r(k[N].to().line),"+delete");g.scrollIntoView()})},t.upcaseAtCursor=function(g){C(g,function(k){return k.toUpperCase()})},t.downcaseAtCursor=function(g){C(g,function(k){return k.toLowerCase()})},t.setSublimeMark=function(g){g.state.sublimeMark&&g.state.sublimeMark.clear(),g.state.sublimeMark=g.setBookmark(g.getCursor())},t.selectToSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();k&&g.setSelection(g.getCursor(),k)},t.deleteToSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();if(k){var N=g.getCursor(),w=k;if(e.cmpPos(N,w)>0){var D=w;w=N,N=D}g.state.sublimeKilled=g.getRange(N,w),g.replaceRange("",N,w)}},t.swapWithSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();k&&(g.state.sublimeMark.clear(),g.state.sublimeMark=g.setBookmark(g.getCursor()),g.setCursor(k))},t.sublimeYank=function(g){g.state.sublimeKilled!=null&&g.replaceSelection(g.state.sublimeKilled,null,"paste")},t.showInCenter=function(g){var k=g.cursorCoords(null,"local");g.scrollTo(null,(k.top+k.bottom)/2-g.getScrollInfo().clientHeight/2)};function L(g){var k=g.getCursor("from"),N=g.getCursor("to");if(e.cmpPos(k,N)==0){var w=s(g,k);if(!w.word)return;k=w.from,N=w.to}return{from:k,to:N,query:g.getRange(k,N),word:w}}function S(g,k){var N=L(g);if(!!N){var w=N.query,D=g.getSearchCursor(w,k?N.to:N.from);(k?D.findNext():D.findPrevious())?g.setSelection(D.from(),D.to()):(D=g.getSearchCursor(w,k?r(g.firstLine(),0):g.clipPos(r(g.lastLine()))),(k?D.findNext():D.findPrevious())?g.setSelection(D.from(),D.to()):N.word&&g.setSelection(N.from,N.to))}}t.findUnder=function(g){S(g,!0)},t.findUnderPrevious=function(g){S(g,!1)},t.findAllUnder=function(g){var k=L(g);if(!!k){for(var N=g.getSearchCursor(k.query),w=[],D=-1;N.findNext();)w.push({anchor:N.from(),head:N.to()}),N.from().line<=k.from.line&&N.from().ch<=k.from.ch&&D++;g.setSelections(w,D)}};var y=e.keyMap;y.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(y.macSublime),y.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(y.pcSublime);var T=y.default==y.macDefault;y.sublime=T?y.macSublime:y.pcSublime})});var _1=U(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.hintList=wi.objectValues=wi.forEachState=wi.getFieldDef=wi.getDefinitionState=void 0;var KJ=Nt(),tc=Mn();function HJ(e){let t;return Vj(e,r=>{switch(r.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=r;break}}),t}wi.getDefinitionState=HJ;function zJ(e,t,r){return r===tc.SchemaMetaFieldDef.name&&e.getQueryType()===t?tc.SchemaMetaFieldDef:r===tc.TypeMetaFieldDef.name&&e.getQueryType()===t?tc.TypeMetaFieldDef:r===tc.TypeNameMetaFieldDef.name&&KJ.isCompositeType(t)?tc.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[r]:null}wi.getFieldDef=zJ;function Vj(e,t){let r=[],n=e;for(;n&&n.kind;)r.push(n),n=n.prevState;for(let a=r.length-1;a>=0;a--)t(r[a])}wi.forEachState=Vj;function WJ(e){let t=Object.keys(e),r=t.length,n=new Array(r);for(let a=0;a<r;++a)n[a]=e[t[a]];return n}wi.objectValues=WJ;function YJ(e,t){return JJ(t,Uj(e.string))}wi.hintList=YJ;function JJ(e,t){if(!t)return T1(e,n=>!n.isDeprecated);let r=e.map(n=>({proximity:XJ(Uj(n.label),t),entry:n}));return T1(T1(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,a)=>(n.entry.isDeprecated?1:0)-(a.entry.isDeprecated?1:0)||n.proximity-a.proximity||n.entry.label.length-a.entry.label.length).map(n=>n.entry)}function T1(e,t){let r=e.filter(t);return r.length===0?e:r}function Uj(e){return e.toLowerCase().replace(/\W/g,"")}function XJ(e,t){let r=ZJ(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function ZJ(e,t){let r,n,a=[],o=e.length,s=t.length;for(r=0;r<=o;r++)a[r]=[r];for(n=1;n<=s;n++)a[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){let c=e[r-1]===t[n-1]?0:1;a[r][n]=Math.min(a[r-1][n]+1,a[r][n-1]+1,a[r-1][n-1]+c),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(a[r][n]=Math.min(a[r][n],a[r-2][n-2]+c))}return a[o][s]}});var S1=U((Gj,mm)=>{(function(e){if(typeof mm=="object"&&typeof mm.exports=="object"){var t=e(RC,Gj);t!==void 0&&(mm.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=t.EOL=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionKind=t.DocumentSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=void 0;var r;(function(q){q.MIN_VALUE=-2147483648,q.MAX_VALUE=2147483647})(r=t.integer||(t.integer={}));var n;(function(q){q.MIN_VALUE=0,q.MAX_VALUE=2147483647})(n=t.uinteger||(t.uinteger={}));var a;(function(q){function X(H,R){return H===Number.MAX_VALUE&&(H=n.MAX_VALUE),R===Number.MAX_VALUE&&(R=n.MAX_VALUE),{line:H,character:R}}q.create=X;function Z(H){var R=H;return te.objectLiteral(R)&&te.uinteger(R.line)&&te.uinteger(R.character)}q.is=Z})(a=t.Position||(t.Position={}));var o;(function(q){function X(H,R,$,ie){if(te.uinteger(H)&&te.uinteger(R)&&te.uinteger($)&&te.uinteger(ie))return{start:a.create(H,R),end:a.create($,ie)};if(a.is(H)&&a.is(R))return{start:H,end:R};throw new Error("Range#create called with invalid arguments["+H+", "+R+", "+$+", "+ie+"]")}q.create=X;function Z(H){var R=H;return te.objectLiteral(R)&&a.is(R.start)&&a.is(R.end)}q.is=Z})(o=t.Range||(t.Range={}));var s;(function(q){function X(H,R){return{uri:H,range:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&o.is(R.range)&&(te.string(R.uri)||te.undefined(R.uri))}q.is=Z})(s=t.Location||(t.Location={}));var c;(function(q){function X(H,R,$,ie){return{targetUri:H,targetRange:R,targetSelectionRange:$,originSelectionRange:ie}}q.create=X;function Z(H){var R=H;return te.defined(R)&&o.is(R.targetRange)&&te.string(R.targetUri)&&(o.is(R.targetSelectionRange)||te.undefined(R.targetSelectionRange))&&(o.is(R.originSelectionRange)||te.undefined(R.originSelectionRange))}q.is=Z})(c=t.LocationLink||(t.LocationLink={}));var d;(function(q){function X(H,R,$,ie){return{red:H,green:R,blue:$,alpha:ie}}q.create=X;function Z(H){var R=H;return te.numberRange(R.red,0,1)&&te.numberRange(R.green,0,1)&&te.numberRange(R.blue,0,1)&&te.numberRange(R.alpha,0,1)}q.is=Z})(d=t.Color||(t.Color={}));var h;(function(q){function X(H,R){return{range:H,color:R}}q.create=X;function Z(H){var R=H;return o.is(R.range)&&d.is(R.color)}q.is=Z})(h=t.ColorInformation||(t.ColorInformation={}));var m;(function(q){function X(H,R,$){return{label:H,textEdit:R,additionalTextEdits:$}}q.create=X;function Z(H){var R=H;return te.string(R.label)&&(te.undefined(R.textEdit)||k.is(R))&&(te.undefined(R.additionalTextEdits)||te.typedArray(R.additionalTextEdits,k.is))}q.is=Z})(m=t.ColorPresentation||(t.ColorPresentation={}));var E;(function(q){q.Comment="comment",q.Imports="imports",q.Region="region"})(E=t.FoldingRangeKind||(t.FoldingRangeKind={}));var b;(function(q){function X(H,R,$,ie,fe){var Qe={startLine:H,endLine:R};return te.defined($)&&(Qe.startCharacter=$),te.defined(ie)&&(Qe.endCharacter=ie),te.defined(fe)&&(Qe.kind=fe),Qe}q.create=X;function Z(H){var R=H;return te.uinteger(R.startLine)&&te.uinteger(R.startLine)&&(te.undefined(R.startCharacter)||te.uinteger(R.startCharacter))&&(te.undefined(R.endCharacter)||te.uinteger(R.endCharacter))&&(te.undefined(R.kind)||te.string(R.kind))}q.is=Z})(b=t.FoldingRange||(t.FoldingRange={}));var C;(function(q){function X(H,R){return{location:H,message:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&s.is(R.location)&&te.string(R.message)}q.is=Z})(C=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var L;(function(q){q.Error=1,q.Warning=2,q.Information=3,q.Hint=4})(L=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var S;(function(q){q.Unnecessary=1,q.Deprecated=2})(S=t.DiagnosticTag||(t.DiagnosticTag={}));var y;(function(q){function X(Z){var H=Z;return H!=null&&te.string(H.href)}q.is=X})(y=t.CodeDescription||(t.CodeDescription={}));var T;(function(q){function X(H,R,$,ie,fe,Qe){var It={range:H,message:R};return te.defined($)&&(It.severity=$),te.defined(ie)&&(It.code=ie),te.defined(fe)&&(It.source=fe),te.defined(Qe)&&(It.relatedInformation=Qe),It}q.create=X;function Z(H){var R,$=H;return te.defined($)&&o.is($.range)&&te.string($.message)&&(te.number($.severity)||te.undefined($.severity))&&(te.integer($.code)||te.string($.code)||te.undefined($.code))&&(te.undefined($.codeDescription)||te.string((R=$.codeDescription)===null||R===void 0?void 0:R.href))&&(te.string($.source)||te.undefined($.source))&&(te.undefined($.relatedInformation)||te.typedArray($.relatedInformation,C.is))}q.is=Z})(T=t.Diagnostic||(t.Diagnostic={}));var g;(function(q){function X(H,R){for(var $=[],ie=2;ie<arguments.length;ie++)$[ie-2]=arguments[ie];var fe={title:H,command:R};return te.defined($)&&$.length>0&&(fe.arguments=$),fe}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.title)&&te.string(R.command)}q.is=Z})(g=t.Command||(t.Command={}));var k;(function(q){function X($,ie){return{range:$,newText:ie}}q.replace=X;function Z($,ie){return{range:{start:$,end:$},newText:ie}}q.insert=Z;function H($){return{range:$,newText:""}}q.del=H;function R($){var ie=$;return te.objectLiteral(ie)&&te.string(ie.newText)&&o.is(ie.range)}q.is=R})(k=t.TextEdit||(t.TextEdit={}));var N;(function(q){function X(H,R,$){var ie={label:H};return R!==void 0&&(ie.needsConfirmation=R),$!==void 0&&(ie.description=$),ie}q.create=X;function Z(H){var R=H;return R!==void 0&&te.objectLiteral(R)&&te.string(R.label)&&(te.boolean(R.needsConfirmation)||R.needsConfirmation===void 0)&&(te.string(R.description)||R.description===void 0)}q.is=Z})(N=t.ChangeAnnotation||(t.ChangeAnnotation={}));var w;(function(q){function X(Z){var H=Z;return typeof H=="string"}q.is=X})(w=t.ChangeAnnotationIdentifier||(t.ChangeAnnotationIdentifier={}));var D;(function(q){function X($,ie,fe){return{range:$,newText:ie,annotationId:fe}}q.replace=X;function Z($,ie,fe){return{range:{start:$,end:$},newText:ie,annotationId:fe}}q.insert=Z;function H($,ie){return{range:$,newText:"",annotationId:ie}}q.del=H;function R($){var ie=$;return k.is(ie)&&(N.is(ie.annotationId)||w.is(ie.annotationId))}q.is=R})(D=t.AnnotatedTextEdit||(t.AnnotatedTextEdit={}));var F;(function(q){function X(H,R){return{textDocument:H,edits:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&we.is(R.textDocument)&&Array.isArray(R.edits)}q.is=Z})(F=t.TextDocumentEdit||(t.TextDocumentEdit={}));var P;(function(q){function X(H,R,$){var ie={kind:"create",uri:H};return R!==void 0&&(R.overwrite!==void 0||R.ignoreIfExists!==void 0)&&(ie.options=R),$!==void 0&&(ie.annotationId=$),ie}q.create=X;function Z(H){var R=H;return R&&R.kind==="create"&&te.string(R.uri)&&(R.options===void 0||(R.options.overwrite===void 0||te.boolean(R.options.overwrite))&&(R.options.ignoreIfExists===void 0||te.boolean(R.options.ignoreIfExists)))&&(R.annotationId===void 0||w.is(R.annotationId))}q.is=Z})(P=t.CreateFile||(t.CreateFile={}));var B;(function(q){function X(H,R,$,ie){var fe={kind:"rename",oldUri:H,newUri:R};return $!==void 0&&($.overwrite!==void 0||$.ignoreIfExists!==void 0)&&(fe.options=$),ie!==void 0&&(fe.annotationId=ie),fe}q.create=X;function Z(H){var R=H;return R&&R.kind==="rename"&&te.string(R.oldUri)&&te.string(R.newUri)&&(R.options===void 0||(R.options.overwrite===void 0||te.boolean(R.options.overwrite))&&(R.options.ignoreIfExists===void 0||te.boolean(R.options.ignoreIfExists)))&&(R.annotationId===void 0||w.is(R.annotationId))}q.is=Z})(B=t.RenameFile||(t.RenameFile={}));var z;(function(q){function X(H,R,$){var ie={kind:"delete",uri:H};return R!==void 0&&(R.recursive!==void 0||R.ignoreIfNotExists!==void 0)&&(ie.options=R),$!==void 0&&(ie.annotationId=$),ie}q.create=X;function Z(H){var R=H;return R&&R.kind==="delete"&&te.string(R.uri)&&(R.options===void 0||(R.options.recursive===void 0||te.boolean(R.options.recursive))&&(R.options.ignoreIfNotExists===void 0||te.boolean(R.options.ignoreIfNotExists)))&&(R.annotationId===void 0||w.is(R.annotationId))}q.is=Z})(z=t.DeleteFile||(t.DeleteFile={}));var G;(function(q){function X(Z){var H=Z;return H&&(H.changes!==void 0||H.documentChanges!==void 0)&&(H.documentChanges===void 0||H.documentChanges.every(function(R){return te.string(R.kind)?P.is(R)||B.is(R)||z.is(R):F.is(R)}))}q.is=X})(G=t.WorkspaceEdit||(t.WorkspaceEdit={}));var M=function(){function q(X,Z){this.edits=X,this.changeAnnotations=Z}return q.prototype.insert=function(X,Z,H){var R,$;if(H===void 0?R=k.insert(X,Z):w.is(H)?($=H,R=D.insert(X,Z,H)):(this.assertChangeAnnotations(this.changeAnnotations),$=this.changeAnnotations.manage(H),R=D.insert(X,Z,$)),this.edits.push(R),$!==void 0)return $},q.prototype.replace=function(X,Z,H){var R,$;if(H===void 0?R=k.replace(X,Z):w.is(H)?($=H,R=D.replace(X,Z,H)):(this.assertChangeAnnotations(this.changeAnnotations),$=this.changeAnnotations.manage(H),R=D.replace(X,Z,$)),this.edits.push(R),$!==void 0)return $},q.prototype.delete=function(X,Z){var H,R;if(Z===void 0?H=k.del(X):w.is(Z)?(R=Z,H=D.del(X,Z)):(this.assertChangeAnnotations(this.changeAnnotations),R=this.changeAnnotations.manage(Z),H=D.del(X,R)),this.edits.push(H),R!==void 0)return R},q.prototype.add=function(X){this.edits.push(X)},q.prototype.all=function(){return this.edits},q.prototype.clear=function(){this.edits.splice(0,this.edits.length)},q.prototype.assertChangeAnnotations=function(X){if(X===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},q}(),j=function(){function q(X){this._annotations=X===void 0?Object.create(null):X,this._counter=0,this._size=0}return q.prototype.all=function(){return this._annotations},Object.defineProperty(q.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),q.prototype.manage=function(X,Z){var H;if(w.is(X)?H=X:(H=this.nextId(),Z=X),this._annotations[H]!==void 0)throw new Error("Id "+H+" is already in use.");if(Z===void 0)throw new Error("No annotation provided for id "+H);return this._annotations[H]=Z,this._size++,H},q.prototype.nextId=function(){return this._counter++,this._counter.toString()},q}(),ce=function(){function q(X){var Z=this;this._textEditChanges=Object.create(null),X!==void 0?(this._workspaceEdit=X,X.documentChanges?(this._changeAnnotations=new j(X.changeAnnotations),X.changeAnnotations=this._changeAnnotations.all(),X.documentChanges.forEach(function(H){if(F.is(H)){var R=new M(H.edits,Z._changeAnnotations);Z._textEditChanges[H.textDocument.uri]=R}})):X.changes&&Object.keys(X.changes).forEach(function(H){var R=new M(X.changes[H]);Z._textEditChanges[H]=R})):this._workspaceEdit={}}return Object.defineProperty(q.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),q.prototype.getTextEditChange=function(X){if(we.is(X)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var Z={uri:X.uri,version:X.version},H=this._textEditChanges[Z.uri];if(!H){var R=[],$={textDocument:Z,edits:R};this._workspaceEdit.documentChanges.push($),H=new M(R,this._changeAnnotations),this._textEditChanges[Z.uri]=H}return H}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var H=this._textEditChanges[X];if(!H){var R=[];this._workspaceEdit.changes[X]=R,H=new M(R),this._textEditChanges[X]=H}return H}},q.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new j,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},q.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},q.prototype.createFile=function(X,Z,H){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var R;N.is(Z)||w.is(Z)?R=Z:H=Z;var $,ie;if(R===void 0?$=P.create(X,H):(ie=w.is(R)?R:this._changeAnnotations.manage(R),$=P.create(X,H,ie)),this._workspaceEdit.documentChanges.push($),ie!==void 0)return ie},q.prototype.renameFile=function(X,Z,H,R){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var $;N.is(H)||w.is(H)?$=H:R=H;var ie,fe;if($===void 0?ie=B.create(X,Z,R):(fe=w.is($)?$:this._changeAnnotations.manage($),ie=B.create(X,Z,R,fe)),this._workspaceEdit.documentChanges.push(ie),fe!==void 0)return fe},q.prototype.deleteFile=function(X,Z,H){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var R;N.is(Z)||w.is(Z)?R=Z:H=Z;var $,ie;if(R===void 0?$=z.create(X,H):(ie=w.is(R)?R:this._changeAnnotations.manage(R),$=z.create(X,H,ie)),this._workspaceEdit.documentChanges.push($),ie!==void 0)return ie},q}();t.WorkspaceChange=ce;var ke;(function(q){function X(H){return{uri:H}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)}q.is=Z})(ke=t.TextDocumentIdentifier||(t.TextDocumentIdentifier={}));var pe;(function(q){function X(H,R){return{uri:H,version:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)&&te.integer(R.version)}q.is=Z})(pe=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={}));var we;(function(q){function X(H,R){return{uri:H,version:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)&&(R.version===null||te.integer(R.version))}q.is=Z})(we=t.OptionalVersionedTextDocumentIdentifier||(t.OptionalVersionedTextDocumentIdentifier={}));var Ne;(function(q){function X(H,R,$,ie){return{uri:H,languageId:R,version:$,text:ie}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)&&te.string(R.languageId)&&te.integer(R.version)&&te.string(R.text)}q.is=Z})(Ne=t.TextDocumentItem||(t.TextDocumentItem={}));var qe;(function(q){q.PlainText="plaintext",q.Markdown="markdown"})(qe=t.MarkupKind||(t.MarkupKind={})),function(q){function X(Z){var H=Z;return H===q.PlainText||H===q.Markdown}q.is=X}(qe=t.MarkupKind||(t.MarkupKind={}));var ht;(function(q){function X(Z){var H=Z;return te.objectLiteral(Z)&&qe.is(H.kind)&&te.string(H.value)}q.is=X})(ht=t.MarkupContent||(t.MarkupContent={}));var at;(function(q){q.Text=1,q.Method=2,q.Function=3,q.Constructor=4,q.Field=5,q.Variable=6,q.Class=7,q.Interface=8,q.Module=9,q.Property=10,q.Unit=11,q.Value=12,q.Enum=13,q.Keyword=14,q.Snippet=15,q.Color=16,q.File=17,q.Reference=18,q.Folder=19,q.EnumMember=20,q.Constant=21,q.Struct=22,q.Event=23,q.Operator=24,q.TypeParameter=25})(at=t.CompletionItemKind||(t.CompletionItemKind={}));var st;(function(q){q.PlainText=1,q.Snippet=2})(st=t.InsertTextFormat||(t.InsertTextFormat={}));var vt;(function(q){q.Deprecated=1})(vt=t.CompletionItemTag||(t.CompletionItemTag={}));var Oe;(function(q){function X(H,R,$){return{newText:H,insert:R,replace:$}}q.create=X;function Z(H){var R=H;return R&&te.string(R.newText)&&o.is(R.insert)&&o.is(R.replace)}q.is=Z})(Oe=t.InsertReplaceEdit||(t.InsertReplaceEdit={}));var xe;(function(q){q.asIs=1,q.adjustIndentation=2})(xe=t.InsertTextMode||(t.InsertTextMode={}));var Ue;(function(q){function X(Z){return{label:Z}}q.create=X})(Ue=t.CompletionItem||(t.CompletionItem={}));var Ze;(function(q){function X(Z,H){return{items:Z||[],isIncomplete:!!H}}q.create=X})(Ze=t.CompletionList||(t.CompletionList={}));var wn;(function(q){function X(H){return H.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}q.fromPlainText=X;function Z(H){var R=H;return te.string(R)||te.objectLiteral(R)&&te.string(R.language)&&te.string(R.value)}q.is=Z})(wn=t.MarkedString||(t.MarkedString={}));var tt;(function(q){function X(Z){var H=Z;return!!H&&te.objectLiteral(H)&&(ht.is(H.contents)||wn.is(H.contents)||te.typedArray(H.contents,wn.is))&&(Z.range===void 0||o.is(Z.range))}q.is=X})(tt=t.Hover||(t.Hover={}));var Mt;(function(q){function X(Z,H){return H?{label:Z,documentation:H}:{label:Z}}q.create=X})(Mt=t.ParameterInformation||(t.ParameterInformation={}));var Xr;(function(q){function X(Z,H){for(var R=[],$=2;$<arguments.length;$++)R[$-2]=arguments[$];var ie={label:Z};return te.defined(H)&&(ie.documentation=H),te.defined(R)?ie.parameters=R:ie.parameters=[],ie}q.create=X})(Xr=t.SignatureInformation||(t.SignatureInformation={}));var pn;(function(q){q.Text=1,q.Read=2,q.Write=3})(pn=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var ee;(function(q){function X(Z,H){var R={range:Z};return te.number(H)&&(R.kind=H),R}q.create=X})(ee=t.DocumentHighlight||(t.DocumentHighlight={}));var De;(function(q){q.File=1,q.Module=2,q.Namespace=3,q.Package=4,q.Class=5,q.Method=6,q.Property=7,q.Field=8,q.Constructor=9,q.Enum=10,q.Interface=11,q.Function=12,q.Variable=13,q.Constant=14,q.String=15,q.Number=16,q.Boolean=17,q.Array=18,q.Object=19,q.Key=20,q.Null=21,q.EnumMember=22,q.Struct=23,q.Event=24,q.Operator=25,q.TypeParameter=26})(De=t.SymbolKind||(t.SymbolKind={}));var be;(function(q){q.Deprecated=1})(be=t.SymbolTag||(t.SymbolTag={}));var me;(function(q){function X(Z,H,R,$,ie){var fe={name:Z,kind:H,location:{uri:$,range:R}};return ie&&(fe.containerName=ie),fe}q.create=X})(me=t.SymbolInformation||(t.SymbolInformation={}));var je;(function(q){function X(H,R,$,ie,fe,Qe){var It={name:H,detail:R,kind:$,range:ie,selectionRange:fe};return Qe!==void 0&&(It.children=Qe),It}q.create=X;function Z(H){var R=H;return R&&te.string(R.name)&&te.number(R.kind)&&o.is(R.range)&&o.is(R.selectionRange)&&(R.detail===void 0||te.string(R.detail))&&(R.deprecated===void 0||te.boolean(R.deprecated))&&(R.children===void 0||Array.isArray(R.children))&&(R.tags===void 0||Array.isArray(R.tags))}q.is=Z})(je=t.DocumentSymbol||(t.DocumentSymbol={}));var $e;(function(q){q.Empty="",q.QuickFix="quickfix",q.Refactor="refactor",q.RefactorExtract="refactor.extract",q.RefactorInline="refactor.inline",q.RefactorRewrite="refactor.rewrite",q.Source="source",q.SourceOrganizeImports="source.organizeImports",q.SourceFixAll="source.fixAll"})($e=t.CodeActionKind||(t.CodeActionKind={}));var We;(function(q){function X(H,R){var $={diagnostics:H};return R!=null&&($.only=R),$}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.typedArray(R.diagnostics,T.is)&&(R.only===void 0||te.typedArray(R.only,te.string))}q.is=Z})(We=t.CodeActionContext||(t.CodeActionContext={}));var rt;(function(q){function X(H,R,$){var ie={title:H},fe=!0;return typeof R=="string"?(fe=!1,ie.kind=R):g.is(R)?ie.command=R:ie.edit=R,fe&&$!==void 0&&(ie.kind=$),ie}q.create=X;function Z(H){var R=H;return R&&te.string(R.title)&&(R.diagnostics===void 0||te.typedArray(R.diagnostics,T.is))&&(R.kind===void 0||te.string(R.kind))&&(R.edit!==void 0||R.command!==void 0)&&(R.command===void 0||g.is(R.command))&&(R.isPreferred===void 0||te.boolean(R.isPreferred))&&(R.edit===void 0||G.is(R.edit))}q.is=Z})(rt=t.CodeAction||(t.CodeAction={}));var li;(function(q){function X(H,R){var $={range:H};return te.defined(R)&&($.data=R),$}q.create=X;function Z(H){var R=H;return te.defined(R)&&o.is(R.range)&&(te.undefined(R.command)||g.is(R.command))}q.is=Z})(li=t.CodeLens||(t.CodeLens={}));var ao;(function(q){function X(H,R){return{tabSize:H,insertSpaces:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.uinteger(R.tabSize)&&te.boolean(R.insertSpaces)}q.is=Z})(ao=t.FormattingOptions||(t.FormattingOptions={}));var xa;(function(q){function X(H,R,$){return{range:H,target:R,data:$}}q.create=X;function Z(H){var R=H;return te.defined(R)&&o.is(R.range)&&(te.undefined(R.target)||te.string(R.target))}q.is=Z})(xa=t.DocumentLink||(t.DocumentLink={}));var Ia;(function(q){function X(H,R){return{range:H,parent:R}}q.create=X;function Z(H){var R=H;return R!==void 0&&o.is(R.range)&&(R.parent===void 0||q.is(R.parent))}q.is=Z})(Ia=t.SelectionRange||(t.SelectionRange={})),t.EOL=[`
|
|
`,`\r
|
|
`,"\r"];var Nn;(function(q){function X($,ie,fe,Qe){return new cu($,ie,fe,Qe)}q.create=X;function Z($){var ie=$;return!!(te.defined(ie)&&te.string(ie.uri)&&(te.undefined(ie.languageId)||te.string(ie.languageId))&&te.uinteger(ie.lineCount)&&te.func(ie.getText)&&te.func(ie.positionAt)&&te.func(ie.offsetAt))}q.is=Z;function H($,ie){for(var fe=$.getText(),Qe=R(ie,function(gr,ci){var Ri=gr.range.start.line-ci.range.start.line;return Ri===0?gr.range.start.character-ci.range.start.character:Ri}),It=fe.length,Dt=Qe.length-1;Dt>=0;Dt--){var nr=Qe[Dt],Rt=$.offsetAt(nr.range.start),Ye=$.offsetAt(nr.range.end);if(Ye<=It)fe=fe.substring(0,Rt)+nr.newText+fe.substring(Ye,fe.length);else throw new Error("Overlapping edit");It=Rt}return fe}q.applyEdits=H;function R($,ie){if($.length<=1)return $;var fe=$.length/2|0,Qe=$.slice(0,fe),It=$.slice(fe);R(Qe,ie),R(It,ie);for(var Dt=0,nr=0,Rt=0;Dt<Qe.length&&nr<It.length;){var Ye=ie(Qe[Dt],It[nr]);Ye<=0?$[Rt++]=Qe[Dt++]:$[Rt++]=It[nr++]}for(;Dt<Qe.length;)$[Rt++]=Qe[Dt++];for(;nr<It.length;)$[Rt++]=It[nr++];return $}})(Nn=t.TextDocument||(t.TextDocument={}));var cu=function(){function q(X,Z,H,R){this._uri=X,this._languageId=Z,this._version=H,this._content=R,this._lineOffsets=void 0}return Object.defineProperty(q.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),q.prototype.getText=function(X){if(X){var Z=this.offsetAt(X.start),H=this.offsetAt(X.end);return this._content.substring(Z,H)}return this._content},q.prototype.update=function(X,Z){this._content=X.text,this._version=Z,this._lineOffsets=void 0},q.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var X=[],Z=this._content,H=!0,R=0;R<Z.length;R++){H&&(X.push(R),H=!1);var $=Z.charAt(R);H=$==="\r"||$===`
|
|
`,$==="\r"&&R+1<Z.length&&Z.charAt(R+1)===`
|
|
`&&R++}H&&Z.length>0&&X.push(Z.length),this._lineOffsets=X}return this._lineOffsets},q.prototype.positionAt=function(X){X=Math.max(Math.min(X,this._content.length),0);var Z=this.getLineOffsets(),H=0,R=Z.length;if(R===0)return a.create(0,X);for(;H<R;){var $=Math.floor((H+R)/2);Z[$]>X?R=$:H=$+1}var ie=H-1;return a.create(ie,X-Z[ie])},q.prototype.offsetAt=function(X){var Z=this.getLineOffsets();if(X.line>=Z.length)return this._content.length;if(X.line<0)return 0;var H=Z[X.line],R=X.line+1<Z.length?Z[X.line+1]:this._content.length;return Math.max(Math.min(H+X.character,R),H)},Object.defineProperty(q.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),q}(),te;(function(q){var X=Object.prototype.toString;function Z(Ye){return typeof Ye!="undefined"}q.defined=Z;function H(Ye){return typeof Ye=="undefined"}q.undefined=H;function R(Ye){return Ye===!0||Ye===!1}q.boolean=R;function $(Ye){return X.call(Ye)==="[object String]"}q.string=$;function ie(Ye){return X.call(Ye)==="[object Number]"}q.number=ie;function fe(Ye,gr,ci){return X.call(Ye)==="[object Number]"&&gr<=Ye&&Ye<=ci}q.numberRange=fe;function Qe(Ye){return X.call(Ye)==="[object Number]"&&-2147483648<=Ye&&Ye<=2147483647}q.integer=Qe;function It(Ye){return X.call(Ye)==="[object Number]"&&0<=Ye&&Ye<=2147483647}q.uinteger=It;function Dt(Ye){return X.call(Ye)==="[object Function]"}q.func=Dt;function nr(Ye){return Ye!==null&&typeof Ye=="object"}q.objectLiteral=nr;function Rt(Ye,gr){return Array.isArray(Ye)&&Ye.every(gr)}q.typedArray=Rt})(te||(te={}))})});var Kj=U(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});var Qj=class{constructor(t){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{let r=this._sourceText.charAt(this._pos);return this._pos++,r},this.eat=r=>{if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=r=>{let n=this._testNextCharacter(r),a=!1;for(n&&(a=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),a=!0;return a},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,a=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,a?"i":"g").test(this._sourceText.substr(this._pos,r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s&&s[0]),s!=null&&(typeof r=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=r=>{this._pos-=r},this.column=()=>this._pos,this.indentation=()=>{let r=this._sourceText.match(/\s*/),n=0;if(r&&r.length!==0){let a=r[0],o=0;for(;a.length>o;)a.charCodeAt(o)===9?n+=2:n++,o++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=t}_testNextCharacter(t){let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=="string"?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n}};D1.default=Qj});var k1=U(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.p=Ni.t=Ni.butNot=Ni.list=Ni.opt=void 0;function $J(e){return{ofRule:e}}Ni.opt=$J;function eX(e,t){return{ofRule:e,isList:!0,separator:t}}Ni.list=eX;function tX(e,t){let r=e.match;return e.match=n=>{let a=!1;return r&&(a=r(n)),a&&t.every(o=>o.match&&!o.match(n))},e}Ni.butNot=tX;function rX(e,t){return{style:t,match:r=>r.kind===e}}Ni.t=rX;function nX(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}Ni.p=nX});var C1=U(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.ParseRules=iu.LexRules=iu.isIgnored=void 0;var ue=k1(),iX=e=>e===" "||e===" "||e===","||e===`
|
|
`||e==="\r"||e==="\uFEFF"||e==="\xA0";iu.isIgnored=iX;iu.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};iu.ParseRules={Document:[ue.list("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Yr("query"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],Mutation:[Yr("mutation"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],Subscription:[Yr("subscription"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],VariableDefinitions:[ue.p("("),ue.list("VariableDefinition"),ue.p(")")],VariableDefinition:["Variable",ue.p(":"),"Type",ue.opt("DefaultValue")],Variable:[ue.p("$","variable"),Vt("variable")],DefaultValue:[ue.p("="),"Value"],SelectionSet:[ue.p("{"),ue.list("Selection"),ue.p("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Vt("property"),ue.p(":"),Vt("qualifier"),ue.opt("Arguments"),ue.list("Directive"),ue.opt("SelectionSet")],Field:[Vt("property"),ue.opt("Arguments"),ue.list("Directive"),ue.opt("SelectionSet")],Arguments:[ue.p("("),ue.list("Argument"),ue.p(")")],Argument:[Vt("attribute"),ue.p(":"),"Value"],FragmentSpread:[ue.p("..."),Vt("def"),ue.list("Directive")],InlineFragment:[ue.p("..."),ue.opt("TypeCondition"),ue.list("Directive"),"SelectionSet"],FragmentDefinition:[Yr("fragment"),ue.opt(ue.butNot(Vt("def"),[Yr("on")])),"TypeCondition",ue.list("Directive"),"SelectionSet"],TypeCondition:[Yr("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[ue.t("Number","number")],StringValue:[ue.t("String","string")],BooleanValue:[ue.t("Name","builtin")],NullValue:[ue.t("Name","keyword")],EnumValue:[Vt("string-2")],ListValue:[ue.p("["),ue.list("Value"),ue.p("]")],ObjectValue:[ue.p("{"),ue.list("ObjectField"),ue.p("}")],ObjectField:[Vt("attribute"),ue.p(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[ue.p("["),"Type",ue.p("]"),ue.opt(ue.p("!"))],NonNullType:["NamedType",ue.opt(ue.p("!"))],NamedType:[aX("atom")],Directive:[ue.p("@","meta"),Vt("meta"),ue.opt("Arguments")],DirectiveDef:[Yr("directive"),ue.p("@","meta"),Vt("meta"),ue.opt("ArgumentsDef"),Yr("on"),ue.list("DirectiveLocation",ue.p("|"))],InterfaceDef:[Yr("interface"),Vt("atom"),ue.opt("Implements"),ue.list("Directive"),ue.p("{"),ue.list("FieldDef"),ue.p("}")],Implements:[Yr("implements"),ue.list("NamedType",ue.p("&"))],DirectiveLocation:[Vt("string-2")],SchemaDef:[Yr("schema"),ue.list("Directive"),ue.p("{"),ue.list("OperationTypeDef"),ue.p("}")],OperationTypeDef:[Vt("keyword"),ue.p(":"),Vt("atom")],ScalarDef:[Yr("scalar"),Vt("atom"),ue.list("Directive")],ObjectTypeDef:[Yr("type"),Vt("atom"),ue.opt("Implements"),ue.list("Directive"),ue.p("{"),ue.list("FieldDef"),ue.p("}")],FieldDef:[Vt("property"),ue.opt("ArgumentsDef"),ue.p(":"),"Type",ue.list("Directive")],ArgumentsDef:[ue.p("("),ue.list("InputValueDef"),ue.p(")")],InputValueDef:[Vt("attribute"),ue.p(":"),"Type",ue.opt("DefaultValue"),ue.list("Directive")],UnionDef:[Yr("union"),Vt("atom"),ue.list("Directive"),ue.p("="),ue.list("UnionMember",ue.p("|"))],UnionMember:["NamedType"],EnumDef:[Yr("enum"),Vt("atom"),ue.list("Directive"),ue.p("{"),ue.list("EnumValueDef"),ue.p("}")],EnumValueDef:[Vt("string-2"),ue.list("Directive")],InputDef:[Yr("input"),Vt("atom"),ue.list("Directive"),ue.p("{"),ue.list("InputValueDef"),ue.p("}")],ExtendDef:[Yr("extend"),"ObjectTypeDef"]};function Yr(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function Vt(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function aX(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.prevState&&t.prevState.prevState&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}});var Wj=U(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});var O1=C1();function oX(e={eatWhitespace:t=>t.eatWhile(O1.isIgnored),lexRules:O1.LexRules,parseRules:O1.ParseRules,editorConfig:{}}){return{startState(){let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return dp(e.parseRules,t,"Document"),t},token(t,r){return uX(t,r,e)}}}L1.default=oX;function uX(e,t,r){let{lexRules:n,parseRules:a,eatWhitespace:o,editorConfig:s}=r;if(t.rule&&t.rule.length===0?N1(t):t.needsAdvance&&(t.needsAdvance=!1,A1(t,!0)),e.sol()){let h=s&&s.tabSize||2;t.indentLevel=Math.floor(e.indentation()/h)}if(o(e))return"ws";let c=lX(n,e);if(!c)return e.match(/\S+/)||e.match(/\s/),dp(w1,t,"Invalid"),"invalidchar";if(c.kind==="Comment")return dp(w1,t,"Comment"),"comment";let d=Hj({},t);if(c.kind==="Punctuation"){if(/^[{([]/.test(c.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(c.value)){let h=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&h.length>0&&h[h.length-1]<t.indentLevel&&(t.indentLevel=h[h.length-1])}}for(;t.rule;){let h=typeof t.rule=="function"?t.step===0?t.rule(c,e):null:t.rule[t.step];if(t.needsSeperator&&(h=h&&(h==null?void 0:h.separator)),h){if(h.ofRule&&(h=h.ofRule),typeof h=="string"){dp(a,t,h);continue}if(h.match&&h.match(c))return h.update&&h.update(t,c),c.kind==="Punctuation"?A1(t,!0):t.needsAdvance=!0,h.style}sX(t)}return Hj(t,d),dp(w1,t,"Invalid"),"invalidchar"}function Hj(e,t){let r=Object.keys(t);for(let n=0;n<r.length;n++)e[r[n]]=t[r[n]];return e}var w1={Invalid:[],Comment:[]};function dp(e,t,r){if(!e[r])throw new TypeError("Unknown rule: "+r);t.prevState=Object.assign({},t),t.kind=r,t.name=null,t.type=null,t.rule=e[r],t.step=0,t.needsSeperator=!1}function N1(e){!e.prevState||(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function A1(e,t){if(zj(e)&&e.rule){let r=e.rule[e.step];if(r.separator){let n=r.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&n.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)N1(e),e.rule&&(zj(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function zj(e){let t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function sX(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)N1(e);e.rule&&A1(e,!1)}function lX(e,t){let r=Object.keys(e);for(let n=0;n<r.length;n++){let a=t.match(e[r[n]]);if(a&&a instanceof Array)return{kind:r[n],value:a[0]}}}});var Yj=U(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.RuleKinds=cs.AdditionalRuleKinds=void 0;var cX=Nt();cs.AdditionalRuleKinds={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"};cs.RuleKinds=Object.assign(Object.assign({},cX.Kind),cs.AdditionalRuleKinds)});var rc=U(At=>{"use strict";var fX=At&&At.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),dX=At&&At.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&fX(t,e,r)},Jj=At&&At.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(At,"__esModule",{value:!0});At.onlineParser=At.t=At.p=At.opt=At.list=At.butNot=At.isIgnored=At.ParseRules=At.LexRules=At.CharacterStream=void 0;var pX=Kj();Object.defineProperty(At,"CharacterStream",{enumerable:!0,get:function(){return Jj(pX).default}});var x1=C1();Object.defineProperty(At,"LexRules",{enumerable:!0,get:function(){return x1.LexRules}});Object.defineProperty(At,"ParseRules",{enumerable:!0,get:function(){return x1.ParseRules}});Object.defineProperty(At,"isIgnored",{enumerable:!0,get:function(){return x1.isIgnored}});var pp=k1();Object.defineProperty(At,"butNot",{enumerable:!0,get:function(){return pp.butNot}});Object.defineProperty(At,"list",{enumerable:!0,get:function(){return pp.list}});Object.defineProperty(At,"opt",{enumerable:!0,get:function(){return pp.opt}});Object.defineProperty(At,"p",{enumerable:!0,get:function(){return pp.p}});Object.defineProperty(At,"t",{enumerable:!0,get:function(){return pp.t}});var hX=Wj();Object.defineProperty(At,"onlineParser",{enumerable:!0,get:function(){return Jj(hX).default}});dX(Yj(),At)});var ym=U(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.getTypeInfo=sn.canUseDirective=sn.runOnlineParser=sn.getTokenAtPosition=sn.getFragmentDefinitions=sn.getVariableCompletions=sn.getAutocompleteSuggestions=void 0;var Mr=S1(),fs=Nt(),Lt=Nt(),ye=rc(),rr=_1(),vX=e=>{let t=[];return e&&Lt.visit(Lt.parse(e,{experimentalFragmentVariables:!0}),{FragmentDefinition(r){t.push(r)}}),t};function gX(e,t,r,n,a){var o;let s=n||Zj(t,r),c=s.state.kind==="Invalid"?s.state.prevState:s.state;if(!c)return[];let d=c.kind,h=c.step,m=eM(e,s.state);if(d===ye.RuleKinds.DOCUMENT)return rr.hintList(s,[{label:"query",kind:Mr.CompletionItemKind.Function},{label:"mutation",kind:Mr.CompletionItemKind.Function},{label:"subscription",kind:Mr.CompletionItemKind.Function},{label:"fragment",kind:Mr.CompletionItemKind.Function},{label:"{",kind:Mr.CompletionItemKind.Constructor}]);if(d===ye.RuleKinds.IMPLEMENTS||d===ye.RuleKinds.NAMED_TYPE&&((o=c.prevState)===null||o===void 0?void 0:o.kind)===ye.RuleKinds.IMPLEMENTS)return bX(s,c,e,t,m);if(d===ye.RuleKinds.SELECTION_SET||d===ye.RuleKinds.FIELD||d===ye.RuleKinds.ALIASED_FIELD)return mX(s,m,e);if(d===ye.RuleKinds.ARGUMENTS||d===ye.RuleKinds.ARGUMENT&&h===0){let E=m.argDefs;if(E)return rr.hintList(s,E.map(b=>{var C;return{label:b.name,detail:String(b.type),documentation:(C=b.description)!==null&&C!==void 0?C:void 0,kind:Mr.CompletionItemKind.Variable,type:b.type}}))}if((d===ye.RuleKinds.OBJECT_VALUE||d===ye.RuleKinds.OBJECT_FIELD&&h===0)&&m.objectFieldDefs){let E=rr.objectValues(m.objectFieldDefs),b=d===ye.RuleKinds.OBJECT_VALUE?Mr.CompletionItemKind.Value:Mr.CompletionItemKind.Field;return rr.hintList(s,E.map(C=>{var L;return{label:C.name,detail:String(C.type),documentation:(L=C.description)!==null&&L!==void 0?L:void 0,kind:b,type:C.type}}))}if(d===ye.RuleKinds.ENUM_VALUE||d===ye.RuleKinds.LIST_VALUE&&h===1||d===ye.RuleKinds.OBJECT_FIELD&&h===2||d===ye.RuleKinds.ARGUMENT&&h===2)return yX(s,m,t,e);if(d===ye.RuleKinds.VARIABLE&&h===1){let E=Lt.getNamedType(m.inputType),b=I1(t,e);return rr.hintList(s,b.filter(C=>C.detail===(E==null?void 0:E.name)))}return d===ye.RuleKinds.TYPE_CONDITION&&h===1||d===ye.RuleKinds.NAMED_TYPE&&c.prevState!=null&&c.prevState.kind===ye.RuleKinds.TYPE_CONDITION?EX(s,m,e,d):d===ye.RuleKinds.FRAGMENT_SPREAD&&h===1?TX(s,m,e,t,Array.isArray(a)?a:vX(a)):d===ye.RuleKinds.VARIABLE_DEFINITION&&h===2||d===ye.RuleKinds.LIST_TYPE&&h===1||d===ye.RuleKinds.NAMED_TYPE&&c.prevState&&(c.prevState.kind===ye.RuleKinds.VARIABLE_DEFINITION||c.prevState.kind===ye.RuleKinds.LIST_TYPE||c.prevState.kind===ye.RuleKinds.NON_NULL_TYPE)?SX(s,e,d):d===ye.RuleKinds.DIRECTIVE?DX(s,c,e,d):[]}sn.getAutocompleteSuggestions=gX;function mX(e,t,r){if(t.parentType){let n=t.parentType,a=[];return"getFields"in n&&(a=rr.objectValues(n.getFields())),Lt.isCompositeType(n)&&a.push(Lt.TypeNameMetaFieldDef),n===r.getQueryType()&&a.push(Lt.SchemaMetaFieldDef,Lt.TypeMetaFieldDef),rr.hintList(e,a.map((o,s)=>{var c;return{sortText:String(s)+o.name,label:o.name,detail:String(o.type),documentation:(c=o.description)!==null&&c!==void 0?c:void 0,deprecated:o.isDeprecated,isDeprecated:o.isDeprecated,deprecationReason:o.deprecationReason,kind:Mr.CompletionItemKind.Field,type:o.type}}))}return[]}function yX(e,t,r,n){let a=Lt.getNamedType(t.inputType),o=I1(r,n,!0).filter(s=>s.detail===a.name);if(a instanceof Lt.GraphQLEnumType){let s=a.getValues();return rr.hintList(e,s.map(c=>{var d;return{label:c.name,detail:String(a),documentation:(d=c.description)!==null&&d!==void 0?d:void 0,deprecated:c.isDeprecated,isDeprecated:c.isDeprecated,deprecationReason:c.deprecationReason,kind:Mr.CompletionItemKind.EnumMember,type:a}}).concat(o))}else if(a===Lt.GraphQLBoolean)return rr.hintList(e,o.concat([{label:"true",detail:String(Lt.GraphQLBoolean),documentation:"Not false.",kind:Mr.CompletionItemKind.Variable,type:Lt.GraphQLBoolean},{label:"false",detail:String(Lt.GraphQLBoolean),documentation:"Not true.",kind:Mr.CompletionItemKind.Variable,type:Lt.GraphQLBoolean}]));return o}function bX(e,t,r,n,a){if(t.needsSeperator)return[];let o=r.getTypeMap(),s=rr.objectValues(o).filter(fs.isInterfaceType),c=s.map(({name:C})=>C),d=new Set;hp(n,(C,L)=>{var S,y,T,g,k;if(L.name&&(L.kind===ye.RuleKinds.INTERFACE_DEF&&!c.includes(L.name)&&d.add(L.name),L.kind===ye.RuleKinds.NAMED_TYPE&&((S=L.prevState)===null||S===void 0?void 0:S.kind)===ye.RuleKinds.IMPLEMENTS)){if(a.interfaceDef){if((y=a.interfaceDef)===null||y===void 0?void 0:y.getInterfaces().find(({name:F})=>F===L.name))return;let w=r.getType(L.name),D=(T=a.interfaceDef)===null||T===void 0?void 0:T.toConfig();a.interfaceDef=new fs.GraphQLInterfaceType(Object.assign(Object.assign({},D),{interfaces:[...D.interfaces,w||new fs.GraphQLInterfaceType({name:L.name,fields:{}})]}))}else if(a.objectTypeDef){if((g=a.objectTypeDef)===null||g===void 0?void 0:g.getInterfaces().find(({name:F})=>F===L.name))return;let w=r.getType(L.name),D=(k=a.objectTypeDef)===null||k===void 0?void 0:k.toConfig();a.objectTypeDef=new fs.GraphQLObjectType(Object.assign(Object.assign({},D),{interfaces:[...D.interfaces,w||new fs.GraphQLInterfaceType({name:L.name,fields:{}})]}))}}});let h=a.interfaceDef||a.objectTypeDef,E=((h==null?void 0:h.getInterfaces())||[]).map(({name:C})=>C),b=s.concat([...d].map(C=>({name:C}))).filter(({name:C})=>C!==(h==null?void 0:h.name)&&!E.includes(C));return rr.hintList(e,b.map(C=>{let L={label:C.name,kind:Mr.CompletionItemKind.Interface,type:C};return(C==null?void 0:C.description)&&(L.documentation=C.description),L}))}function EX(e,t,r,n){let a;if(t.parentType)if(Lt.isAbstractType(t.parentType)){let o=Lt.assertAbstractType(t.parentType),s=r.getPossibleTypes(o),c=Object.create(null);s.forEach(d=>{d.getInterfaces().forEach(h=>{c[h.name]=h})}),a=s.concat(rr.objectValues(c))}else a=[t.parentType];else{let o=r.getTypeMap();a=rr.objectValues(o).filter(Lt.isCompositeType)}return rr.hintList(e,a.map(o=>{let s=Lt.getNamedType(o);return{label:String(o),documentation:s&&s.description||"",kind:Mr.CompletionItemKind.Field}}))}function TX(e,t,r,n,a){if(!n)return[];let o=r.getTypeMap(),s=rr.getDefinitionState(e.state),c=Xj(n);a&&a.length>0&&c.push(...a);let d=c.filter(h=>o[h.typeCondition.name.value]&&!(s&&s.kind===ye.RuleKinds.FRAGMENT_DEFINITION&&s.name===h.name.value)&&Lt.isCompositeType(t.parentType)&&Lt.isCompositeType(o[h.typeCondition.name.value])&&Lt.doTypesOverlap(r,t.parentType,o[h.typeCondition.name.value]));return rr.hintList(e,d.map(h=>({label:h.name.value,detail:String(o[h.typeCondition.name.value]),documentation:`fragment ${h.name.value} on ${h.typeCondition.name.value}`,kind:Mr.CompletionItemKind.Field,type:o[h.typeCondition.name.value]})))}var _X=(e,t)=>{var r,n,a,o,s,c,d,h,m,E;if(((r=e.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState;if(((a=(n=e.prevState)===null||n===void 0?void 0:n.prevState)===null||a===void 0?void 0:a.kind)===t)return e.prevState.prevState;if(((c=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((E=(m=(h=(d=e.prevState)===null||d===void 0?void 0:d.prevState)===null||h===void 0?void 0:h.prevState)===null||m===void 0?void 0:m.prevState)===null||E===void 0?void 0:E.kind)===t)return e.prevState.prevState.prevState.prevState};function I1(e,t,r=!1){let n,a,o=Object.create({});return hp(e,(s,c)=>{if(c.kind===ye.RuleKinds.VARIABLE&&c.name&&(n=c.name),c.kind===ye.RuleKinds.NAMED_TYPE&&n){let d=_X(c,ye.RuleKinds.TYPE);(d==null?void 0:d.type)&&(a=t.getType(d==null?void 0:d.type))}n&&a&&(o[n]||(o[n]={detail:a.toString(),label:`$${n}`,type:a,kind:Mr.CompletionItemKind.Variable},r&&(o[n].insertText=`$${n}`),n=null,a=null))}),rr.objectValues(o)}sn.getVariableCompletions=I1;function Xj(e){let t=[];return hp(e,(r,n)=>{n.kind===ye.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ye.RuleKinds.FRAGMENT_DEFINITION,name:{kind:"Name",value:n.name},selectionSet:{kind:ye.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:ye.RuleKinds.NAMED_TYPE,name:{kind:"Name",value:n.type}}})}),t}sn.getFragmentDefinitions=Xj;function SX(e,t,r){let n=t.getTypeMap(),a=rr.objectValues(n).filter(Lt.isInputType);return rr.hintList(e,a.map(o=>({label:o.name,documentation:o.description,kind:Mr.CompletionItemKind.Variable})))}function DX(e,t,r,n){if(t.prevState&&t.prevState.kind){let a=r.getDirectives().filter(o=>$j(t.prevState,o));return rr.hintList(e,a.map(o=>({label:o.name,documentation:o.description||"",kind:Mr.CompletionItemKind.Function})))}return[]}function Zj(e,t){let r=null,n=null,a=null,o=hp(e,(s,c,d,h)=>{if(h===t.line&&s.getCurrentPosition()>=t.character)return r=d,n=Object.assign({},c),a=s.current(),"BREAK"});return{start:o.start,end:o.end,string:a||o.string,state:n||o.state,style:r||o.style}}sn.getTokenAtPosition=Zj;function hp(e,t){let r=e.split(`
|
|
`),n=ye.onlineParser(),a=n.startState(),o="",s=new ye.CharacterStream("");for(let c=0;c<r.length;c++){for(s=new ye.CharacterStream(r[c]);!s.eol()&&(o=n.token(s,a),t(s,a,o,c)!=="BREAK"););t(s,a,o,c),a.kind||(a=n.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:a,style:o}}sn.runOnlineParser=hp;function $j(e,t){if(!e||!e.kind)return!1;let r=e.kind,n=t.locations;switch(r){case ye.RuleKinds.QUERY:return n.indexOf("QUERY")!==-1;case ye.RuleKinds.MUTATION:return n.indexOf("MUTATION")!==-1;case ye.RuleKinds.SUBSCRIPTION:return n.indexOf("SUBSCRIPTION")!==-1;case ye.RuleKinds.FIELD:case ye.RuleKinds.ALIASED_FIELD:return n.indexOf("FIELD")!==-1;case ye.RuleKinds.FRAGMENT_DEFINITION:return n.indexOf("FRAGMENT_DEFINITION")!==-1;case ye.RuleKinds.FRAGMENT_SPREAD:return n.indexOf("FRAGMENT_SPREAD")!==-1;case ye.RuleKinds.INLINE_FRAGMENT:return n.indexOf("INLINE_FRAGMENT")!==-1;case ye.RuleKinds.SCHEMA_DEF:return n.indexOf("SCHEMA")!==-1;case ye.RuleKinds.SCALAR_DEF:return n.indexOf("SCALAR")!==-1;case ye.RuleKinds.OBJECT_TYPE_DEF:return n.indexOf("OBJECT")!==-1;case ye.RuleKinds.FIELD_DEF:return n.indexOf("FIELD_DEFINITION")!==-1;case ye.RuleKinds.INTERFACE_DEF:return n.indexOf("INTERFACE")!==-1;case ye.RuleKinds.UNION_DEF:return n.indexOf("UNION")!==-1;case ye.RuleKinds.ENUM_DEF:return n.indexOf("ENUM")!==-1;case ye.RuleKinds.ENUM_VALUE:return n.indexOf("ENUM_VALUE")!==-1;case ye.RuleKinds.INPUT_DEF:return n.indexOf("INPUT_OBJECT")!==-1;case ye.RuleKinds.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case ye.RuleKinds.ARGUMENTS_DEF:return n.indexOf("ARGUMENT_DEFINITION")!==-1;case ye.RuleKinds.INPUT_DEF:return n.indexOf("INPUT_FIELD_DEFINITION")!==-1}}return!1}sn.canUseDirective=$j;function eM(e,t){let r,n,a,o,s,c,d,h,m,E,b;return rr.forEachState(t,C=>{switch(C.kind){case ye.RuleKinds.QUERY:case"ShortQuery":E=e.getQueryType();break;case ye.RuleKinds.MUTATION:E=e.getMutationType();break;case ye.RuleKinds.SUBSCRIPTION:E=e.getSubscriptionType();break;case ye.RuleKinds.INLINE_FRAGMENT:case ye.RuleKinds.FRAGMENT_DEFINITION:C.type&&(E=e.getType(C.type));break;case ye.RuleKinds.FIELD:case ye.RuleKinds.ALIASED_FIELD:{!E||!C.name?s=null:(s=m?rr.getFieldDef(e,m,C.name):null,E=s?s.type:null);break}case ye.RuleKinds.SELECTION_SET:m=Lt.getNamedType(E);break;case ye.RuleKinds.DIRECTIVE:a=C.name?e.getDirective(C.name):null;break;case ye.RuleKinds.INTERFACE_DEF:C.name&&(d=null,b=new fs.GraphQLInterfaceType({name:C.name,interfaces:[],fields:{}}));break;case ye.RuleKinds.OBJECT_TYPE_DEF:C.name&&(b=null,d=new fs.GraphQLObjectType({name:C.name,interfaces:[],fields:{}}));break;case ye.RuleKinds.ARGUMENTS:{if(!C.prevState)n=null;else switch(C.prevState.kind){case ye.RuleKinds.FIELD:n=s&&s.args;break;case ye.RuleKinds.DIRECTIVE:n=a&&a.args;break;case ye.RuleKinds.ALIASED_FIELD:{let g=C.prevState&&C.prevState.name;if(!g){n=null;break}let k=m?rr.getFieldDef(e,m,g):null;if(!k){n=null;break}n=k.args;break}default:n=null;break}break}case ye.RuleKinds.ARGUMENT:if(n){for(let g=0;g<n.length;g++)if(n[g].name===C.name){r=n[g];break}}c=r&&r.type;break;case ye.RuleKinds.ENUM_VALUE:let L=Lt.getNamedType(c);o=L instanceof Lt.GraphQLEnumType?kX(L.getValues(),g=>g.value===C.name):null;break;case ye.RuleKinds.LIST_VALUE:let S=Lt.getNullableType(c);c=S instanceof Lt.GraphQLList?S.ofType:null;break;case ye.RuleKinds.OBJECT_VALUE:let y=Lt.getNamedType(c);h=y instanceof Lt.GraphQLInputObjectType?y.getFields():null;break;case ye.RuleKinds.OBJECT_FIELD:let T=C.name&&h?h[C.name]:null;c=T&&T.type;break;case ye.RuleKinds.NAMED_TYPE:C.name&&(E=e.getType(C.name));break}}),{argDef:r,argDefs:n,directiveDef:a,enumValue:o,fieldDef:s,inputType:c,objectFieldDefs:h,parentType:m,type:E,interfaceDef:b,objectTypeDef:d}}sn.getTypeInfo=eM;function kX(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return e[r];return null}});var F1=U(Un=>{"use strict";var tM=Un&&Un.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(E){s(E)}}function d(m){try{h(n.throw(m))}catch(E){s(E)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(Un,"__esModule",{value:!0});Un.getDefinitionQueryResultForDefinitionNode=Un.getDefinitionQueryResultForFragmentSpread=Un.getDefinitionQueryResultForNamedType=Un.LANGUAGE=void 0;var rM=is();Un.LANGUAGE="GraphQL";function R1(e,t){if(!e)throw new Error(t)}function vp(e,t){let r=t.loc;return R1(r,"Expected ASTNode to have a location."),rM.locToRange(e,r)}function nM(e,t){let r=t.loc;return R1(r,"Expected ASTNode to have a location."),rM.offsetToPosition(e,r.start)}function CX(e,t,r){return tM(this,void 0,void 0,function*(){let n=t.name.value,a=r.filter(({definition:s})=>s.name&&s.name.value===n);if(a.length===0)throw Error(`Definition not found for GraphQL type ${n}`);let o=a.map(({filePath:s,content:c,definition:d})=>NX(s||"",c,d));return{definitions:o,queryRange:o.map(s=>vp(e,t))}})}Un.getDefinitionQueryResultForNamedType=CX;function OX(e,t,r){return tM(this,void 0,void 0,function*(){let n=t.name.value,a=r.filter(({definition:s})=>s.name.value===n);if(a.length===0)throw Error(`Definition not found for GraphQL fragment ${n}`);let o=a.map(({filePath:s,content:c,definition:d})=>iM(s||"",c,d));return{definitions:o,queryRange:o.map(s=>vp(e,t))}})}Un.getDefinitionQueryResultForFragmentSpread=OX;function wX(e,t,r){return{definitions:[iM(e,t,r)],queryRange:r.name?[vp(t,r.name)]:[]}}Un.getDefinitionQueryResultForDefinitionNode=wX;function iM(e,t,r){let n=r.name;if(!n)throw Error("Expected ASTNode to have a Name.");return{path:e,position:nM(t,r),range:vp(t,r),name:n.value||"",language:Un.LANGUAGE,projectRoot:e}}function NX(e,t,r){let n=r.name;return R1(n,"Expected ASTNode to have a Name."),{path:e,position:nM(t,r),range:vp(t,r),name:n.value||"",language:Un.LANGUAGE,projectRoot:e}}});var P1=U(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getRange=xr.validateQuery=xr.getDiagnostics=xr.DIAGNOSTIC_SEVERITY=xr.SEVERITY=void 0;var AX=Nt(),aM=Nt(),oM=rc(),ds=is();xr.SEVERITY={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"};xr.DIAGNOSTIC_SEVERITY={[xr.SEVERITY.Error]:1,[xr.SEVERITY.Warning]:2,[xr.SEVERITY.Information]:3,[xr.SEVERITY.Hint]:4};var bm=(e,t)=>{if(!e)throw new Error(t)};function LX(e,t=null,r,n,a){let o=null;a&&(typeof a=="string"?e+=`
|
|
|
|
`+a:e+=`
|
|
|
|
`+a.reduce((s,c)=>(s+=AX.print(c)+`
|
|
|
|
`,s),""));try{o=aM.parse(e)}catch(s){let c=cM(s.locations[0],e);return[{severity:xr.DIAGNOSTIC_SEVERITY.Error,message:s.message,source:"GraphQL: Syntax",range:c}]}return uM(o,t,r,n)}xr.getDiagnostics=LX;function uM(e,t=null,r,n){if(!t)return[];let a=sM(ds.validateWithCustomRules(t,e,r,n),s=>lM(s,xr.DIAGNOSTIC_SEVERITY.Error,"Validation")),o=sM(aM.findDeprecatedUsages(t,e),s=>lM(s,xr.DIAGNOSTIC_SEVERITY.Warning,"Deprecation"));return a.concat(o)}xr.validateQuery=uM;function sM(e,t){return Array.prototype.concat.apply([],e.map(t))}function lM(e,t,r){if(!e.nodes)return[];let n=[];return e.nodes.forEach(a=>{let o=a.kind!=="Variable"&&"name"in a&&a.name!==void 0?a.name:"variable"in a&&a.variable!==void 0?a.variable:a;if(o){bm(e.locations,"GraphQL validation error requires locations.");let s=e.locations[0],c=xX(o),d=s.column+(c.end-c.start);n.push({source:`GraphQL: ${r}`,message:e.message,severity:t,range:new ds.Range(new ds.Position(s.line-1,s.column-1),new ds.Position(s.line-1,d))})}}),n}function cM(e,t){let r=oM.onlineParser(),n=r.startState(),a=t.split(`
|
|
`);bm(a.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h<e.line;h++)for(o=new oM.CharacterStream(a[h]);!o.eol()&&r.token(o,n)!=="invalidchar";);bm(o,"Expected Parser stream to be available.");let s=e.line-1,c=o.getStartOfToken(),d=o.getCurrentPosition();return new ds.Range(new ds.Position(s,c),new ds.Position(s,d))}xr.getRange=cM;function xX(e){let r=e.loc;return bm(r,"Expected ASTNode to have a location."),r}});var M1=U(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.getOutline=void 0;var j1=Nt(),fM=is(),{INLINE_FRAGMENT:IX}=j1.Kind;function RX(e){let t;try{t=j1.parse(e)}catch(a){return null}let r=FX(e);return{outlineTrees:j1.visit(t,{leave(a){return r!==void 0&&a.kind in r?r[a.kind](a):null}})}}Em.getOutline=RX;function FX(e){let t=r=>({representativeName:r.name,startPosition:fM.offsetToPosition(e,r.loc.start),endPosition:fM.offsetToPosition(e,r.loc.end),kind:r.kind,children:r.selectionSet||r.fields||r.values||r.arguments||[]});return{Field:r=>{let n=r.alias?[Ut("plain",r.alias),Ut("plain",": ")]:[];return n.push(Ut("plain",r.name)),Object.assign({tokenizedText:n},t(r))},OperationDefinition:r=>Object.assign({tokenizedText:[Ut("keyword",r.operation),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),Document:r=>r.definitions,SelectionSet:r=>PX(r.selections,n=>n.kind===IX?n.selectionSet:n),Name:r=>r.value,FragmentDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","fragment"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),InterfaceTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","interface"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),EnumTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","enum"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),EnumValueDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),ObjectTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","type"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),InputObjectTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","input"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),FragmentSpread:r=>Object.assign({tokenizedText:[Ut("plain","..."),Ut("class-name",r.name)]},t(r)),InputValueDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),FieldDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),InlineFragment:r=>r.selectionSet}}function Ut(e,t){return{kind:e,value:t}}function PX(e,t){let r=[];for(let n=0;n<e.length;n++){let a=t(e[n],n);Array.isArray(a)?r.push(...a):r.push(a)}return r}});var q1=U(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.getHoverInformation=void 0;var dM=Nt(),pM=ym();function jX(e,t,r,n){let a=n||pM.getTokenAtPosition(t,r);if(!e||!a||!a.state)return"";let o=a.state,s=o.kind,c=o.step,d=pM.getTypeInfo(e,a.state),h={schema:e};if(s==="Field"&&c===0&&d.fieldDef||s==="AliasedField"&&c===2&&d.fieldDef){let m=[];return MX(m,d,h),gp(m,h,d.fieldDef),m.join("").trim()}else if(s==="Directive"&&c===1&&d.directiveDef){let m=[];return vM(m,d,h),gp(m,h,d.directiveDef),m.join("").trim()}else if(s==="Argument"&&c===0&&d.argDef){let m=[];return qX(m,d,h),gp(m,h,d.argDef),m.join("").trim()}else if(s==="EnumValue"&&d.enumValue&&"description"in d.enumValue){let m=[];return BX(m,d,h),gp(m,h,d.enumValue),m.join("").trim()}else if(s==="NamedType"&&d.type&&"description"in d.type){let m=[];return nc(m,d,h,d.type),gp(m,h,d.type),m.join("").trim()}return""}Tm.getHoverInformation=jX;function MX(e,t,r){hM(e,t,r),gM(e,t,r,t.type)}function hM(e,t,r){if(!t.fieldDef)return;let n=t.fieldDef.name;n.slice(0,2)!=="__"&&(nc(e,t,r,t.parentType),qr(e,".")),qr(e,n)}function vM(e,t,r){if(!t.directiveDef)return;let n="@"+t.directiveDef.name;qr(e,n)}function qX(e,t,r){if(t.directiveDef?vM(e,t,r):t.fieldDef&&hM(e,t,r),!t.argDef)return;let n=t.argDef.name;qr(e,"("),qr(e,n),gM(e,t,r,t.inputType),qr(e,")")}function gM(e,t,r,n){qr(e,": "),nc(e,t,r,n)}function BX(e,t,r){if(!t.enumValue)return;let n=t.enumValue.name;nc(e,t,r,t.inputType),qr(e,"."),qr(e,n)}function nc(e,t,r,n){!n||(n instanceof dM.GraphQLNonNull?(nc(e,t,r,n.ofType),qr(e,"!")):n instanceof dM.GraphQLList?(qr(e,"["),nc(e,t,r,n.ofType),qr(e,"]")):qr(e,n.name))}function gp(e,t,r){if(!r)return;let n=typeof r.description=="string"?r.description:null;n&&(qr(e,`
|
|
|
|
`),qr(e,n)),VX(e,t,r)}function VX(e,t,r){if(!r)return;let n=r.deprecationReason?r.deprecationReason:null;!n||(qr(e,`
|
|
|
|
`),qr(e,"Deprecated: "),qr(e,n))}function qr(e,t){e.push(t)}});var kM=U(ic=>{"use strict";var au=ic&&ic.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(E){s(E)}}function d(m){try{h(n.throw(m))}catch(E){s(E)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(ic,"__esModule",{value:!0});ic.GraphQLLanguageService=void 0;var ni=S1(),Jr=Nt(),UX=ym(),GX=q1(),B1=P1(),V1=F1(),QX=M1(),KX=is(),{FRAGMENT_DEFINITION:mM,OBJECT_TYPE_DEFINITION:yM,INTERFACE_TYPE_DEFINITION:bM,ENUM_TYPE_DEFINITION:EM,UNION_TYPE_DEFINITION:HX,SCALAR_TYPE_DEFINITION:TM,INPUT_OBJECT_TYPE_DEFINITION:_M,SCALAR_TYPE_EXTENSION:zX,OBJECT_TYPE_EXTENSION:WX,INTERFACE_TYPE_EXTENSION:YX,UNION_TYPE_EXTENSION:JX,ENUM_TYPE_EXTENSION:XX,INPUT_OBJECT_TYPE_EXTENSION:ZX,DIRECTIVE_DEFINITION:$X,FRAGMENT_SPREAD:eZ,OPERATION_DEFINITION:tZ,NAMED_TYPE:rZ}=Jr.Kind,SM={[Jr.Kind.FIELD]:ni.SymbolKind.Field,[Jr.Kind.OPERATION_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.FRAGMENT_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.FRAGMENT_SPREAD]:ni.SymbolKind.Struct,[Jr.Kind.OBJECT_TYPE_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.ENUM_TYPE_DEFINITION]:ni.SymbolKind.Enum,[Jr.Kind.ENUM_VALUE_DEFINITION]:ni.SymbolKind.EnumMember,[Jr.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.INPUT_VALUE_DEFINITION]:ni.SymbolKind.Field,[Jr.Kind.FIELD_DEFINITION]:ni.SymbolKind.Field,[Jr.Kind.INTERFACE_TYPE_DEFINITION]:ni.SymbolKind.Interface,[Jr.Kind.DOCUMENT]:ni.SymbolKind.File,FieldWithArguments:ni.SymbolKind.Method};function nZ(e){return e.kind==="FieldDefinition"&&e.children&&e.children.length>0?SM.FieldWithArguments:SM[e.kind]}var DM=class{constructor(t){this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}getConfigForURI(t){let r=this._graphQLCache.getProjectForFile(t);if(r)return r;throw Error(`No config found for uri: ${t}`)}getDiagnostics(t,r,n){return au(this,void 0,void 0,function*(){let a=!1,o=this.getConfigForURI(r);if(!o)return[];let{schema:s,name:c,extensions:d}=o;try{let y=Jr.parse(t);(!s||r!==s)&&(a=y.definitions.some(T=>{switch(T.kind){case yM:case bM:case EM:case HX:case TM:case _M:case zX:case WX:case YX:case JX:case XX:case ZX:case $X:return!0}return!1}))}catch(y){let T=B1.getRange(y.locations[0],t);return[{severity:B1.DIAGNOSTIC_SEVERITY.Error,message:y.message,source:"GraphQL: Syntax",range:T}]}let h=t,m=yield this._graphQLCache.getFragmentDefinitions(o),b=(yield this._graphQLCache.getFragmentDependencies(t,m)).reduce((y,T)=>`${y} ${Jr.print(T.definition)}`,"");h=`${h} ${b}`;let C=null;try{C=Jr.parse(h)}catch(y){return[]}let L=null;(d==null?void 0:d.customValidationRules)&&typeof d.customValidationRules=="function"&&(L=d.customValidationRules(this._graphQLConfig));let S=yield this._graphQLCache.getSchema(c,a);return S?B1.validateQuery(C,S,L,n):[]})}getAutocompleteSuggestions(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(a.name),s=yield this._graphQLCache.getFragmentDefinitions(a),c=Array.from(s).map(([,d])=>d.definition);return o?UX.getAutocompleteSuggestions(o,t,r,void 0,c):[]})}getHoverInformation(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(a.name);return o?GX.getHoverInformation(o,t,r):""})}getDefinition(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o;try{o=Jr.parse(t)}catch(c){return null}let s=KX.getASTNodeAtPosition(t,o,r);if(s)switch(s.kind){case eZ:return this._getDefinitionForFragmentSpread(t,o,s,n,a);case mM:case tZ:return V1.getDefinitionQueryResultForDefinitionNode(n,t,s);case rZ:return this._getDefinitionForNamedType(t,o,s,n,a)}return null})}getDocumentSymbols(t,r){return au(this,void 0,void 0,function*(){let n=yield this.getOutline(t);if(!n)return[];let a=[],o=n.outlineTrees.map(s=>[null,s]);for(;o.length>0;){let s=o.pop();if(!s)return[];let[c,d]=s;if(!d)return[];a.push({name:d.representativeName,kind:nZ(d),location:{uri:r,range:{start:d.startPosition,end:d.endPosition}},containerName:c?c.representativeName:void 0}),o.push(...d.children.map(h=>[d,h]))}return a})}_getDefinitionForNamedType(t,r,n,a,o){return au(this,void 0,void 0,function*(){let s=yield this._graphQLCache.getObjectTypeDefinitions(o),c=yield this._graphQLCache.getObjectTypeDependenciesForAST(r,s),m=r.definitions.filter(b=>b.kind===yM||b.kind===_M||b.kind===EM||b.kind===TM||b.kind===bM).map(b=>({filePath:a,content:t,definition:b}));return yield V1.getDefinitionQueryResultForNamedType(t,n,c.concat(m))})}_getDefinitionForFragmentSpread(t,r,n,a,o){return au(this,void 0,void 0,function*(){let s=yield this._graphQLCache.getFragmentDefinitions(o),c=yield this._graphQLCache.getFragmentDependenciesForAST(r,s),m=r.definitions.filter(b=>b.kind===mM).map(b=>({filePath:a,content:t,definition:b}));return yield V1.getDefinitionQueryResultForFragmentSpread(t,n,c.concat(m))})}getOutline(t){return au(this,void 0,void 0,function*(){return QX.getOutline(t)})}};ic.GraphQLLanguageService=DM});var U1=U(Dn=>{"use strict";var iZ=Dn&&Dn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),mp=Dn&&Dn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&iZ(t,e,r)};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getHoverInformation=Dn.getOutline=void 0;mp(_1(),Dn);mp(ym(),Dn);mp(F1(),Dn);mp(P1(),Dn);var aZ=M1();Object.defineProperty(Dn,"getOutline",{enumerable:!0,get:function(){return aZ.getOutline}});var oZ=q1();Object.defineProperty(Dn,"getHoverInformation",{enumerable:!0,get:function(){return oZ.getHoverInformation}});mp(kM(),Dn)});var CM=U(Sm=>{"use strict";var uZ=Sm&&Sm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sm,"__esModule",{value:!0});var _m=uZ(ct());op();var sZ=U1(),lZ=is();_m.default.registerHelper("hint","graphql",function(e,t){var r=t.schema;if(!!r){var n=e.getCursor(),a=e.getTokenAt(n),o=a.type!==null&&/"|\w/.test(a.string[0])?a.start:a.end,s=new lZ.Position(n.line,o),c=sZ.getAutocompleteSuggestions(r,e.getValue(),s,a,t.externalFragments),d={list:c.map(function(h){return{text:h.label,type:h.type,description:h.documentation,isDeprecated:h.isDeprecated,deprecationReason:h.deprecationReason}}),from:{line:n.line,ch:o},to:{line:n.line,ch:a.end}};return d&&d.list&&d.list.length>0&&(d.from=_m.default.Pos(d.from.line,d.from.ch),d.to=_m.default.Pos(d.to.line,d.to.ch),_m.default.signal(e,"hasCompletion",e,d,a)),d}})});var wM=U(Dm=>{"use strict";var cZ=Dm&&Dm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dm,"__esModule",{value:!0});var G1=cZ(ct()),fZ=U1(),OM=["error","warning","information","hint"],dZ={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};G1.default.registerHelper("lint","graphql",function(e,t){var r=t.schema,n=fZ.getDiagnostics(e,r,t.validationRules,void 0,t.externalFragments),a=n.map(function(o){return{message:o.message,severity:o.severity?OM[o.severity-1]:OM[0],type:o.source?dZ[o.source]:void 0,from:G1.default.Pos(o.range.start.line,o.range.start.character),to:G1.default.Pos(o.range.end.line,o.range.end.character)}});return a})});var K1=U(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});function pZ(e,t){for(var r=[],n=e;n&&n.kind;)r.push(n),n=n.prevState;for(var a=r.length-1;a>=0;a--)t(r[a])}Q1.default=pZ});var H1=U(yp=>{"use strict";var hZ=yp&&yp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yp,"__esModule",{value:!0});var ou=Nt(),ac=Mn(),vZ=hZ(K1());function gZ(e,t){var r={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return vZ.default(t,function(n){switch(n.kind){case"Query":case"ShortQuery":r.type=e.getQueryType();break;case"Mutation":r.type=e.getMutationType();break;case"Subscription":r.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(r.type=e.getType(n.type));break;case"Field":case"AliasedField":r.fieldDef=r.type&&n.name?NM(e,r.parentType,n.name):null,r.type=r.fieldDef&&r.fieldDef.type;break;case"SelectionSet":r.parentType=r.type?ou.getNamedType(r.type):null;break;case"Directive":r.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":var a=n.prevState?n.prevState.kind==="Field"?r.fieldDef:n.prevState.kind==="Directive"?r.directiveDef:n.prevState.kind==="AliasedField"?n.prevState.name&&NM(e,r.parentType,n.prevState.name):null:null;r.argDefs=a?a.args:null;break;case"Argument":if(r.argDef=null,r.argDefs){for(var o=0;o<r.argDefs.length;o++)if(r.argDefs[o].name===n.name){r.argDef=r.argDefs[o];break}}r.inputType=r.argDef&&r.argDef.type;break;case"EnumValue":var s=r.inputType?ou.getNamedType(r.inputType):null;r.enumValue=s instanceof ou.GraphQLEnumType?mZ(s.getValues(),function(m){return m.value===n.name}):null;break;case"ListValue":var c=r.inputType?ou.getNullableType(r.inputType):null;r.inputType=c instanceof ou.GraphQLList?c.ofType:null;break;case"ObjectValue":var d=r.inputType?ou.getNamedType(r.inputType):null;r.objectFieldDefs=d instanceof ou.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":var h=n.name&&r.objectFieldDefs?r.objectFieldDefs[n.name]:null;r.inputType=h&&h.type;break;case"NamedType":r.type=n.name?e.getType(n.name):null;break}}),r}yp.default=gZ;function NM(e,t,r){if(r===ac.SchemaMetaFieldDef.name&&e.getQueryType()===t)return ac.SchemaMetaFieldDef;if(r===ac.TypeMetaFieldDef.name&&e.getQueryType()===t)return ac.TypeMetaFieldDef;if(r===ac.TypeNameMetaFieldDef.name&&ou.isCompositeType(t))return ac.TypeNameMetaFieldDef;if(t&&t.getFields)return t.getFields()[r]}function mZ(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}});var z1=U(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.getTypeReference=Ai.getEnumValueReference=Ai.getArgumentReference=Ai.getDirectiveReference=Ai.getFieldReference=void 0;var yZ=Nt();function bZ(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:AM(e.fieldDef)?null:e.parentType}}Ai.getFieldReference=bZ;function EZ(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}Ai.getDirectiveReference=EZ;function TZ(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:AM(e.fieldDef)?null:e.parentType}}Ai.getArgumentReference=TZ;function _Z(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?yZ.getNamedType(e.inputType):void 0}}Ai.getEnumValueReference=_Z;function SZ(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}Ai.getTypeReference=SZ;function AM(e){return e.name.slice(0,2)==="__"}});var W1=U(km=>{"use strict";var DZ=km&&km.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(km,"__esModule",{value:!0});var ln=DZ(ct());ln.default.defineOption("info",!1,function(e,t,r){if(r&&r!==ln.default.Init){var n=e.state.info.onMouseOver;ln.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=kZ(t);a.onMouseOver=OZ.bind(null,e),ln.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}});function kZ(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function CZ(e){var t=e.state.info.options;return t&&t.hoverTime||500}function OZ(e,t){var r=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&!(n.nodeName!=="SPAN"||r.hoverTimeout!==void 0)){var a=n.getBoundingClientRect(),o=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(c,d)},s=function(){ln.default.off(document,"mousemove",o),ln.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},c=function(){ln.default.off(document,"mousemove",o),ln.default.off(e.getWrapperElement(),"mouseout",s),r.hoverTimeout=void 0,wZ(e,a)},d=CZ(e);r.hoverTimeout=setTimeout(c,d),ln.default.on(document,"mousemove",o),ln.default.on(e.getWrapperElement(),"mouseout",s)}}function wZ(e,t){var r=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info,a=n.options,o=a.render||e.getHelper(r,"info");if(o){var s=e.getTokenAt(r,!0);if(s){var c=o(s,a,e,r);c&&NZ(e,t,c)}}}function NZ(e,t,r){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(r),document.body.appendChild(n);var a=n.getBoundingClientRect(),o=window.getComputedStyle(n),s=a.right-a.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),c=a.bottom-a.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),d=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-c),d<0&&(d=t.bottom);var h=Math.max(0,window.innerWidth-s-15);h>t.left&&(h=t.left),n.style.opacity="1",n.style.top=d+"px",n.style.left=h+"px";var m,E=function(){clearTimeout(m)},b=function(){clearTimeout(m),m=setTimeout(C,200)},C=function(){ln.default.off(n,"mouseover",E),ln.default.off(n,"mouseout",b),ln.default.off(e.getWrapperElement(),"mouseout",b),n.style.opacity?(n.style.opacity="0",setTimeout(function(){n.parentNode&&n.parentNode.removeChild(n)},600)):n.parentNode&&n.parentNode.removeChild(n)};ln.default.on(n,"mouseover",E),ln.default.on(n,"mouseout",b),ln.default.on(e.getWrapperElement(),"mouseout",b)}});var PM=U(Cm=>{"use strict";var LM=Cm&&Cm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cm,"__esModule",{value:!0});var xM=Nt(),AZ=LM(ct()),LZ=LM(H1()),bp=z1();W1();AZ.default.registerHelper("info","graphql",function(e,t){if(!(!t.schema||!e.state)){var r=e.state,n=r.kind,a=r.step,o=LZ.default(t.schema,e.state);if(n==="Field"&&a===0&&o.fieldDef||n==="AliasedField"&&a===2&&o.fieldDef){var s=document.createElement("div");return xZ(s,o,t),Ep(s,t,o.fieldDef),s}else if(n==="Directive"&&a===1&&o.directiveDef){var s=document.createElement("div");return RM(s,o,t),Ep(s,t,o.directiveDef),s}else if(n==="Argument"&&a===0&&o.argDef){var s=document.createElement("div");return IZ(s,o,t),Ep(s,t,o.argDef),s}else if(n==="EnumValue"&&o.enumValue&&o.enumValue.description){var s=document.createElement("div");return RZ(s,o,t),Ep(s,t,o.enumValue),s}else if(n==="NamedType"&&o.type&&o.type.description){var s=document.createElement("div");return oc(s,o,t,o.type),Ep(s,t,o.type),s}}});function xZ(e,t,r){IM(e,t,r),FM(e,t,r,t.type)}function IM(e,t,r){var n,a=((n=t.fieldDef)===null||n===void 0?void 0:n.name)||"";a.slice(0,2)!=="__"&&(oc(e,t,r,t.parentType),ii(e,".")),ii(e,a,"field-name",r,bp.getFieldReference(t))}function RM(e,t,r){var n,a="@"+(((n=t.directiveDef)===null||n===void 0?void 0:n.name)||"");ii(e,a,"directive-name",r,bp.getDirectiveReference(t))}function IZ(e,t,r){var n;t.directiveDef?RM(e,t,r):t.fieldDef&&IM(e,t,r);var a=((n=t.argDef)===null||n===void 0?void 0:n.name)||"";ii(e,"("),ii(e,a,"arg-name",r,bp.getArgumentReference(t)),FM(e,t,r,t.inputType),ii(e,")")}function FM(e,t,r,n){ii(e,": "),oc(e,t,r,n)}function RZ(e,t,r){var n,a=((n=t.enumValue)===null||n===void 0?void 0:n.name)||"";oc(e,t,r,t.inputType),ii(e,"."),ii(e,a,"enum-value",r,bp.getEnumValueReference(t))}function oc(e,t,r,n){n instanceof xM.GraphQLNonNull?(oc(e,t,r,n.ofType),ii(e,"!")):n instanceof xM.GraphQLList?(ii(e,"["),oc(e,t,r,n.ofType),ii(e,"]")):ii(e,(n==null?void 0:n.name)||"","type-name",r,bp.getTypeReference(t,n))}function Ep(e,t,r){var n=r.description;if(n){var a=document.createElement("div");a.className="info-description",t.renderDescription?a.innerHTML=t.renderDescription(n):a.appendChild(document.createTextNode(n)),e.appendChild(a)}FZ(e,t,r)}function FZ(e,t,r){var n=r.deprecationReason;if(n){var a=document.createElement("div");a.className="info-deprecation",t.renderDescription?a.innerHTML=t.renderDescription(n):a.appendChild(document.createTextNode(n));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),a.insertBefore(o,a.firstChild),e.appendChild(a)}}function ii(e,t,r,n,a){if(r===void 0&&(r=""),n===void 0&&(n={onClick:null}),a===void 0&&(a=null),r){var o=n.onClick,s=void 0;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",function(c){o(a,c)})):s=document.createElement("span"),s.className=r,s.appendChild(document.createTextNode(t)),e.appendChild(s)}else e.appendChild(document.createTextNode(t))}});var qM=U(Om=>{"use strict";var PZ=Om&&Om.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Om,"__esModule",{value:!0});var Li=PZ(ct());Li.default.defineOption("jump",!1,function(e,t,r){if(r&&r!==Li.default.Init){var n=e.state.jump.onMouseOver;Li.default.off(e.getWrapperElement(),"mouseover",n);var a=e.state.jump.onMouseOut;Li.default.off(e.getWrapperElement(),"mouseout",a),Li.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var o=e.state.jump={options:t,onMouseOver:jZ.bind(null,e),onMouseOut:MZ.bind(null,e),onKeyDown:qZ.bind(null,e)};Li.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver),Li.default.on(e.getWrapperElement(),"mouseout",o.onMouseOut),Li.default.on(document,"keydown",o.onKeyDown)}});function jZ(e,t){var r=t.target||t.srcElement;if(r instanceof HTMLElement&&(r==null?void 0:r.nodeName)==="SPAN"){var n=r.getBoundingClientRect(),a={left:(n.left+n.right)/2,top:(n.top+n.bottom)/2};e.state.jump.cursor=a,e.state.jump.isHoldingModifier&&jM(e)}}function MZ(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&MM(e)}function qZ(e,t){if(!(e.state.jump.isHoldingModifier||!VZ(t.key))){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&jM(e);var r=function(o){o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&MM(e),Li.default.off(document,"keyup",r),Li.default.off(document,"click",n),e.off("mousedown",a))},n=function(o){var s=e.state.jump.destination;s&&e.state.jump.options.onClick(s,o)},a=function(o,s){e.state.jump.destination&&(s.codemirrorIgnore=!0)};Li.default.on(document,"keyup",r),Li.default.on(document,"click",n),e.on("mousedown",a)}}var BZ=typeof navigator!="undefined"&&navigator&&navigator.appVersion.indexOf("Mac")!==-1;function VZ(e){return e===(BZ?"Meta":"Control")}function jM(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,r=e.coordsChar(t),n=e.getTokenAt(r,!0),a=e.state.jump.options,o=a.getDestination||e.getHelper(r,"jump");if(o){var s=o(n,a,e);if(s){var c=e.markText({line:r.line,ch:n.start},{line:r.line,ch:n.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=c,e.state.jump.destination=s}}}}function MM(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}});var VM=U(wm=>{"use strict";var BM=wm&&wm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wm,"__esModule",{value:!0});var UZ=BM(ct()),GZ=BM(H1()),Tp=z1();qM();UZ.default.registerHelper("jump","graphql",function(e,t){if(!(!t.schema||!t.onClick||!e.state)){var r=e.state,n=r.kind,a=r.step,o=GZ.default(t.schema,r);if(n==="Field"&&a===0&&o.fieldDef||n==="AliasedField"&&a===2&&o.fieldDef)return Tp.getFieldReference(o);if(n==="Directive"&&a===1&&o.directiveDef)return Tp.getDirectiveReference(o);if(n==="Argument"&&a===0&&o.argDef)return Tp.getArgumentReference(o);if(n==="EnumValue"&&o.enumValue)return Tp.getEnumValueReference(o);if(n==="NamedType"&&o.type)return Tp.getTypeReference(o)}})});var UM=U(Am=>{"use strict";var QZ=Am&&Am.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Am,"__esModule",{value:!0});var KZ=QZ(ct()),Nm=rc();KZ.default.defineMode("graphql",function(e){var t=Nm.onlineParser({eatWhitespace:function(r){return r.eatWhile(Nm.isIgnored)},lexRules:Nm.LexRules,parseRules:Nm.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:HZ,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}});function HZ(e,t){var r,n,a=e.levels,o=!a||a.length===0?e.indentLevel:a[a.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}});var KM=U(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0});function JZ(e,t,r){var n=XZ(r,QM(t.string));if(!!n){var a=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:n,from:{line:e.line,ch:a},to:{line:e.line,ch:t.end}}}}X1.default=JZ;function XZ(e,t){if(!t)return J1(e,function(o){return!o.isDeprecated});var r=e.map(function(o){return{proximity:ZZ(QM(o.text),t),entry:o}}),n=J1(J1(r,function(o){return o.proximity<=2}),function(o){return!o.entry.isDeprecated}),a=n.sort(function(o,s){return(o.entry.isDeprecated?1:0)-(s.entry.isDeprecated?1:0)||o.proximity-s.proximity||o.entry.text.length-s.entry.text.length});return a.map(function(o){return o.entry})}function J1(e,t){var r=e.filter(t);return r.length===0?e:r}function QM(e){return e.toLowerCase().replace(/\W/g,"")}function ZZ(e,t){var r=$Z(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function $Z(e,t){var r,n,a=[],o=e.length,s=t.length;for(r=0;r<=o;r++)a[r]=[r];for(n=1;n<=s;n++)a[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){var c=e[r-1]===t[n-1]?0:1;a[r][n]=Math.min(a[r-1][n]+1,a[r][n-1]+1,a[r-1][n-1]+c),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(a[r][n]=Math.min(a[r][n],a[r-2][n-2]+c))}return a[o][s]}});var HM=U(Rm=>{"use strict";var Z1=Rm&&Rm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rm,"__esModule",{value:!0});var Im=Z1(ct()),wa=Nt(),e$=Z1(K1()),uc=Z1(KM());Im.default.registerHelper("hint","graphql-variables",function(e,t){var r=e.getCursor(),n=e.getTokenAt(r),a=t$(r,n,t);return a&&a.list&&a.list.length>0&&(a.from=Im.default.Pos(a.from.line,a.from.ch),a.to=Im.default.Pos(a.to.line,a.to.ch),Im.default.signal(e,"hasCompletion",e,a,n)),a});function t$(e,t,r){var n=t.state.kind==="Invalid"?t.state.prevState:t.state,a=n.kind,o=n.step;if(a==="Document"&&o===0)return uc.default(e,t,[{text:"{"}]);var s=r.variableToType;if(!!s){var c=r$(s,t.state);if(a==="Document"||a==="Variable"&&o===0){var d=Object.keys(s);return uc.default(e,t,d.map(function(b){return{text:'"'+b+'": ',type:s[b]}}))}if((a==="ObjectValue"||a==="ObjectField"&&o===0)&&c.fields){var h=Object.keys(c.fields).map(function(b){return c.fields[b]});return uc.default(e,t,h.map(function(b){return{text:'"'+b.name+'": ',type:b.type,description:b.description}}))}if(a==="StringValue"||a==="NumberValue"||a==="BooleanValue"||a==="NullValue"||a==="ListValue"&&o===1||a==="ObjectField"&&o===2||a==="Variable"&&o===2){var m=c.type?wa.getNamedType(c.type):void 0;if(m instanceof wa.GraphQLInputObjectType)return uc.default(e,t,[{text:"{"}]);if(m instanceof wa.GraphQLEnumType){var E=m.getValues();return uc.default(e,t,E.map(function(b){return{text:'"'+b.name+'"',type:m,description:b.description}}))}else if(m===wa.GraphQLBoolean)return uc.default(e,t,[{text:"true",type:wa.GraphQLBoolean,description:"Not false."},{text:"false",type:wa.GraphQLBoolean,description:"Not true."}])}}}function r$(e,t){var r={type:null,fields:null};return e$.default(t,function(n){if(n.kind==="Variable")r.type=e[n.name];else if(n.kind==="ListValue"){var a=r.type?wa.getNullableType(r.type):void 0;r.type=a instanceof wa.GraphQLList?a.ofType:null}else if(n.kind==="ObjectValue"){var o=r.type?wa.getNamedType(r.type):void 0;r.fields=o instanceof wa.GraphQLInputObjectType?o.getFields():null}else if(n.kind==="ObjectField"){var s=n.name&&r.fields?r.fields[n.name]:null;r.type=s&&s.type}}),r}});var JM=U(eD=>{"use strict";Object.defineProperty(eD,"__esModule",{value:!0});function n$(e){Na=e,Fm=e.length,Ir=cn=_p=-1,Rr(),jm();var t=zM();return uu("EOF"),t}eD.default=n$;var Na,Fm,Ir,cn,_p,Tt,ai;function zM(){var e=Ir,t=[];if(uu("{"),!Pm("}")){do t.push(i$());while(Pm(","));uu("}")}return{kind:"Object",start:e,end:_p,members:t}}function i$(){var e=Ir,t=ai==="String"?YM():null;uu("String"),uu(":");var r=WM();return{kind:"Member",start:e,end:_p,key:t,value:r}}function a$(){var e=Ir,t=[];if(uu("["),!Pm("]")){do t.push(WM());while(Pm(","));uu("]")}return{kind:"Array",start:e,end:_p,values:t}}function WM(){switch(ai){case"[":return a$();case"{":return zM();case"String":case"Number":case"Boolean":case"Null":var e=YM();return jm(),e}uu("Value")}function YM(){return{kind:ai,start:Ir,end:cn,value:JSON.parse(Na.slice(Ir,cn))}}function uu(e){if(ai===e){jm();return}var t;if(ai==="EOF")t="[end of file]";else if(cn-Ir>1)t="`"+Na.slice(Ir,cn)+"`";else{var r=Na.slice(Ir).match(/^.+?\b/);t="`"+(r?r[0]:Na[Ir])+"`"}throw sc("Expected "+e+" but found "+t+".")}function sc(e){return{message:e,start:Ir,end:cn}}function Pm(e){if(ai===e)return jm(),!0}function Rr(){return cn<Fm&&(cn++,Tt=cn===Fm?0:Na.charCodeAt(cn)),Tt}function jm(){for(_p=cn;Tt===9||Tt===10||Tt===13||Tt===32;)Rr();if(Tt===0){ai="EOF";return}switch(Ir=cn,Tt){case 34:return ai="String",o$();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return ai="Number",u$();case 102:if(Na.slice(Ir,Ir+5)!=="false")break;cn+=4,Rr(),ai="Boolean";return;case 110:if(Na.slice(Ir,Ir+4)!=="null")break;cn+=3,Rr(),ai="Null";return;case 116:if(Na.slice(Ir,Ir+4)!=="true")break;cn+=3,Rr(),ai="Boolean";return}ai=Na[Ir],Rr()}function o$(){for(Rr();Tt!==34&&Tt>31;)if(Tt===92)switch(Tt=Rr(),Tt){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Rr();break;case 117:Rr(),Mm(),Mm(),Mm(),Mm();break;default:throw sc("Bad character escape sequence.")}else{if(cn===Fm)throw sc("Unterminated string.");Rr()}if(Tt===34){Rr();return}throw sc("Unterminated string.")}function Mm(){if(Tt>=48&&Tt<=57||Tt>=65&&Tt<=70||Tt>=97&&Tt<=102)return Rr();throw sc("Expected hexadecimal digit.")}function u$(){Tt===45&&Rr(),Tt===48?Rr():$1(),Tt===46&&(Rr(),$1()),(Tt===69||Tt===101)&&(Tt=Rr(),(Tt===43||Tt===45)&&Rr(),$1())}function $1(){if(Tt<48||Tt>57)throw sc("Expected decimal digit.");do Rr();while(Tt>=48&&Tt<=57)}});var $M=U(cc=>{"use strict";var s$=cc&&cc.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(c){s={error:c}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},XM=cc&&cc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cc,"__esModule",{value:!0});var l$=XM(ct()),lc=Nt(),c$=XM(JM());l$.default.registerHelper("lint","graphql-variables",function(e,t,r){if(!e)return[];var n;try{n=c$.default(e)}catch(o){if(o.stack)throw o;return[tD(r,o,o.message)]}var a=t.variableToType;return a?f$(r,a,n):[]});function f$(e,t,r){var n=[];return r.members.forEach(function(a){var o;if(a){var s=(o=a.key)===null||o===void 0?void 0:o.value,c=t[s];c?Sp(c,a.value).forEach(function(d){var h=s$(d,2),m=h[0],E=h[1];n.push(tD(e,m,E))}):n.push(tD(e,a.key,'Variable "$'+s+'" does not appear in any GraphQL query.'))}}),n}function Sp(e,t){if(!e||!t)return[];if(e instanceof lc.GraphQLNonNull)return t.kind==="Null"?[[t,'Type "'+e+'" is non-nullable and cannot be null.']]:Sp(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof lc.GraphQLList){var r=e.ofType;if(t.kind==="Array"){var n=t.values||[];return ZM(n,function(s){return Sp(r,s)})}return Sp(r,t)}if(e instanceof lc.GraphQLInputObjectType){if(t.kind!=="Object")return[[t,'Type "'+e+'" must be an Object.']];var a=Object.create(null),o=ZM(t.members,function(s){var c,d=(c=s==null?void 0:s.key)===null||c===void 0?void 0:c.value;a[d]=!0;var h=e.getFields()[d];if(!h)return[[s.key,'Type "'+e+'" does not have a field "'+d+'".']];var m=h?h.type:void 0;return Sp(m,s.value)});return Object.keys(e.getFields()).forEach(function(s){if(!a[s]){var c=e.getFields()[s].type;c instanceof lc.GraphQLNonNull&&o.push([t,'Object of type "'+e+'" is missing required field "'+s+'".'])}}),o}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,'Expected value of type "'+e+'".']]:(e instanceof lc.GraphQLEnumType||e instanceof lc.GraphQLScalarType)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||d$(e.parseValue(t.value)))?[[t,'Expected value of type "'+e+'".']]:[]}function tD(e,t,r){return{message:r,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function d$(e){return e==null||e!==e}function ZM(e,t){return Array.prototype.concat.apply([],e.map(t))}});var tq=U(qm=>{"use strict";var p$=qm&&qm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qm,"__esModule",{value:!0});var h$=p$(ct()),lr=rc();h$.default.defineMode("graphql-variables",function(e){var t=lr.onlineParser({eatWhitespace:function(r){return r.eatSpace()},lexRules:g$,parseRules:m$,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:v$,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function v$(e,t){var r,n,a=e.levels,o=!a||a.length===0?e.indentLevel:a[a.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}var g$={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},m$={Document:[lr.p("{"),lr.list("Variable",lr.opt(lr.p(","))),lr.p("}")],Variable:[eq("variable"),lr.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[lr.t("Number","number")],StringValue:[lr.t("String","string")],BooleanValue:[lr.t("Keyword","builtin")],NullValue:[lr.t("Keyword","keyword")],ListValue:[lr.p("["),lr.list("Value",lr.opt(lr.p(","))),lr.p("]")],ObjectValue:[lr.p("{"),lr.list("ObjectField",lr.opt(lr.p(","))),lr.p("}")],ObjectField:[eq("attribute"),lr.p(":"),"Value"]};function eq(e){return{style:e,match:function(t){return t.kind==="String"},update:function(t,r){t.name=r.value.slice(1,-1)}}}});var iq=U((rq,nq)=>{(function(e){typeof rq=="object"&&typeof nq=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("javascript",function(t,r){var n=t.indentUnit,a=r.statementIndent,o=r.jsonld,s=r.json||o,c=r.trackScope!==!1,d=r.typescript,h=r.wordCharacters||/[\w$\xa1-\uffff]/,m=function(){function I(Vr){return{type:Vr,style:"keyword"}}var K=I("keyword a"),ne=I("keyword b"),se=I("keyword c"),Be=I("keyword d"),ot=I("operator"),_e={type:"atom",style:"atom"};return{if:I("if"),while:K,with:K,else:ne,do:ne,try:ne,finally:ne,return:Be,break:Be,continue:Be,new:I("new"),delete:se,void:se,throw:se,debugger:I("debugger"),var:I("var"),const:I("var"),let:I("var"),function:I("function"),catch:I("catch"),for:I("for"),switch:I("switch"),case:I("case"),default:I("default"),in:ot,typeof:ot,instanceof:ot,true:_e,false:_e,null:_e,undefined:_e,NaN:_e,Infinity:_e,this:I("this"),class:I("class"),super:I("atom"),yield:se,export:I("export"),import:I("import"),extends:se,await:se}}(),E=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function C(I){for(var K=!1,ne,se=!1;(ne=I.next())!=null;){if(!K){if(ne=="/"&&!se)return;ne=="["?se=!0:se&&ne=="]"&&(se=!1)}K=!K&&ne=="\\"}}var L,S;function y(I,K,ne){return L=I,S=ne,K}function T(I,K){var ne=I.next();if(ne=='"'||ne=="'")return K.tokenize=g(ne),K.tokenize(I,K);if(ne=="."&&I.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(ne=="."&&I.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ne))return y(ne);if(ne=="="&&I.eat(">"))return y("=>","operator");if(ne=="0"&&I.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(ne))return I.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(ne=="/")return I.eat("*")?(K.tokenize=k,k(I,K)):I.eat("/")?(I.skipToEnd(),y("comment","comment")):oe(I,K,1)?(C(I),I.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(I.eat("="),y("operator","operator",I.current()));if(ne=="`")return K.tokenize=N,N(I,K);if(ne=="#"&&I.peek()=="!")return I.skipToEnd(),y("meta","meta");if(ne=="#"&&I.eatWhile(h))return y("variable","property");if(ne=="<"&&I.match("!--")||ne=="-"&&I.match("->")&&!/\S/.test(I.string.slice(0,I.start)))return I.skipToEnd(),y("comment","comment");if(E.test(ne))return(ne!=">"||!K.lexical||K.lexical.type!=">")&&(I.eat("=")?(ne=="!"||ne=="=")&&I.eat("="):/[<>*+\-|&?]/.test(ne)&&(I.eat(ne),ne==">"&&I.eat(ne))),ne=="?"&&I.eat(".")?y("."):y("operator","operator",I.current());if(h.test(ne)){I.eatWhile(h);var se=I.current();if(K.lastType!="."){if(m.propertyIsEnumerable(se)){var Be=m[se];return y(Be.type,Be.style,se)}if(se=="async"&&I.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",se)}return y("variable","variable",se)}}function g(I){return function(K,ne){var se=!1,Be;if(o&&K.peek()=="@"&&K.match(b))return ne.tokenize=T,y("jsonld-keyword","meta");for(;(Be=K.next())!=null&&!(Be==I&&!se);)se=!se&&Be=="\\";return se||(ne.tokenize=T),y("string","string")}}function k(I,K){for(var ne=!1,se;se=I.next();){if(se=="/"&&ne){K.tokenize=T;break}ne=se=="*"}return y("comment","comment")}function N(I,K){for(var ne=!1,se;(se=I.next())!=null;){if(!ne&&(se=="`"||se=="$"&&I.eat("{"))){K.tokenize=T;break}ne=!ne&&se=="\\"}return y("quasi","string-2",I.current())}var w="([{}])";function D(I,K){K.fatArrowAt&&(K.fatArrowAt=null);var ne=I.string.indexOf("=>",I.start);if(!(ne<0)){if(d){var se=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(I.string.slice(I.start,ne));se&&(ne=se.index)}for(var Be=0,ot=!1,_e=ne-1;_e>=0;--_e){var Vr=I.string.charAt(_e),zn=w.indexOf(Vr);if(zn>=0&&zn<3){if(!Be){++_e;break}if(--Be==0){Vr=="("&&(ot=!0);break}}else if(zn>=3&&zn<6)++Be;else if(h.test(Vr))ot=!0;else if(/["'\/`]/.test(Vr))for(;;--_e){if(_e==0)return;var ms=I.string.charAt(_e-1);if(ms==Vr&&I.string.charAt(_e-2)!="\\"){_e--;break}}else if(ot&&!Be){++_e;break}}ot&&!Be&&(K.fatArrowAt=_e)}}var F={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function P(I,K,ne,se,Be,ot){this.indented=I,this.column=K,this.type=ne,this.prev=Be,this.info=ot,se!=null&&(this.align=se)}function B(I,K){if(!c)return!1;for(var ne=I.localVars;ne;ne=ne.next)if(ne.name==K)return!0;for(var se=I.context;se;se=se.prev)for(var ne=se.vars;ne;ne=ne.next)if(ne.name==K)return!0}function z(I,K,ne,se,Be){var ot=I.cc;for(G.state=I,G.stream=Be,G.marked=null,G.cc=ot,G.style=K,I.lexical.hasOwnProperty("align")||(I.lexical.align=!0);;){var _e=ot.length?ot.pop():s?tt:Ze;if(_e(ne,se)){for(;ot.length&&ot[ot.length-1].lex;)ot.pop()();return G.marked?G.marked:ne=="variable"&&B(I,se)?"variable-2":K}}}var G={state:null,column:null,marked:null,cc:null};function M(){for(var I=arguments.length-1;I>=0;I--)G.cc.push(arguments[I])}function j(){return M.apply(null,arguments),!0}function ce(I,K){for(var ne=K;ne;ne=ne.next)if(ne.name==I)return!0;return!1}function ke(I){var K=G.state;if(G.marked="def",!!c){if(K.context){if(K.lexical.info=="var"&&K.context&&K.context.block){var ne=pe(I,K.context);if(ne!=null){K.context=ne;return}}else if(!ce(I,K.localVars)){K.localVars=new qe(I,K.localVars);return}}r.globalVars&&!ce(I,K.globalVars)&&(K.globalVars=new qe(I,K.globalVars))}}function pe(I,K){if(K)if(K.block){var ne=pe(I,K.prev);return ne?ne==K.prev?K:new Ne(ne,K.vars,!0):null}else return ce(I,K.vars)?K:new Ne(K.prev,new qe(I,K.vars),!1);else return null}function we(I){return I=="public"||I=="private"||I=="protected"||I=="abstract"||I=="readonly"}function Ne(I,K,ne){this.prev=I,this.vars=K,this.block=ne}function qe(I,K){this.name=I,this.next=K}var ht=new qe("this",new qe("arguments",null));function at(){G.state.context=new Ne(G.state.context,G.state.localVars,!1),G.state.localVars=ht}function st(){G.state.context=new Ne(G.state.context,G.state.localVars,!0),G.state.localVars=null}function vt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}vt.lex=!0;function Oe(I,K){var ne=function(){var se=G.state,Be=se.indented;if(se.lexical.type=="stat")Be=se.lexical.indented;else for(var ot=se.lexical;ot&&ot.type==")"&&ot.align;ot=ot.prev)Be=ot.indented;se.lexical=new P(Be,G.stream.column(),I,null,se.lexical,K)};return ne.lex=!0,ne}function xe(){var I=G.state;I.lexical.prev&&(I.lexical.type==")"&&(I.indented=I.lexical.indented),I.lexical=I.lexical.prev)}xe.lex=!0;function Ue(I){function K(ne){return ne==I?j():I==";"||ne=="}"||ne==")"||ne=="]"?M():j(K)}return K}function Ze(I,K){return I=="var"?j(Oe("vardef",K),Ec,Ue(";"),xe):I=="keyword a"?j(Oe("form"),Xr,Ze,xe):I=="keyword b"?j(Oe("form"),Ze,xe):I=="keyword d"?G.stream.match(/^\s*$/,!1)?j():j(Oe("stat"),ee,Ue(";"),xe):I=="debugger"?j(Ue(";")):I=="{"?j(Oe("}"),st,Z,xe,vt):I==";"?j():I=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==xe&&G.state.cc.pop()(),j(Oe("form"),Xr,Ze,xe,Rp)):I=="function"?j(fi):I=="for"?j(Oe("form"),st,Fp,Ze,vt,xe):I=="class"||d&&K=="interface"?(G.marked="keyword",j(Oe("form",I=="class"?I:K),gs,xe)):I=="variable"?d&&K=="declare"?(G.marked="keyword",j(Ze)):d&&(K=="module"||K=="enum"||K=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",K=="enum"?j(ea):K=="type"?j(Pp,Ue("operator"),fe,Ue(";")):j(Oe("form"),hn,Ue("{"),Oe("}"),Z,xe,xe)):d&&K=="namespace"?(G.marked="keyword",j(Oe("form"),tt,Ze,xe)):d&&K=="abstract"?(G.marked="keyword",j(Ze)):j(Oe("stat"),xa):I=="switch"?j(Oe("form"),Xr,Ue("{"),Oe("}","switch"),st,Z,xe,xe,vt):I=="case"?j(tt,Ue(":")):I=="default"?j(Ue(":")):I=="catch"?j(Oe("form"),at,wn,Ze,xe,vt):I=="export"?j(Oe("stat"),Dc,xe):I=="import"?j(Oe("stat"),$t,xe):I=="async"?j(Ze):K=="@"?j(tt,Ze):M(Oe("stat"),tt,Ue(";"),xe)}function wn(I){if(I=="(")return j(Ra,Ue(")"))}function tt(I,K){return pn(I,K,!1)}function Mt(I,K){return pn(I,K,!0)}function Xr(I){return I!="("?M():j(Oe(")"),ee,Ue(")"),xe)}function pn(I,K,ne){if(G.state.fatArrowAt==G.stream.start){var se=ne?We:$e;if(I=="(")return j(at,Oe(")"),q(Ra,")"),xe,Ue("=>"),se,vt);if(I=="variable")return M(at,hn,Ue("=>"),se,vt)}var Be=ne?be:De;return F.hasOwnProperty(I)?j(Be):I=="function"?j(fi,Be):I=="class"||d&&K=="interface"?(G.marked="keyword",j(Oe("form"),vs,xe)):I=="keyword c"||I=="async"?j(ne?Mt:tt):I=="("?j(Oe(")"),ee,Ue(")"),xe,Be):I=="operator"||I=="spread"?j(ne?Mt:tt):I=="["?j(Oe("]"),gt,xe,Be):I=="{"?X(Nn,"}",null,Be):I=="quasi"?M(me,Be):I=="new"?j(rt(ne)):j()}function ee(I){return I.match(/[;\}\)\],]/)?M():M(tt)}function De(I,K){return I==","?j(ee):be(I,K,!1)}function be(I,K,ne){var se=ne==!1?De:be,Be=ne==!1?tt:Mt;if(I=="=>")return j(at,ne?We:$e,vt);if(I=="operator")return/\+\+|--/.test(K)||d&&K=="!"?j(se):d&&K=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?j(Oe(">"),q(fe,">"),xe,se):K=="?"?j(tt,Ue(":"),Be):j(Be);if(I=="quasi")return M(me,se);if(I!=";"){if(I=="(")return X(Mt,")","call",se);if(I==".")return j(Ia,se);if(I=="[")return j(Oe("]"),ee,Ue("]"),xe,se);if(d&&K=="as")return G.marked="keyword",j(fe,se);if(I=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),j(Be)}}function me(I,K){return I!="quasi"?M():K.slice(K.length-2)!="${"?j(me):j(ee,je)}function je(I){if(I=="}")return G.marked="string-2",G.state.tokenize=N,j(me)}function $e(I){return D(G.stream,G.state),M(I=="{"?Ze:tt)}function We(I){return D(G.stream,G.state),M(I=="{"?Ze:Mt)}function rt(I){return function(K){return K=="."?j(I?ao:li):K=="variable"&&d?j(ci,I?be:De):M(I?Mt:tt)}}function li(I,K){if(K=="target")return G.marked="keyword",j(De)}function ao(I,K){if(K=="target")return G.marked="keyword",j(be)}function xa(I){return I==":"?j(xe,Ze):M(De,Ue(";"),xe)}function Ia(I){if(I=="variable")return G.marked="property",j()}function Nn(I,K){if(I=="async")return G.marked="property",j(Nn);if(I=="variable"||G.style=="keyword"){if(G.marked="property",K=="get"||K=="set")return j(cu);var ne;return d&&G.state.fatArrowAt==G.stream.start&&(ne=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+ne[0].length),j(te)}else{if(I=="number"||I=="string")return G.marked=o?"property":G.style+" property",j(te);if(I=="jsonld-keyword")return j(te);if(d&&we(K))return G.marked="keyword",j(Nn);if(I=="[")return j(tt,H,Ue("]"),te);if(I=="spread")return j(Mt,te);if(K=="*")return G.marked="keyword",j(Nn);if(I==":")return M(te)}}function cu(I){return I!="variable"?M(te):(G.marked="property",j(fi))}function te(I){if(I==":")return j(Mt);if(I=="(")return M(fi)}function q(I,K,ne){function se(Be,ot){if(ne?ne.indexOf(Be)>-1:Be==","){var _e=G.state.lexical;return _e.info=="call"&&(_e.pos=(_e.pos||0)+1),j(function(Vr,zn){return Vr==K||zn==K?M():M(I)},se)}return Be==K||ot==K?j():ne&&ne.indexOf(";")>-1?M(I):j(Ue(K))}return function(Be,ot){return Be==K||ot==K?j():M(I,se)}}function X(I,K,ne){for(var se=3;se<arguments.length;se++)G.cc.push(arguments[se]);return j(Oe(K,ne),q(I,K),xe)}function Z(I){return I=="}"?j():M(Ze,Z)}function H(I,K){if(d){if(I==":")return j(fe);if(K=="?")return j(H)}}function R(I,K){if(d&&(I==":"||K=="in"))return j(fe)}function $(I){if(d&&I==":")return G.stream.match(/^\s*\w+\s+is\b/,!1)?j(tt,ie,fe):j(fe)}function ie(I,K){if(K=="is")return G.marked="keyword",j()}function fe(I,K){if(K=="keyof"||K=="typeof"||K=="infer"||K=="readonly")return G.marked="keyword",j(K=="typeof"?Mt:fe);if(I=="variable"||K=="void")return G.marked="type",j(gr);if(K=="|"||K=="&")return j(fe);if(I=="string"||I=="number"||I=="atom")return j(gr);if(I=="[")return j(Oe("]"),q(fe,"]",","),xe,gr);if(I=="{")return j(Oe("}"),It,xe,gr);if(I=="(")return j(q(Ye,")"),Qe,gr);if(I=="<")return j(q(fe,">"),fe);if(I=="quasi")return M(nr,gr)}function Qe(I){if(I=="=>")return j(fe)}function It(I){return I.match(/[\}\)\]]/)?j():I==","||I==";"?j(It):M(Dt,It)}function Dt(I,K){if(I=="variable"||G.style=="keyword")return G.marked="property",j(Dt);if(K=="?"||I=="number"||I=="string")return j(Dt);if(I==":")return j(fe);if(I=="[")return j(Ue("variable"),R,Ue("]"),Dt);if(I=="(")return M(Kn,Dt);if(!I.match(/[;\}\)\],]/))return j()}function nr(I,K){return I!="quasi"?M():K.slice(K.length-2)!="${"?j(nr):j(fe,Rt)}function Rt(I){if(I=="}")return G.marked="string-2",G.state.tokenize=N,j(nr)}function Ye(I,K){return I=="variable"&&G.stream.match(/^\s*[?:]/,!1)||K=="?"?j(Ye):I==":"?j(fe):I=="spread"?j(Ye):M(fe)}function gr(I,K){if(K=="<")return j(Oe(">"),q(fe,">"),xe,gr);if(K=="|"||I=="."||K=="&")return j(fe);if(I=="[")return j(fe,Ue("]"),gr);if(K=="extends"||K=="implements")return G.marked="keyword",j(fe);if(K=="?")return j(fe,Ue(":"),fe)}function ci(I,K){if(K=="<")return j(Oe(">"),q(fe,">"),xe,gr)}function Ri(){return M(fe,xp)}function xp(I,K){if(K=="=")return j(fe)}function Ec(I,K){return K=="enum"?(G.marked="keyword",j(ea)):M(hn,H,Zi,_c)}function hn(I,K){if(d&&we(K))return G.marked="keyword",j(hn);if(I=="variable")return ke(K),j();if(I=="spread")return j(hn);if(I=="[")return X(Tc,"]");if(I=="{")return X(Ip,"}")}function Ip(I,K){return I=="variable"&&!G.stream.match(/^\s*:/,!1)?(ke(K),j(Zi)):(I=="variable"&&(G.marked="property"),I=="spread"?j(hn):I=="}"?M():I=="["?j(tt,Ue("]"),Ue(":"),Ip):j(Ue(":"),hn,Zi))}function Tc(){return M(hn,Zi)}function Zi(I,K){if(K=="=")return j(Mt)}function _c(I){if(I==",")return j(Ec)}function Rp(I,K){if(I=="keyword b"&&K=="else")return j(Oe("form","else"),Ze,xe)}function Fp(I,K){if(K=="await")return j(Fp);if(I=="(")return j(Oe(")"),Sc,xe)}function Sc(I){return I=="var"?j(Ec,oo):I=="variable"?j(oo):M(oo)}function oo(I,K){return I==")"?j():I==";"?j(oo):K=="in"||K=="of"?(G.marked="keyword",j(tt,oo)):M(tt,oo)}function fi(I,K){if(K=="*")return G.marked="keyword",j(fi);if(I=="variable")return ke(K),j(fi);if(I=="(")return j(at,Oe(")"),q(Ra,")"),xe,$,Ze,vt);if(d&&K=="<")return j(Oe(">"),q(Ri,">"),xe,fi)}function Kn(I,K){if(K=="*")return G.marked="keyword",j(Kn);if(I=="variable")return ke(K),j(Kn);if(I=="(")return j(at,Oe(")"),q(Ra,")"),xe,$,vt);if(d&&K=="<")return j(Oe(">"),q(Ri,">"),xe,Kn)}function Pp(I,K){if(I=="keyword"||I=="variable")return G.marked="type",j(Pp);if(K=="<")return j(Oe(">"),q(Ri,">"),xe)}function Ra(I,K){return K=="@"&&j(tt,Ra),I=="spread"?j(Ra):d&&we(K)?(G.marked="keyword",j(Ra)):d&&I=="this"?j(H,Zi):M(hn,H,Zi)}function vs(I,K){return I=="variable"?gs(I,K):Fi(I,K)}function gs(I,K){if(I=="variable")return ke(K),j(Fi)}function Fi(I,K){if(K=="<")return j(Oe(">"),q(Ri,">"),xe,Fi);if(K=="extends"||K=="implements"||d&&I==",")return K=="implements"&&(G.marked="keyword"),j(d?fe:tt,Fi);if(I=="{")return j(Oe("}"),Pi,xe)}function Pi(I,K){if(I=="async"||I=="variable"&&(K=="static"||K=="get"||K=="set"||d&&we(K))&&G.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return G.marked="keyword",j(Pi);if(I=="variable"||G.style=="keyword")return G.marked="property",j(Hn,Pi);if(I=="number"||I=="string")return j(Hn,Pi);if(I=="[")return j(tt,H,Ue("]"),Hn,Pi);if(K=="*")return G.marked="keyword",j(Pi);if(d&&I=="(")return M(Kn,Pi);if(I==";"||I==",")return j(Pi);if(I=="}")return j();if(K=="@")return j(tt,Pi)}function Hn(I,K){if(K=="!"||K=="?")return j(Hn);if(I==":")return j(fe,Zi);if(K=="=")return j(Mt);var ne=G.state.lexical.prev,se=ne&&ne.info=="interface";return M(se?Kn:fi)}function Dc(I,K){return K=="*"?(G.marked="keyword",j(An,Ue(";"))):K=="default"?(G.marked="keyword",j(tt,Ue(";"))):I=="{"?j(q(kc,"}"),An,Ue(";")):M(Ze)}function kc(I,K){if(K=="as")return G.marked="keyword",j(Ue("variable"));if(I=="variable")return M(Mt,kc)}function $t(I){return I=="string"?j():I=="("?M(tt):I=="."?M(De):M(Ae,$i,An)}function Ae(I,K){return I=="{"?X(Ae,"}"):(I=="variable"&&ke(K),K=="*"&&(G.marked="keyword"),j(Cc))}function $i(I){if(I==",")return j(Ae,$i)}function Cc(I,K){if(K=="as")return G.marked="keyword",j(Ae)}function An(I,K){if(K=="from")return G.marked="keyword",j(tt)}function gt(I){return I=="]"?j():M(q(Mt,"]"))}function ea(){return M(Oe("form"),hn,Ue("{"),Oe("}"),q(fu,"}"),xe,xe)}function fu(){return M(hn,Zi)}function Oc(I,K){return I.lastType=="operator"||I.lastType==","||E.test(K.charAt(0))||/[,.]/.test(K.charAt(0))}function oe(I,K,ne){return K.tokenize==T&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(K.lastType)||K.lastType=="quasi"&&/\{\s*$/.test(I.string.slice(0,I.pos-(ne||0)))}return{startState:function(I){var K={tokenize:T,lastType:"sof",cc:[],lexical:new P((I||0)-n,0,"block",!1),localVars:r.localVars,context:r.localVars&&new Ne(null,null,!1),indented:I||0};return r.globalVars&&typeof r.globalVars=="object"&&(K.globalVars=r.globalVars),K},token:function(I,K){if(I.sol()&&(K.lexical.hasOwnProperty("align")||(K.lexical.align=!1),K.indented=I.indentation(),D(I,K)),K.tokenize!=k&&I.eatSpace())return null;var ne=K.tokenize(I,K);return L=="comment"?ne:(K.lastType=L=="operator"&&(S=="++"||S=="--")?"incdec":L,z(K,ne,L,S,I))},indent:function(I,K){if(I.tokenize==k||I.tokenize==N)return e.Pass;if(I.tokenize!=T)return 0;var ne=K&&K.charAt(0),se=I.lexical,Be;if(!/^\s*else\b/.test(K))for(var ot=I.cc.length-1;ot>=0;--ot){var _e=I.cc[ot];if(_e==xe)se=se.prev;else if(_e!=Rp&&_e!=vt)break}for(;(se.type=="stat"||se.type=="form")&&(ne=="}"||(Be=I.cc[I.cc.length-1])&&(Be==De||Be==be)&&!/^[,\.=+\-*:?[\(]/.test(K));)se=se.prev;a&&se.type==")"&&se.prev.type=="stat"&&(se=se.prev);var Vr=se.type,zn=ne==Vr;return Vr=="vardef"?se.indented+(I.lastType=="operator"||I.lastType==","?se.info.length+1:0):Vr=="form"&&ne=="{"?se.indented:Vr=="form"?se.indented+n:Vr=="stat"?se.indented+(Oc(I,K)?a||n:0):se.info=="switch"&&!zn&&r.doubleIndentSwitch!=!1?se.indented+(/^(?:case|default)\b/.test(K)?n:2*n):se.align?se.column+(zn?0:1):se.indented+(zn?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:o,jsonMode:s,expressionAllowed:oe,skipExpression:function(I){z(I,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var aq=U(Vm=>{"use strict";var E$=Vm&&Vm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vm,"__esModule",{value:!0});var T$=E$(ct()),vr=rc();T$.default.defineMode("graphql-results",function(e){var t=vr.onlineParser({eatWhitespace:function(r){return r.eatSpace()},lexRules:S$,parseRules:D$,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:_$,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function _$(e,t){var r,n,a=e.levels,o=!a||a.length===0?e.indentLevel:a[a.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}var S$={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},D$={Document:[vr.p("{"),vr.list("Entry",vr.p(",")),vr.p("}")],Entry:[vr.t("String","def"),vr.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[vr.t("Number","number")],StringValue:[vr.t("String","string")],BooleanValue:[vr.t("Keyword","builtin")],NullValue:[vr.t("Keyword","keyword")],ListValue:[vr.p("["),vr.list("Value",vr.p(",")),vr.p("]")],ObjectValue:[vr.p("{"),vr.list("ObjectField",vr.p(",")),vr.p("}")],ObjectField:[vr.t("String","property"),vr.p(":"),"Value"]}});var qq=U((uue,Mq)=>{Mq.exports=vc;function vc(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}vc.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};vc.prototype.reset=function(){this.attempts=0};vc.prototype.setMin=function(e){this.ms=e};vc.prototype.setMax=function(e){this.max=e};vc.prototype.setJitter=function(e){this.jitter=e}});var Vq=U((sue,wD)=>{"use strict";var dee=Object.prototype.hasOwnProperty,Cn="~";function Lp(){}Object.create&&(Lp.prototype=Object.create(null),new Lp().__proto__||(Cn=!1));function pee(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Bq(e,t,r,n,a){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new pee(r,n||e,a),s=Cn?Cn+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function Wm(e,t){--e._eventsCount==0?e._events=new Lp:delete e._events[t]}function dn(){this._events=new Lp,this._eventsCount=0}dn.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)dee.call(r,n)&&t.push(Cn?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};dn.prototype.listeners=function(t){var r=Cn?Cn+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,s=new Array(o);a<o;a++)s[a]=n[a].fn;return s};dn.prototype.listenerCount=function(t){var r=Cn?Cn+t:t,n=this._events[r];return n?n.fn?1:n.length:0};dn.prototype.emit=function(t,r,n,a,o,s){var c=Cn?Cn+t:t;if(!this._events[c])return!1;var d=this._events[c],h=arguments.length,m,E;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,r),!0;case 3:return d.fn.call(d.context,r,n),!0;case 4:return d.fn.call(d.context,r,n,a),!0;case 5:return d.fn.call(d.context,r,n,a,o),!0;case 6:return d.fn.call(d.context,r,n,a,o,s),!0}for(E=1,m=new Array(h-1);E<h;E++)m[E-1]=arguments[E];d.fn.apply(d.context,m)}else{var b=d.length,C;for(E=0;E<b;E++)switch(d[E].once&&this.removeListener(t,d[E].fn,void 0,!0),h){case 1:d[E].fn.call(d[E].context);break;case 2:d[E].fn.call(d[E].context,r);break;case 3:d[E].fn.call(d[E].context,r,n);break;case 4:d[E].fn.call(d[E].context,r,n,a);break;default:if(!m)for(C=1,m=new Array(h-1);C<h;C++)m[C-1]=arguments[C];d[E].fn.apply(d[E].context,m)}}return!0};dn.prototype.on=function(t,r,n){return Bq(this,t,r,n,!1)};dn.prototype.once=function(t,r,n){return Bq(this,t,r,n,!0)};dn.prototype.removeListener=function(t,r,n,a){var o=Cn?Cn+t:t;if(!this._events[o])return this;if(!r)return Wm(this,o),this;var s=this._events[o];if(s.fn)s.fn===r&&(!a||s.once)&&(!n||s.context===n)&&Wm(this,o);else{for(var c=0,d=[],h=s.length;c<h;c++)(s[c].fn!==r||a&&!s[c].once||n&&s[c].context!==n)&&d.push(s[c]);d.length?this._events[o]=d.length===1?d[0]:d:Wm(this,o)}return this};dn.prototype.removeAllListeners=function(t){var r;return t?(r=Cn?Cn+t:t,this._events[r]&&Wm(this,r)):(this._events=new Lp,this._eventsCount=0),this};dn.prototype.off=dn.prototype.removeListener;dn.prototype.addListener=dn.prototype.on;dn.prefixed=Cn;dn.EventEmitter=dn;typeof wD!="undefined"&&(wD.exports=dn)});var Uq=U(ND=>{"use strict";Object.defineProperty(ND,"__esModule",{value:!0});function hee(e){return typeof e=="string"}ND.default=hee});var Gq=U(AD=>{"use strict";Object.defineProperty(AD,"__esModule",{value:!0});function vee(e){return e!==null&&typeof e=="object"}AD.default=vee});var Qq=U(LD=>{"use strict";Object.defineProperty(LD,"__esModule",{value:!0});LD.default=gee;function gee(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}});var Kq=U((xD,ID)=>{"use strict";Object.defineProperty(xD,"__esModule",{value:!0});var mee=Qq(),yee=bee(mee);function bee(e){return e&&e.__esModule?e:{default:e}}var gc;typeof self!="undefined"?gc=self:typeof window!="undefined"||typeof window!="undefined"?gc=window:typeof ID!="undefined"?gc=ID:gc=Function("return this")();var Eee=(0,yee.default)(gc);xD.default=Eee});var Hq=U(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.GRAPHQL_SUBSCRIPTIONS=mc.GRAPHQL_WS=void 0;var Tee="graphql-ws";mc.GRAPHQL_WS=Tee;var _ee="graphql-subscriptions";mc.GRAPHQL_SUBSCRIPTIONS=_ee});var zq=U(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.WS_TIMEOUT=yc.MIN_WS_TIMEOUT=void 0;var See=1e3;yc.MIN_WS_TIMEOUT=See;var Dee=3e4;yc.WS_TIMEOUT=Dee});var Wq=U(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});var kee=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();RD.default=kee});var e3=U(Ii=>{"use strict";var bc=Ii&&Ii.__assign||function(){return bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},bc.apply(this,arguments)},Cee=Ii&&Ii.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(E){s(E)}}function d(m){try{h(n.throw(m))}catch(E){s(E)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})},Oee=Ii&&Ii.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(h){return function(m){return d([h,m])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(o=h[0]&2?a.return:h[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,h[1])).done)return o;switch(a=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,a=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(m){h=[6,m],a=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Yq=Ii&&Ii.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n};Object.defineProperty(Ii,"__esModule",{value:!0});Ii.SubscriptionClient=void 0;var Jq=typeof window!="undefined"||typeof window!="undefined"?window:{},wee=Jq.WebSocket||Jq.MozWebSocket,Xq=qq(),Nee=Vq(),Zq=Uq(),Aee=Gq(),Lee=jn(),xee=gS(),Iee=Kq(),Ree=Hq(),$q=zq(),On=Wq(),Fee=function(){function e(t,r,n,a){var o=r||{},s=o.connectionCallback,c=s===void 0?void 0:s,d=o.connectionParams,h=d===void 0?{}:d,m=o.minTimeout,E=m===void 0?$q.MIN_WS_TIMEOUT:m,b=o.timeout,C=b===void 0?$q.WS_TIMEOUT:b,L=o.reconnect,S=L===void 0?!1:L,y=o.reconnectionAttempts,T=y===void 0?1/0:y,g=o.lazy,k=g===void 0?!1:g,N=o.inactivityTimeout,w=N===void 0?0:N,D=o.wsOptionArguments,F=D===void 0?[]:D;if(this.wsImpl=n||wee,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=a||Ree.GRAPHQL_WS,this.connectionCallback=c,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=E,this.wsTimeout=C,this.unsentMessagesQueue=[],this.reconnect=S,this.reconnecting=!1,this.reconnectionAttempts=T,this.lazy=!!k,this.inactivityTimeout=w,this.closedByUser=!1,this.backoff=new Xq({jitter:.5}),this.eventEmitter=new Nee.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=F,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return this.client===null?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(t,r){t===void 0&&(t=!0),r===void 0&&(r=!0),this.clearInactivityTimeout(),this.client!==null&&(this.closedByUser=r,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,On.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},e.prototype.request=function(t){var r,n=this.getObserver.bind(this),a=this.executeOperation.bind(this),o=this.unsubscribe.bind(this),s;return this.clearInactivityTimeout(),r={},r[Iee.default]=function(){return this},r.subscribe=function(c,d,h){var m=n(c,d,h);return s=a(t,function(E,b){E===null&&b===null?m.complete&&m.complete():E?m.error&&m.error(E[0]):m.next&&m.next(b)}),{unsubscribe:function(){s&&(o(s),s=null)}}},r},e.prototype.on=function(t,r,n){var a=this.eventEmitter.on(t,r,n);return function(){a.off(t,r,n)}},e.prototype.onConnected=function(t,r){return this.on("connected",t,r)},e.prototype.onConnecting=function(t,r){return this.on("connecting",t,r)},e.prototype.onDisconnected=function(t,r){return this.on("disconnected",t,r)},e.prototype.onReconnected=function(t,r){return this.on("reconnected",t,r)},e.prototype.onReconnecting=function(t,r){return this.on("reconnecting",t,r)},e.prototype.onError=function(t,r){return this.on("error",t,r)},e.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(r){t.unsubscribe(r)})},e.prototype.applyMiddlewares=function(t){var r=this;return new Promise(function(n,a){var o=function(s,c){var d=function(h){if(h)a(h);else if(s.length>0){var m=s.shift();m&&m.applyMiddleware.apply(c,[t,d])}else n(t)};d()};o(Yq(r.middlewares),r)})},e.prototype.use=function(t){var r=this;return t.map(function(n){if(typeof n.applyMiddleware=="function")r.middlewares.push(n);else throw new Error("Middleware must implement the applyMiddleware function.")}),this},e.prototype.getConnectionParams=function(t){return function(){return new Promise(function(r,n){if(typeof t=="function")try{return r(t.call(null))}catch(a){return n(a)}r(t)})}},e.prototype.executeOperation=function(t,r){var n=this;this.client===null&&this.connect();var a=this.generateOperationId();return this.operations[a]={options:t,handler:r},this.applyMiddlewares(t).then(function(o){n.checkOperationOptions(o,r),n.operations[a]&&(n.operations[a]={options:o,handler:r},n.sendMessage(a,On.default.GQL_START,o))}).catch(function(o){n.unsubscribe(a),r(n.formatErrors(o))}),a},e.prototype.getObserver=function(t,r,n){return typeof t=="function"?{next:function(a){return t(a)},error:function(a){return r&&r(a)},complete:function(){return n&&n()}}:t},e.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,r=this.wsTimeout;return new Xq({min:t,max:r,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&Object.keys(this.operations).length===0&&(this.inactivityTimeoutId=setTimeout(function(){Object.keys(t.operations).length===0&&t.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(t,r){var n=t.query,a=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!r)throw new Error("Must provide an handler.");if(!Zq.default(n)&&!xee.getOperationAST(n,o)||o&&!Zq.default(o)||a&&!Aee.default(a))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(t,r,n){var a=n&&n.query?bc(bc({},n),{query:typeof n.query=="string"?n.query:Lee.print(n.query)}):n;return{id:t,type:r,payload:a}},e.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},e.prototype.sendMessage=function(t,r,n){this.sendMessageRaw(this.buildMessage(t,r,n))},e.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var r=JSON.stringify(t);try{JSON.parse(r)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(r);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var t=this;if(!(!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){t.unsentMessagesQueue.push(t.buildMessage(n,On.default.GQL_START,t.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var r=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},r)}},e.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(r){t.sendMessageRaw(r)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){if(this.wasKeepAliveReceived){this.wasKeepAliveReceived=!1;return}this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var t,r=this;this.client=new((t=this.wsImpl).bind.apply(t,Yq([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return Cee(r,void 0,void 0,function(){var n,a;return Oee(this,function(o){switch(o.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=o.sent(),this.sendMessage(void 0,On.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return a=o.sent(),this.sendMessage(void 0,On.default.GQL_CONNECTION_ERROR,a),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){r.closedByUser||r.close(!1,!1)},this.client.onerror=function(n){r.eventEmitter.emit("error",n)},this.client.onmessage=function(n){var a=n.data;r.processReceivedData(a)}},e.prototype.processReceivedData=function(t){var r,n;try{r=JSON.parse(t),n=r.id}catch(c){throw new Error("Message must be JSON-parseable. Got: "+t)}if([On.default.GQL_DATA,On.default.GQL_COMPLETE,On.default.GQL_ERROR].indexOf(r.type)!==-1&&!this.operations[n]){this.unsubscribe(n);return}switch(r.type){case On.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(r.payload);break;case On.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",r.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case On.default.GQL_COMPLETE:var a=this.operations[n].handler;delete this.operations[n],a.call(this,null,null);break;case On.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(r.payload),null),delete this.operations[n];break;case On.default.GQL_DATA:var o=r.payload.errors?bc(bc({},r.payload),{errors:this.formatErrors(r.payload.errors)}):r.payload;this.operations[n].handler(null,o);break;case On.default.GQL_CONNECTION_KEEP_ALIVE:var s=typeof this.wasKeepAliveReceived=="undefined";this.wasKeepAliveReceived=!0,s&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}},e.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,On.default.GQL_STOP,void 0))},e}();Ii.SubscriptionClient=Fee});var Pee=ze(Ft()),jee=ze(aE());var Xe=ze(Ft()),Xi=ze(Nt()),kq=ze(qI()),Cq=ze(is());var no=ze(Ft()),CW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),XI=function(e){CW(t,e);function t(r){var n=e.call(this,r)||this;return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(a){n.setState({optionsOpen:!1}),n.props.onRun(a.name&&a.name.value)},n._onOptionsOpen=function(a){var o=!0,s=a.currentTarget;n.setState({highlight:null,optionsOpen:!0});var c=function(d){var h;if(o&&d.target===s)o=!1;else{document.removeEventListener("mouseup",c),c=null;var m=d.currentTarget&&((h=s.parentNode)===null||h===void 0?void 0:h.compareDocumentPosition(d.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;m||n.setState({optionsOpen:!1})}};document.addEventListener("mouseup",c)},n.state={optionsOpen:!1,highlight:null},n}return t.prototype.render=function(){var r=this,n=this.props.operations||[],a=this.state.optionsOpen,o=n&&n.length>1,s=null;if(o&&a){var c=this.state.highlight;s=no.default.createElement("ul",{className:"execute-options"},n.map(function(E,b){var C=E.name?E.name.value:"<Unnamed "+E.operation+">";return no.default.createElement("li",{key:C+"-"+b,className:E===c?"selected":void 0,onMouseOver:function(){return r.setState({highlight:E})},onMouseOut:function(){return r.setState({highlight:null})},onMouseUp:function(){return r._onOptionSelected(E)}},C)}))}var d;(this.props.isRunning||!o)&&(d=this._onClick);var h=function(){};!this.props.isRunning&&o&&!a&&(h=this._onOptionsOpen);var m=this.props.isRunning?no.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):no.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return no.default.createElement("div",{className:"execute-button-wrap"},no.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:h,onClick:d,title:"Execute Query (Ctrl-Enter)"},no.default.createElement("svg",{width:"34",height:"34"},m)),s)},t}(no.default.Component);var ep=ze(Ft()),OW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();function ZI(e){if(e.type==="string"){var t=e.string.slice(1).slice(0,-1).trim();try{var r=window.location;return new URL(t,r.protocol+"//"+r.host)}catch(n){return}}}function wW(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}var $I=function(e){OW(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._node=null,r.state={width:null,height:null,src:null,mime:null},r}return t.shouldRender=function(r){var n=ZI(r);return n?wW(n):!1},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var r=this,n,a=null;if(this.state.width!==null&&this.state.height!==null){var o=this.state.width+"x"+this.state.height;this.state.mime!==null&&(o+=" "+this.state.mime),a=ep.default.createElement("div",null,o)}return ep.default.createElement("div",null,ep.default.createElement("img",{onLoad:function(){return r._updateMetadata()},ref:function(s){r._node=s},src:(n=ZI(this.props.token))===null||n===void 0?void 0:n.href}),a)},t.prototype._updateMetadata=function(){var r=this;if(!!this._node){var n=this._node.naturalWidth,a=this._node.naturalHeight,o=this._node.src;o!==this.state.src&&(this.setState({src:o}),fetch(o,{method:"HEAD"}).then(function(s){r.setState({mime:s.headers.get("Content-Type")})})),(n!==this.state.width||a!==this.state.height)&&this.setState({height:a,width:n})}},t}(ep.default.Component);var GS=ze(Ft()),NW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),tu=function(e){NW(t,e);function t(r){var n=e.call(this,r)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(a){n.setState({error:a})}},n.state={error:null},n}return t.prototype.render=function(){var r=this.state.error;return GS.default.createElement("button",{className:"toolbar-button"+(r?" error":""),onClick:this.handleClick,title:r?r.message:this.props.title,"aria-invalid":r?"true":"false"},this.props.label)},t}(GS.default.Component);var eR=ze(Ft());function QS(e){var t=e.children;return eR.default.createElement("div",{className:"toolbar-button-group"},t)}var as=ze(Ft()),AW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),KS=function(e){AW(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(a){HS(a),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var r=this,n=this.state.visible;return as.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:HS,ref:function(a){a&&(r._node=a)},title:this.props.title},this.props.label,as.default.createElement("svg",{width:"14",height:"8"},as.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),as.default.createElement("ul",{className:"toolbar-menu-items"+(n?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(r){this._node!==r.target&&(r.preventDefault(),this.setState({visible:!1}),this._release())},t}(as.default.Component);var tR=function(e){var t=e.onSelect,r=e.title,n=e.label;return as.default.createElement("li",{onMouseOver:function(a){a.currentTarget.className="hover"},onMouseOut:function(a){a.currentTarget.className=""},onMouseDown:HS,onMouseUp:t,title:r},n)};function HS(e){e.preventDefault()}var Y1=ze(Ft()),GM=ze(pm());var UJ=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029","\u202F","\xA0"]),GJ=new RegExp("["+UJ.join("")+"]","g");function lj(e){return e.replace(GJ," ")}var hm=ze(Nt()),cj=ze(pm()),fj=new cj.default;function ru(e,t,r){var n=ct(),a,o;n.on(t,"select",function(s,c){if(!a){var d=c.parentNode;a=document.createElement("div"),a.className="CodeMirror-hint-information",d.appendChild(a),o=document.createElement("div"),o.className="CodeMirror-hint-deprecation",d.appendChild(o);var h;d.addEventListener("DOMNodeRemoved",h=function(C){C.target===d&&(d.removeEventListener("DOMNodeRemoved",h),a=null,o=null,h=null)})}var m=s.description?fj.render(s.description):"Self descriptive.",E=s.type?'<span class="infoType">'+b1(s.type)+"</span>":"";if(a.innerHTML='<div class="content">'+(m.slice(0,3)==="<p>"?"<p>"+E+m.slice(3):E+m)+"</div>",s&&o&&s.isDeprecated){var b=s.deprecationReason?fj.render(s.deprecationReason):"";o.innerHTML='<span class="deprecation-label">Deprecated</span>'+b,o.style.display="block"}else o&&(o.style.display="none");r&&r(a)})}function b1(e){return e instanceof hm.GraphQLNonNull?b1(e.ofType)+"!":e instanceof hm.GraphQLList?"["+b1(e.ofType)+"]":'<a class="typeName">'+e.name+"</a>"}var io,dj=!1;typeof window=="object"&&(dj=window.navigator.platform==="MacIntel");var QJ=(io={},io[dj?"Cmd-F":"Ctrl-F"]="findPersistent",io["Cmd-G"]="findPersistent",io["Ctrl-G"]="findPersistent",io["Ctrl-Left"]="goSubwordLeft",io["Ctrl-Right"]="goSubwordRight",io["Alt-Left"]="goGroupLeft",io["Alt-Right"]="goGroupRight",io),nu=QJ;var zZ=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Lm=function(){return Lm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Lm.apply(this,arguments)},WZ=new GM.default,YZ=/^[a-zA-Z0-9_@(]$/,xm=function(e){zZ(t,e);function t(r){var n=e.call(this,r)||this;return n.editor=null,n.ignoreChangeEvent=!1,n._node=null,n._onKeyUp=function(a,o){YZ.test(o.key)&&n.editor&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.ignoreChangeEvent&&n.editor&&(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(a,o){ru(a,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this,n,a,o,s=ct();op(),mj(),up(),vm(),sp(),lp(),E1(),ss(),cp(),ls(),gm(),fp(),CM(),wM(),PM(),VM(),UM();var c=this.editor=s(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},lint:{schema:this.props.schema,validationRules:(n=this.props.validationRules)!==null&&n!==void 0?n:null,externalFragments:(a=this.props)===null||a===void 0?void 0:a.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:(o=this.props)===null||o===void 0?void 0:o.externalFragments},info:{schema:this.props.schema,renderDescription:function(d){return WZ.render(d)},onClick:function(d){return r.props.onClickReference&&r.props.onClickReference(d)}},jump:{schema:this.props.schema,onClick:function(d){return r.props.onClickReference&&r.props.onClickReference(d)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Lm(Lm({"Cmd-Space":function(){return c.showHint({completeSingle:!0,container:r._node})},"Ctrl-Space":function(){return c.showHint({completeSingle:!0,container:r._node})},"Alt-Space":function(){return c.showHint({completeSingle:!0,container:r._node})},"Shift-Space":function(){return c.showHint({completeSingle:!0,container:r._node})},"Shift-Alt-Space":function(){return c.showHint({completeSingle:!0,container:r._node})},"Cmd-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Ctrl-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Shift-Ctrl-C":function(){r.props.onCopyQuery&&r.props.onCopyQuery()},"Shift-Ctrl-P":function(){r.props.onPrettifyQuery&&r.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){r.props.onPrettifyQuery&&r.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){r.props.onMergeQuery&&r.props.onMergeQuery()}},nu),{"Cmd-S":function(){r.props.onRunQuery},"Ctrl-S":function(){r.props.onRunQuery}})});c&&(c.on("change",this._onEdit),c.on("keyup",this._onKeyUp),c.on("hasCompletion",this._onHasCompletion),c.on("beforeChange",this._onBeforeChange))},t.prototype.componentDidUpdate=function(r){var n=ct();this.ignoreChangeEvent=!0,this.props.schema!==r.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,n.signal(this.editor,"change",this.editor)),this.props.value!==r.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return Y1.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(n){r._node=n}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t.prototype._onBeforeChange=function(r,n){if(n.origin==="paste"){var a=n.text.map(lj);n.update(n.from,n.to,a)}},t}(Y1.default.Component);var nD=ze(Ft());var y$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),rD=function(){return rD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},rD.apply(this,arguments)},Bm=function(e){y$(t,e);function t(r){var n=e.call(this,r)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(a,o){var s=o.keyCode;!n.editor||(s>=65&&s<=90||!o.shiftKey&&s>=48&&s<=57||o.shiftKey&&s===189||o.shiftKey&&s===222)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.editor||n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(a,o){ru(a,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.CodeMirror=ct(),op(),up(),vm(),lp(),sp(),gm(),ss(),cp(),ls(),fp(),HM(),$M(),tq();var n=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:rD({"Cmd-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Ctrl-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Alt-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Shift-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Cmd-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Ctrl-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Shift-Ctrl-P":function(){r.props.onPrettifyQuery&&r.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){r.props.onMergeQuery&&r.props.onMergeQuery()}},nu)});n.on("change",this._onEdit),n.on("keyup",this._onKeyUp),n.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(r){if(this.CodeMirror=ct(),!!this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==r.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==r.value&&this.props.value!==this.cachedValue){var n=this.props.value||"";this.cachedValue=n,this.editor.setValue(n)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return nD.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(n){r._node=n}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(nD.default.Component);var aD=ze(Ft());var b$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),iD=function(){return iD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},iD.apply(this,arguments)},oD=function(e){b$(t,e);function t(r){var n=e.call(this,r)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(a,o){var s=o.keyCode;!n.editor||(s>=65&&s<=90||!o.shiftKey&&s>=48&&s<=57||o.shiftKey&&s===189||o.shiftKey&&s===222)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.editor||n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(a,o){ru(a,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.CodeMirror=ct(),op(),up(),vm(),lp(),sp(),gm(),ss(),cp(),ls(),iq(),fp();var n=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:iD({"Cmd-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Ctrl-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Alt-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Shift-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Cmd-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Ctrl-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Shift-Ctrl-P":function(){r.props.onPrettifyQuery&&r.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){r.props.onMergeQuery&&r.props.onMergeQuery()}},nu)});n.on("change",this._onEdit),n.on("keyup",this._onKeyUp),n.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(r){if(this.CodeMirror=ct(),!!this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==r.value&&this.props.value!==this.cachedValue){var n=this.props.value||"";this.cachedValue=n,this.editor.setValue(n)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return aD.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(n){r._node=n}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(aD.default.Component);var fc=ze(Ft()),uD=ze(aE());var k$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),sD=function(e){k$(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.viewer=null,r._node=null,r}return t.prototype.componentDidMount=function(){var r=ct();sp(),lp(),ls(),E1(),ss(),cp(),fp(),aq();var n=this.props.ResultsTooltip,a=this.props.ImagePreview;if(n||a){W1();var o=document.createElement("div");r.registerHelper("info","graphql-results",function(s,c,d,h){var m=[];return n&&m.push(fc.default.createElement(n,{pos:h})),a&&typeof a.shouldRender=="function"&&a.shouldRender(s)&&m.push(fc.default.createElement(a,{token:s})),m.length?(uD.default.render(fc.default.createElement("div",null,m),o),o):(uD.default.unmountComponentAtNode(o),null)})}this.viewer=r(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:nu})},t.prototype.shouldComponentUpdate=function(r){return this.props.value!==r.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var r=this;return fc.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(n){n&&(r.props.registerRef(n),r._node=n)}})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(fc.default.Component);var fn=ze(Ft()),gD=ze(Nt());var Br=ze(Ft());var kp=ze(Ft());var Um=ze(Ft()),Gm=ze(Nt());function kn(e){var t=e.onClick?e.onClick:function(){return null};return lD(e.type,t)}function lD(e,t){return e instanceof Gm.GraphQLNonNull?Um.default.createElement("span",null,lD(e.ofType,t),"!"):e instanceof Gm.GraphQLList?Um.default.createElement("span",null,"[",lD(e.ofType,t),"]"):Um.default.createElement("a",{className:"type-name",onClick:function(r){r.preventDefault(),t(e,r)},href:"#"},e==null?void 0:e.name)}var cD=ze(Ft()),Qm=ze(Nt()),C$=function(e){return e?(0,Qm.print)(e):""};function Dp(e){var t=e.field;return"defaultValue"in t&&t.defaultValue!==void 0?cD.default.createElement("span",null," = ",cD.default.createElement("span",{className:"arg-default-value"},C$((0,Qm.astFromValue)(t.defaultValue,t.type)))):null}function ps(e){var t=e.arg,r=e.onClickType,n=e.showDefaultValue;return kp.default.createElement("span",{className:"arg"},kp.default.createElement("span",{className:"arg-name"},t.name),": ",kp.default.createElement(kn,{type:t.type,onClick:r}),n!==!1&&kp.default.createElement(Dp,{field:t}))}var oq=ze(Ft());function fD(e){var t=e.directive;return oq.default.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var dD=ze(Ft()),uq=ze(pm()),O$=new uq.default;function oi(e){var t=e.markdown,r=e.className;return t?dD.default.createElement("div",{className:r,dangerouslySetInnerHTML:{__html:O$.render(t)}}):dD.default.createElement("div",null)}function pD(e){var t=e.field,r=e.onClickType,n;t&&"args"in t&&t.args.length>0&&(n=Br.default.createElement("div",{className:"doc-category"},Br.default.createElement("div",{className:"doc-category-title"},"arguments"),t.args.map(function(o){return Br.default.createElement("div",{key:o.name,className:"doc-category-item"},Br.default.createElement("div",null,Br.default.createElement(ps,{arg:o,onClickType:r})),Br.default.createElement(oi,{className:"doc-value-description",markdown:o.description}))})));var a;return t&&t.astNode&&t.astNode.directives&&t.astNode.directives.length>0&&(a=Br.default.createElement("div",{className:"doc-category"},Br.default.createElement("div",{className:"doc-category-title"},"directives"),t.astNode.directives.map(function(o){return Br.default.createElement("div",{key:o.name.value,className:"doc-category-item"},Br.default.createElement("div",null,Br.default.createElement(fD,{directive:o})))}))),Br.default.createElement("div",null,Br.default.createElement(oi,{className:"doc-type-description",markdown:(t==null?void 0:t.description)||"No Description"}),t&&"deprecationReason"in t&&Br.default.createElement(oi,{className:"doc-deprecation",markdown:t==null?void 0:t.deprecationReason}),Br.default.createElement("div",{className:"doc-category"},Br.default.createElement("div",{className:"doc-category-title"},"type"),Br.default.createElement(kn,{type:t==null?void 0:t.type,onClick:r})),n,a)}var Gn=ze(Ft());function hD(e){var t=e.schema,r=e.onClickType,n=t.getQueryType(),a=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return Gn.default.createElement("div",null,Gn.default.createElement(oi,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),Gn.default.createElement("div",{className:"doc-category"},Gn.default.createElement("div",{className:"doc-category-title"},"root types"),Gn.default.createElement("div",{className:"doc-category-item"},Gn.default.createElement("span",{className:"keyword"},"query"),": ",Gn.default.createElement(kn,{type:n,onClick:r})),a&&Gn.default.createElement("div",{className:"doc-category-item"},Gn.default.createElement("span",{className:"keyword"},"mutation"),": ",Gn.default.createElement(kn,{type:a,onClick:r})),o&&Gn.default.createElement("div",{className:"doc-category-item"},Gn.default.createElement("span",{className:"keyword"},"subscription"),": ",Gn.default.createElement(kn,{type:o,onClick:r}))))}var dc=ze(Ft());function ui(e,t){var r;return function(){for(var n=this,a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];r&&window.clearTimeout(r),r=window.setTimeout(function(){r=null,t.apply(n,a)},e)}}var w$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),N$=function(e){w$(t,e);function t(r){var n=e.call(this,r)||this;return n.handleChange=function(a){var o=a.currentTarget.value;n.setState({value:o}),n.debouncedOnSearch(o)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:r.value||""},n.debouncedOnSearch=ui(200,n.props.onSearch),n}return t.prototype.render=function(){return dc.default.createElement("label",{className:"search-box"},dc.default.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"\u26B2"),dc.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&dc.default.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"\u2715"))},t}(dc.default.Component),sq=N$;var Qn=ze(Ft());var A$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),L$=function(e){A$(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.shouldComponentUpdate=function(r){return this.props.schema!==r.schema||this.props.searchValue!==r.searchValue},t.prototype.render=function(){var r=this.props.searchValue,n=this.props.withinType,a=this.props.schema,o=this.props.onClickType,s=this.props.onClickField,c=[],d=[],h=[],m=a.getTypeMap(),E=Object.keys(m);n&&(E=E.filter(function(T){return T!==n.name}),E.unshift(n.name));for(var b=function(T){if(c.length+d.length+h.length>=100)return"break";var g=m[T];if(n!==g&&vD(T,r)&&d.push(Qn.default.createElement("div",{className:"doc-category-item",key:T},Qn.default.createElement(kn,{type:g,onClick:o}))),g&&"getFields"in g){var k=g.getFields();Object.keys(k).forEach(function(N){var w=k[N],D;if(!vD(N,r))if("args"in w&&w.args.length){if(D=w.args.filter(function(P){return vD(P.name,r)}),D.length===0)return}else return;var F=Qn.default.createElement("div",{className:"doc-category-item",key:T+"."+N},n!==g&&[Qn.default.createElement(kn,{key:"type",type:g,onClick:o}),"."],Qn.default.createElement("a",{className:"field-name",onClick:function(P){return s(w,g,P)}},w.name),D&&["(",Qn.default.createElement("span",{key:"args"},D.map(function(P){return Qn.default.createElement(ps,{key:P.name,arg:P,onClickType:o,showDefaultValue:!1})})),")"]);n===g?c.push(F):h.push(F)})}},C=0,L=E;C<L.length;C++){var S=L[C],y=b(S);if(y==="break")break}return c.length+d.length+h.length===0?Qn.default.createElement("span",{className:"doc-alert-text"},"No results found."):n&&d.length+h.length>0?Qn.default.createElement("div",null,c,Qn.default.createElement("div",{className:"doc-category"},Qn.default.createElement("div",{className:"doc-category-title"},"other results"),d,h)):Qn.default.createElement("div",{className:"doc-search-items"},c,d,h)},t}(Qn.default.Component),lq=L$;function vD(e,t){try{var r=t.replace(/[^_0-9A-Za-z]/g,function(n){return"\\"+n});return e.search(new RegExp(r,"i"))!==-1}catch(n){return e.toLowerCase().indexOf(t.toLowerCase())!==-1}}var ft=ze(Ft()),Aa=ze(Nt());var x$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),I$=function(e){x$(t,e);function t(r){var n=e.call(this,r)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.type!==r.type||this.props.schema!==r.schema||this.state.showDeprecated!==n.showDeprecated},t.prototype.render=function(){var r=this.props.schema,n=this.props.type,a=this.props.onClickType,o=this.props.onClickField,s=null,c=[];n instanceof Aa.GraphQLUnionType?(s="possible types",c=r.getPossibleTypes(n)):n instanceof Aa.GraphQLInterfaceType?(s="implementations",c=r.getPossibleTypes(n)):n instanceof Aa.GraphQLObjectType&&(s="implements",c=n.getInterfaces());var d;c&&c.length>0&&(d=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},s),c.map(function(g){return ft.default.createElement("div",{key:g.name,className:"doc-category-item"},ft.default.createElement(kn,{type:g,onClick:a}))})));var h,m;if(n&&"getFields"in n){var E=n.getFields(),b=Object.keys(E).map(function(g){return E[g]});h=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"fields"),b.filter(function(g){return"isDeprecated"in g?!g.isDeprecated:!0}).map(function(g){return ft.default.createElement(fq,{key:g.name,type:n,field:g,onClickType:a,onClickField:o})}));var C=b.filter(function(g){return"isDeprecated"in g&&g.isDeprecated});C.length>0&&(m=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?C.map(function(g){return ft.default.createElement(fq,{key:g.name,type:n,field:g,onClickType:a,onClickField:o})}):ft.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}var L,S;if(n instanceof Aa.GraphQLEnumType){var y=n.getValues();L=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"values"),y.filter(function(g){return!g.isDeprecated}).map(function(g){return ft.default.createElement(dq,{key:g.name,value:g})}));var T=y.filter(function(g){return g.isDeprecated});T.length>0&&(S=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?T.map(function(g){return ft.default.createElement(dq,{key:g.name,value:g})}):ft.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return ft.default.createElement("div",null,ft.default.createElement(oi,{className:"doc-type-description",markdown:"description"in n&&n.description||"No Description"}),n instanceof Aa.GraphQLObjectType&&d,h,m,L,S,!(n instanceof Aa.GraphQLObjectType)&&d)},t}(ft.default.Component),cq=I$;function fq(e){var t=e.type,r=e.field,n=e.onClickType,a=e.onClickField;return ft.default.createElement("div",{className:"doc-category-item"},ft.default.createElement("a",{className:"field-name",onClick:function(o){return a(r,t,o)}},r.name),"args"in r&&r.args&&r.args.length>0&&["(",ft.default.createElement("span",{key:"args"},r.args.map(function(o){return ft.default.createElement(ps,{key:o.name,arg:o,onClickType:n})})),")"],": ",ft.default.createElement(kn,{type:r.type,onClick:n}),ft.default.createElement(Dp,{field:r}),r.description&&ft.default.createElement(oi,{className:"field-short-description",markdown:r.description}),"deprecationReason"in r&&r.deprecationReason&&ft.default.createElement(oi,{className:"doc-deprecation",markdown:r.deprecationReason}))}function dq(e){var t=e.value;return ft.default.createElement("div",{className:"doc-category-item"},ft.default.createElement("div",{className:"enum-value"},t.name),ft.default.createElement(oi,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&ft.default.createElement(oi,{className:"doc-deprecation",markdown:t.deprecationReason}))}var R$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Km=function(){return Km=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Km.apply(this,arguments)},pq={name:"Schema",title:"Documentation Explorer"},mD=function(e){R$(t,e);function t(r){var n=e.call(this,r)||this;return n.handleNavBackClick=function(){n.state.navStack.length>1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(a){n.showDoc(a)},n.handleClickField=function(a){n.showDoc(a)},n.handleSearch=function(a){n.showSearch(a)},n.state={navStack:[pq]},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.schema!==r.schema||this.state.navStack!==n.navStack},t.prototype.render=function(){var r=this.props.schema,n=this.state.navStack,a=n[n.length-1],o;r===void 0?o=fn.default.createElement("div",{className:"spinner-container"},fn.default.createElement("div",{className:"spinner"})):r?a.search?o=fn.default.createElement(lq,{searchValue:a.search,withinType:a.def,schema:r,onClickType:this.handleClickType,onClickField:this.handleClickField}):n.length===1?o=fn.default.createElement(hD,{schema:r,onClickType:this.handleClickType}):(0,gD.isType)(a.def)?o=fn.default.createElement(cq,{schema:r,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):o=fn.default.createElement(pD,{field:a.def,onClickType:this.handleClickType}):o=fn.default.createElement("div",{className:"error-container"},"No Schema Available");var s=n.length===1||(0,gD.isType)(a.def)&&"getFields"in a.def,c;return n.length>1&&(c=n[n.length-2].name),fn.default.createElement("section",{className:"doc-explorer",key:a.name,"aria-label":"Documentation Explorer"},fn.default.createElement("div",{className:"doc-explorer-title-bar"},c&&fn.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+c},c),fn.default.createElement("div",{className:"doc-explorer-title"},a.title||a.name),fn.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),fn.default.createElement("div",{className:"doc-explorer-contents"},s&&fn.default.createElement(sq,{value:a.search,placeholder:"Search "+a.name+"...",onSearch:this.handleSearch}),o))},t.prototype.showDoc=function(r){var n=this.state.navStack,a=n[n.length-1];a.def!==r&&this.setState({navStack:n.concat([{name:r.name,def:r}])})},t.prototype.showDocForReference=function(r){r&&r.kind==="Type"?this.showDoc(r.type):r.kind==="Field"?this.showDoc(r.field):r.kind==="Argument"&&r.field?this.showDoc(r.field):r.kind==="EnumValue"&&r.type&&this.showDoc(r.type)},t.prototype.showSearch=function(r){var n=this.state.navStack.slice(),a=n[n.length-1];n[n.length-1]=Km(Km({},a),{search:r}),this.setState({navStack:n})},t.prototype.reset=function(){this.setState({navStack:[pq]})},t}(fn.default.Component);var gq=ze(Nt()),su=ze(Ft());var F$=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n},P$=function(){function e(t,r,n){n===void 0&&(n=null),this.key=t,this.storage=r,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(t){return this.items.some(function(r){return r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName})},e.prototype.edit=function(t){var r=this.items.findIndex(function(n){return n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName});r!==-1&&(this.items.splice(r,1,t),this.save())},e.prototype.delete=function(t){var r=this.items.findIndex(function(n){return n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName});r!==-1&&(this.items.splice(r,1),this.save())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]},e.prototype.push=function(t){var r,n=F$(this.items,[t]);this.maxSize&&n.length>this.maxSize&&n.shift();for(var a=0;a<5;a++){var o=this.storage.set(this.key,JSON.stringify((r={},r[this.key]=n,r)));if(!o||!o.error)this.items=n;else if(o.isQuotaError&&this.maxSize)n.shift();else return}},e.prototype.save=function(){var t;this.storage.set(this.key,JSON.stringify((t={},t[this.key]=this.items,t)))},e}(),yD=P$;var hs=ze(Ft()),j$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),M$=function(e){j$(t,e);function t(r){var n=e.call(this,r)||this;return n.state={editable:!1},n.editField=null,n}return t.prototype.render=function(){var r=this,n,a=this.props.label||this.props.operationName||((n=this.props.query)===null||n===void 0?void 0:n.split(`
|
|
`).filter(function(s){return s.indexOf("#")!==0}).join("")),o=this.props.favorite?"\u2605":"\u2606";return hs.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?hs.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(s){r.editField=s},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):hs.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},a),hs.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"\u270E"),hs.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},o))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(r){r.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(r){r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(r){r.keyCode===13&&(r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(r){var n=this;r.stopPropagation(),this.setState({editable:!0},function(){n.editField&&n.editField.focus()})},t}(hs.default.Component),hq=M$;var q$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cp=function(){return Cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Cp.apply(this,arguments)},vq=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n},B$=1e5,V$=20,U$=function(e,t,r,n){if(!e)return!1;try{(0,gq.parse)(e)}catch(a){return!1}return e.length>B$?!1:n?!(JSON.stringify(e)===JSON.stringify(n.query)&&(JSON.stringify(t)===JSON.stringify(n.variables)&&(JSON.stringify(r)===JSON.stringify(n.headers)||r&&!n.headers)||t&&!n.variables)):!0},mq=function(e){q$(t,e);function t(r){var n=e.call(this,r)||this;n.updateHistory=function(c,d,h,m){if(U$(c,d,h,n.historyStore.fetchRecent())){n.historyStore.push({query:c,variables:d,headers:h,operationName:m});var E=n.historyStore.items,b=n.favoriteStore.items,C=E.concat(b);n.setState({queries:C})}},n.toggleFavorite=function(c,d,h,m,E,b){var C={query:c,variables:d,headers:h,operationName:m,label:E};n.favoriteStore.contains(C)?b&&(C.favorite=!1,n.favoriteStore.delete(C)):(C.favorite=!0,n.favoriteStore.push(C)),n.setState({queries:vq(n.historyStore.items,n.favoriteStore.items)})},n.editLabel=function(c,d,h,m,E,b){var C={query:c,variables:d,headers:h,operationName:m,label:E};b?n.favoriteStore.edit(Cp(Cp({},C),{favorite:b})):n.historyStore.edit(C),n.setState({queries:vq(n.historyStore.items,n.favoriteStore.items)})},n.historyStore=new yD("queries",r.storage,V$),n.favoriteStore=new yD("favorites",r.storage,null);var a=n.historyStore.fetchAll(),o=n.favoriteStore.fetchAll(),s=a.concat(o);return n.state={queries:s},n}return t.prototype.render=function(){var r=this,n=this.state.queries.slice().reverse(),a=n.map(function(o,s){return su.default.createElement(hq,Cp({handleEditLabel:r.editLabel,handleToggleFavorite:r.toggleFavorite,key:s+":"+(o.label||o.query),onSelect:r.props.onSelectQuery},o))});return su.default.createElement("section",{"aria-label":"History"},su.default.createElement("div",{className:"history-title-bar"},su.default.createElement("div",{className:"history-title"},"History"),su.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),su.default.createElement("ul",{className:"history-contents"},a))},t}(su.default.Component);var G$=function(){function e(){this.sizes=[]}return e.prototype.updateSizes=function(t){var r=this;t.forEach(function(n,a){if(n){var o=n.getClientHeight();if(a<=r.sizes.length&&o!==r.sizes[a]){var s=n.getCodeMirror();s&&s.setSize(null,null)}r.sizes[a]=o}})},e}(),yq=G$;function Q$(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e.length!==0}var K$=function(){function e(t){this.storage=t||(typeof window!="undefined"?window.localStorage:null)}return e.prototype.get=function(t){if(this.storage){var r=this.storage.getItem("graphiql:"+t);if(r==="null"||r==="undefined")return this.storage.removeItem("graphiql:"+t),null;if(r)return r}return null},e.prototype.set=function(t,r){var n=!1,a=null;if(this.storage){var o="graphiql:"+t;if(r)try{this.storage.setItem(o,r)}catch(s){a=s,n=Q$(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:n,error:a}},e}(),bq=K$;var pc=ze(Nt());function Op(e,t){if(!!t){var r;try{r=(0,pc.parse)(t,{experimentalFragmentVariables:!0})}catch(o){return}var n=e?H$(e,r):void 0,a=[];return(0,pc.visit)(r,{OperationDefinition:function(o){a.push(o)}}),{variableToType:n,operations:a,documentAST:r}}}function H$(e,t){var r=Object.create(null);return t.definitions.forEach(function(n){if(n.kind==="OperationDefinition"){var a=n.variableDefinitions;a&&a.forEach(function(o){var s=o.variable,c=o.type,d=(0,pc.typeFromAST)(e,c);d&&(r[s.name.value]=d)})}}),r}function wp(e,t,r){if(!(!r||r.length<1)){var n=r.map(function(s){return s.name&&s.name.value});if(t&&n.indexOf(t)!==-1)return t;if(t&&e){var a=e.map(function(s){return s.name&&s.name.value}),o=a.indexOf(t);if(o!==-1&&o<n.length)return n[o]}return n[0]}}function Np(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}var si=ze(Nt());function bD(e,t,r){var n=[];if(!e||!t)return{insertions:n,result:t};var a;try{a=(0,si.parse)(t)}catch(c){return{insertions:n,result:t}}var o=r||z$,s=new si.TypeInfo(e);return(0,si.visit)(a,{leave:function(c){s.leave(c)},enter:function(c){if(s.enter(c),c.kind==="Field"&&!c.selectionSet){var d=s.getType(),h=Eq(J$(d),o);if(h&&c.loc){var m=Y$(t,c.loc.start);n.push({index:c.loc.end,string:" "+(0,si.print)(h).replace(/\n/g,`
|
|
`+m)})}}}}),{insertions:n,result:W$(t,n)}}function z$(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var r=[];return Object.keys(t).forEach(function(n){(0,si.isLeafType)(t[n].type)&&r.push(n)}),r}function Eq(e,t){var r=(0,si.getNamedType)(e);if(!(!e||(0,si.isLeafType)(e))){var n=t(r);if(!(!Array.isArray(n)||n.length===0||!("getFields"in r)))return{kind:"SelectionSet",selections:n.map(function(a){var o=r.getFields()[a],s=o?o.type:null;return{kind:"Field",name:{kind:"Name",value:a},selectionSet:Eq(s,t)}})}}}function W$(e,t){if(t.length===0)return e;var r="",n=0;return t.forEach(function(a){var o=a.index,s=a.string;r+=e.slice(n,o)+s,n=o}),r+=e.slice(n),r}function Y$(e,t){for(var r=t,n=t;r;){var a=e.charCodeAt(r-1);if(a===10||a===13||a===8232||a===8233)break;r--,a!==9&&a!==11&&a!==12&&a!==32&&a!==160&&(n=r)}return e.substring(r,n)}function J$(e){if(e)return e}function Ap(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetLeft,r=r.offsetParent;return t}function ED(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetTop,r=r.offsetParent;return t}var lu=ze(Nt()),hc=function(){return hc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},hc.apply(this,arguments)},X$=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n};function Z$(e,t){for(var r=new Map,n=[],a=0,o=e;a<o.length;a++){var s=o[a];if(s.kind==="Field"){var c=t(s),d=r.get(c);if(s.directives&&s.directives.length){var h=hc({},s);n.push(h)}else if(d&&d.selectionSet&&s.selectionSet)d.selectionSet.selections=X$(d.selectionSet.selections,s.selectionSet.selections);else if(!d){var h=hc({},s);r.set(c,h),n.push(h)}}else n.push(s)}return n}function Tq(e,t,r){for(var n,a=r?(0,lu.getNamedType)(r).name:null,o=[],s=[],c=0,d=t;c<d.length;c++){var h=d[c];if(h.kind==="FragmentSpread"){var m=h.name.value;if(!h.directives||h.directives.length===0){if(s.indexOf(m)>=0)continue;s.push(m)}var E=e[h.name.value];if(E){var b=E.typeCondition,C=E.directives,L=E.selectionSet;h={kind:"InlineFragment",typeCondition:b,directives:C,selectionSet:L}}}if(h.kind==="InlineFragment"&&(!h.directives||((n=h.directives)===null||n===void 0?void 0:n.length)===0)){var S=h.typeCondition?h.typeCondition.name.value:null;if(!S||S===a){o.push.apply(o,Tq(e,h.selectionSet.selections,r));continue}}o.push(h)}return o}function Hm(e,t){for(var r=t?new lu.TypeInfo(t):null,n=Object.create(null),a=0,o=e.definitions;a<o.length;a++){var s=o[a];s.kind==="FragmentDefinition"&&(n[s.name.value]=s)}var c={SelectionSet:function(d){var h=r?r.getParentType():null,m=d.selections;return m=Tq(n,m,h),m=Z$(m,function(E){return E.alias?E.alias.value:E.name.value}),hc(hc({},d),{selections:m})},FragmentDefinition:function(){return null}};return(0,lu.visit)(e,r?(0,lu.visitWithTypeInfo)(r,c):c)}var _q=ze(Nt()),TD=(0,_q.getIntrospectionQuery)(),$$="IntrospectionQuery",_D=$$,Sq=TD.replace("subscriptionType { name }","");function SD(e,t,r){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(r=0;r<t.length;r++)e[r]=SD(e[r],t[r]);else for(r in t)e[r]=SD(e[r],t[r]);return e}return t}function Dq(e,t,r){t.split&&(t=t.split("."));for(var n=0,a=t.length,o=e,s,c;n<a&&(c=t[n++],!(c==="__proto__"||c==="constructor"||c==="prototype"));)o=o[c]=n===a?SD(o[c],r):typeof(s=o[c])==typeof t?s:t[n]*0!=0||!!~(""+t[n]).indexOf(".")?{}:[]}var eee=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),La=function(){return La=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},La.apply(this,arguments)},DD=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(E){s(E)}}function d(m){try{h(n.throw(m))}catch(E){s(E)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})},kD=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(h){return function(m){return d([h,m])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(o=h[0]&2?a.return:h[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,h[1])).done)return o;switch(a=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,a=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(m){h=[6,m],a=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},tee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ree=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(c,d){s=e[o](s),a(c,d,s.done,s.value)})}}function a(o,s,c,d){Promise.resolve(d).then(function(h){o({value:h,done:c})},s)}},nee=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,a++)n[a]=o[s];return n},Oq=350,iee=parseInt(Xe.default.version.slice(0,2),10);if(iee<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(`
|
|
`));var wq=function(e){eee(t,e);function t(r){var n,a,o=e.call(this,r)||this;if(o._editorQueryID=0,o.safeSetState=function(S,y){o.componentIsMounted&&o.setState(S,y)},o.handleClickReference=function(S){o.setState({docExplorerOpen:!0},function(){o.docExplorerComponent&&o.docExplorerComponent.showDocForReference(S)}),o._storage.set("docExplorerOpen",JSON.stringify(o.state.docExplorerOpen))},o.handleRunQuery=function(S){return DD(o,void 0,void 0,function(){var y,T,g,k,N,w,D,F,P,B=this;return kD(this,function(z){switch(z.label){case 0:this._editorQueryID++,y=this._editorQueryID,T=this.autoCompleteLeafs()||this.state.query,g=this.state.variables,k=this.state.headers,N=this.state.shouldPersistHeaders,w=this.state.operationName,S&&S!==w&&(w=S,this.handleEditOperationName(w)),z.label=1;case 1:return z.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:w}),this._storage.set("operationName",w),this._queryHistory&&this._queryHistory.updateHistory(T,g,k,w),D={data:{}},[4,this._fetchQuery(T,g,k,w,N,function(G){if(y===B._editorQueryID){var M=Array.isArray(G)?G:!1;if(!M&&typeof G!="string"&&G!==null&&"hasNext"in G&&(M=[G]),M){var j={data:D.data},ce=nee((D==null?void 0:D.errors)||[],M.map(function(st){return st.errors}).flat().filter(Boolean));ce.length&&(j.errors=ce);for(var ke=0,pe=M;ke<pe.length;ke++){var we=pe[ke],Ne=we.path,qe=we.data,ht=we.errors,at=tee(we,["path","data","errors"]);if(Ne){if(!qe)throw new Error("Expected part to contain a data property, but got "+we);Dq(j.data,Ne,qe)}else qe&&(j.data=we.data);D=La(La({},j),at)}B.setState({isWaitingForResponse:!1,response:t.formatResult(D)})}else B.setState({isWaitingForResponse:!1,response:t.formatResult(G)})}})];case 2:return F=z.sent(),this.setState({subscription:F}),[3,4];case 3:return P=z.sent(),this.setState({isWaitingForResponse:!1,response:P.message}),[3,4];case 4:return[2]}})})},o.handleStopQuery=function(){var S=o.state.subscription;o.setState({isWaitingForResponse:!1,subscription:null}),S&&S.unsubscribe()},o.handlePrettifyQuery=function(){var S,y,T,g=o.getQueryEditor(),k=(S=g==null?void 0:g.getValue())!==null&&S!==void 0?S:"",N=(0,Xi.print)((0,Xi.parse)(k,{experimentalFragmentVariables:!0}));N!==k&&(g==null||g.setValue(N));var w=o.getVariableEditor(),D=(y=w==null?void 0:w.getValue())!==null&&y!==void 0?y:"";try{var F=JSON.stringify(JSON.parse(D),null,2);F!==D&&(w==null||w.setValue(F))}catch(G){}var P=o.getHeaderEditor(),B=(T=P==null?void 0:P.getValue())!==null&&T!==void 0?T:"";try{var z=JSON.stringify(JSON.parse(B),null,2);z!==B&&(P==null||P.setValue(z))}catch(G){}},o.handleMergeQuery=function(){var S=o.getQueryEditor(),y=S.getValue();if(!!y){var T=o.state.documentAST;S.setValue((0,Xi.print)(Hm(T,o.state.schema)))}},o.handleEditQuery=ui(100,function(S){var y=o._updateQueryFacts(S,o.state.operationName,o.state.operations,o.state.schema);if(o.setState(La({query:S},y)),o._storage.set("query",S),o.props.onEditQuery)return o.props.onEditQuery(S,y==null?void 0:y.documentAST)}),o.handleCopyQuery=function(){var S=o.getQueryEditor(),y=S&&S.getValue();if(!!y&&((0,kq.default)(y),o.props.onCopyQuery))return o.props.onCopyQuery(y)},o._updateQueryFacts=function(S,y,T,g){var k=Op(g,S);if(k){var N=wp(T,y,k.operations),w=o.props.onEditOperationName;return w&&N&&y!==N&&w(N),La({operationName:N},k)}},o.handleEditVariables=function(S){o.setState({variables:S}),ui(500,function(){return o._storage.set("variables",S)})(),o.props.onEditVariables&&o.props.onEditVariables(S)},o.handleEditHeaders=function(S){o.setState({headers:S}),o.props.shouldPersistHeaders&&ui(500,function(){return o._storage.set("headers",S)})(),o.props.onEditHeaders&&o.props.onEditHeaders(S)},o.handleEditOperationName=function(S){var y=o.props.onEditOperationName;y&&y(S)},o.handleHintInformationRender=function(S){S.addEventListener("click",o._onClickHintInformation);var y;S.addEventListener("DOMNodeRemoved",y=function(){S.removeEventListener("DOMNodeRemoved",y),S.removeEventListener("click",o._onClickHintInformation)})},o.handleEditorRunQuery=function(){o._runQueryAtCursor()},o._onClickHintInformation=function(S){if((S==null?void 0:S.currentTarget)&&"className"in S.currentTarget&&S.currentTarget.className==="typeName"){var y=S.currentTarget.innerHTML,T=o.state.schema;if(T){var g=T.getType(y);g&&(o.setState({docExplorerOpen:!0},function(){o.docExplorerComponent&&o.docExplorerComponent.showDoc(g)}),ui(500,function(){return o._storage.set("docExplorerOpen",JSON.stringify(o.state.docExplorerOpen))})())}}},o.handleToggleDocs=function(){typeof o.props.onToggleDocs=="function"&&o.props.onToggleDocs(!o.state.docExplorerOpen),o._storage.set("docExplorerOpen",JSON.stringify(!o.state.docExplorerOpen)),o.setState({docExplorerOpen:!o.state.docExplorerOpen})},o.handleToggleHistory=function(){typeof o.props.onToggleHistory=="function"&&o.props.onToggleHistory(!o.state.historyPaneOpen),o._storage.set("historyPaneOpen",JSON.stringify(!o.state.historyPaneOpen)),o.setState({historyPaneOpen:!o.state.historyPaneOpen})},o.handleSelectHistoryQuery=function(S,y,T,g){S&&o.handleEditQuery(S),y&&o.handleEditVariables(y),T&&o.handleEditHeaders(T),g&&o.handleEditOperationName(g)},o.handleResizeStart=function(S){if(!!o._didClickDragBar(S)){S.preventDefault();var y=S.clientX-Ap(S.target),T=function(k){if(k.buttons===0)return g();var N=o.editorBarComponent,w=k.clientX-Ap(N)-y,D=N.clientWidth-w;o.setState({editorFlex:w/D}),ui(500,function(){return o._storage.set("editorFlex",JSON.stringify(o.state.editorFlex))})()},g=function(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",g),T=null,g=null};document.addEventListener("mousemove",T),document.addEventListener("mouseup",g)}},o.handleResetResize=function(){o.setState({editorFlex:1}),o._storage.set("editorFlex",JSON.stringify(o.state.editorFlex))},o.handleDocsResizeStart=function(S){S.preventDefault();var y=o.state.docExplorerWidth,T=S.clientX-Ap(S.target),g=function(N){if(N.buttons===0)return k();var w=o.graphiqlContainer,D=N.clientX-Ap(w)-T,F=w.clientWidth-D;F<100?(typeof o.props.onToggleDocs=="function"&&o.props.onToggleDocs(!o.state.docExplorerOpen),o._storage.set("docExplorerOpen",JSON.stringify(o.state.docExplorerOpen)),o.setState({docExplorerOpen:!1})):(o.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(F,650)}),ui(500,function(){return o._storage.set("docExplorerWidth",JSON.stringify(o.state.docExplorerWidth))})()),o._storage.set("docExplorerOpen",JSON.stringify(o.state.docExplorerOpen))},k=function(){o.state.docExplorerOpen||(o.setState({docExplorerWidth:y}),ui(500,function(){return o._storage.set("docExplorerWidth",JSON.stringify(o.state.docExplorerWidth))})()),document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",k),g=null,k=null};document.addEventListener("mousemove",g),document.addEventListener("mouseup",k)},o.handleDocsResetResize=function(){o.setState({docExplorerWidth:Oq}),ui(500,function(){return o._storage.set("docExplorerWidth",JSON.stringify(o.state.docExplorerWidth))})()},o.handleTabClickPropogation=function(S){S.preventDefault(),S.stopPropagation()},o.handleOpenHeaderEditorTab=function(S){o.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},o.handleOpenVariableEditorTab=function(S){o.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},o.handleSecondaryEditorResizeStart=function(S){S.preventDefault();var y=!1,T=o.state.secondaryEditorOpen,g=o.state.secondaryEditorHeight,k=S.clientY-ED(S.target),N=function(D){if(D.buttons===0)return w();y=!0;var F=o.editorBarComponent,P=D.clientY-ED(F)-k,B=F.clientHeight-P;B<60?o.setState({secondaryEditorOpen:!1,secondaryEditorHeight:g}):o.setState({secondaryEditorOpen:!0,secondaryEditorHeight:B}),ui(500,function(){return o._storage.set("secondaryEditorHeight",JSON.stringify(o.state.secondaryEditorHeight))})()},w=function(){y||o.setState({secondaryEditorOpen:!T}),document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",w),N=null,w=null};document.addEventListener("mousemove",N),document.addEventListener("mouseup",w)},typeof r.fetcher!="function")throw new TypeError("GraphiQL requires a fetcher function.");o._storage=new bq(r.storage),o.componentIsMounted=!1;var s=r.query!==void 0?r.query:o._storage.get("query")?o._storage.get("query"):r.defaultQuery!==void 0?r.defaultQuery:aee,c=Op(r.schema,s),d=r.variables!==void 0?r.variables:o._storage.get("variables"),h=r.headers!==void 0?r.headers:o._storage.get("headers"),m=r.operationName!==void 0?r.operationName:wp(void 0,o._storage.get("operationName"),c&&c.operations),E=r.docExplorerOpen||!1;o._storage.get("docExplorerOpen")&&(E=o._storage.get("docExplorerOpen")==="true");var b;r.defaultVariableEditorOpen!==void 0?b=r.defaultVariableEditorOpen:r.defaultSecondaryEditorOpen!==void 0?b=r.defaultSecondaryEditorOpen:b=Boolean(d||h);var C=(n=r.headerEditorEnabled)!==null&&n!==void 0?n:!1,L=(a=r.shouldPersistHeaders)!==null&&a!==void 0?a:!1;return o.state=La({schema:r.schema,query:s,variables:d,headers:h,operationName:m,docExplorerOpen:E,response:r.response,editorFlex:Number(o._storage.get("editorFlex"))||1,secondaryEditorOpen:b,secondaryEditorHeight:Number(o._storage.get("secondaryEditorHeight"))||200,variableEditorActive:o._storage.get("variableEditorActive")==="true"||r.headerEditorEnabled?o._storage.get("headerEditorActive")!=="true":!0,headerEditorActive:o._storage.get("headerEditorActive")==="true",headerEditorEnabled:C,shouldPersistHeaders:L,historyPaneOpen:o._storage.get("historyPaneOpen")==="true"||!1,docExplorerWidth:Number(o._storage.get("docExplorerWidth"))||Oq,isWaitingForResponse:!1,subscription:null},c),o}return t.formatResult=function(r){return JSON.stringify(r,null,2)},t.formatError=function(r){var n=Array.isArray(r)?r.map(xq):xq(r);return JSON.stringify(n,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,this.state.schema===void 0&&this.fetchSchema(),this.codeMirrorSizer=new yq,window.g=this},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(r){var n=this,a=this.state.schema,o=this.state.query,s=this.state.variables,c=this.state.headers,d=this.state.operationName,h=this.state.response;if(r.schema!==void 0&&(a=r.schema),r.query!==void 0&&this.props.query!==r.query&&(o=r.query),r.variables!==void 0&&this.props.variables!==r.variables&&(s=r.variables),r.headers!==void 0&&this.props.headers!==r.headers&&(c=r.headers),r.operationName!==void 0&&(d=r.operationName),r.response!==void 0&&(h=r.response),o&&a&&(a!==this.state.schema||o!==this.state.query||d!==this.state.operationName)){var m=this._updateQueryFacts(o,d,this.state.operations,a);m!==void 0&&(d=m.operationName,this.setState(m))}r.schema===void 0&&r.fetcher!==this.props.fetcher&&(a=void 0),this._storage.set("operationName",d),this.setState({schema:a,query:o,variables:s,headers:c,operationName:d,response:h},function(){n.state.schema===void 0&&(n.docExplorerComponent&&n.docExplorerComponent.reset(),n.fetchSchema())})},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var r=this,n,a=Xe.default.Children.toArray(this.props.children),o=Np(a,function(L){return CD(L,t.Logo)})||Xe.default.createElement(t.Logo,null),s=Np(a,function(L){return CD(L,t.Toolbar)})||Xe.default.createElement(t.Toolbar,null,Xe.default.createElement(tu,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),Xe.default.createElement(tu,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),Xe.default.createElement(tu,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),Xe.default.createElement(tu,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),((n=this.props.toolbar)===null||n===void 0?void 0:n.additionalContent)?this.props.toolbar.additionalContent:null),c=Np(a,function(L){return CD(L,t.Footer)}),d={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},h={display:"block",width:this.state.docExplorerWidth},m="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),E={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},b=this.state.secondaryEditorOpen,C={height:b?this.state.secondaryEditorHeight:void 0};return Xe.default.createElement("div",{ref:function(L){r.graphiqlContainer=L},className:"graphiql-container"},this.state.historyPaneOpen&&Xe.default.createElement("div",{className:"historyPaneWrap",style:E},Xe.default.createElement(mq,{ref:function(L){r._queryHistory=L},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,queryID:this._editorQueryID},Xe.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"\u2715"))),Xe.default.createElement("div",{className:"editorWrap"},Xe.default.createElement("div",{className:"topBarWrap"},Xe.default.createElement("div",{className:"topBar"},o,Xe.default.createElement(XI,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),s),!this.state.docExplorerOpen&&Xe.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),Xe.default.createElement("div",{ref:function(L){r.editorBarComponent=L},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},Xe.default.createElement("div",{className:"queryWrap",style:d},Xe.default.createElement(xm,{ref:function(L){r.queryEditorComponent=L},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),Xe.default.createElement("section",{className:"variable-editor secondary-editor",style:C,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},Xe.default.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:b?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},Xe.default.createElement("div",{style:{cursor:"pointer",color:this.state.variableEditorActive?"#000":"gray",display:"inline-block"},onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&Xe.default.createElement("div",{style:{cursor:"pointer",color:this.state.headerEditorActive?"#000":"gray",display:"inline-block",marginLeft:"20px"},onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),Xe.default.createElement(Bm,{ref:function(L){r.variableEditorComponent=L},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&Xe.default.createElement(oD,{ref:function(L){r.headerEditorComponent=L},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),Xe.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&Xe.default.createElement("div",{className:"spinner-container"},Xe.default.createElement("div",{className:"spinner"})),Xe.default.createElement(sD,{registerRef:function(L){r.resultViewerElement=L},ref:function(L){r.resultComponent=L},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:$I}),c))),this.state.docExplorerOpen&&Xe.default.createElement("div",{className:m,style:h},Xe.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),Xe.default.createElement(mD,{ref:function(L){r.docExplorerComponent=L},schema:this.state.schema},Xe.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"\u2715"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},t.prototype.autoCompleteLeafs=function(){var r=bD(this.state.schema,this.state.query,this.props.getDefaultFieldNames),n=r.insertions,a=r.result;if(n&&n.length>0){var o=this.getQueryEditor();o&&o.operation(function(){var s=o.getCursor(),c=o.indexFromPos(s);o.setValue(a||"");var d=0,h=n.map(function(E){var b=E.index,C=E.string;return o.markText(o.posFromIndex(b+d),o.posFromIndex(b+(d+=C.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return h.forEach(function(E){return E.clear()})},7e3);var m=c;n.forEach(function(E){var b=E.index,C=E.string;b<c&&(m+=C.length)}),o.setCursor(o.posFromIndex(m))})}return a},t.prototype.fetchSchema=function(){var r=this,n=this.props.fetcher,a={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};this.state.headers&&this.state.headers.trim().length>2?a.headers=JSON.parse(this.state.headers):this.props.headers&&(a.headers=JSON.parse(this.props.headers));var o=Pq(n({query:TD,operationName:_D},a));if(!Iq(o)){this.setState({response:"Fetcher did not return a Promise for introspection."});return}o.then(function(s){if(typeof s!="string"&&"data"in s)return s;var c=Pq(n({query:Sq,operationName:_D},a));if(!Iq(o))throw new Error("Fetcher did not return a Promise for introspection.");return c}).then(function(s){if(r.state.schema===void 0)if(typeof s!="string"&&"data"in s){var c=(0,Xi.buildClientSchema)(s.data),d=Op(c,r.state.query);r.safeSetState(La({schema:c},d))}else{var h=typeof s=="string"?s:t.formatResult(s);r.safeSetState({schema:void 0,response:h})}}).catch(function(s){r.safeSetState({schema:void 0,response:s?t.formatError(s):void 0})})},t.prototype._fetchQuery=function(r,n,a,o,s,c){return DD(this,void 0,void 0,function(){var d,h,m,E,b,C,L=this;return kD(this,function(S){d=this.props.fetcher,h=null,m=null;try{h=n&&n.trim()!==""?JSON.parse(n):null}catch(y){throw new Error("Variables are invalid JSON: "+y.message+".")}if(typeof h!="object")throw new Error("Variables are not a JSON object.");try{m=a&&a.trim()!==""?JSON.parse(a):null}catch(y){throw new Error("Headers are invalid JSON: "+y.message+".")}if(typeof m!="object")throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(E=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(function(y){E.set(y.name.value,y)}):(0,Xi.visit)((0,Xi.parse)(this.props.externalFragments,{experimentalFragmentVariables:!0}),{FragmentDefinition:function(y){E.set(y.name.value,y)}}),b=(0,Cq.getFragmentDependenciesForAST)(this.state.documentAST,E),b.length>0&&(r+=`
|
|
`+b.map(function(y){return(0,Xi.print)(y)}).join(`
|
|
`))),C=d({query:r,variables:h,operationName:o},{headers:m,shouldPersistHeaders:s,documentAST:this.state.documentAST}),[2,Promise.resolve(C).then(function(y){if(Rq(y)){var T=y.subscribe({next:c,error:function(g){L.safeSetState({isWaitingForResponse:!1,response:g?t.formatError(g):void 0,subscription:null})},complete:function(){L.safeSetState({isWaitingForResponse:!1,subscription:null})}});return T}else return Fq(y)?(function(){return DD(L,void 0,void 0,function(){var g,k,N,w,D,F,P;return kD(this,function(B){switch(B.label){case 0:B.trys.push([0,13,,14]),B.label=1;case 1:B.trys.push([1,6,7,12]),g=ree(y),B.label=2;case 2:return[4,g.next()];case 3:if(k=B.sent(),!!k.done)return[3,5];N=k.value,c(N),B.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return w=B.sent(),F={error:w},[3,12];case 7:return B.trys.push([7,,10,11]),k&&!k.done&&(P=g.return)?[4,P.call(g)]:[3,9];case 8:B.sent(),B.label=9;case 9:return[3,11];case 10:if(F)throw F.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return D=B.sent(),this.safeSetState({isWaitingForResponse:!1,response:D?t.formatError(D):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var g,k;return(k=(g=y[Symbol.asyncIterator]()).return)===null||k===void 0?void 0:k.call(g)}}):(c(y),null)}).catch(function(y){return L.safeSetState({isWaitingForResponse:!1,response:y?t.formatError(y):void 0}),null})]})})},t.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var r,n=this.state.operations;if(n){var a=this.getQueryEditor();if(a&&a.hasFocus())for(var o=a.getCursor(),s=a.indexFromPos(o),c=0;c<n.length;c++){var d=n[c];if(d.loc&&d.loc.start<=s&&d.loc.end>=s){r=d.name&&d.name.value;break}}}this.handleRunQuery(r)},t.prototype._didClickDragBar=function(r){if(r.button!==0||r.ctrlKey)return!1;var n=r.target;if(n.className.indexOf("CodeMirror-gutter")!==0)return!1;for(var a=this.resultViewerElement;n;){if(n===a)return!0;n=n.parentNode}return!1},t.Logo=Nq,t.Toolbar=Aq,t.Footer=Lq,t.QueryEditor=xm,t.VariableEditor=Bm,t.HeaderEditor=oD,t.ResultViewer=sD,t.Button=tu,t.ToolbarButton=tu,t.Group=QS,t.Menu=KS,t.MenuItem=tR,t}(Xe.default.Component);function Nq(e){return Xe.default.createElement("div",{className:"title"},e.children||Xe.default.createElement("span",null,"Graph",Xe.default.createElement("em",null,"i"),"QL"))}Nq.displayName="GraphiQLLogo";function Aq(e){return Xe.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}Aq.displayName="GraphiQLToolbar";function Lq(e){return Xe.default.createElement("div",{className:"footer"},e.children)}Lq.displayName="GraphiQLFooter";var xq=function(e){return La(La({},e),{message:e.message,stack:e.stack})},aee=`# Welcome to GraphiQL
|
|
#
|
|
# GraphiQL is an in-browser tool for writing, validating, and
|
|
# testing GraphQL queries.
|
|
#
|
|
# Type queries into this side of the screen, and you will see intelligent
|
|
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
# validation errors highlighted within the text.
|
|
#
|
|
# GraphQL queries typically start with a "{" character. Lines that start
|
|
# with a # are ignored.
|
|
#
|
|
# An example GraphQL query might look like:
|
|
#
|
|
# {
|
|
# field(arg: "value") {
|
|
# subField
|
|
# }
|
|
# }
|
|
#
|
|
# Keyboard shortcuts:
|
|
#
|
|
# Prettify Query: Shift-Ctrl-P (or press the prettify button above)
|
|
#
|
|
# Merge Query: Shift-Ctrl-M (or press the merge button above)
|
|
#
|
|
# Run Query: Ctrl-Enter (or press the play button above)
|
|
#
|
|
# Auto Complete: Ctrl-Space (or just start typing)
|
|
#
|
|
|
|
`;function Iq(e){return typeof e=="object"&&typeof e.then=="function"}function oee(e){return new Promise(function(t,r){var n=e.subscribe({next:function(a){t(a),n.unsubscribe()},error:r,complete:function(){r(new Error("no value resolved"))}})})}function Rq(e){return typeof e=="object"&&"subscribe"in e&&typeof e.subscribe=="function"}function Fq(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function uee(e){return new Promise(function(t,r){var n,a=(n=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||n===void 0?void 0:n.bind(e),o=("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e);o().then(function(s){t(s.value),a==null||a()}).catch(function(s){r(s)})})}function Pq(e){return Promise.resolve(e).then(function(t){return Fq(t)?uee(t):Rq(t)?oee(t):t})}function CD(e,t){var r;return((r=e==null?void 0:e.type)===null||r===void 0?void 0:r.displayName)&&e.type.displayName===t.displayName?!0:e.type===t}var xi=ze(Ft()),see=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),OD=function(){return OD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},OD.apply(this,arguments)};function lee(e){return!(!e||typeof e!="object"||!("props"in e))}var cee=function(e){see(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(a){zm(a),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var r=this,n,a=this.state.visible,o=xi.default.Children.map(this.props.children,function(s,c){if(!lee(s))return null;(!n||s.props.selected)&&(n=s);var d=s.props.onSelect||r.props.onSelect&&r.props.onSelect.bind(null,s.props.value,c);return xi.default.createElement(fee,OD({},s.props,{onSelect:d}))});return xi.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:zm,ref:function(s){r._node=s},title:this.props.title},n==null?void 0:n.props.label,xi.default.createElement("svg",{width:"13",height:"10"},xi.default.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),xi.default.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),xi.default.createElement("ul",{className:"toolbar-select-options"+(a?" open":"")},o))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(r){this._node!==r.target&&(zm(r),this.setState({visible:!1}),this._release())},t}(xi.default.Component);function fee(e){var t=e.onSelect,r=e.label,n=e.selected;return xi.default.createElement("li",{onMouseOver:function(a){a.currentTarget.className="hover"},onMouseOut:function(a){a.currentTarget.className=""},onMouseDown:zm,onMouseUp:t},r,n&&xi.default.createElement("svg",{width:"13",height:"13"},xi.default.createElement("polygon",{points:`4.851,10.462 0,5.611 2.314,3.297 4.851,5.835
|
|
10.686,0 13,2.314 4.851,10.462`})))}function zm(e){e.preventDefault()}var jq=wq;var t3=ze(e3());window.React=Pee;window.ReactDOM=jee;window.SubscriptionsTransportWs=t3.default;window.GraphiQL=jq;})();
|
|
/*
|
|
object-assign
|
|
(c) Sindre Sorhus
|
|
@license MIT
|
|
*/
|
|
/** @license React v0.20.2
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
/** @license React v17.0.2
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
/** @license React v17.0.2
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
//# sourceMappingURL=/static/graphiql.js.map
|