@abtnode/webapp 1.16.21-beta-725f6059 → 1.16.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1366.8a167e7a.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1366],{81366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(5057),o=n(6411),i=n(68420),a=n(74094),s=n(96266);const l="{\n getNodeInfo {\n code\n info {\n did\n pk\n }\n }\n}",c=()=>{const e={},t=(0,a.YW)();return t&&(e.Authorization="Bearer ".concat(t)),"undefined"!==typeof window&&"undefined"!==typeof window.location&&(e["x-real-hostname"]=window.location.hostname,e["x-real-port"]=window.location.port,e["x-real-protocol"]=window.location.protocol),e};function u(){const{t:e}=(0,r.useContext)(i.RD);return(0,s.jsx)(o.Z,{defaultQuery:l,endpoint:"".concat(window.env&&window.env.apiPrefix?window.env.apiPrefix:"","/api/gql").replace(/\/+/g,"/").trim(),title:e("common.console"),enableHistory:!0,enableQueryComposer:!0,enableCodeExporter:!1,extraHeaders:c})}},6411:(e,t,n)=>{"use strict";t.Z=C;var r=n(5057),o=_(n(55898)),i=n(66044),a=_(n(10458)),s=_(n(36676)),l=_(n(4338)),c=_(n(42220)),u=_(n(79239)),p=_(n(13897)),d=n(18700),f=n(17687),h=n(15849);n(3307),n(26762),n(84808);var m,g=n(3044),v=n(17416),y=n(96266);const b=["endpoint","title","enableCodeExporter","enableQueryComposer","enableHistory","extraCodeSnippets"];function _(e){return e&&e.__esModule?e:{default:e}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x(){const{toggle:e}=(0,f.useHistoryContext)();return(0,y.jsx)(l.default.Button,{onClick:e,label:"History",title:"Show History"})}function S(){const e=(0,f.usePrettifyEditors)();return(0,y.jsx)(l.default.Button,{onClick:e,label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"})}function C(e){const t=(0,g.mergeProps)(e,C,["style","persistentQuery","enableQueryComposer","enableCodeExporter","enableHistory"]),n=(0,h.useLocation)(),o=(0,h.useNavigate)(),i=(0,r.useRef)(null),f=(0,r.useRef)(null),[m,_]=(0,r.useState)(null),[E,w]=(0,r.useState)(t.defaultQuery||"{}"),[A,O]=(0,r.useState)(t.enableQueryComposer),[I,D]=(0,r.useState)(!1),L=e=>{const{pathname:t,search:r}=n,i=(0,g.parseQuery)(r);i.query=e;const a="".concat(t,"?").concat((0,g.stringifyQuery)(i));o(a)};(0,r.useEffect)((()=>{if(t.persistentQuery){const e=(0,g.parseQuery)(window.location.search);e.query?w(e.query):L(E)}}),[]);const F=e=>{e!==E&&t.persistentQuery&&L(e),w(e)},M=()=>{O(!A)},R=()=>D(!I),j=async e=>{const n="function"===typeof t.extraHeaders?t.extraHeaders():t.extraHeaders||{};return(await(0,a.default)({method:"post",url:t.endpoint,data:e,headers:Object.assign({"Content-Type":"application/json"},n)})).data};(0,r.useEffect)((()=>{j({query:(0,d.getIntrospectionQuery)()}).then((e=>{i.current&&_((0,d.buildClientSchema)(e.data))}))}),[i.current]);const{endpoint:P,title:V,enableCodeExporter:q,enableQueryComposer:U,enableHistory:B,extraCodeSnippets:z}=t,H=k(t,b),G=[...z,...p.default];return(0,y.jsxs)(N,T(T({},H),{},{children:[(0,y.jsx)(s.default,{url:"//cdn.jsdelivr.net/npm/@absinthe/socket-graphiql@0.2.1/compat/umd/index.js"}),U&&(0,y.jsx)(c.default,{schema:m,query:E,onEdit:F,onRunOperation:e=>i.current.handleRunQuery(e),explorerIsOpen:A,onToggleExplorer:M,className:"graphiql-explorer"}),(0,y.jsxs)(l.default,{ref:i,fetcher:e=>e.query.indexOf("subscription")>=0?((()=>{f.current&&(f.current.close(),f.current=null);const{endpoint:e}=t;let n=e.replace(/https?:\/\//,"ws://");0===e.indexOf("https://")&&(n=n.replace("ws://","wss://")),f.current=new AbsintheSocketGraphiql.SubscriptionsClient(localStorage.getItem("websocket")||"".concat(n,"/socket"),{reconnect:!0,connectionParams:{}})})(),(0,v.graphQLFetcher)(f.current,j)(e)):j(e),schema:m,query:E,onEditQuery:F,children:[(0,y.jsx)(l.default.Logo,{children:V}),(0,y.jsxs)(l.default.Toolbar,{children:[(0,y.jsx)(S,{}),B&&(0,y.jsx)(x,{}),U&&(0,y.jsx)(l.default.Button,{onClick:M,label:"Query Composer",title:"Toggle Query Composer"}),q&&(0,y.jsx)(l.default.Button,{onClick:R,label:"Code Exporter",title:"Toggle Code Exporter"})]})]}),q&&I&&(0,y.jsx)("div",{className:"graphiql-container graphiql-exporter-container",children:(0,y.jsx)(u.default,{hideCodeExporter:R,snippets:G,serverUrl:P,query:E,codeMirrorTheme:"neo"})})]}))}C.propTypes={endpoint:o.default.string.isRequired,defaultQuery:o.default.string,title:o.default.string,persistentQuery:o.default.bool,enableQueryComposer:o.default.bool,enableCodeExporter:o.default.bool,enableHistory:o.default.bool,extraCodeSnippets:o.default.array,extraHeaders:o.default.any},C.defaultProps={title:"Query",defaultQuery:"{}",persistentQuery:!1,enableQueryComposer:!0,enableCodeExporter:!1,enableHistory:!1,extraCodeSnippets:[],extraHeaders:{}};const N=(0,i.styled)("div")(m||(A=["\n display: flex;\n flex-direction: row;\n flex: 1;\n overflow: hidden;\n height: 100%;\n position: relative;\n\n @media (max-width: ","px) {\n margin-top: 30px;\n }\n\n > .historyPaneWrap {\n z-index: 8 !important;\n width: 320px !important;\n box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, ",");\n overflow-y: scroll;\n }\n\n .doc-explorer-title-bar,\n .history-title-bar {\n height: 45px;\n line-height: 45px;\n padding: 0px 8px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n .doc-explorer-title-bar {\n padding: 0px 32px;\n }\n\n .doc-explorer-title,\n .history-title {\n font-size: 14px;\n font-weight: 900;\n letter-spacing: 2px;\n color: ",";\n text-transform: uppercase;\n text-align: left !important;\n }\n\n .doc-explorer-contents {\n min-height: 0;\n }\n .history-contents {\n top: 45px !important;\n background-color: "," !important;\n border-top: 1px solid #e3e3e3 !important;\n }\n\n .history-contents {\n color: ",";\n p {\n border-bottom: 1px solid #e3e3e3;\n }\n }\n\n .docExplorerHide {\n color: ",";\n padding: 0;\n cursor: pointer;\n margin: -7px -8px -6px -12px;\n opacity: 0.75;\n font-size: 18px;\n }\n\n .toolbar-button {\n cursor: pointer;\n }\n\n .graphiql-container {\n .title {\n color: ",";\n }\n\n .topBar {\n background-image: none;\n height: 45px;\n border-bottom-width: 0;\n }\n\n .docExplorerShow {\n background: ",";\n border: none;\n font-size: 14px;\n color: ",";\n text-transform: uppercase;\n\n &::before {\n border-color: ",";\n }\n }\n\n .historyPaneWrap {\n width: 320px !important;\n background-color: ",";\n box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, ",");\n }\n\n .search-box {\n margin-bottom: 20px;\n border-bottom: none;\n\n input {\n height: 30px;\n border-radius: 15px;\n border: solid 1px ",";\n padding: 6px 24px 8px 30px;\n }\n\n .search-box-clear {\n right: 10px;\n }\n\n &::before {\n left: 10px;\n }\n }\n\n .variable-editor-title {\n background: ",";\n border: none;\n height: 40px;\n padding-left: 20px;\n\n &::before {\n border-left: 2px solid ",";\n border-top: 2px solid ",";\n content: '';\n display: inline-block;\n height: 9px;\n margin: 0 5px 1px 0;\n position: relative;\n -webkit-transform: rotate(-135deg);\n transform: rotate(-135deg);\n width: 9px;\n }\n }\n\n .resultWrap {\n border-left: none;\n .CodeMirror-gutters {\n opacity: 0.5;\n }\n .CodeMirror-gutter.CodeMirror-foldgutter {\n box-shadow: 5px 16px 10px 0 rgba(0, 0, 0, ",");\n }\n }\n\n .CodeMirror,\n .CodeMirror-gutters,\n .CodeMirror-linenumber,\n .CodeMirror-foldgutter {\n background: ",";\n }\n\n .variable-editor {\n .CodeMirror {\n background: white;\n }\n }\n\n .CodeMirror-gutters {\n border-right-width: 0;\n }\n }\n\n .graphiql-exporter-container {\n width: auto;\n .historyPaneWrap {\n position: absolute !important;\n height: 100%;\n top: 0;\n right: 0;\n background-color: ",";\n box-shadow: -5px 16px 10px 0 rgba(0, 0, 0, ",");\n z-index: 3;\n\n .history-contents {\n padding-top: 12px;\n .toolbar-button {\n margin-top: -24px !important;\n }\n }\n }\n }\n"],O||(O=A.slice(0)),m=Object.freeze(Object.defineProperties(A,{raw:{value:Object.freeze(O)}}))),(e=>e.theme.breakpoints.values.md),(e=>"light"===e.theme.mode?.05:.5),(e=>e.theme.typography.color.gray),(e=>e.theme.palette.background.default),(e=>e.theme.typography.color.main),(e=>e.theme.typography.color.main),(e=>e.theme.typography.color.main),(e=>e.theme.palette.background.default),(e=>e.theme.typography.color.main),(e=>e.theme.typography.color.gray),(e=>e.theme.palette.background.default),(e=>"light"===e.theme.mode?.05:.5),(e=>e.theme.typography.color.main),(e=>e.theme.palette.background.default),(e=>e.theme.typography.color.gray),(e=>e.theme.typography.color.gray),(e=>"light"===e.theme.mode?.05:.5),(e=>e.theme.palette.background.default),(e=>e.theme.palette.background.default),(e=>"light"===e.theme.mode?.05:.5));var A,O},17416:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphQLFetcher=void 0;var r=n(18700);t.graphQLFetcher=(e,t)=>{let n=null;return o=>(e&&null!==n&&e.unsubscribe(n),e&&(e=>{const t=(0,r.parse)(e.query);for(const n of t.definitions)if("OperationDefinition"===n.kind&&"subscription"===n.operation)return!0;return!1})(o)?{subscribe(t){t.next("Your subscription data will appear here after server publication!"),n=e.subscribe({query:o.query,variables:o.variables},((e,n)=>{e?t.error(e):t.next(n)}))}}:t(o))}},17687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorContext:()=>r.E,EditorContextProvider:()=>r.a,ExecutionContext:()=>r.q,ExecutionContextProvider:()=>r.r,ExplorerContext:()=>r.v,ExplorerContextProvider:()=>r.w,HistoryContext:()=>r.H,HistoryContextProvider:()=>r.y,ImagePreview:()=>r.b,SchemaContext:()=>r.S,SchemaContextProvider:()=>r.B,StorageContext:()=>r.F,StorageContextProvider:()=>r.G,onHasCompletion:()=>r.d,useAutoCompleteLeafs:()=>r.u,useCopyQuery:()=>r.e,useDragResize:()=>r.K,useEditorContext:()=>r.f,useExecutionContext:()=>r.s,useExplorerContext:()=>r.x,useHeaderEditor:()=>r.g,useHistoryContext:()=>r.z,useMergeQuery:()=>r.h,usePrettifyEditors:()=>r.j,useQueryEditor:()=>r.k,useResponseEditor:()=>r.m,useSchemaContext:()=>r.D,useSelectHistoryItem:()=>r.A,useStorageContext:()=>r.J,useVariableEditor:()=>r.n});var r=n(40125);n(5057),n(53627)},40125:(e,t,n)=>{"use strict";n.d(t,{A:()=>Os,B:()=>Ws,C:()=>Ra,D:()=>Qs,E:()=>ic,F:()=>Zo,G:()=>ei,H:()=>ws,I:()=>Ui,J:()=>ti,K:()=>hc,L:()=>Ha,P:()=>Ga,R:()=>Ja,S:()=>Gs,a:()=>ac,b:()=>vo,c:()=>N,d:()=>Zr,e:()=>fl,f:()=>sc,g:()=>bl,h:()=>hl,i:()=>za,j:()=>ml,k:()=>Nl,l:()=>Va,m:()=>pc,n:()=>tc,o:()=>Pa,p:()=>Ba,q:()=>Ls,r:()=>Fs,s:()=>Ms,t:()=>Ua,u:()=>gl,v:()=>Zs,w:()=>el,x:()=>tl,y:()=>ks,z:()=>xs});var r=n(10949),o=n(92460),i=n(23857),a=n(7751),s=n(56327),l=n(60844),c=n(80371),u=n(540),p=n(88041),d=n(89836),f=n(91681),h=n(95122),m=n(5057),g=n(53627),v=Object.defineProperty,y=Object.defineProperties,b=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))E.call(t,n)&&w(e,n,t[n]);if(_)for(var n of _(t))T.call(t,n)&&w(e,n,t[n]);return e},x=(e,t)=>y(e,b(t)),S=(e,t)=>v(e,"name",{value:t,configurable:!0}),C=(e,t)=>{var n={};for(var r in e)E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_)for(var r of _(e))t.indexOf(r)<0&&T.call(e,r)&&(n[r]=e[r]);return n},N="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}S(A,"getDefaultExportFromCjs"),S(O,"getAugmentedNamespace");var I=/["'&<>]/,D=L;function L(e){var t,n=""+e,r=I.exec(n);if(!r)return n;var o="",i=0,a=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==i&&(o+=n.substring(a,i)),a=i+1,o+=t}return a!==i?o+n.substring(a,i):o}S(L,"escapeHtml$1");var F={};var M={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:"\ud835\udd04",afr:"\ud835\udd1e",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:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",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:"\ud835\udd05",bfr:"\ud835\udd1f",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:"\ud835\udd39",bopf:"\ud835\udd53",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:"\ud835\udcb7",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:"\ud835\udd20",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:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",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:"\ud835\udd07",dfr:"\ud835\udd21",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:"\ud835\udd3b",dopf:"\ud835\udd55",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:"\ud835\udc9f",dscr:"\ud835\udcb9",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:"\ud835\udd08",efr:"\ud835\udd22",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:"\ud835\udd3c",eopf:"\ud835\udd56",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:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",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:"\ud835\udcbb",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:"\ud835\udd0a",gfr:"\ud835\udd24",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:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",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:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",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:"\ud835\udd26",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:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",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:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",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:"\ud835\udd0f",lfr:"\ud835\udd29",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:"\ud835\udd43",lopf:"\ud835\udd5d",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:"\ud835\udcc1",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:"\ud835\udd10",mfr:"\ud835\udd2a",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:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",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:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",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:"\ud835\udd5f",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:"\ud835\udca9",nscr:"\ud835\udcc3",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:"\ud835\udd12",ofr:"\ud835\udd2c",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:"\ud835\udd46",oopf:"\ud835\udd60",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:"\ud835\udcaa",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:"\ud835\udd13",pfr:"\ud835\udd2d",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:"\ud835\udd61",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:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",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:"\ud835\udd2f",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:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",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:"\ud835\udd16",sfr:"\ud835\udd30",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:"\ud835\udd4a",sopf:"\ud835\udd64",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:"\ud835\udcae",sscr:"\ud835\udcc8",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:"\t",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:"\ud835\udd17",tfr:"\ud835\udd31",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:"\ud835\udd4b",topf:"\ud835\udd65",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:"\ud835\udcaf",tscr:"\ud835\udcc9",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:"\ud835\udd18",ufr:"\ud835\udd32",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:"\ud835\udd4c",uopf:"\ud835\udd66",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:"\ud835\udcb0",uscr:"\ud835\udcca",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:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",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:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",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:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",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:"\ud835\udd37",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"},R=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,j={},P={};function V(e){var t,n,r=P[e];if(r)return r;for(r=P[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function q(e,t,n){var r,o,i,a,s,l="";for("string"!==typeof t&&(n=t,t=q.defaultChars),"undefined"===typeof n&&(n=!0),s=V(t),r=0,o=e.length;r<o;r++)if(i=e.charCodeAt(r),n&&37===i&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))l+=e.slice(r,r+3),r+=2;else if(i<128)l+=s[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){l+=encodeURIComponent(e[r]+e[r+1]),r++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[r]);return l}S(V,"getEncodeCache"),S(q,"encode$1"),q.defaultChars=";/?:@&=+$,-_.!~*'()#",q.componentChars="-_.!~*'()";var U=q,B={};function z(e){var t,n,r=B[e];if(r)return r;for(r=B[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function H(e,t){var n;return"string"!==typeof t&&(t=H.defaultChars),n=z(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,o,i,a,s,l,c="";for(t=0,r=e.length;t<r;t+=3)(o=parseInt(e.slice(t+1,t+3),16))<128?c+=n[o]:192===(224&o)&&t+3<r&&128===(192&(i=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=o<<6&1984|63&i)<128?"\ufffd\ufffd":String.fromCharCode(l),t+=3):224===(240&o)&&t+6<r&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&i)&&128===(192&a))?(c+=(l=o<<12&61440|i<<6&4032|63&a)<2048||l>=55296&&l<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(l),t+=6):240===(248&o)&&t+9<r&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&i)&&128===(192&a)&&128===(192&s))?((l=o<<18&1835008|i<<12&258048|a<<6&4032|63&s)<65536||l>1114111?c+="\ufffd\ufffd\ufffd\ufffd":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="\ufffd";return c}))}S(z,"getDecodeCache"),S(H,"decode$1"),H.defaultChars=";/?:@&=+$,#",H.componentChars="";var G=H,W=S((function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}),"format");function Q(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}S(Q,"Url");var X=/^([a-z0-9.+-]+:)/i,J=/:[0-9]*$/,Y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),K=["'"].concat($),Z=["%","/","?",";","#"].concat(K),ee=["/","?","#"],te=/^[+a-z0-9A-Z_-]{0,63}$/,ne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,re={javascript:!0,"javascript:":!0},oe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ie(e,t){if(e&&e instanceof Q)return e;var n=new Q;return n.parse(e,t),n}S(ie,"urlParse"),Q.prototype.parse=function(e,t){var n,r,o,i,a,s=e;if(s=s.trim(),!t&&1===e.split("#").length){var l=Y.exec(s);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=X.exec(s);if(c&&(o=(c=c[0]).toLowerCase(),this.protocol=c,s=s.substr(c.length)),(t||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===s.substr(0,2))||c&&re[c]||(s=s.substr(2),this.slashes=!0)),!re[c]&&(a||c&&!oe[c])){var u,p,d=-1;for(n=0;n<ee.length;n++)-1!==(i=s.indexOf(ee[n]))&&(-1===d||i<d)&&(d=i);for(-1!==(p=-1===d?s.lastIndexOf("@"):s.lastIndexOf("@",d))&&(u=s.slice(0,p),s=s.slice(p+1),this.auth=u),d=-1,n=0;n<Z.length;n++)-1!==(i=s.indexOf(Z[n]))&&(-1===d||i<d)&&(d=i);-1===d&&(d=s.length),":"===s[d-1]&&d--;var f=s.slice(0,d);s=s.slice(d),this.parseHost(f),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var g=m[n];if(g&&!g.match(te)){for(var v="",y=0,b=g.length;y<b;y++)g.charCodeAt(y)>127?v+="x":v+=g[y];if(!v.match(te)){var _=m.slice(0,n),E=m.slice(n+1),T=g.match(ne);T&&(_.push(T[1]),E.unshift(T[2])),E.length&&(s=E.join(".")+s),this.hostname=_.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var w=s.indexOf("#");-1!==w&&(this.hash=s.substr(w),s=s.slice(0,w));var k=s.indexOf("?");return-1!==k&&(this.search=s.substr(k),s=s.slice(0,k)),s&&(this.pathname=s),oe[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Q.prototype.parseHost=function(e){var t=J.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var ae=ie;j.encode=U,j.decode=G,j.format=W,j.parse=ae;var se={},le=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ce=/[\0-\x1F\x7F-\x9F]/,ue=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;se.Any=le,se.Cc=ce,se.Cf=/[\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]/,se.P=R,se.Z=ue,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}S(t,"_class"),S(n,"isString");var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function a(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function s(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function l(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}S(o,"has"),S(i,"assign"),S(a,"arrayReplaceAt"),S(s,"isValidEntityCode"),S(l,"fromCodePoint");var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(c.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=M;function f(e,t){var n=0;return o(d,t)?d[t]:35===t.charCodeAt(0)&&p.test(t)&&s(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?l(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(c,"$1")}function m(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||f(e,n)}))}S(f,"replaceEntityPattern"),S(h,"unescapeMd"),S(m,"unescapeAll");var g=/[&<>"]/,v=/[&<>"]/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function b(e){return y[e]}function _(e){return g.test(e)?e.replace(v,b):e}S(b,"replaceUnsafeChar"),S(_,"escapeHtml");var E=/[.?*+^$[\]\\(){}|-]/g;function T(e){return e.replace(E,"\\$&")}function w(e){switch(e){case 9:case 32:return!0}return!1}function k(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}S(T,"escapeRE"),S(w,"isSpace"),S(k,"isWhiteSpace");var x=R;function C(e){return x.test(e)}function N(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 A(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}S(C,"isPunctChar"),S(N,"isMdAsciiPunct"),S(A,"normalizeReference"),e.lib={},e.lib.mdurl=j,e.lib.ucmicro=se,e.assign=i,e.isString=n,e.has=o,e.unescapeMd=h,e.unescapeAll=m,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=_,e.arrayReplaceAt=a,e.isSpace=w,e.isWhiteSpace=k,e.isMdAsciiPunct=N,e.isPunctChar=C,e.escapeRE=T,e.normalizeReference=A}(F);var pe={},de=S((function(e,t,n){var r,o,i,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(i=e.src.charCodeAt(e.pos))&&0===--r){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===i)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return o&&(s=e.pos),e.pos=c,s}),"parseLinkLabel"),fe=F.unescapeAll,he=S((function(e,t,n){var r,o,i=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=fe(e.slice(i+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(o=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++o>32)return a;if(41===r){if(0===o)break;o--}t++}return i===t||0!==o||(a.str=fe(e.slice(i,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),me=F.unescapeAll,ge=S((function(e,t,n){var r,o,i=0,a=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return s;for(t++,40===o&&(o=41);t<n;){if((r=e.charCodeAt(t))===o)return s.pos=t+1,s.lines=i,s.str=me(e.slice(a+1,t)),s.ok=!0,s;if(40===r&&41===o)return s;10===r?i++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&i++),t++}return s}),"parseLinkTitle");pe.parseLinkLabel=de,pe.parseLinkDestination=he,pe.parseLinkTitle=ge;var ve=F.assign,ye=F.unescapeAll,be=F.escapeHtml,_e={};function Ee(){this.rules=ve({},_e)}_e.code_inline=function(e,t,n,r,o){var i=e[t];return"<code"+o.renderAttrs(i)+">"+be(e[t].content)+"</code>"},_e.code_block=function(e,t,n,r,o){var i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+be(e[t].content)+"</code></pre>\n"},_e.fence=function(e,t,n,r,o){var i,a,s,l,c,u=e[t],p=u.info?ye(u.info).trim():"",d="",f="";return p&&(d=(s=p.split(/(\s+)/g))[0],f=s.slice(2).join("")),0===(i=n.highlight&&n.highlight(u.content,d,f)||be(u.content)).indexOf("<pre")?i+"\n":p?(a=u.attrIndex("class"),l=u.attrs?u.attrs.slice():[],a<0?l.push(["class",n.langPrefix+d]):(l[a]=l[a].slice(),l[a][1]+=" "+n.langPrefix+d),c={attrs:l},"<pre><code"+o.renderAttrs(c)+">"+i+"</code></pre>\n"):"<pre><code"+o.renderAttrs(u)+">"+i+"</code></pre>\n"},_e.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},_e.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},_e.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},_e.text=function(e,t){return be(e[t].content)},_e.html_block=function(e,t){return e[t].content},_e.html_inline=function(e,t){return e[t].content},S(Ee,"Renderer$1"),Ee.prototype.renderAttrs=S((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+be(e.attrs[t][0])+'="'+be(e.attrs[t][1])+'"';return r}),"renderAttrs"),Ee.prototype.renderToken=S((function(e,t,n){var r,o="",i=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===a.nesting?"</":"<")+a.tag,o+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(o+=" /"),a.block&&(i=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(i=!1)),o+=i?">\n":">")}),"renderToken"),Ee.prototype.renderInline=function(e,t,n){for(var r,o="",i=this.rules,a=0,s=e.length;a<s;a++)"undefined"!==typeof i[r=e[a].type]?o+=i[r](e,a,t,n,this):o+=this.renderToken(e,a,t);return o},Ee.prototype.renderInlineAsText=function(e,t,n){for(var r="",o=0,i=e.length;o<i;o++)"text"===e[o].type?r+=e[o].content:"image"===e[o].type?r+=this.renderInlineAsText(e[o].children,t,n):"softbreak"===e[o].type&&(r+="\n");return r},Ee.prototype.render=function(e,t,n){var r,o,i,a="",s=this.rules;for(r=0,o=e.length;r<o;r++)"inline"===(i=e[r].type)?a+=this.renderInline(e[r].children,t,n):"undefined"!==typeof s[i]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var Te=Ee;function we(){this.__rules__=[],this.__cache__=null}S(we,"Ruler$3"),we.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},we.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},we.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},we.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},we.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},we.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},we.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},we.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},we.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},we.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var ke=we,xe=/\r\n?|\n/g,Se=/\0/g,Ce=S((function(e){var t;t=(t=e.src.replace(xe,"\n")).replace(Se,"\ufffd"),e.src=t}),"normalize"),Ne=S((function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}),"block"),Ae=S((function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}),"inline"),Oe=F.arrayReplaceAt;function Ie(e){return/^<a[>\s]/i.test(e)}function De(e){return/^<\/a\s*>/i.test(e)}S(Ie,"isLinkOpen"),S(De,"isLinkClose");var Le=S((function(e){var t,n,r,o,i,a,s,l,c,u,p,d,f,h,m,g,v,y=e.tokens;if(e.md.options.linkify)for(n=0,r=y.length;n<r;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(f=0,t=(o=y[n].children).length-1;t>=0;t--)if("link_close"!==(a=o[t]).type){if("html_inline"===a.type&&(Ie(a.content)&&f>0&&f--,De(a.content)&&f++),!(f>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(c=a.content,v=e.md.linkify.match(c),s=[],d=a.level,p=0,l=0;l<v.length;l++)h=v[l].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(g=v[l].text,g=v[l].schema?"mailto:"!==v[l].schema||/^mailto:/i.test(g)?e.md.normalizeLinkText(g):e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,""),(u=v[l].index)>p&&((i=new e.Token("text","",0)).content=c.slice(p,u),i.level=d,s.push(i)),(i=new e.Token("link_open","a",1)).attrs=[["href",m]],i.level=d++,i.markup="linkify",i.info="auto",s.push(i),(i=new e.Token("text","",0)).content=g,i.level=d,s.push(i),(i=new e.Token("link_close","a",-1)).level=--d,i.markup="linkify",i.info="auto",s.push(i),p=v[l].lastIndex);p<c.length&&((i=new e.Token("text","",0)).content=c.slice(p),i.level=d,s.push(i)),y[n].children=o=Oe(o,t,s)}}else for(t--;o[t].level!==a.level&&"link_open"!==o[t].type;)t--}),"linkify"),Fe=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Me=/\((c|tm|r|p)\)/i,Re=/\((c|tm|r|p)\)/gi,je={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function Pe(e,t){return je[t.toLowerCase()]}function Ve(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Re,Pe)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function qe(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Fe.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}S(Pe,"replaceFn"),S(Ve,"replace_scoped"),S(qe,"replace_rare");var Ue=S((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Me.test(e.tokens[t].content)&&Ve(e.tokens[t].children),Fe.test(e.tokens[t].content)&&qe(e.tokens[t].children))}),"replace"),Be=F.isWhiteSpace,ze=F.isPunctChar,He=F.isMdAsciiPunct,Ge=/['"]/,We=/['"]/g;function Qe(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Xe(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T;for(_=[],n=0;n<e.length;n++){for(r=e[n],l=e[n].level,y=_.length-1;y>=0&&!(_[y].level<=l);y--);if(_.length=y+1,"text"===r.type){a=0,s=(o=r.content).length;e:for(;a<s&&(We.lastIndex=a,i=We.exec(o));){if(g=v=!0,a=i.index+1,b="'"===i[0],u=32,i.index-1>=0)u=o.charCodeAt(i.index-1);else for(y=n-1;y>=0&&("softbreak"!==e[y].type&&"hardbreak"!==e[y].type);y--)if(e[y].content){u=e[y].content.charCodeAt(e[y].content.length-1);break}if(p=32,a<s)p=o.charCodeAt(a);else for(y=n+1;y<e.length&&("softbreak"!==e[y].type&&"hardbreak"!==e[y].type);y++)if(e[y].content){p=e[y].content.charCodeAt(0);break}if(d=He(u)||ze(String.fromCharCode(u)),f=He(p)||ze(String.fromCharCode(p)),h=Be(u),(m=Be(p))?g=!1:f&&(h||d||(g=!1)),h?v=!1:d&&(m||f||(v=!1)),34===p&&'"'===i[0]&&u>=48&&u<=57&&(v=g=!1),g&&v&&(g=d,v=f),g||v){if(v)for(y=_.length-1;y>=0&&(c=_[y],!(_[y].level<l));y--)if(c.single===b&&_[y].level===l){c=_[y],b?(E=t.md.options.quotes[2],T=t.md.options.quotes[3]):(E=t.md.options.quotes[0],T=t.md.options.quotes[1]),r.content=Qe(r.content,i.index,T),e[c.token].content=Qe(e[c.token].content,c.pos,E),a+=T.length-1,c.token===n&&(a+=E.length-1),s=(o=r.content).length,_.length=y;continue e}g?_.push({token:n,pos:i.index,single:b,level:l}):v&&b&&(r.content=Qe(r.content,i.index,"\u2019"))}else b&&(r.content=Qe(r.content,i.index,"\u2019"))}}}}S(Qe,"replaceAt"),S(Xe,"process_inlines");var Je=S((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Ge.test(e.tokens[t].content)&&Xe(e.tokens[t].children,e)}),"smartquotes");function Ye(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}S(Ye,"Token$3"),Ye.prototype.attrIndex=S((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1}),"attrIndex"),Ye.prototype.attrPush=S((function(e){this.attrs?this.attrs.push(e):this.attrs=[e]}),"attrPush"),Ye.prototype.attrSet=S((function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r}),"attrSet"),Ye.prototype.attrGet=S((function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n}),"attrGet"),Ye.prototype.attrJoin=S((function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}),"attrJoin");var $e=Ye,Ke=$e;function Ze(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}S(Ze,"StateCore"),Ze.prototype.Token=Ke;var et=Ze,tt=ke,nt=[["normalize",Ce],["block",Ne],["inline",Ae],["linkify",Le],["replacements",Ue],["smartquotes",Je]];function rt(){this.ruler=new tt;for(var e=0;e<nt.length;e++)this.ruler.push(nt[e][0],nt[e][1])}S(rt,"Core"),rt.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},rt.prototype.State=et;var ot=rt,it=F.isSpace;function at(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function st(e){var t,n=[],r=0,o=e.length,i=!1,a=0,s="";for(t=e.charCodeAt(r);r<o;)124===t&&(i?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),i=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}S(at,"getLine"),S(st,"escapedSplit");var lt=S((function(e,t,n,r){var o,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E;if(t+2>n)return!1;if(c=t+1,e.sCount[c]<e.blkIndent)return!1;if(e.sCount[c]-e.blkIndent>=4)return!1;if((a=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1;if(124!==(_=e.src.charCodeAt(a++))&&45!==_&&58!==_)return!1;if(a>=e.eMarks[c])return!1;if(124!==(E=e.src.charCodeAt(a++))&&45!==E&&58!==E&&!it(E))return!1;if(45===_&&it(E))return!1;for(;a<e.eMarks[c];){if(124!==(o=e.src.charCodeAt(a))&&45!==o&&58!==o&&!it(o))return!1;a++}for(u=(i=at(e,t+1)).split("|"),f=[],s=0;s<u.length;s++){if(!(h=u[s].trim())){if(0===s||s===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?f.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?f.push("left"):f.push("")}if(-1===(i=at(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=st(i)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(p=u.length)||p!==f.length)return!1;if(r)return!0;for(v=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(d=e.push("table_open","table",1)).map=m=[t,0],(d=e.push("thead_open","thead",1)).map=[t,t+1],(d=e.push("tr_open","tr",1)).map=[t,t+1],s=0;s<u.length;s++)d=e.push("th_open","th",1),f[s]&&(d.attrs=[["style","text-align:"+f[s]]]),(d=e.push("inline","",0)).content=u[s].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),c=t+2;c<n&&!(e.sCount[c]<e.blkIndent);c++){for(y=!1,s=0,l=b.length;s<l;s++)if(b[s](e,c,n,!0)){y=!0;break}if(y)break;if(!(i=at(e,c).trim()))break;if(e.sCount[c]-e.blkIndent>=4)break;for((u=st(i)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),c===t+2&&((d=e.push("tbody_open","tbody",1)).map=g=[t+2,0]),(d=e.push("tr_open","tr",1)).map=[c,c+1],s=0;s<p;s++)d=e.push("td_open","td",1),f[s]&&(d.attrs=[["style","text-align:"+f[s]]]),(d=e.push("inline","",0)).content=u[s]?u[s].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return g&&(d=e.push("tbody_close","tbody",-1),g[1]=c),d=e.push("table_close","table",-1),m[1]=c,e.parentType=v,e.line=c,!0}),"table"),ct=S((function(e,t,n){var r,o,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;o=++r}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}),"code"),ut=S((function(e,t,n,r){var o,i,a,s,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(o=e.src.charCodeAt(d))&&96!==o)return!1;if(l=d,(i=(d=e.skipChars(d,o))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,f),96===o&&a.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(d)===o&&!(e.sCount[s]-e.blkIndent>=4)&&!((d=e.skipChars(d,o))-l<i)&&!((d=e.skipSpaces(d))<f)){p=!0;break}return i=e.sCount[t],e.line=s+(p?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,i,!0),c.markup=u,c.map=[t,e.line],!0}),"fence"),pt=F.isSpace,dt=S((function(e,t,n,r){var o,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T,w,k=e.lineMax,x=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(r)return!0;for(s=d=e.sCount[t]+1,32===e.src.charCodeAt(x)?(x++,s++,d++,o=!1,b=!0):9===e.src.charCodeAt(x)?(b=!0,(e.bsCount[t]+d)%4===3?(x++,s++,d++,o=!1):o=!0):b=!1,f=[e.bMarks[t]],e.bMarks[t]=x;x<S&&(i=e.src.charCodeAt(x),pt(i));)9===i?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,x++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),c=x>=S,v=[e.sCount[t]],e.sCount[t]=d-s,y=[e.tShift[t]],e.tShift[t]=x-e.bMarks[t],E=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(w=e.sCount[p]<e.blkIndent,!((x=e.bMarks[p]+e.tShift[p])>=(S=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(x++)||w){if(c)break;for(_=!1,a=0,l=E.length;a<l;a++)if(E[a](e,p,n,!0)){_=!0;break}if(_){e.lineMax=p,0!==e.blkIndent&&(f.push(e.bMarks[p]),h.push(e.bsCount[p]),y.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}f.push(e.bMarks[p]),h.push(e.bsCount[p]),y.push(e.tShift[p]),v.push(e.sCount[p]),e.sCount[p]=-1}else{for(s=d=e.sCount[p]+1,32===e.src.charCodeAt(x)?(x++,s++,d++,o=!1,b=!0):9===e.src.charCodeAt(x)?(b=!0,(e.bsCount[p]+d)%4===3?(x++,s++,d++,o=!1):o=!0):b=!1,f.push(e.bMarks[p]),e.bMarks[p]=x;x<S&&(i=e.src.charCodeAt(x),pt(i));)9===i?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,x++;c=x>=S,h.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(b?1:0),v.push(e.sCount[p]),e.sCount[p]=d-s,y.push(e.tShift[p]),e.tShift[p]=x-e.bMarks[p]}for(m=e.blkIndent,e.blkIndent=0,(T=e.push("blockquote_open","blockquote",1)).markup=">",T.map=u=[t,0],e.md.block.tokenize(e,t,p),(T=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=k,e.parentType=g,u[1]=e.line,a=0;a<y.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=y[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0}),"blockquote"),ft=F.isSpace,ht=S((function(e,t,n,r){var o,i,a,s,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(i=1;l<c;){if((a=e.src.charCodeAt(l++))!==o&&!ft(a))return!1;a===o&&i++}return!(i<3)&&(r||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(i+1).join(String.fromCharCode(o))),!0)}),"hr"),mt=F.isSpace;function gt(e,t){var n,r,o,i;return r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<o&&(i=e.src.charCodeAt(r),!mt(i))?-1:r}function vt(e,t){var n,r=e.bMarks[t]+e.tShift[t],o=r,i=e.eMarks[t];if(o+1>=i)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=i)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-r>=10)return-1}return o<i&&(n=e.src.charCodeAt(o),!mt(n))?-1:o}function yt(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}S(gt,"skipBulletListMarker"),S(vt,"skipOrderedListMarker"),S(yt,"markTightParagraphs");var bt=S((function(e,t,n,r){var o,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T,w,k,x,S,C,N,A,O,I,D=!1,L=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(D=!0),(S=vt(e,t))>=0){if(u=!0,N=e.bMarks[t]+e.tShift[t],g=Number(e.src.slice(N,S-1)),D&&1!==g)return!1}else{if(!((S=gt(e,t))>=0))return!1;u=!1}if(D&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(S-1),r)return!0;for(h=e.tokens.length,u?(I=e.push("ordered_list_open","ol",1),1!==g&&(I.attrs=[["start",g]])):I=e.push("bullet_list_open","ul",1),I.map=f=[t,0],I.markup=String.fromCharCode(m),y=t,C=!1,O=e.md.block.ruler.getRules("list"),E=e.parentType,e.parentType="list";y<n;){for(x=S,v=e.eMarks[y],c=b=e.sCount[y]+S-(e.bMarks[t]+e.tShift[t]);x<v;){if(9===(o=e.src.charCodeAt(x)))b+=4-(b+e.bsCount[y])%4;else{if(32!==o)break;b++}x++}if((l=(i=x)>=v?1:b-c)>4&&(l=1),s=c+l,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),I.map=p=[t,0],u&&(I.info=e.src.slice(N,S-1)),k=e.tight,w=e.tShift[t],T=e.sCount[t],_=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=s,e.tight=!0,e.tShift[t]=i-e.bMarks[t],e.sCount[t]=b,i>=v&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!C||(L=!1),C=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[t]=w,e.sCount[t]=T,e.tight=k,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),y=t=e.line,p[1]=y,i=e.bMarks[t],y>=n)break;if(e.sCount[y]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(A=!1,a=0,d=O.length;a<d;a++)if(O[a](e,y,n,!0)){A=!0;break}if(A)break;if(u){if((S=vt(e,y))<0)break;N=e.bMarks[y]+e.tShift[y]}else if((S=gt(e,y))<0)break;if(m!==e.src.charCodeAt(S-1))break}return(I=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),f[1]=y,e.line=y,e.parentType=E,L&&yt(e,h),!0}),"list"),_t=F.normalizeReference,Et=F.isSpace,Tt=S((function(e,t,n,r){var o,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_=0,E=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],w=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(E))return!1;for(;++E<T;)if(93===e.src.charCodeAt(E)&&92!==e.src.charCodeAt(E-1)){if(E+1===T)return!1;if(58!==e.src.charCodeAt(E+1))return!1;break}for(s=e.lineMax,y=e.md.block.ruler.getRules("reference"),f=e.parentType,e.parentType="reference";w<s&&!e.isEmpty(w);w++)if(!(e.sCount[w]-e.blkIndent>3)&&!(e.sCount[w]<0)){for(v=!1,c=0,u=y.length;c<u;c++)if(y[c](e,w,s,!0)){v=!0;break}if(v)break}for(T=(g=e.getLines(t,w,e.blkIndent,!1).trim()).length,E=1;E<T;E++){if(91===(o=g.charCodeAt(E)))return!1;if(93===o){d=E;break}(10===o||92===o&&++E<T&&10===g.charCodeAt(E))&&_++}if(d<0||58!==g.charCodeAt(d+1))return!1;for(E=d+2;E<T;E++)if(10===(o=g.charCodeAt(E)))_++;else if(!Et(o))break;if(!(h=e.md.helpers.parseLinkDestination(g,E,T)).ok)return!1;if(l=e.md.normalizeLink(h.str),!e.md.validateLink(l))return!1;for(i=E=h.pos,a=_+=h.lines,m=E;E<T;E++)if(10===(o=g.charCodeAt(E)))_++;else if(!Et(o))break;for(h=e.md.helpers.parseLinkTitle(g,E,T),E<T&&m!==E&&h.ok?(b=h.str,E=h.pos,_+=h.lines):(b="",E=i,_=a);E<T&&(o=g.charCodeAt(E),Et(o));)E++;if(E<T&&10!==g.charCodeAt(E)&&b)for(b="",E=i,_=a;E<T&&(o=g.charCodeAt(E),Et(o));)E++;return!(E<T&&10!==g.charCodeAt(E))&&(!!(p=_t(g.slice(1,d)))&&(r||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[p]&&(e.env.references[p]={title:b,href:l}),e.parentType=f,e.line=t+_+1),!0))}),"reference"),wt={},kt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",xt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",St=new RegExp("^(?:"+kt+"|"+xt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Ct=new RegExp("^(?:"+kt+"|"+xt+")");wt.HTML_TAG_RE=St,wt.HTML_OPEN_CLOSE_TAG_RE=Ct;var Nt=["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","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],At=wt.HTML_OPEN_CLOSE_TAG_RE,Ot=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Nt.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(At.source+"\\s*$"),/^$/,!1]],It=S((function(e,t,n,r){var o,i,a,s,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(s=e.src.slice(l,c),o=0;o<Ot.length&&!Ot[o][0].test(s);o++);if(o===Ot.length)return!1;if(r)return Ot[o][2];if(i=t+1,!Ot[o][1].test(s))for(;i<n&&!(e.sCount[i]<e.blkIndent);i++)if(l=e.bMarks[i]+e.tShift[i],c=e.eMarks[i],s=e.src.slice(l,c),Ot[o][1].test(s)){0!==s.length&&i++;break}return e.line=i,(a=e.push("html_block","",0)).map=[t,i],a.content=e.getLines(t,i,e.blkIndent,!0),!0}),"html_block"),Dt=F.isSpace,Lt=S((function(e,t,n,r){var o,i,a,s,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=c)return!1;for(i=1,o=e.src.charCodeAt(++l);35===o&&l<c&&i<=6;)i++,o=e.src.charCodeAt(++l);return!(i>6||l<c&&!Dt(o))&&(r||(c=e.skipSpacesBack(c,l),(a=e.skipCharsBack(c,35,l))>l&&Dt(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,(s=e.push("heading_open","h"+String(i),1)).markup="########".slice(0,i),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(l,c).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(i),-1)).markup="########".slice(0,i)),!0)}),"heading"),Ft=S((function(e,t,n){var r,o,i,a,s,l,c,u,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(o=!1,i=0,a=h.length;i<a;i++)if(h[i](e,f,n,!0)){o=!0;break}if(o)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=d,!0)}),"lheading"),Mt=S((function(e,t){var n,r,o,i,a,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(r=!1,o=0,i=c.length;o<i;o++)if(c[o](e,l,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}),"paragraph"),Rt=$e,jt=F.isSpace;function Pt(e,t,n,r){var o,i,a,s,l,c,u,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,a=s=c=u=0,l=(i=this.src).length;s<l;s++){if(o=i.charCodeAt(s),!p){if(jt(o)){c++,9===o?u+=4-u%4:u++;continue}p=!0}10!==o&&s!==l-1||(10!==o&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(u),this.bsCount.push(0),p=!1,c=0,u=0,a=s+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}S(Pt,"StateBlock"),Pt.prototype.push=function(e,t,n){var r=new Rt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Pt.prototype.isEmpty=S((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Pt.prototype.skipEmptyLines=S((function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e}),"skipEmptyLines"),Pt.prototype.skipSpaces=S((function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),jt(t));e++);return e}),"skipSpaces"),Pt.prototype.skipSpacesBack=S((function(e,t){if(e<=t)return e;for(;e>t;)if(!jt(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Pt.prototype.skipChars=S((function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e}),"skipChars"),Pt.prototype.skipCharsBack=S((function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Pt.prototype.getLines=S((function(e,t,n,r){var o,i,a,s,l,c,u,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p<t;p++,o++){for(i=0,u=s=this.bMarks[p],l=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];s<l&&i<n;){if(a=this.src.charCodeAt(s),jt(a))9===a?i+=4-(i+this.bsCount[p])%4:i++;else{if(!(s-u<this.tShift[p]))break;i++}s++}c[o]=i>n?new Array(i-n+1).join(" ")+this.src.slice(s,l):this.src.slice(s,l)}return c.join("")}),"getLines"),Pt.prototype.Token=Rt;var Vt=Pt,qt=ke,Ut=[["table",lt,["paragraph","reference"]],["code",ct],["fence",ut,["paragraph","reference","blockquote","list"]],["blockquote",dt,["paragraph","reference","blockquote","list"]],["hr",ht,["paragraph","reference","blockquote","list"]],["list",bt,["paragraph","reference","blockquote"]],["reference",Tt],["html_block",It,["paragraph","reference","blockquote"]],["heading",Lt,["paragraph","reference","blockquote"]],["lheading",Ft],["paragraph",Mt]];function Bt(){this.ruler=new qt;for(var e=0;e<Ut.length;e++)this.ruler.push(Ut[e][0],Ut[e][1],{alt:(Ut[e][2]||[]).slice()})}S(Bt,"ParserBlock$1"),Bt.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),i=o.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<i&&!o[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Bt.prototype.parse=function(e,t,n,r){var o;e&&(o=new this.State(e,t,n,r),this.tokenize(o,o.line,o.lineMax))},Bt.prototype.State=Vt;var zt=Bt;function Ht(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}}S(Ht,"isTerminatorChar");for(var Gt=S((function(e,t){for(var n=e.pos;n<e.posMax&&!Ht(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}),"text"),Wt=F.isSpace,Qt=S((function(e,t){var n,r,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,r=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<r&&Wt(e.src.charCodeAt(o));)o++;return e.pos=o,!0}),"newline"),Xt=F.isSpace,Jt=[],Yt=0;Yt<256;Yt++)Jt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Jt[e.charCodeAt(0)]=1}));var $t=S((function(e,t){var n,r=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<o){if((n=e.src.charCodeAt(r))<256&&0!==Jt[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),r++;r<o&&(n=e.src.charCodeAt(r),Xt(n));)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}),"escape"),Kt=S((function(e,t){var n,r,o,i,a,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(l=(o=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=o),e.pos+=l,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-a)===l)return t||((i=e.push("code_inline","code",0)).markup=o,i.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}),"backtick"),Zt={};function en(e,t){var n,r,o,i,a,s=[],l=t.length;for(n=0;n<l;n++)126===(o=t[n]).marker&&-1!==o.end&&(i=t[o.end],(a=e.tokens[o.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[i.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&s.push(i.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}Zt.tokenize=S((function(e,t){var n,r,o,i,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(o=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(s),o<2)return!1;for(o%2&&(e.push("text","",0).content=i,o--),n=0;n<o;n+=2)e.push("text","",0).content=i+i,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"strikethrough"),S(en,"postProcess$1"),Zt.postProcess=S((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(en(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&en(e,n[t].delimiters)}),"strikethrough");var tn={};function nn(e,t){var n,r,o,i,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(o=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(i=e.tokens[r.token]).type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",(i=e.tokens[o.token]).type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}tn.tokenize=S((function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}),"emphasis"),S(nn,"postProcess"),tn.postProcess=S((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(nn(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&nn(e,n[t].delimiters)}),"emphasis");var rn=F.normalizeReference,on=F.isSpace,an=S((function(e,t){var n,r,o,i,a,s,l,c,u="",p="",d=e.pos,f=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(i=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((s=i+1)<f&&40===e.src.charCodeAt(s)){for(m=!1,s++;s<f&&(r=e.src.charCodeAt(s),on(r)||10===r);s++);if(s>=f)return!1;if(h=s,(l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok){for(u=e.md.normalizeLink(l.str),e.md.validateLink(u)?s=l.pos:u="",h=s;s<f&&(r=e.src.charCodeAt(s),on(r)||10===r);s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<f&&h!==s&&l.ok)for(p=l.str,s=l.pos;s<f&&(r=e.src.charCodeAt(s),on(r)||10===r);s++);}(s>=f||41!==e.src.charCodeAt(s))&&(m=!0),s++}if(m){if("undefined"===typeof e.env.references)return!1;if(s<f&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?o=e.src.slice(h,s++):s=i+1):s=i+1,o||(o=e.src.slice(a,i)),!(c=e.env.references[rn(o)]))return e.pos=d,!1;u=c.href,p=c.title}return t||(e.pos=a,e.posMax=i,e.push("link_open","a",1).attrs=n=[["href",u]],p&&n.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=s,e.posMax=f,!0}),"link"),sn=F.normalizeReference,ln=F.isSpace,cn=S((function(e,t){var n,r,o,i,a,s,l,c,u,p,d,f,h,m="",g=e.pos,v=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(s=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=a+1)<v&&40===e.src.charCodeAt(l)){for(l++;l<v&&(r=e.src.charCodeAt(l),ln(r)||10===r);l++);if(l>=v)return!1;for(h=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?l=u.pos:m=""),h=l;l<v&&(r=e.src.charCodeAt(l),ln(r)||10===r);l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&h!==l&&u.ok)for(p=u.str,l=u.pos;l<v&&(r=e.src.charCodeAt(l),ln(r)||10===r);l++);else p="";if(l>=v||41!==e.src.charCodeAt(l))return e.pos=g,!1;l++}else{if("undefined"===typeof e.env.references)return!1;if(l<v&&91===e.src.charCodeAt(l)?(h=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?i=e.src.slice(h,l++):l=a+1):l=a+1,i||(i=e.src.slice(s,a)),!(c=e.env.references[sn(i)]))return e.pos=g,!1;m=c.href,p=c.title}return t||(o=e.src.slice(s,a),e.md.inline.parse(o,e.md,e.env,f=[]),(d=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],d.children=f,d.content=o,p&&n.push(["title",p])),e.pos=l,e.posMax=v,!0}),"image"),un=/^([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])?)*)$/,pn=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,dn=S((function(e,t){var n,r,o,i,a,s,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(a=e.pos,s=e.posMax;;){if(++l>=s)return!1;if(60===(i=e.src.charCodeAt(l)))return!1;if(62===i)break}return n=e.src.slice(a+1,l),pn.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",r]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0)):!!un.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",r]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),fn=wt.HTML_TAG_RE;function hn(e){var t=32|e;return t>=97&&t<=122}S(hn,"isLetter");var mn=S((function(e,t){var n,r,o,i=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(i)||i+2>=o)&&(!(33!==(n=e.src.charCodeAt(i+1))&&63!==n&&47!==n&&!hn(n))&&(!!(r=e.src.slice(i).match(fn))&&(t||(e.push("html_inline","",0).content=e.src.slice(i,i+r[0].length)),e.pos+=r[0].length,!0))))}),"html_inline"),gn=M,vn=F.has,yn=F.isValidEntityCode,bn=F.fromCodePoint,_n=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,En=/^&([a-z][a-z0-9]{1,31});/i,Tn=S((function(e,t){var n,r,o=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+1<i)if(35===e.src.charCodeAt(o+1)){if(r=e.src.slice(o).match(_n))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=yn(n)?bn(n):bn(65533)),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(En))&&vn(gn,r[1]))return t||(e.pending+=gn[r[1]]),e.pos+=r[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}),"entity");function wn(e,t){var n,r,o,i,a,s,l,c,u={},p=t.length;for(n=0;n<p;n++)if((o=t[n]).length=o.length||0,o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),a=u[o.marker][(o.open?3:0)+o.length%3],(r=n-o.jump-1)<-1&&(r=-1),s=r;r>a;r-=i.jump+1)if((i=t[r]).marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3===0&&o.length%3===0||(l=!0)),!l)){c=r>0&&!t[r-1].open?t[r-1].jump+1:0,o.jump=n-r+c,o.open=!1,i.end=n,i.jump=c,i.close=!1,s=-1;break}-1!==s&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}S(wn,"processDelimiters");var kn=S((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(wn(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&wn(0,n[t].delimiters)}),"link_pairs"),xn=S((function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}),"text_collapse"),Sn=$e,Cn=F.isWhiteSpace,Nn=F.isPunctChar,An=F.isMdAsciiPunct;function On(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}S(On,"StateInline"),On.prototype.pushPending=function(){var e=new Sn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},On.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new Sn(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},On.prototype.scanDelims=function(e,t){var n,r,o,i,a,s,l,c,u,p=e,d=!0,f=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;p<h&&this.src.charCodeAt(p)===m;)p++;return o=p-e,r=p<h?this.src.charCodeAt(p):32,l=An(n)||Nn(String.fromCharCode(n)),u=An(r)||Nn(String.fromCharCode(r)),s=Cn(n),(c=Cn(r))?d=!1:u&&(s||l||(d=!1)),s?f=!1:l&&(c||u||(f=!1)),t?(i=d,a=f):(i=d&&(!f||l),a=f&&(!d||u)),{can_open:i,can_close:a,length:o}},On.prototype.Token=Sn;var In=On,Dn=ke,Ln=[["text",Gt],["newline",Qt],["escape",$t],["backticks",Kt],["strikethrough",Zt.tokenize],["emphasis",tn.tokenize],["link",an],["image",cn],["autolink",dn],["html_inline",mn],["entity",Tn]],Fn=[["balance_pairs",kn],["strikethrough",Zt.postProcess],["emphasis",tn.postProcess],["text_collapse",xn]];function Mn(){var e;for(this.ruler=new Dn,e=0;e<Ln.length;e++)this.ruler.push(Ln[e][0],Ln[e][1]);for(this.ruler2=new Dn,e=0;e<Fn.length;e++)this.ruler2.push(Fn[e][0],Fn[e][1])}S(Mn,"ParserInline$1"),Mn.prototype.skipToken=function(e){var t,n,r=e.pos,o=this.ruler.getRules(""),i=o.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"===typeof s[r]){if(e.level<a)for(n=0;n<i&&(e.level++,t=o[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},Mn.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,i=e.posMax,a=e.md.options.maxNesting;e.pos<i;){if(e.level<a)for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Mn.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o<a;o++)i[o](s)},Mn.prototype.State=In;var Rn=Mn,jn=S((function(e){var t={};t.src_Any=le.source,t.src_Cc=ce.source,t.src_Z=ue.source,t.src_P=R.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 n="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+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="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+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='(^|[><\uff5c]|"|\\(|'+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}),"re");function Pn(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Vn(e){return Object.prototype.toString.call(e)}function qn(e){return"[object String]"===Vn(e)}function Un(e){return"[object Object]"===Vn(e)}function Bn(e){return"[object RegExp]"===Vn(e)}function zn(e){return"[object Function]"===Vn(e)}function Hn(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}S(Pn,"assign"),S(Vn,"_class"),S(qn,"isString"),S(Un,"isObject$2"),S(Bn,"isRegExp"),S(zn,"isFunction"),S(Hn,"escapeRE");var Gn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Wn(e){return Object.keys(e||{}).reduce((function(e,t){return e||Gn.hasOwnProperty(t)}),!1)}S(Wn,"isOptionsObj");var Qn={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Xn="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]",Jn="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Yn(e){e.__index__=-1,e.__text_cache__=""}function $n(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Kn(){return function(e,t){t.normalize(e)}}function Zn(e){var t=e.re=jn(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(Xn),n.push(t.src_xn),t.src_tlds=n.join("|"),S(r,"untpl"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var o=[];function i(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},S(i,"schemaError"),Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,Un(n))return Bn(n.validate)?r.validate=$n(n.validate):zn(n.validate)?r.validate=n.validate:i(t,n),void(zn(n.normalize)?r.normalize=n.normalize:n.normalize?i(t,n):r.normalize=function(e,t){t.normalize(e)});qn(n)?o.push(t):i(t,n)}})),o.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(Hn).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Yn(e)}function er(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function tr(e,t){var n=new er(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function nr(e,t){if(!(this instanceof nr))return new nr(e,t);t||Wn(e)&&(t=e,e={}),this.__opts__=Pn({},Gn,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pn({},Qn,e),this.__compiled__={},this.__tlds__=Jn,this.__tlds_replaced__=!1,this.re={},Zn(this)}S(Yn,"resetScanCache"),S($n,"createValidator"),S(Kn,"createNormalizer"),S(Zn,"compile"),S(er,"Match"),S(tr,"createMatch"),S(nr,"LinkifyIt$1"),nr.prototype.add=S((function(e,t){return this.__schemas__[e]=t,Zn(this),this}),"add"),nr.prototype.set=S((function(e){return this.__opts__=Pn(this.__opts__,e),this}),"set"),nr.prototype.test=S((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0}),"test"),nr.prototype.pretest=S((function(e){return this.re.pretest.test(e)}),"pretest"),nr.prototype.testSchemaAt=S((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),nr.prototype.match=S((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(tr(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(tr(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),nr.prototype.tlds=S((function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),Zn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Zn(this),this)}),"tlds"),nr.prototype.normalize=S((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),nr.prototype.onCompile=S((function(){}),"onCompile");var rr=nr;const or=2147483647,ir=36,ar=/^xn--/,sr=/[^\0-\x7E]/,lr=/[\x2E\u3002\uFF0E\uFF61]/g,cr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ur=Math.floor,pr=String.fromCharCode;function dr(e){throw new RangeError(cr[e])}function fr(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function hr(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);return r+fr((e=e.replace(lr,".")).split("."),t).join(".")}function mr(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}S(dr,"error"),S(fr,"map"),S(hr,"mapDomain"),S(mr,"ucs2decode");const gr=S((e=>String.fromCodePoint(...e)),"ucs2encode"),vr=S((function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:ir}),"basicToDigit"),yr=S((function(e,t){return e+22+75*(e<26)-((0!=t)<<5)}),"digitToBasic"),br=S((function(e,t,n){let r=0;for(e=n?ur(e/700):e>>1,e+=ur(e/t);e>455;r+=ir)e=ur(e/35);return ur(r+36*e/(e+38))}),"adapt"),_r=S((function(e){const t=[],n=e.length;let r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&dr("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,o=ir;;o+=ir){s>=n&&dr("invalid-input");const a=vr(e.charCodeAt(s++));(a>=ir||a>ur((or-r)/t))&&dr("overflow"),r+=a*t;const l=o<=i?1:o>=i+26?26:o-i;if(a<l)break;const c=ir-l;t>ur(or/c)&&dr("overflow"),t*=c}const l=t.length+1;i=br(r-a,l,0==a),ur(r/l)>or-o&&dr("overflow"),o+=ur(r/l),r%=l,t.splice(r++,0,o)}return String.fromCodePoint(...t)}),"decode"),Er=S((function(e){const t=[];let n=(e=mr(e)).length,r=128,o=0,i=72;for(const l of e)l<128&&t.push(pr(l));let a=t.length,s=a;for(a&&t.push("-");s<n;){let n=or;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>ur((or-o)/l)&&dr("overflow"),o+=(n-r)*l,r=n;for(const c of e)if(c<r&&++o>or&&dr("overflow"),c==r){let e=o;for(let n=ir;;n+=ir){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,a=ir-r;t.push(pr(yr(r+o%a,0))),e=ur(o/a)}t.push(pr(yr(e,0))),i=br(o,l,s==a),o=0,++s}++o,++r}return t.join("")}),"encode"),Tr=S((function(e){return hr(e,(function(e){return ar.test(e)?_r(e.slice(4).toLowerCase()):e}))}),"toUnicode"),wr=S((function(e){return hr(e,(function(e){return sr.test(e)?"xn--"+Er(e):e}))}),"toASCII"),kr={version:"2.1.0",ucs2:{decode:mr,encode:gr},decode:_r,encode:Er,toASCII:wr,toUnicode:Tr};var xr=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ucs2decode:mr,ucs2encode:gr,decode:_r,encode:Er,toASCII:wr,toUnicode:Tr,default:kr}),Sr=F,Cr=pe,Nr=Te,Ar=ot,Or=zt,Ir=Rn,Dr=rr,Lr=j,Fr=O(xr),Mr={default:{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:{}}},zero:{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"]}}},commonmark:{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"]}}}},Rr=/^(vbscript|javascript|file|data):/,jr=/^data:image\/(gif|png|jpeg|webp);/;function Pr(e){var t=e.trim().toLowerCase();return!Rr.test(t)||!!jr.test(t)}S(Pr,"validateLink");var Vr=["http:","https:","mailto:"];function qr(e){var t=Lr.parse(e,!0);if(t.hostname&&(!t.protocol||Vr.indexOf(t.protocol)>=0))try{t.hostname=Fr.toASCII(t.hostname)}catch(n){}return Lr.encode(Lr.format(t))}function Ur(e){var t=Lr.parse(e,!0);if(t.hostname&&(!t.protocol||Vr.indexOf(t.protocol)>=0))try{t.hostname=Fr.toUnicode(t.hostname)}catch(n){}return Lr.decode(Lr.format(t),Lr.decode.defaultChars+"%")}function Br(e,t){if(!(this instanceof Br))return new Br(e,t);t||Sr.isString(e)||(t=e||{},e="default"),this.inline=new Ir,this.block=new Or,this.core=new Ar,this.renderer=new Nr,this.linkify=new Dr,this.validateLink=Pr,this.normalizeLink=qr,this.normalizeLinkText=Ur,this.utils=Sr,this.helpers=Sr.assign({},Cr),this.options={},this.configure(e),t&&this.set(t)}S(qr,"normalizeLink"),S(Ur,"normalizeLinkText"),S(Br,"MarkdownIt"),Br.prototype.set=function(e){return Sr.assign(this.options,e),this},Br.prototype.configure=function(e){var t,n=this;if(Sr.isString(e)&&!(e=Mr[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},Br.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Br.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Br.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Br.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Br.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Br.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Br.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const zr=new Br;var Hr=Object.defineProperty,Gr=S(((e,t)=>Hr(e,"name",{value:t,configurable:!0})),"__name$j");const Wr="graphiql",Qr="sublime";let Xr=!1;"object"===typeof window&&(Xr=0===window.navigator.platform.toLowerCase().indexOf("mac"));const Jr={[Xr?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Yr(e,t){const r=await n.e(8262).then(n.bind(n,48262)).then((function(e){return e.c})).then((e=>"function"===typeof e?e:e.default));return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[Promise.all([n.e(8262),n.e(3111)]).then(n.bind(n,23111)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(4104)]).then(n.bind(n,34104)).then((function(e){return e.m})),Promise.all([n.e(8262),n.e(2564)]).then(n.bind(n,72564)).then((function(e){return e.c})),Promise.all([n.e(8262),n.e(4349)]).then(n.bind(n,24349)).then((function(e){return e.b})),Promise.all([n.e(8262),n.e(4074)]).then(n.bind(n,44074)).then((function(e){return e.f})),Promise.all([n.e(8262),n.e(4241)]).then(n.bind(n,84241)).then((function(e){return e.l})),Promise.all([n.e(8262),n.e(3829)]).then(n.bind(n,33829)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(4590)]).then(n.bind(n,44590)).then((function(e){return e.j})),Promise.all([n.e(8262),n.e(6830)]).then(n.bind(n,36830)).then((function(e){return e.d})),Promise.all([n.e(8262),n.e(1361)]).then(n.bind(n,61361)).then((function(e){return e.s})),...e]),r}S(Yr,"importCodeMirror"),Gr(Yr,"importCodeMirror");var $r=Object.defineProperty,Kr=S(((e,t)=>$r(e,"name",{value:t,configurable:!0})),"__name$i");function Zr(e,t,n,r){function o(e){if(!n||!r||!(e.currentTarget instanceof HTMLElement)||"typeName"!==e.currentTarget.className)return;const t=e.currentTarget.innerHTML,o=n.getType(t);o&&(r.show(),r.push({name:o.name,def:o}))}Yr([],{useCommonAddons:!1}).then((e=>{let n,r;e.on(t,"select",((e,t)=>{if(!n){const e=t.parentNode;let i;n=document.createElement("div"),n.className="CodeMirror-hint-information",n.addEventListener("click",o),e.appendChild(n),r=document.createElement("div"),r.className="CodeMirror-hint-deprecation",e.appendChild(r),e.addEventListener("DOMNodeRemoved",i=Kr((t=>{t.target===e&&(e.removeEventListener("DOMNodeRemoved",i),n&&n.removeEventListener("click",o),n=null,r=null,i=null)}),"onRemoveFn"))}const i=e.description?zr.render(e.description):"Self descriptive.",a=e.type?'<span class="infoType">'+eo(e.type)+"</span>":"";if(n.innerHTML='<div class="content">'+("<p>"===i.slice(0,3)?"<p>"+a+i.slice(3):a+i)+"</div>",e&&r&&e.deprecationReason){const t=e.deprecationReason?zr.render(e.deprecationReason):"";r.innerHTML='<span class="deprecation-label">Deprecated</span>'+t,r.style.display="block"}else r&&(r.style.display="none")}))})),S(o,"onClickHintInformation"),Kr(o,"onClickHintInformation")}function eo(e){return(0,r.zM)(e)?"".concat(eo(e.ofType),"!"):(0,r.HG)(e)?"[".concat(eo(e.ofType),"]"):'<a class="typeName">'.concat(D(e.name),"</a>")}S(Zr,"onHasCompletion"),Kr(Zr,"onHasCompletion"),S(eo,"renderType"),Kr(eo,"renderType");var to={exports:{}},no={};Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function ro(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function oo(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}S(ro,"toObject"),S(oo,"shouldUseNative"),oo()&&Object.assign;var io=m,ao=60103;if(no.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var so=Symbol.for;ao=so("react.element"),no.Fragment=so("react.fragment")}var lo=io.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,co=Object.prototype.hasOwnProperty,uo={key:!0,ref:!0,__self:!0,__source:!0};function po(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)co.call(t,r)&&!uo.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:ao,type:e,key:i,ref:a,props:o,_owner:lo.current}}S(po,"q"),no.jsx=po,no.jsxs=po,to.exports=no;const fo=to.exports.jsx,ho=to.exports.jsxs;var mo=Object.defineProperty,go=S(((e,t)=>mo(e,"name",{value:t,configurable:!0})),"__name$h");function vo(e){var t;const[n,r]=(0,m.useState)({width:null,height:null}),[o,i]=(0,m.useState)(null),a=(0,m.useRef)(null),s=null==(t=yo(e.token))?void 0:t.href;(0,m.useEffect)((()=>{if(a.current)return s?void fetch(s,{method:"HEAD"}).then((e=>{i(e.headers.get("Content-Type"))})).catch((()=>{i(null)})):(r({width:null,height:null}),void i(null))}),[s]);const l=null!==n.width&&null!==n.height?ho("div",{children:[n.width,"x",n.height,null!==o?" "+o:null]}):null;return ho("div",{children:[fo("img",{onLoad:()=>{var e,t,n,o;r({width:null!=(t=null==(e=a.current)?void 0:e.naturalWidth)?t:null,height:null!=(o=null==(n=a.current)?void 0:n.naturalHeight)?o:null})},ref:a,src:s}),l]})}function yo(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(n){return}}function bo(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}function _o(e){return"object"===typeof e&&"function"===typeof e.then}function Eo(e){return new Promise(((t,n)=>{const r=e.subscribe({next:e=>{t(e),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})}))}function To(e){return"object"===typeof e&&"subscribe"in e&&"function"===typeof e.subscribe}function wo(e){return"object"===typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function ko(e){return new Promise(((t,n)=>{var r;const o=null===(r=("return"in e?e:e[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(e);("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then((e=>{t(e.value),null===o||void 0===o||o()})).catch((e=>{n(e)}))}))}function xo(e){return Promise.resolve(e).then((e=>wo(e)?ko(e):To(e)?Eo(e):e))}S(vo,"ImagePreview"),go(vo,"ImagePreview"),vo.shouldRender=go(S((function(e){const t=yo(e);return!!t&&bo(t)}),"shouldRender"),"shouldRender"),S(yo,"tokenToURL"),go(yo,"tokenToURL"),S(bo,"isImageURL"),go(bo,"isImageURL"),S(_o,"isPromise"),S(Eo,"observableToPromise"),S(To,"isObservable"),S(wo,"isAsyncIterable"),S(ko,"asyncIterableToPromise"),S(xo,"fetcherReturnToPromise"),globalThis&&globalThis.__awaiter;var So=globalThis&&globalThis.__await||function(e){return this instanceof So?(this.v=e,this):new So(e)};function Co(e){return JSON.stringify(e,null,2)}function No(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function Ao(e){return e instanceof Error?No(e):e}function Oo(e){return Array.isArray(e)?Co({errors:e.map((e=>Ao(e)))}):Co({errors:[Ao(e)]})}function Io(e){return Co(e)}function Do(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let l;try{l=(0,o.Qc)(t)}catch(p){return{insertions:r,result:t}}const c=n||Lo,u=new i.a(e);return(0,a.Vn)(l,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=Fo(jo(u.getType()),c);if(n&&e.loc){const o=Ro(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,s.S)(n).replace(/\n/g,"\n"+o)})}}}}),{insertions:r,result:Mo(t,r)}}function Lo(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach((e=>{(0,r.UT)(t[e].type)&&n.push(e)})),n}function Fo(e,t){const n=(0,r.xC)(e);if(!e||(0,r.UT)(e))return;const o=t(n);return Array.isArray(o)&&0!==o.length&&"getFields"in n?{kind:l.h.SELECTION_SET,selections:o.map((e=>{const r=n.getFields()[e],o=r?r.type:null;return{kind:l.h.FIELD,name:{kind:l.h.NAME,value:e},selectionSet:Fo(o,t)}}))}:void 0}function Mo(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach((t=>{let{index:o,string:i}=t;n+=e.slice(r,o)+i,r=o})),n+=e.slice(r),n}function Ro(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}function jo(e){if(e)return e}function Po(e,t){var n;const r=new Map,o=[];for(const i of e)if("Field"===i.kind){const e=t(i),a=r.get(e);if(null===(n=i.directives)||void 0===n?void 0:n.length){const e=Object.assign({},i);o.push(e)}else if((null===a||void 0===a?void 0:a.selectionSet)&&i.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...i.selectionSet.selections];else if(!a){const t=Object.assign({},i);r.set(e,t),o.push(t)}}else o.push(i);return o}function Vo(e,t,n){var o;const i=n?(0,r.xC)(n).name:null,a=[],s=[];for(let r of t){if("FragmentSpread"===r.kind){const t=r.name.value;if(!r.directives||0===r.directives.length){if(s.indexOf(t)>=0)continue;s.push(t)}const n=e[r.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:o}=n;r={kind:l.h.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:o}}}if(r.kind===l.h.INLINE_FRAGMENT&&(!r.directives||0===(null===(o=r.directives)||void 0===o?void 0:o.length))){const t=r.typeCondition?r.typeCondition.name.value:null;if(!t||t===i){a.push(...Vo(e,r.selectionSet.selections,n));continue}}a.push(r)}return a}function qo(e,t){const n=t?new i.a(t):null,r=Object.create(null);for(const i of e.definitions)i.kind===l.h.FRAGMENT_DEFINITION&&(r[i.name.value]=i);const o={SelectionSet(e){const t=n?n.getParentType():null;let{selections:o}=e;return o=Vo(r,o,t),o=Po(o,(e=>e.alias?e.alias.value:e.name.value)),Object.assign(Object.assign({},e),{selections:o})},FragmentDefinition:()=>null};return(0,a.Vn)(e,n?(0,i.y)(n,o):o)}function Uo(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}function Bo(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}globalThis&&globalThis.__asyncValues,globalThis&&globalThis.__asyncGenerator,S(Co,"stringify"),S(No,"formatSingleError"),S(Ao,"handleSingleError"),S(Oo,"formatError"),S(Io,"formatResult"),S(Do,"fillLeafs"),S(Lo,"defaultGetDefaultFieldNames"),S(Fo,"buildSelectionSet"),S(Mo,"withInsertions"),S(Ro,"getIndentation"),S(jo,"isFieldType"),S(Po,"uniqueBy"),S(Vo,"inlineRelevantFragmentSpreads"),S(qo,"mergeAst"),S(Uo,"getSelectedOperationName"),S(Bo,"isQuotaError");class zo{constructor(e){this.storage=e||(null===e?null:"undefined"!==typeof window?window.localStorage:null)}get(e){if(!this.storage)return null;const t="".concat(Ho,":").concat(e),n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i="".concat(Ho,":").concat(e);if(t)try{this.storage.setItem(i,t)}catch(o){r=o instanceof Error?o:new Error("".concat(o)),n=Bo(this.storage,o)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}S(zo,"StorageAPI");const Ho="graphiql";class Go{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName))}edit(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex((t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName));-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let n=0;n<5;n++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}S(Go,"QueryStore");class Wo{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const o=this.history.items,i=this.favorite.items;this.queries=o.concat(i)}},this.history=new Go("queries",this.storage,this.maxHistoryLength),this.favorite=new Go("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,o.Qc)(e)}catch(i){return!1}if(e.length>1e5)return!1;if(!r)return!0;if(JSON.stringify(e)===JSON.stringify(r.query)){if(JSON.stringify(t)===JSON.stringify(r.variables)){if(JSON.stringify(n)===JSON.stringify(r.headers))return!1;if(n&&!r.headers)return!1}if(t&&!r.variables)return!1}return!0}toggleFavorite(e,t,n,r,o,i){const a={query:e,variables:t,headers:n,operationName:r,label:o};this.favorite.contains(a)?i&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(e,t,n,r,o,i){const a={query:e,variables:t,headers:n,operationName:r,label:o};i?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:i})):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}}S(Wo,"HistoryStore");var Qo=Object.defineProperty,Xo=S(((e,t)=>Qo(e,"name",{value:t,configurable:!0})),"__name$g");function Jo(e){const t=(0,m.createContext)(null);return t.displayName=e,t}function Yo(e){function t(n){var r;const o=(0,m.useContext)(e);if(null===o&&(null==n?void 0:n.nonNull))throw new Error("Tried to use `".concat((null==(r=n.caller)?void 0:r.name)||t.caller.name,"` without the necessary context. Make sure to render the `").concat(e.displayName,"Provider` component higher up the tree."));return o}return S(t,"useGivenContext"),Xo(t,"useGivenContext"),Object.defineProperty(t,"name",{value:"use".concat(e.displayName)}),t}S(Jo,"createNullableContext"),Xo(Jo,"createNullableContext"),S(Yo,"createContextHook"),Xo(Yo,"createContextHook");var $o=Object.defineProperty,Ko=S(((e,t)=>$o(e,"name",{value:t,configurable:!0})),"__name$f");const Zo=Jo("StorageContext");function ei(e){const t=(0,m.useRef)(!0),[n,r]=(0,m.useState)(new zo(e.storage));return(0,m.useEffect)((()=>{t.current?t.current=!1:r(new zo(e.storage))}),[e.storage]),fo(Zo.Provider,{value:n,children:e.children})}S(ei,"StorageContextProvider"),Ko(ei,"StorageContextProvider");const ti=Yo(Zo);var ni,ri,oi,ii,ai,si,li,ci,ui,pi,di,fi,hi,mi,gi,vi,yi,bi,_i,Ei,Ti,wi,ki,xi,Si,Ci,Ni,Ai,Oi,Ii,Di;!function(e){function t(e){return"string"===typeof e}S(t,"is"),e.is=t}(ni||(ni={})),function(e){function t(e){return"string"===typeof e}S(t,"is"),e.is=t}(ri||(ri={})),function(e){function t(t){return"number"===typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,S(t,"is"),e.is=t}(oi||(oi={})),function(e){function t(t){return"number"===typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.MIN_VALUE=0,e.MAX_VALUE=2147483647,S(t,"is"),e.is=t}(ii||(ii={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=ii.MAX_VALUE),t===Number.MAX_VALUE&&(t=ii.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return Ma.objectLiteral(t)&&Ma.uinteger(t.line)&&Ma.uinteger(t.character)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ai||(ai={})),function(e){function t(e,t,n,r){if(Ma.uinteger(e)&&Ma.uinteger(t)&&Ma.uinteger(n)&&Ma.uinteger(r))return{start:ai.create(e,t),end:ai.create(n,r)};if(ai.is(e)&&ai.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))}function n(e){var t=e;return Ma.objectLiteral(t)&&ai.is(t.start)&&ai.is(t.end)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(si||(si={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return Ma.defined(t)&&si.is(t.range)&&(Ma.string(t.uri)||Ma.undefined(t.uri))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(li||(li={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return Ma.defined(t)&&si.is(t.targetRange)&&Ma.string(t.targetUri)&&si.is(t.targetSelectionRange)&&(si.is(t.originSelectionRange)||Ma.undefined(t.originSelectionRange))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ci||(ci={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return Ma.objectLiteral(t)&&Ma.numberRange(t.red,0,1)&&Ma.numberRange(t.green,0,1)&&Ma.numberRange(t.blue,0,1)&&Ma.numberRange(t.alpha,0,1)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ui||(ui={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return Ma.objectLiteral(t)&&si.is(t.range)&&ui.is(t.color)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(pi||(pi={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return Ma.objectLiteral(t)&&Ma.string(t.label)&&(Ma.undefined(t.textEdit)||ki.is(t))&&(Ma.undefined(t.additionalTextEdits)||Ma.typedArray(t.additionalTextEdits,ki.is))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(di||(di={})),(hi=fi||(fi={})).Comment="comment",hi.Imports="imports",hi.Region="region",function(e){function t(e,t,n,r,o,i){var a={startLine:e,endLine:t};return Ma.defined(n)&&(a.startCharacter=n),Ma.defined(r)&&(a.endCharacter=r),Ma.defined(o)&&(a.kind=o),Ma.defined(i)&&(a.collapsedText=i),a}function n(e){var t=e;return Ma.objectLiteral(t)&&Ma.uinteger(t.startLine)&&Ma.uinteger(t.startLine)&&(Ma.undefined(t.startCharacter)||Ma.uinteger(t.startCharacter))&&(Ma.undefined(t.endCharacter)||Ma.uinteger(t.endCharacter))&&(Ma.undefined(t.kind)||Ma.string(t.kind))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(mi||(mi={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return Ma.defined(t)&&li.is(t.location)&&Ma.string(t.message)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(gi||(gi={})),(yi=vi||(vi={})).Error=1,yi.Warning=2,yi.Information=3,yi.Hint=4,(_i=bi||(bi={})).Unnecessary=1,_i.Deprecated=2,function(e){function t(e){var t=e;return Ma.objectLiteral(t)&&Ma.string(t.href)}S(t,"is"),e.is=t}(Ei||(Ei={})),function(e){function t(e,t,n,r,o,i){var a={range:e,message:t};return Ma.defined(n)&&(a.severity=n),Ma.defined(r)&&(a.code=r),Ma.defined(o)&&(a.source=o),Ma.defined(i)&&(a.relatedInformation=i),a}function n(e){var t,n=e;return Ma.defined(n)&&si.is(n.range)&&Ma.string(n.message)&&(Ma.number(n.severity)||Ma.undefined(n.severity))&&(Ma.integer(n.code)||Ma.string(n.code)||Ma.undefined(n.code))&&(Ma.undefined(n.codeDescription)||Ma.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ma.string(n.source)||Ma.undefined(n.source))&&(Ma.undefined(n.relatedInformation)||Ma.typedArray(n.relatedInformation,gi.is))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Ti||(Ti={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={title:e,command:t};return Ma.defined(n)&&n.length>0&&(o.arguments=n),o}function n(e){var t=e;return Ma.defined(t)&&Ma.string(t.title)&&Ma.string(t.command)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(wi||(wi={})),function(e){function t(e,t){return{range:e,newText:t}}function n(e,t){return{range:{start:e,end:e},newText:t}}function r(e){return{range:e,newText:""}}function o(e){var t=e;return Ma.objectLiteral(t)&&Ma.string(t.newText)&&si.is(t.range)}S(t,"replace"),e.replace=t,S(n,"insert"),e.insert=n,S(r,"del"),e.del=r,S(o,"is"),e.is=o}(ki||(ki={})),function(e){function t(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r}function n(e){var t=e;return Ma.objectLiteral(t)&&Ma.string(t.label)&&(Ma.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ma.string(t.description)||void 0===t.description)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(xi||(xi={})),function(e){function t(e){var t=e;return Ma.string(t)}S(t,"is"),e.is=t}(Si||(Si={})),function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}function r(e,t){return{range:e,newText:"",annotationId:t}}function o(e){var t=e;return ki.is(t)&&(xi.is(t.annotationId)||Si.is(t.annotationId))}S(t,"replace"),e.replace=t,S(n,"insert"),e.insert=n,S(r,"del"),e.del=r,S(o,"is"),e.is=o}(Ci||(Ci={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return Ma.defined(t)&&Mi.is(t.textDocument)&&Array.isArray(t.edits)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Ni||(Ni={})),function(e){function t(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"create"===t.kind&&Ma.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ma.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ma.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Si.is(t.annotationId))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Ai||(Ai={})),function(e){function t(e,t,n,r){var o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o}function n(e){var t=e;return t&&"rename"===t.kind&&Ma.string(t.oldUri)&&Ma.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ma.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ma.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Si.is(t.annotationId))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Oi||(Oi={})),function(e){function t(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r}function n(e){var t=e;return t&&"delete"===t.kind&&Ma.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ma.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ma.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Si.is(t.annotationId))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Ii||(Ii={})),function(e){function t(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ma.string(e.kind)?Ai.is(e)||Oi.is(e)||Ii.is(e):Ni.is(e)})))}S(t,"is"),e.is=t}(Di||(Di={}));var Li,Fi,Mi,Ri,ji,Pi,Vi,qi,Ui,Bi,zi,Hi,Gi,Wi,Qi,Xi,Ji,Yi,$i,Ki,Zi,ea,ta,na,ra,oa,ia,aa,sa,la,ca,ua,pa,da,fa,ha,ma,ga,va,ya,ba,_a,Ea,Ta,wa,ka,xa,Sa,Ca,Na,Aa,Oa,Ia,Da,La=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return S(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,o;if(void 0===n?r=ki.insert(e,t):Si.is(n)?(o=n,r=Ci.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=Ci.insert(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.replace=function(e,t,n){var r,o;if(void 0===n?r=ki.replace(e,t):Si.is(n)?(o=n,r=Ci.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),r=Ci.replace(e,t,o)),this.edits.push(r),void 0!==o)return o},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=ki.del(e):Si.is(t)?(r=t,n=Ci.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=Ci.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),Fa=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return S(e,"ChangeAnnotations"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Si.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Fa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Ni.is(e)){var n=new La(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new La(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}S(e,"WorkspaceChange"),Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(Mi.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:o=[]};this._workspaceEdit.documentChanges.push(n),r=new La(o,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var o=[];this._workspaceEdit.changes[e]=o,r=new La(o),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Fa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(xi.is(t)||Si.is(t)?r=t:n=t,void 0===r?o=Ai.create(e,n):(i=Si.is(r)?r:this._changeAnnotations.manage(r),o=Ai.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,i,a;if(xi.is(n)||Si.is(n)?o=n:r=n,void 0===o?i=Oi.create(e,t,r):(a=Si.is(o)?o:this._changeAnnotations.manage(o),i=Oi.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,o,i;if(xi.is(t)||Si.is(t)?r=t:n=t,void 0===r?o=Ii.create(e,n):(i=Si.is(r)?r:this._changeAnnotations.manage(r),o=Ii.create(e,n,i)),this._workspaceEdit.documentChanges.push(o),void 0!==i)return i}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return Ma.defined(t)&&Ma.string(t.uri)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Li||(Li={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Ma.defined(t)&&Ma.string(t.uri)&&Ma.integer(t.version)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Fi||(Fi={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return Ma.defined(t)&&Ma.string(t.uri)&&(null===t.version||Ma.integer(t.version))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Mi||(Mi={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return Ma.defined(t)&&Ma.string(t.uri)&&Ma.string(t.languageId)&&Ma.integer(t.version)&&Ma.string(t.text)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Ri||(Ri={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",S(t,"is"),e.is=t}(ji||(ji={})),function(e){function t(e){var t=e;return Ma.objectLiteral(e)&&ji.is(t.kind)&&Ma.string(t.value)}S(t,"is"),e.is=t}(Pi||(Pi={})),(qi=Vi||(Vi={})).Text=1,qi.Method=2,qi.Function=3,qi.Constructor=4,qi.Field=5,qi.Variable=6,qi.Class=7,qi.Interface=8,qi.Module=9,qi.Property=10,qi.Unit=11,qi.Value=12,qi.Enum=13,qi.Keyword=14,qi.Snippet=15,qi.Color=16,qi.File=17,qi.Reference=18,qi.Folder=19,qi.EnumMember=20,qi.Constant=21,qi.Struct=22,qi.Event=23,qi.Operator=24,qi.TypeParameter=25,(Bi=Ui||(Ui={})).PlainText=1,Bi.Snippet=2,(zi||(zi={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&Ma.string(t.newText)&&si.is(t.insert)&&si.is(t.replace)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Hi||(Hi={})),(Wi=Gi||(Gi={})).asIs=1,Wi.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(Ma.string(t.detail)||void 0===t.detail)&&(Ma.string(t.description)||void 0===t.description)}S(t,"is"),e.is=t}(Qi||(Qi={})),function(e){function t(e){return{label:e}}S(t,"create"),e.create=t}(Xi||(Xi={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}S(t,"create"),e.create=t}(Ji||(Ji={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return Ma.string(t)||Ma.objectLiteral(t)&&Ma.string(t.language)&&Ma.string(t.value)}S(t,"fromPlainText"),e.fromPlainText=t,S(n,"is"),e.is=n}(Yi||(Yi={})),function(e){function t(e){var t=e;return!!t&&Ma.objectLiteral(t)&&(Pi.is(t.contents)||Yi.is(t.contents)||Ma.typedArray(t.contents,Yi.is))&&(void 0===e.range||si.is(e.range))}S(t,"is"),e.is=t}($i||($i={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}S(t,"create"),e.create=t}(Ki||(Ki={})),function(e){function t(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={label:e};return Ma.defined(t)&&(o.documentation=t),Ma.defined(n)?o.parameters=n:o.parameters=[],o}S(t,"create"),e.create=t}(Zi||(Zi={})),(ta=ea||(ea={})).Text=1,ta.Read=2,ta.Write=3,function(e){function t(e,t){var n={range:e};return Ma.number(t)&&(n.kind=t),n}S(t,"create"),e.create=t}(na||(na={})),(oa=ra||(ra={})).File=1,oa.Module=2,oa.Namespace=3,oa.Package=4,oa.Class=5,oa.Method=6,oa.Property=7,oa.Field=8,oa.Constructor=9,oa.Enum=10,oa.Interface=11,oa.Function=12,oa.Variable=13,oa.Constant=14,oa.String=15,oa.Number=16,oa.Boolean=17,oa.Array=18,oa.Object=19,oa.Key=20,oa.Null=21,oa.EnumMember=22,oa.Struct=23,oa.Event=24,oa.Operator=25,oa.TypeParameter=26,(ia||(ia={})).Deprecated=1,function(e){function t(e,t,n,r,o){var i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}S(t,"create"),e.create=t}(aa||(aa={})),function(e){function t(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}S(t,"create"),e.create=t}(sa||(sa={})),function(e){function t(e,t,n,r,o,i){var a={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(a.children=i),a}function n(e){var t=e;return t&&Ma.string(t.name)&&Ma.number(t.kind)&&si.is(t.range)&&si.is(t.selectionRange)&&(void 0===t.detail||Ma.string(t.detail))&&(void 0===t.deprecated||Ma.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(la||(la={})),(ua=ca||(ca={})).Empty="",ua.QuickFix="quickfix",ua.Refactor="refactor",ua.RefactorExtract="refactor.extract",ua.RefactorInline="refactor.inline",ua.RefactorRewrite="refactor.rewrite",ua.Source="source",ua.SourceOrganizeImports="source.organizeImports",ua.SourceFixAll="source.fixAll",(da=pa||(pa={})).Invoked=1,da.Automatic=2,function(e){function t(e,t,n){var r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r}function n(e){var t=e;return Ma.defined(t)&&Ma.typedArray(t.diagnostics,Ti.is)&&(void 0===t.only||Ma.typedArray(t.only,Ma.string))&&(void 0===t.triggerKind||t.triggerKind===pa.Invoked||t.triggerKind===pa.Automatic)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(fa||(fa={})),function(e){function t(e,t,n){var r={title:e},o=!0;return"string"===typeof t?(o=!1,r.kind=t):wi.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r}function n(e){var t=e;return t&&Ma.string(t.title)&&(void 0===t.diagnostics||Ma.typedArray(t.diagnostics,Ti.is))&&(void 0===t.kind||Ma.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||wi.is(t.command))&&(void 0===t.isPreferred||Ma.boolean(t.isPreferred))&&(void 0===t.edit||Di.is(t.edit))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ha||(ha={})),function(e){function t(e,t){var n={range:e};return Ma.defined(t)&&(n.data=t),n}function n(e){var t=e;return Ma.defined(t)&&si.is(t.range)&&(Ma.undefined(t.command)||wi.is(t.command))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ma||(ma={})),function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}function n(e){var t=e;return Ma.defined(t)&&Ma.uinteger(t.tabSize)&&Ma.boolean(t.insertSpaces)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ga||(ga={})),function(e){function t(e,t,n){return{range:e,target:t,data:n}}function n(e){var t=e;return Ma.defined(t)&&si.is(t.range)&&(Ma.undefined(t.target)||Ma.string(t.target))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(va||(va={})),function(e){function t(e,t){return{range:e,parent:t}}function n(t){var n=t;return Ma.objectLiteral(n)&&si.is(n.range)&&(void 0===n.parent||e.is(n.parent))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ya||(ya={})),(_a=ba||(ba={})).namespace="namespace",_a.type="type",_a.class="class",_a.enum="enum",_a.interface="interface",_a.struct="struct",_a.typeParameter="typeParameter",_a.parameter="parameter",_a.variable="variable",_a.property="property",_a.enumMember="enumMember",_a.event="event",_a.function="function",_a.method="method",_a.macro="macro",_a.keyword="keyword",_a.modifier="modifier",_a.comment="comment",_a.string="string",_a.number="number",_a.regexp="regexp",_a.operator="operator",_a.decorator="decorator",(Ta=Ea||(Ea={})).declaration="declaration",Ta.definition="definition",Ta.readonly="readonly",Ta.static="static",Ta.deprecated="deprecated",Ta.abstract="abstract",Ta.async="async",Ta.modification="modification",Ta.documentation="documentation",Ta.defaultLibrary="defaultLibrary",function(e){function t(e){var t=e;return Ma.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])}S(t,"is"),e.is=t}(wa||(wa={})),function(e){function t(e,t){return{range:e,text:t}}function n(e){var t=e;return void 0!==t&&null!==t&&si.is(t.range)&&Ma.string(t.text)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(ka||(ka={})),function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}function n(e){var t=e;return void 0!==t&&null!==t&&si.is(t.range)&&Ma.boolean(t.caseSensitiveLookup)&&(Ma.string(t.variableName)||void 0===t.variableName)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(xa||(xa={})),function(e){function t(e,t){return{range:e,expression:t}}function n(e){var t=e;return void 0!==t&&null!==t&&si.is(t.range)&&(Ma.string(t.expression)||void 0===t.expression)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Sa||(Sa={})),function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}function n(e){var t=e;return Ma.defined(t)&&si.is(e.stoppedLocation)}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Ca||(Ca={})),function(e){function t(e){return 1===e||2===e}e.Type=1,e.Parameter=2,S(t,"is"),e.is=t}(Na||(Na={})),function(e){function t(e){return{value:e}}function n(e){var t=e;return Ma.objectLiteral(t)&&(void 0===t.tooltip||Ma.string(t.tooltip)||Pi.is(t.tooltip))&&(void 0===t.location||li.is(t.location))&&(void 0===t.command||wi.is(t.command))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Aa||(Aa={})),function(e){function t(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r}function n(e){var t=e;return Ma.objectLiteral(t)&&ai.is(t.position)&&(Ma.string(t.label)||Ma.typedArray(t.label,Aa.is))&&(void 0===t.kind||Na.is(t.kind))&&void 0===t.textEdits||Ma.typedArray(t.textEdits,ki.is)&&(void 0===t.tooltip||Ma.string(t.tooltip)||Pi.is(t.tooltip))&&(void 0===t.paddingLeft||Ma.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ma.boolean(t.paddingRight))}S(t,"create"),e.create=t,S(n,"is"),e.is=n}(Oa||(Oa={})),function(e){function t(e){var t=e;return Ma.objectLiteral(t)&&ri.is(t.uri)&&Ma.string(t.name)}S(t,"is"),e.is=t}(Ia||(Ia={})),function(e){function t(e,t,n,r){return new ja(e,t,n,r)}function n(e){var t=e;return!!(Ma.defined(t)&&Ma.string(t.uri)&&(Ma.undefined(t.languageId)||Ma.string(t.languageId))&&Ma.uinteger(t.lineCount)&&Ma.func(t.getText)&&Ma.func(t.positionAt)&&Ma.func(t.offsetAt))}function r(e,t){for(var n=e.getText(),r=o(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=n.length,a=r.length-1;a>=0;a--){var s=r[a],l=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=i))throw new Error("Overlapping edit");n=n.substring(0,l)+s.newText+n.substring(c,n.length),i=l}return n}function o(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);o(r,t),o(i,t);for(var a=0,s=0,l=0;a<r.length&&s<i.length;){var c=t(r[a],i[s]);e[l++]=c<=0?r[a++]:i[s++]}for(;a<r.length;)e[l++]=r[a++];for(;s<i.length;)e[l++]=i[s++];return e}S(t,"create"),e.create=t,S(n,"is"),e.is=n,S(r,"applyEdits"),e.applyEdits=r,S(o,"mergeSort")}(Da||(Da={}));var Ma,Ra,ja=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return S(e,"FullTextDocument"),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return ai.create(0,e);for(;n<r;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}var i=n-1;return ai.create(i,e-t[i])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();function Pa(e){return{ofRule:e}}function Va(e,t){return{ofRule:e,isList:!0,separator:t}}function qa(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function Ua(e,t){return{style:t,match:t=>t.kind===e}}function Ba(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}!function(e){var t=Object.prototype.toString;function n(e){return"undefined"!==typeof e}function r(e){return"undefined"===typeof e}function o(e){return!0===e||!1===e}function i(e){return"[object String]"===t.call(e)}function a(e){return"[object Number]"===t.call(e)}function s(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r}function l(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647}function c(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647}function u(e){return"[object Function]"===t.call(e)}function p(e){return null!==e&&"object"===typeof e}function d(e,t){return Array.isArray(e)&&e.every(t)}S(n,"defined"),e.defined=n,S(r,"undefined$1"),e.undefined=r,S(o,"boolean"),e.boolean=o,S(i,"string"),e.string=i,S(a,"number"),e.number=a,S(s,"numberRange"),e.numberRange=s,S(l,"integer"),e.integer=l,S(c,"uinteger"),e.uinteger=c,S(u,"func"),e.func=u,S(p,"objectLiteral"),e.objectLiteral=p,S(d,"typedArray"),e.typedArray=d}(Ma||(Ma={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Ra||(Ra={})),S(Pa,"opt"),S(Va,"list"),S(qa,"butNot"),S(Ua,"t"),S(Ba,"p");const za=S((e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e),"isIgnored"),Ha={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:/^#.*/},Ga={Document:[Va("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return l.h.FRAGMENT_DEFINITION;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:[Wa("query"),Pa(Qa("def")),Pa("VariableDefinitions"),Va("Directive"),"SelectionSet"],Mutation:[Wa("mutation"),Pa(Qa("def")),Pa("VariableDefinitions"),Va("Directive"),"SelectionSet"],Subscription:[Wa("subscription"),Pa(Qa("def")),Pa("VariableDefinitions"),Va("Directive"),"SelectionSet"],VariableDefinitions:[Ba("("),Va("VariableDefinition"),Ba(")")],VariableDefinition:["Variable",Ba(":"),"Type",Pa("DefaultValue")],Variable:[Ba("$","variable"),Qa("variable")],DefaultValue:[Ba("="),"Value"],SelectionSet:[Ba("{"),Va("Selection"),Ba("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Qa("property"),Ba(":"),Qa("qualifier"),Pa("Arguments"),Va("Directive"),Pa("SelectionSet")],Field:[Qa("property"),Pa("Arguments"),Va("Directive"),Pa("SelectionSet")],Arguments:[Ba("("),Va("Argument"),Ba(")")],Argument:[Qa("attribute"),Ba(":"),"Value"],FragmentSpread:[Ba("..."),Qa("def"),Va("Directive")],InlineFragment:[Ba("..."),Pa("TypeCondition"),Va("Directive"),"SelectionSet"],FragmentDefinition:[Wa("fragment"),Pa(qa(Qa("def"),[Wa("on")])),"TypeCondition",Va("Directive"),"SelectionSet"],TypeCondition:[Wa("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"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[Ua("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ua("Name","builtin")],NullValue:[Ua("Name","keyword")],EnumValue:[Qa("string-2")],ListValue:[Ba("["),Va("Value"),Ba("]")],ObjectValue:[Ba("{"),Va("ObjectField"),Ba("}")],ObjectField:[Qa("attribute"),Ba(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Ba("["),"Type",Ba("]"),Pa(Ba("!"))],NonNullType:["NamedType",Pa(Ba("!"))],NamedType:[Xa("atom")],Directive:[Ba("@","meta"),Qa("meta"),Pa("Arguments")],DirectiveDef:[Wa("directive"),Ba("@","meta"),Qa("meta"),Pa("ArgumentsDef"),Wa("on"),Va("DirectiveLocation",Ba("|"))],InterfaceDef:[Wa("interface"),Qa("atom"),Pa("Implements"),Va("Directive"),Ba("{"),Va("FieldDef"),Ba("}")],Implements:[Wa("implements"),Va("NamedType",Ba("&"))],DirectiveLocation:[Qa("string-2")],SchemaDef:[Wa("schema"),Va("Directive"),Ba("{"),Va("OperationTypeDef"),Ba("}")],OperationTypeDef:[Qa("keyword"),Ba(":"),Qa("atom")],ScalarDef:[Wa("scalar"),Qa("atom"),Va("Directive")],ObjectTypeDef:[Wa("type"),Qa("atom"),Pa("Implements"),Va("Directive"),Ba("{"),Va("FieldDef"),Ba("}")],FieldDef:[Qa("property"),Pa("ArgumentsDef"),Ba(":"),"Type",Va("Directive")],ArgumentsDef:[Ba("("),Va("InputValueDef"),Ba(")")],InputValueDef:[Qa("attribute"),Ba(":"),"Type",Pa("DefaultValue"),Va("Directive")],UnionDef:[Wa("union"),Qa("atom"),Va("Directive"),Ba("="),Va("UnionMember",Ba("|"))],UnionMember:["NamedType"],EnumDef:[Wa("enum"),Qa("atom"),Va("Directive"),Ba("{"),Va("EnumValueDef"),Ba("}")],EnumValueDef:[Qa("string-2"),Va("Directive")],InputDef:[Wa("input"),Qa("atom"),Va("Directive"),Ba("{"),Va("InputValueDef"),Ba("}")],ExtendDef:[Wa("extend"),"ObjectTypeDef"]};function Wa(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Qa(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Xa(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}}S(Wa,"word"),S(Qa,"name"),S(Xa,"type");const Ja=Object.assign(Object.assign({},l.h),{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"});var Ya={exports:{}};function $a(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}S($a,"nullthrows"),Ya.exports=$a,Ya.exports.default=$a,Object.defineProperty(Ya.exports,"__esModule",{value:!0});var Ka=A(Ya.exports);const Za=S(((e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,a.Vn)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const o=new Set;r.forEach((e=>{!n.has(e)&&t.has(e)&&o.add(Ka(t.get(e)))}));const i=[];return o.forEach((e=>{(0,a.Vn)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(o.add(Ka(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||i.push(e)})),i}),"getFragmentDependenciesForAST");function es(e,t){const n=Object.create(null);return t.definitions.forEach((t=>{if("OperationDefinition"===t.kind){const r=t.variableDefinitions;r&&r.forEach((t=>{let{variable:r,type:o}=t;const i=(0,c._)(e,o);i?n[r.name.value]=i:o.kind===l.h.NAMED_TYPE&&"Float"===o.name.value&&(n[r.name.value]=u.av)}))}})),n}function ts(e,t){const n=t?es(t,e):void 0,r=[];return(0,a.Vn)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function ns(e,t){if(t)try{const n=(0,o.Qc)(t);return Object.assign(Object.assign({},ts(n,e)),{documentAST:n})}catch(n){return}}S(es,"collectVariables"),S(ts,"getOperationASTFacts"),S(ns,"getOperationFacts"),globalThis&&globalThis.__awaiter;var rs=S((function(e){return"object"===typeof e?null===e:"function"!==typeof e}),"isPrimitive"),os=S((function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}),"isObject");function is(e){return!0===os(e)&&"[object Object]"===Object.prototype.toString.call(e)}S(is,"isObjectObject");var as=S((function(e){var t,n;return!1!==is(e)&&("function"===typeof(t=e.constructor)&&(!1!==is(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}),"isPlainObject");const{deleteProperty:ss}=Reflect,ls=rs,cs=as,us=S((e=>"object"===typeof e&&null!==e||"function"===typeof e),"isObject"),ps=S((e=>"__proto__"===e||"constructor"===e||"prototype"===e),"isUnsafeKey"),ds=S((e=>{if(!ls(e))throw new TypeError("Object keys must be strings or symbols");if(ps(e))throw new Error('Cannot set unsafe key: "'.concat(e,'"'))}),"validateKey"),fs=S((e=>Array.isArray(e)?e.flat().map(String).join(","):e),"toStringKey"),hs=S(((e,t)=>{if("string"!==typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+="arrays=".concat(t.arrays,";")),void 0!==t.separator&&(n+="separator=".concat(t.separator,";")),void 0!==t.split&&(n+="split=".concat(t.split,";")),void 0!==t.merge&&(n+="merge=".concat(t.merge,";")),void 0!==t.preservePaths&&(n+="preservePaths=".concat(t.preservePaths,";")),n}),"createMemoKey"),ms=S(((e,t,n)=>{const r=fs(t?hs(e,t):e);ds(r);const o=bs.cache.get(r)||n();return bs.cache.set(r,o),o}),"memoize"),gs=S((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"===typeof e&&!1!==r&&/\//.test(e))return[e];const o=[];let i="";const a=S((e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?o.push(t):o.push(e)}),"push");for(let s=0;s<e.length;s++){const t=e[s];"\\"!==t?t!==n?i+=t:(a(i),i=""):i+=e[++s]}return i&&a(i),o}),"splitString"),vs=S(((e,t)=>t&&"function"===typeof t.split?t.split(e):"symbol"===typeof e?[e]:Array.isArray(e)?e:ms(e,t,(()=>gs(e,t)))),"split"),ys=S(((e,t,n,r)=>{if(ds(t),void 0===n)ss(e,t);else if(r&&r.merge){const o="function"===r.merge?r.merge:Object.assign;o&&cs(e[t])&&cs(n)?e[t]=o(e[t],n):e[t]=n}else e[t]=n;return e}),"assignProp"),bs=S(((e,t,n,r)=>{if(!t||!us(e))return e;const o=vs(t,r);let i=e;for(let a=0;a<o.length;a++){const e=o[a],t=o[a+1];if(ds(e),void 0===t){ys(i,e,n,r);break}"number"!==typeof t||Array.isArray(i[e])?(us(i[e])||(i[e]={}),i=i[e]):i=i[e]=[]}return e}),"setValue");bs.split=vs,bs.cache=new Map,bs.clear=()=>{bs.cache=new Map};var _s=bs,Es=Object.defineProperty,Ts=S(((e,t)=>Es(e,"name",{value:t,configurable:!0})),"__name$e");const ws=Jo("HistoryContext");function ks(e){var t;const n=ti(),r=(0,m.useRef)(new Wo(n||new zo(null),e.maxHistoryLength||Ss)),[o,i]=(0,m.useState)((null==(t=r.current)?void 0:t.queries)||[]),[a,s]=(0,m.useState)("true"===(null==n?void 0:n.get(Cs))||!1),l=(0,m.useCallback)((e=>{let{query:t,variables:n,headers:o,operationName:a}=e;var s;null==(s=r.current)||s.updateHistory(t,n,o,a),i(r.current.queries)}),[]),c=(0,m.useCallback)((e=>{let{query:t,variables:n,headers:o,operationName:a,label:s,favorite:l}=e;r.current.editLabel(t,n,o,a,s,l),i(r.current.queries)}),[]),{onToggle:u}=e,p=(0,m.useCallback)((()=>{null==u||u(!1),null==n||n.set(Cs,JSON.stringify(!1)),s(!1)}),[u,n]),d=(0,m.useCallback)((()=>{null==u||u(!0),null==n||n.set(Cs,JSON.stringify(!0)),s(!0)}),[u,n]),f=(0,m.useCallback)((()=>{s((e=>{const t=!e;return null==u||u(t),null==n||n.set(Cs,JSON.stringify(t)),t}))}),[u,n]),h=(0,m.useCallback)((e=>{let{query:t,variables:n,headers:o,operationName:a,label:s,favorite:l}=e;r.current.toggleFavorite(t,n,o,a,s,l),i(r.current.queries)}),[]),g=(0,m.useMemo)((()=>({addToHistory:l,editLabel:c,hide:p,isVisible:a,items:o,show:d,toggle:f,toggleFavorite:h})),[l,c,p,a,o,d,f,h]);return fo(ws.Provider,{value:g,children:e.children})}S(ks,"HistoryContextProvider"),Ts(ks,"HistoryContextProvider");const xs=Yo(ws),Ss=20,Cs="historyPaneOpen";var Ns=Object.defineProperty,As=S(((e,t)=>Ns(e,"name",{value:t,configurable:!0})),"__name$d");function Os(){const{headerEditor:e,queryEditor:t,variableEditor:n}=sc({nonNull:!0,caller:Os});return r=>{var o,i,a;null==t||t.setValue(null!=(o=r.query)?o:""),null==n||n.setValue(null!=(i=r.variables)?i:""),null==e||e.setValue(null!=(a=r.headers)?a:"")}}S(Os,"useSelectHistoryItem"),As(Os,"useSelectHistoryItem");var Is=Object.defineProperty,Ds=S(((e,t)=>Is(e,"name",{value:t,configurable:!0})),"__name$c");const Ls=Jo("ExecutionContext");function Fs(e){const{externalFragments:t,headerEditor:n,queryEditor:r,responseEditor:o,shouldPersistHeaders:i,variableEditor:a,updateActiveTabValues:l}=sc({nonNull:!0,caller:Fs}),c=xs(),u=gl({caller:Fs}),[p,d]=(0,m.useState)(!1),[f,h]=(0,m.useState)(null),g=(0,m.useRef)(0),v=(0,m.useCallback)((()=>{null==f||f.unsubscribe(),d(!1),h(null)}),[f]),{fetcher:y}=e,b=(0,m.useCallback)((async()=>{var p,m,b;if(!r||!o)return;if(f)return void v();const _=Ds((e=>{o.setValue(e),l({response:e})}),"setResponse");g.current+=1;const E=g.current;let T=u()||r.getValue();const w=null==a?void 0:a.getValue();let x;try{x=Rs({json:w,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(O){return void _(O instanceof Error?O.message:"".concat(O))}const S=null==n?void 0:n.getValue();let N;try{N=Rs({json:S,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(O){return void _(O instanceof Error?O.message:"".concat(O))}if(t){const e=r.documentAST?Za(r.documentAST,t):[];e.length>0&&(T+="\n"+e.map((e=>(0,s.S)(e))).join("\n"))}_(""),d(!0);const A=null!=(m=null!=(p=e.operationName)?p:r.operationName)?m:void 0;null==c||c.addToHistory({query:T,variables:w,headers:S,operationName:A});try{let e={data:{}};const t=Ds((t=>{if(E!==g.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"===typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){const t={data:e.data},r=[...(null==e?void 0:e.errors)||[],...n.map((e=>e.errors)).flat().filter(Boolean)];r.length&&(t.errors=r);for(const o of n){const n=o,{path:r,data:i,errors:a}=n,s=C(n,["path","data","errors"]);if(r){if(!i)throw new Error("Expected part to contain a data property, but got ".concat(o));_s(t.data,r,i,{merge:!0})}else i&&(t.data=o.data);e=k(k({},t),s)}d(!1),_(Io(e))}else{const e=Io(t);d(!1),_(e)}}),"handleResponse"),n=y({query:T,variables:x,operationName:A},{headers:null!=N?N:void 0,shouldPersistHeaders:i,documentAST:null!=(b=r.documentAST)?b:void 0}),o=await Promise.resolve(n);if(To(o))h(o.subscribe({next(e){t(e)},error(e){d(!1),e&&_(Oo(e)),h(null)},complete(){d(!1),h(null)}}));else if(wo(o)){h({unsubscribe:()=>{var e,t;return null==(t=(e=o[Symbol.asyncIterator]()).return)?void 0:t.call(e)}});try{for await(const e of o)t(e);d(!1),h(null)}catch(O){d(!1),_(Oo(O)),h(null)}}else t(o)}catch(O){d(!1),_(Oo(O)),h(null)}}),[u,t,y,n,c,e.operationName,r,o,i,v,f,l,a]),_=(0,m.useMemo)((()=>{var t;return{isFetching:p,operationName:null!=(t=e.operationName)?t:null,run:b,stop:v}}),[p,e.operationName,b,v]);return fo(Ls.Provider,{value:_,children:e.children})}S(Fs,"ExecutionContextProvider"),Ds(Fs,"ExecutionContextProvider");const Ms=Yo(Ls);function Rs(e){let t,{json:n,errorMessageParse:r,errorMessageType:o}=e;try{t=n&&""!==n.trim()?JSON.parse(n):void 0}catch(a){throw new Error("".concat(r,": ").concat(a instanceof Error?a.message:a,"."))}const i="object"===typeof t&&null!==t&&!Array.isArray(t);if(void 0!==t&&!i)throw new Error(o);return t}S(Rs,"tryParseJsonObject"),Ds(Rs,"tryParseJsonObject");var js=S((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}),"toggleSelection"),Ps=js,Vs={"text/plain":"Text","text/html":"Url",default:"Text"};function qs(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Us(e,t){var n,r,o,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(o=Ps(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=Vs[t.format]||Vs.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(u){n&&console.error("unable to copy using clipboardData: ",u),n&&console.error("falling back to prompt"),r=qs("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}S(qs,"format"),S(Us,"copy");var Bs=Us,zs=Object.defineProperty,Hs=S(((e,t)=>zs(e,"name",{value:t,configurable:!0})),"__name$b");const Gs=Jo("SchemaContext");function Ws(e){const{initialHeaders:t,headerEditor:n}=sc({nonNull:!0,caller:Ws}),[r,o]=(0,m.useState)(),[i,a]=(0,m.useState)(!1),[s,l]=(0,m.useState)(null),c=(0,m.useRef)(0);(0,m.useEffect)((()=>{o((0,p.nN)(e.schema)||null===e.schema||void 0===e.schema?e.schema:void 0),c.current++}),[e.schema]);const u=(0,m.useRef)(t);(0,m.useEffect)((()=>{n&&(u.current=n.getValue())}));const{introspectionQuery:h,introspectionQueryName:g,introspectionQuerySansSubscriptions:v}=Xs({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:y,onSchemaChange:b}=e,_=(0,m.useCallback)((()=>{if((0,p.nN)(e.schema)||null===e.schema)return;const t=++c.current;o(void 0);const n=e.schema;async function r(){if(n)return n;const e=Js(u.current);if(!e.isValidJSON)return void l("Introspection failed as headers are invalid.");const t=e.headers?{headers:e.headers}:{},r=xo(y({query:h,operationName:g},t));if(!_o(r))return void l("Fetcher did not return a Promise for introspection.");a(!0);let o=await r;if("object"!==typeof o||null===o||!("data"in o)){const e=xo(y({query:v,operationName:g},t));if(!_o(e))throw new Error("Fetcher did not return a Promise for introspection.");o=await e}if(a(!1),(null==o?void 0:o.data)&&"__schema"in o.data)return o.data;const i="string"===typeof o?o:Io(o);l(i)}S(r,"fetchIntrospectionData"),Hs(r,"fetchIntrospectionData"),r().then((e=>{if(t===c.current&&e)try{const t=(0,d.Z)(e);o(t),null==b||b(t)}catch(n){l(Oo(n))}})).catch((e=>{t===c.current&&(l(Oo(e)),a(!1))}))}),[y,g,h,v,b,e.schema]);(0,m.useEffect)((()=>{_()}),[_]),(0,m.useEffect)((()=>{function e(e){82===e.keyCode&&e.shiftKey&&e.ctrlKey&&_()}return S(e,"triggerIntrospection"),Hs(e,"triggerIntrospection"),window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}));const E=(0,m.useMemo)((()=>!r||e.dangerouslyAssumeSchemaIsValid?[]:(0,f.F)(r)),[r,e.dangerouslyAssumeSchemaIsValid]),T=(0,m.useMemo)((()=>({fetchError:s,introspect:_,isFetching:i,schema:r,validationErrors:E})),[s,_,i,r,E]);return fo(Gs.Provider,{value:T,children:e.children})}S(Ws,"SchemaContextProvider"),Hs(Ws,"SchemaContextProvider");const Qs=Yo(Gs);function Xs(e){let{inputValueDeprecation:t,introspectionQueryName:n,schemaDescription:r}=e;return(0,m.useMemo)((()=>{const e=n||"IntrospectionQuery";let o=(0,h.K)({inputValueDeprecation:t,schemaDescription:r});n&&(o=o.replace("query IntrospectionQuery","query ".concat(e)));const i=o.replace("subscriptionType { name }","");return{introspectionQueryName:e,introspectionQuery:o,introspectionQuerySansSubscriptions:i}}),[t,n,r])}function Js(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(r){n=!1}return{headers:t,isValidJSON:n}}S(Xs,"useIntrospectionQuery"),Hs(Xs,"useIntrospectionQuery"),S(Js,"parseHeaderString"),Hs(Js,"parseHeaderString");var Ys=Object.defineProperty,$s=S(((e,t)=>Ys(e,"name",{value:t,configurable:!0})),"__name$a");const Ks={name:"Schema",title:"Documentation Explorer"},Zs=Jo("ExplorerContext");function el(e){var t,n;const{isFetching:r}=Qs({nonNull:!0,caller:el}),o=ti(),[i,a]=(0,m.useState)(null!=(n=null!=(t=e.isVisible)?t:"true"===(null==o?void 0:o.get(nl)))&&n),[s,l]=(0,m.useState)([Ks]),{onToggleVisibility:c}=e,u=(0,m.useRef)(!0);(0,m.useEffect)((()=>{u.current?u.current=!1:void 0!==e.isVisible&&a(e.isVisible)}),[e.isVisible]);const p=(0,m.useCallback)((()=>{null==c||c(!1),null==o||o.set(nl,"false"),a(!1)}),[c,o]),d=(0,m.useCallback)((e=>{l((t=>t[t.length-1].def===e.def?t:[...t,e]))}),[]),f=(0,m.useCallback)((()=>{l((e=>e.length>1?e.slice(0,-1):e))}),[]),h=(0,m.useCallback)((()=>{l((e=>1===e.length?e:[Ks]))}),[]),g=(0,m.useCallback)((()=>{null==c||c(!0),null==o||o.set(nl,"true"),a(!0)}),[c,o]),v=(0,m.useCallback)((e=>{l((t=>{const n=t[t.length-1];return[...t.slice(0,-1),x(k({},n),{search:e})]}))}),[]);(0,m.useEffect)((()=>{r&&h()}),[r,h]);const y=(0,m.useMemo)((()=>({explorerNavStack:s,hide:p,isVisible:i,push:d,pop:f,reset:h,show:g,showSearch:v})),[p,i,s,d,f,h,g,v]);return fo(Zs.Provider,{value:y,children:e.children})}S(el,"ExplorerContextProvider"),$s(el,"ExplorerContextProvider");const tl=Yo(Zs),nl="docExplorerOpen";var rl=Object.defineProperty,ol=S(((e,t)=>rl(e,"name",{value:t,configurable:!0})),"__name$9");function il(e,t){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n&&window.clearTimeout(n),n=window.setTimeout((()=>{n=null,t(...o)}),e)}}S(il,"debounce"),ol(il,"debounce");var al=Object.defineProperty,sl=S(((e,t)=>al(e,"name",{value:t,configurable:!0})),"__name$8");function ll(e,t){(0,m.useEffect)((()=>{e&&"string"===typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function cl(e,t,n){(0,m.useEffect)((()=>{e&&e.setOption(t,n)}),[e,t,n])}function ul(e,t,n,r,o){const{updateActiveTabValues:i}=sc({nonNull:!0,caller:o}),a=ti();(0,m.useEffect)((()=>{if(!e)return;const o=il(500,(e=>{a&&null!==n&&a.set(n,e)})),s=il(100,(e=>{i({[r]:e})})),l=sl(((e,n)=>{if(!n)return;const r=e.getValue();o(r),s(r),null==t||t(r)}),"handleChange");return e.on("change",l),()=>e.off("change",l)}),[t,e,a,n,r,i])}function pl(e,t){const{schema:n}=Qs({nonNull:!0,caller:t}),r=tl();(0,m.useEffect)((()=>{if(!e)return;const t=sl(((e,t)=>{Zr(0,t,n,r)}),"handleCompletion");return e.on("hasCompletion",t),()=>e.off("hasCompletion",t)}),[e,r,n])}function dl(e,t,n){(0,m.useEffect)((()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}}),[e,t,n])}function fl(){let{caller:e,onCopyQuery:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:n}=sc({nonNull:!0,caller:e||fl});return(0,m.useCallback)((()=>{if(!n)return;const e=n.getValue();Bs(e),null==t||t(e)}),[n,t])}function hl(){let{caller:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:t}=sc({nonNull:!0,caller:e||hl}),{schema:n}=Qs({nonNull:!0,caller:hl});return(0,m.useCallback)((()=>{const e=null==t?void 0:t.documentAST,r=null==t?void 0:t.getValue();e&&r&&t.setValue((0,s.S)(qo(e,n)))}),[t,n])}function ml(){let{caller:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{queryEditor:t,headerEditor:n,variableEditor:r}=sc({nonNull:!0,caller:e||ml});return(0,m.useCallback)((()=>{if(r){const e=r.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&r.setValue(t)}catch{}}if(n){const e=n.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&n.setValue(t)}catch{}}if(t){const e=t.getValue(),n=(0,s.S)((0,o.Qc)(e));n!==e&&t.setValue(n)}}),[t,r,n])}function gl(){let{getDefaultFieldNames:e,caller:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{schema:n}=Qs({nonNull:!0,caller:t||gl}),{queryEditor:r}=sc({nonNull:!0,caller:t||gl});return(0,m.useCallback)((()=>{if(!r)return;const t=r.getValue(),{insertions:o,result:i}=Do(n,t,e);return o&&o.length>0&&r.operation((()=>{const e=r.getCursor(),t=r.indexFromPos(e);r.setValue(i||"");let n=0;const a=o.map((e=>{let{index:t,string:o}=e;return r.markText(r.posFromIndex(t+n),r.posFromIndex(t+(n+=o.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((()=>a.forEach((e=>e.clear()))),7e3);let s=t;o.forEach((e=>{let{index:n,string:r}=e;n<t&&(s+=r.length)})),r.setCursor(r.posFromIndex(s))})),i}),[e,r,n])}S(ll,"useSynchronizeValue"),sl(ll,"useSynchronizeValue"),S(cl,"useSynchronizeOption"),sl(cl,"useSynchronizeOption"),S(ul,"useChangeHandler"),sl(ul,"useChangeHandler"),S(pl,"useCompletion"),sl(pl,"useCompletion"),S(dl,"useKeyMap"),sl(dl,"useKeyMap"),S(fl,"useCopyQuery"),sl(fl,"useCopyQuery"),S(hl,"useMergeQuery"),sl(hl,"useMergeQuery"),S(ml,"usePrettifyEditors"),sl(ml,"usePrettifyEditors"),S(gl,"useAutoCompleteLeafs"),sl(gl,"useAutoCompleteLeafs");var vl=Object.defineProperty,yl=S(((e,t)=>vl(e,"name",{value:t,configurable:!0})),"__name$7");function bl(){let{editorTheme:e=Wr,keyMap:t=Qr,onEdit:r,readOnly:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{initialHeaders:i,headerEditor:a,setHeaderEditor:s,shouldPersistHeaders:l}=sc({nonNull:!0,caller:bl}),c=Ms(),u=hl({caller:bl}),p=ml({caller:bl}),d=(0,m.useRef)(null);return(0,m.useEffect)((()=>{let t=!0;return Yr([Promise.all([n.e(8262),n.e(2720)]).then(n.bind(n,42720)).then((function(e){return e.j}))]).then((n=>{if(!t)return;const r=d.current;if(!r)return;const a=n(r,{value:i,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Jr});a.addKeyMap({"Cmd-Space"(){a.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){a.showHint({completeSingle:!1,container:r})},"Alt-Space"(){a.showHint({completeSingle:!1,container:r})},"Shift-Space"(){a.showHint({completeSingle:!1,container:r})}}),a.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),s(a)})),()=>{t=!1}}),[e,i,o,s]),cl(a,"keyMap",t),ul(a,r,l?_l:null,"headers",bl),pl(a,bl),dl(a,["Cmd-Enter","Ctrl-Enter"],null==c?void 0:c.run),dl(a,["Shift-Ctrl-P"],p),dl(a,["Shift-Ctrl-M"],u),d}S(bl,"useHeaderEditor"),yl(bl,"useHeaderEditor");const _l="headers";var El=Object.defineProperty,Tl=S(((e,t)=>El(e,"name",{value:t,configurable:!0})),"__name$6");const wl=Array.from({length:11},((e,t)=>String.fromCharCode(8192+t))).concat(["\u2028","\u2029","\u202f","\xa0"]),kl=new RegExp("["+wl.join("")+"]","g");function xl(e){return e.replace(kl," ")}S(xl,"normalizeWhitespace"),Tl(xl,"normalizeWhitespace");var Sl=Object.defineProperty,Cl=S(((e,t)=>Sl(e,"name",{value:t,configurable:!0})),"__name$5");function Nl(){let{editorTheme:e=Wr,keyMap:t=Qr,onClickReference:r,onCopyQuery:o,onEdit:i,readOnly:a=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{schema:s}=Qs({nonNull:!0,caller:Nl}),{externalFragments:l,initialQuery:c,queryEditor:u,setOperationName:p,setQueryEditor:d,validationRules:f,variableEditor:h,updateActiveTabValues:g}=sc({nonNull:!0,caller:Nl}),v=Ms(),y=ti(),b=tl(),_=fl({caller:Nl,onCopyQuery:o}),E=hl({caller:Nl}),T=ml({caller:Nl}),w=(0,m.useRef)(null),C=(0,m.useRef)(),N=(0,m.useRef)((()=>{}));(0,m.useEffect)((()=>{N.current=e=>{b&&(b.show(),e&&"Type"===e.kind?b.push({name:e.type.name,def:e.type}):"Field"===e.kind||"Argument"===e.kind&&e.field?b.push({name:e.field.name,def:e.field}):"EnumValue"===e.kind&&e.type&&b.push({name:e.type.name,def:e.type}),null==r||r(e))}}),[b,r]),(0,m.useEffect)((()=>{let t=!0;return Yr([Promise.all([n.e(8262),n.e(8606)]).then(n.bind(n,68606)).then((function(e){return e.c})),Promise.all([n.e(8262),n.e(6602)]).then(n.bind(n,46602)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(3633),n.e(3111),n.e(4274)]).then(n.bind(n,34274)),Promise.all([n.e(8262),n.e(6780)]).then(n.bind(n,66780)),Promise.all([n.e(8262),n.e(3633),n.e(744)]).then(n.bind(n,40744)),Promise.all([n.e(8262),n.e(3633),n.e(2828)]).then(n.bind(n,2828)),Promise.all([n.e(8262),n.e(3476)]).then(n.bind(n,3476))]).then((n=>{if(!t)return;C.current=n;const r=w.current;if(!r)return;const o=n(r,{value:c,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!a&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:r,externalFragments:void 0},info:{schema:void 0,renderDescription:e=>zr.render(e),onClick:e=>{N.current(e)}},jump:{schema:void 0,onClick:e=>{N.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:x(k({},Jr),{"Cmd-S"(){},"Ctrl-S"(){}})});o.addKeyMap({"Cmd-Space"(){o.showHint({completeSingle:!0,container:r})},"Ctrl-Space"(){o.showHint({completeSingle:!0,container:r})},"Alt-Space"(){o.showHint({completeSingle:!0,container:r})},"Shift-Space"(){o.showHint({completeSingle:!0,container:r})},"Shift-Alt-Space"(){o.showHint({completeSingle:!0,container:r})}}),o.on("keyup",((e,t)=>{Dl.test(t.key)&&e.execCommand("autocomplete")})),o.on("beforeChange",((e,t)=>{var n;if("paste"===t.origin){const e=t.text.map(xl);null==(n=t.update)||n.call(t,t.from,t.to,e)}})),o.documentAST=null,o.operationName=null,o.operations=null,o.variableToType=null,d(o)})),()=>{t=!1}}),[e,c,a,d]),cl(u,"keyMap",t),(0,m.useEffect)((()=>{if(!u)return;function e(e){var t,n,r,o,i;const a=ns(s,e.getValue()),l=Uo(null!=(t=e.operations)?t:void 0,null!=(n=e.operationName)?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!=(r=null==a?void 0:a.documentAST)?r:null,e.operationName=null!=l?l:null,e.operations=null!=(o=null==a?void 0:a.operations)?o:null,h&&(h.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,h.options.lint.variableToType=null==a?void 0:a.variableToType,h.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(i=C.current)||i.signal(h,"change",h)),a?x(k({},a),{operationName:l}):null}S(e,"getAndUpdateOperationFacts"),Cl(e,"getAndUpdateOperationFacts");const t=il(100,(t=>{var n;const r=t.getValue();null==y||y.set(Ll,r);const o=t.operationName,a=e(t);void 0!==(null==a?void 0:a.operationName)&&(null==y||y.set(Fl,a.operationName)),null==i||i(r,null==a?void 0:a.documentAST),(null==a?void 0:a.operationName)&&o!==a.operationName&&p(a.operationName),g({query:r,operationName:null!=(n=null==a?void 0:a.operationName)?n:null})}));return e(u),u.on("change",t),()=>u.off("change",t)}),[i,u,s,p,y,h,g]),Al(u,null!=s?s:null,C),Ol(u,null!=f?f:null,C),Il(u,l,C),pl(u,Nl);const A=null==v?void 0:v.run,O=(0,m.useCallback)((()=>{var e;if(!A||!u||!u.operations||!u.hasFocus())return void(null==A||A());const t=u.indexFromPos(u.getCursor());let n;for(const r of u.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==u.operationName&&p(n),A()}),[u,A,p]);return dl(u,["Cmd-Enter","Ctrl-Enter"],O),dl(u,["Shift-Ctrl-C"],_),dl(u,["Shift-Ctrl-P","Shift-Ctrl-F"],T),dl(u,["Shift-Ctrl-M"],E),w}function Al(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.schema!==t;e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function Ol(e,t,n){(0,m.useEffect)((()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,"change",e)}),[e,t,n])}function Il(e,t,n){const r=(0,m.useMemo)((()=>[...t.values()]),[t]);(0,m.useEffect)((()=>{if(!e)return;const t=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,t&&n.current&&n.current.signal(e,"change",e)}),[e,r,n])}S(Nl,"useQueryEditor"),Cl(Nl,"useQueryEditor"),S(Al,"useSynchronizeSchema"),Cl(Al,"useSynchronizeSchema"),S(Ol,"useSynchronizeValidationRules"),Cl(Ol,"useSynchronizeValidationRules"),S(Il,"useSynchronizeExternalFragments"),Cl(Il,"useSynchronizeExternalFragments");const Dl=/^[a-zA-Z0-9_@(]$/,Ll="query",Fl="operationName";var Ml=Object.defineProperty,Rl=S(((e,t)=>Ml(e,"name",{value:t,configurable:!0})),"__name$4");function jl(e){let{headers:t,query:n,variables:r,storage:o}=e;const i=null==o?void 0:o.get(Kl);try{if(!i)throw new Error("Storage for tabs is empty");const e=JSON.parse(i);if(Pl(e)){const o=Jl({query:n,variables:r,headers:t});let i=-1;for(let t=0;t<e.tabs.length;t++){const n=e.tabs[t];n.hash=Jl({query:n.query,variables:n.variables,headers:n.headers}),n.hash===o&&(i=t)}if(i>=0)e.activeTabIndex=i;else{const i=n?Yl(n):null;e.tabs.push({id:Xl(),hash:o,title:i||$l,query:n,variables:r,headers:t,operationName:i,response:null})}return e}throw new Error("Storage for tabs is invalid")}catch(a){return null==o||o.set(Kl,""),{activeTabIndex:0,tabs:[Wl()]}}}function Pl(e){return e&&"object"===typeof e&&!Array.isArray(e)&&ql(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(Vl)}function Vl(e){return e&&"object"===typeof e&&!Array.isArray(e)&&Ul(e,"id")&&Ul(e,"title")&&Bl(e,"query")&&Bl(e,"variables")&&Bl(e,"headers")&&Bl(e,"operationName")&&Bl(e,"response")}function ql(e,t){return t in e&&"number"===typeof e[t]}function Ul(e,t){return t in e&&"string"===typeof e[t]}function Bl(e,t){return t in e&&("string"===typeof e[t]||null===e[t])}function zl(e){let{queryEditor:t,variableEditor:n,headerEditor:r,responseEditor:o}=e;return(0,m.useCallback)((e=>{var i,a,s,l,c;const u=null!=(i=null==t?void 0:t.getValue())?i:null,p=null!=(a=null==n?void 0:n.getValue())?a:null,d=null!=(s=null==r?void 0:r.getValue())?s:null,f=null!=(l=null==t?void 0:t.operationName)?l:null;return Ql(e,{query:u,variables:p,headers:d,response:null!=(c=null==o?void 0:o.getValue())?c:null,operationName:f})}),[t,n,r,o])}function Hl(e){let{storage:t,shouldPersistHeaders:n}=e;const r=(0,m.useMemo)((()=>il(500,(e=>{null==t||t.set(Kl,e)}))),[t]);return(0,m.useCallback)((e=>{r(JSON.stringify(e,((e,t)=>"hash"===e||"response"===e||!n&&"headers"===e?null:t)))}),[n,r])}function Gl(e){let{queryEditor:t,variableEditor:n,headerEditor:r,responseEditor:o}=e;return(0,m.useCallback)((e=>{let{query:i,variables:a,headers:s,response:l}=e;null==t||t.setValue(null!=i?i:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=s?s:""),null==o||o.setValue(null!=l?l:"")}),[r,t,o,n])}function Wl(){return{id:Xl(),hash:Jl({query:null,variables:null,headers:null}),title:$l,query:null,variables:null,headers:null,operationName:null,response:null}}function Ql(e,t){return x(k({},e),{tabs:e.tabs.map(((n,r)=>{if(r!==e.activeTabIndex)return n;const o=k(k({},n),t);return x(k({},o),{hash:Jl(o),title:o.operationName||(o.query?Yl(o.query):void 0)||$l})}))})}function Xl(){const e=Rl((()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1)),"s4");return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function Jl(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function Yl(e){var t;const n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}S(jl,"getDefaultTabState"),Rl(jl,"getDefaultTabState"),S(Pl,"isTabsState"),Rl(Pl,"isTabsState"),S(Vl,"isTabState"),Rl(Vl,"isTabState"),S(ql,"hasNumberKey"),Rl(ql,"hasNumberKey"),S(Ul,"hasStringKey"),Rl(Ul,"hasStringKey"),S(Bl,"hasStringOrNullKey"),Rl(Bl,"hasStringOrNullKey"),S(zl,"useSynchronizeActiveTabValues"),Rl(zl,"useSynchronizeActiveTabValues"),S(Hl,"useStoreTabs"),Rl(Hl,"useStoreTabs"),S(Gl,"useSetEditorValues"),Rl(Gl,"useSetEditorValues"),S(Wl,"emptyTab"),Rl(Wl,"emptyTab"),S(Ql,"setPropertiesInActiveTab"),Rl(Ql,"setPropertiesInActiveTab"),S(Xl,"guid"),Rl(Xl,"guid"),S(Jl,"hashFromTabContents"),Rl(Jl,"hashFromTabContents"),S(Yl,"fuzzyExtractOperationName"),Rl(Yl,"fuzzyExtractOperationName");const $l="<untitled>",Kl="tabState";var Zl=Object.defineProperty,ec=S(((e,t)=>Zl(e,"name",{value:t,configurable:!0})),"__name$3");function tc(){let{editorTheme:e=Wr,keyMap:t=Qr,onEdit:r,readOnly:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{initialVariables:i,variableEditor:a,setVariableEditor:s}=sc({nonNull:!0,caller:tc}),l=Ms(),c=hl({caller:tc}),u=ml({caller:tc}),p=(0,m.useRef)(null),d=(0,m.useRef)();return(0,m.useEffect)((()=>{let t=!0;return Yr([Promise.all([n.e(8262),n.e(1826)]).then(n.bind(n,51826)),Promise.all([n.e(8262),n.e(2129)]).then(n.bind(n,2129)),Promise.all([n.e(8262),n.e(556)]).then(n.bind(n,90556))]).then((n=>{if(!t)return;d.current=n;const r=p.current;if(!r)return;const a=n(r,{value:i,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!o&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:r,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Jr});a.addKeyMap({"Cmd-Space"(){a.showHint({completeSingle:!1,container:r})},"Ctrl-Space"(){a.showHint({completeSingle:!1,container:r})},"Alt-Space"(){a.showHint({completeSingle:!1,container:r})},"Shift-Space"(){a.showHint({completeSingle:!1,container:r})}}),a.on("keyup",((e,t)=>{const n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),s(a)})),()=>{t=!1}}),[e,i,o,s]),cl(a,"keyMap",t),ul(a,r,nc,"variables",tc),pl(a,tc),dl(a,["Cmd-Enter","Ctrl-Enter"],null==l?void 0:l.run),dl(a,["Shift-Ctrl-P"],u),dl(a,["Shift-Ctrl-M"],c),p}S(tc,"useVariableEditor"),ec(tc,"useVariableEditor");const nc="variables";var rc=Object.defineProperty,oc=S(((e,t)=>rc(e,"name",{value:t,configurable:!0})),"__name$2");const ic=Jo("EditorContext");function ac(e){var t,n,r,i,s;const l=ti(),[c,u]=(0,m.useState)(null),[p,d]=(0,m.useState)(null),[f,h]=(0,m.useState)(null),[g,v]=(0,m.useState)(null);ll(c,e.headers),ll(p,e.query),ll(f,e.response),ll(g,e.variables);const[y]=(0,m.useState)((()=>{var t,n,r,o,i,a;return{headers:null!=(n=null!=(t=e.headers)?t:null==l?void 0:l.get(_l))?n:null,query:null!=(o=null!=(r=e.query)?r:null==l?void 0:l.get(Ll))?o:null,variables:null!=(a=null!=(i=e.variables)?i:null==l?void 0:l.get(nc))?a:null}})),[b,_]=(0,m.useState)((()=>jl(x(k({},y),{storage:l})))),E=Hl({storage:l,shouldPersistHeaders:e.shouldPersistHeaders}),T=zl({queryEditor:p,variableEditor:g,headerEditor:c,responseEditor:f}),w=Gl({queryEditor:p,variableEditor:g,headerEditor:c,responseEditor:f}),{onTabChange:S}=e,C=(0,m.useCallback)((()=>{_((e=>{const t=T(e),n={tabs:[...t.tabs,Wl()],activeTabIndex:t.tabs.length};return E(n),w(n.tabs[n.activeTabIndex]),null==S||S(n),n}))}),[S,w,E,T]),N=(0,m.useCallback)((e=>{_((t=>{const n=x(k({},T(t)),{activeTabIndex:e});return E(n),w(n.tabs[n.activeTabIndex]),null==S||S(n),n}))}),[S,w,E,T]),A=(0,m.useCallback)((e=>{_((t=>{const n={tabs:t.tabs.filter(((t,n)=>e!==n)),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return E(n),w(n.tabs[n.activeTabIndex]),null==S||S(n),n}))}),[S,w,E]),O=(0,m.useCallback)((e=>{_((t=>{const n=Ql(t,e);return E(n),null==S||S(n),n}))}),[S,E]),{onEditOperationName:I}=e,D=(0,m.useCallback)((e=>{p&&(p.operationName=e,O({operationName:e}),null==I||I(e))}),[I,p,O]),L=b.activeTabIndex>0?"":null!=(t=e.defaultQuery)?t:lc,F=(0,m.useRef)({initialHeaders:null!=(n=y.headers)?n:"",initialQuery:null!=(r=y.query)?r:L,initialResponse:null!=(i=e.response)?i:"",initialVariables:null!=(s=y.variables)?s:""}),M=(0,m.useMemo)((()=>{const t=new Map;if(Array.isArray(e.externalFragments))for(const n of e.externalFragments)t.set(n.name.value,n);else if("string"===typeof e.externalFragments)(0,a.Vn)((0,o.Qc)(e.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");return t}),[e.externalFragments]),R=(0,m.useMemo)((()=>e.validationRules||[]),[e.validationRules]),j=(0,m.useMemo)((()=>x(k(x(k({},b),{addTab:C,changeTab:N,closeTab:A,updateActiveTabValues:O,headerEditor:c,queryEditor:p,responseEditor:f,variableEditor:g,setHeaderEditor:u,setQueryEditor:d,setResponseEditor:h,setVariableEditor:v,setOperationName:D}),F.current),{externalFragments:M,validationRules:R,shouldPersistHeaders:e.shouldPersistHeaders||!1})),[b,C,N,A,O,c,p,f,g,D,M,R,e.shouldPersistHeaders]);return fo(ic.Provider,{value:j,children:e.children})}S(ac,"EditorContextProvider"),oc(ac,"EditorContextProvider");const sc=Yo(ic),lc='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';var cc=Object.defineProperty,uc=S(((e,t)=>cc(e,"name",{value:t,configurable:!0})),"__name$1");function pc(){let{ResponseTooltip:e,editorTheme:t=Wr,keyMap:r=Qr}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{fetchError:o,validationErrors:i}=Qs({nonNull:!0,caller:pc}),{initialResponse:a,responseEditor:s,setResponseEditor:l}=sc({nonNull:!0,caller:pc}),c=(0,m.useRef)(null),u=(0,m.useRef)(e);return(0,m.useEffect)((()=>{u.current=e}),[e]),(0,m.useEffect)((()=>{let e=!0;return Yr([Promise.all([n.e(8262),n.e(4074)]).then(n.bind(n,44074)).then((function(e){return e.f})),Promise.all([n.e(8262),n.e(4349)]).then(n.bind(n,24349)).then((function(e){return e.b})),Promise.all([n.e(8262),n.e(6830)]).then(n.bind(n,36830)).then((function(e){return e.d})),Promise.all([n.e(8262),n.e(6602)]).then(n.bind(n,46602)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(3829)]).then(n.bind(n,33829)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(4590)]).then(n.bind(n,44590)).then((function(e){return e.j})),Promise.all([n.e(8262),n.e(1361)]).then(n.bind(n,61361)).then((function(e){return e.s})),Promise.all([n.e(8262),n.e(8249)]).then(n.bind(n,88249)),Promise.all([n.e(8262),n.e(3732)]).then(n.bind(n,53732))],{useCommonAddons:!1}).then((n=>{if(!e)return;const r=document.createElement("div");n.registerHelper("info","graphql-results",((e,t,n,o)=>{const i=[],a=u.current;return a&&i.push(fo(a,{pos:o})),vo.shouldRender(e)&&i.push(fo(vo,{token:e},"image-preview")),i.length?(g.render(i,r),r):(g.unmountComponentAtNode(r),null)}));const o=c.current;if(!o)return;const i=n(o,{value:a,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Jr});l(i)})),()=>{e=!1}}),[t,a,l]),cl(s,"keyMap",r),(0,m.useEffect)((()=>{o&&(null==s||s.setValue(o)),i.length>0&&(null==s||s.setValue(Oo(i)))}),[s,o,i]),c}S(pc,"useResponseEditor"),uc(pc,"useResponseEditor");var dc=Object.defineProperty,fc=S(((e,t)=>dc(e,"name",{value:t,configurable:!0})),"__name");function hc(e){let{defaultSizeRelation:t=mc,direction:n,initiallyHidden:r,onHiddenElementChange:o,sizeThresholdFirst:i=100,sizeThresholdSecond:a=100,storageKey:s}=e;const l=ti(),c=(0,m.useCallback)(il(500,(e=>{l&&s&&l.set(s,e)})),[l,s]),[u,p]=(0,m.useState)((()=>{const e=l&&s?l.get(s):null;return e===gc||"first"===r?"first":e===vc||"second"===r?"second":null})),d=(0,m.useCallback)((e=>{p(e),null==o||o(e)}),[o]),f=(0,m.useRef)(null),h=(0,m.useRef)(null),g=(0,m.useRef)(null),v=(0,m.useRef)("".concat(t));(0,m.useLayoutEffect)((()=>{const e=l&&s&&l.get(s)||v.current,t="horizontal"===n?"row":"column";f.current&&(f.current.style.display="flex",f.current.style.flexDirection=t,f.current.style.flex=e===gc||e===vc?v.current:e),g.current&&(g.current.style.display="flex",g.current.style.flexDirection=t,g.current.style.flex="1"),h.current&&(h.current.style.display="flex",h.current.style.flexDirection=t)}),[n,l,s]);const y=(0,m.useCallback)((e=>{const t="first"===e?f.current:g.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",f.current)){const e=parseFloat(f.current.style.flex);(!Number.isFinite(e)||e<1)&&(f.current.style.flex="1"),f.current.style.flex}}),[]),b=(0,m.useCallback)((e=>{const t="first"===e?f.current:g.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",f.current&&l&&s)){const e=null==l?void 0:l.get(s);e&&e!==gc&&e!==vc&&(f.current.style.flex=e)}}),[l,s]);return(0,m.useLayoutEffect)((()=>{"first"===u?y("first"):b("first"),"second"===u?y("second"):b("second")}),[u,y,b]),(0,m.useEffect)((()=>{if(!h.current||!f.current||!g.current)return;const e=h.current,t=f.current,r=t.parentElement,o="horizontal"===n?"clientX":"clientY",s="horizontal"===n?"left":"top",l="horizontal"===n?"right":"bottom",u="horizontal"===n?"clientWidth":"clientHeight";function p(n){n.preventDefault();const p=n[o]-e.getBoundingClientRect()[s];function f(n){if(0===n.buttons)return h();const f=n[o]-r.getBoundingClientRect()[s]-p,m=r.getBoundingClientRect()[l]-n[o]+p-e[u];if(f<i)d("first"),c(gc);else if(m<a)d("second"),c(vc);else{d(null);const e="".concat(f/m);t.style.flex=e,c(e)}}function h(){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",h)}S(f,"handleMouseMove"),fc(f,"handleMouseMove"),S(h,"handleMouseUp"),fc(h,"handleMouseUp"),document.addEventListener("mousemove",f),document.addEventListener("mouseup",h)}function m(){f.current&&(f.current.style.flex=v.current),c(v.current),d(null)}return S(p,"handleMouseDown"),fc(p,"handleMouseDown"),e.addEventListener("mousedown",p),S(m,"reset"),fc(m,"reset"),e.addEventListener("dblclick",m),()=>{e.removeEventListener("mousedown",p),e.removeEventListener("dblclick",m)}}),[n,d,i,a,c]),(0,m.useMemo)((()=>({dragBarRef:h,hiddenElement:u,firstRef:f,setHiddenElement:d,secondRef:g})),[u,d])}S(hc,"useDragResize"),fc(hc,"useDragResize");const mc=1,gc="hide-first",vc="hide-second"},79239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalizeFirstLetter:()=>M,computeOperationDataList:()=>x,default:()=>re,jsCommentsFactory:()=>R,snippets:()=>ne});var r=n(82841),o=n.n(r),i=n(5057),a=n(85408),s=n.n(a),l=n(56327),c=n(92460),u=n(74031),p=n.n(u),d=function(e,t){return e.find((function(e){return e.name===t}))};function f(e,t,n,r,o){n[e.name]=!0;for(var i=e.fragmentDependencies,a=0;a<i.length;a+=1){var s=i[a],l=d(r,s.name.value);l&&(n[l.name]?console.error("The operation graph has a cycle"):t[l.name]||f(l,t,n,r,o))}n[e.name]=!1,t[e.name]=!0,o.push(e)}var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(){var e=T(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({files:t})});case 2:return n=e.sent,e.next=5,n.json();case 5:if((r=e.sent).sandbox_id){e.next=10;break}throw new Error("Invalid response from Codesandbox API");case 10:return e.abrupt("return",{sandboxId:r.sandbox_id});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function E(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function T(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(o,i){try{var a=t[o](i),s=a.value}catch(l){return void n(l)}if(!a.done)return Promise.resolve(s).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(s)}("next")}))}}var w=i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},i.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),i.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"})),k=i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 256 296",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},i.createElement("g",null,i.createElement("path",{d:"M115.497674,261.08837 L115.497674,154.478845 L23.8139535,101.729261 L23.8139535,162.501763 L65.8104558,186.8486 L65.8104558,232.549219 L115.497674,261.08837 Z M139.311628,261.714907 L189.916577,232.563707 L189.916577,185.779949 L232.186047,161.285235 L232.186047,101.27387 L139.311628,154.895035 L139.311628,261.714907 Z M219.971965,80.8276886 L171.155386,52.5391067 L128.292316,77.4106841 L85.1040206,52.5141067 L35.8521355,81.1812296 L127.765737,134.063073 L219.971965,80.8276886 Z M0,222.211907 L0,74.4948807 L127.986799,0 L256,74.1820085 L256,221.978632 L127.983954,295.72283 L0,222.211907 Z",fill:"#000000"}))),x=function(e){var t=e.query,n=e.variables,r=function(e){if(C[0]===e&&C[1])return C[1];var t=[];try{var n=!0,r=!1,o=void 0;try{for(var i,a=(0,c.Qc)(e).definitions[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;"FragmentDefinition"!==s.kind&&"OperationDefinition"!==s.kind||t.push(s)}}catch(l){r=!0,o=l}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}catch(u){}return C=[e,t],t}(t),o=[],i=!0,a=!1,s=void 0;try{for(var u,p=r[Symbol.iterator]();!(i=(u=p.next()).done);i=!0){var d=u.value;"FragmentDefinition"===d.kind&&o.push(d)}}catch(g){a=!0,s=g}finally{try{!i&&p.return&&p.return()}finally{if(a)throw s}}var h=r.map((function(e){return{query:(0,l.S)(e),name:A(e),displayName:O(e),type:e.operation||"fragment",variableName:(t=A(e),t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()),variables:N(n,e),operationDefinition:e,fragmentDependencies:S(o,e)};var t})),m=function(e){var t=[],n={},r={},o=!0,i=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;n[c.name]||r[c.name]||f(c,n,r,e,t)}}catch(g){i=!0,a=g}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return t}(h);return{operationDefinitions:r,fragmentDefinitions:o,rawOperationDataList:h,operationDataList:m}},S=function(e,t){return function t(n){var r=n.selections,o=r.map((function(t){return"FragmentSpread"===t.kind?(n=t.name.value,e.find((function(e){return e.name.value===n}))):null;var n})).filter(Boolean),i=r.reduce((function(e,n){return"Field"!==n.kind&&"SelectionNode"!==n.kind&&"InlineFragment"!==n.kind||void 0===n.selectionSet?e:e.concat(t(n.selectionSet))}),[]);return o.concat(i)}(t.selectionSet)},C=[null,null];var N=function(e,t){return(t.variableDefinitions||[]).reduce((function(t,n){var r=n.variable.name.value;return e[r]&&(t[r]=e[r]),t}),{})},A=function(e){return e.name?e.name.value:e.operation},O=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},I=function(e){function t(){var e,n,r;b(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={visible:!1},r.handleOpen=function(e){e.preventDefault(),r.setState({visible:!0}),r._subscribe()},_(r,n)}return E(t,e),g(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=this.state.visible;return i.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen,onMouseDown:function(e){return e.preventDefault()},ref:function(t){e._node=t},title:this.props.title},this.props.label,i.createElement("svg",{width:"14",height:"8"},i.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())}}]),t}(i.Component),D=function(e){function t(){return b(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return E(t,e),g(t,[{key:"componentDidMount",value:function(){this.editor=p()(this._node,{value:this.props.code.trim(),lineNumbers:!1,mode:this.props.mode,readOnly:!0,theme:this.props.theme})}},{key:"componentDidUpdate",value:function(e){this.props.code!==e.code&&this.editor.setValue(this.props.code),this.props.mode!==e.mode&&this.editor.setOption("mode",this.props.mode),this.props.theme!==e.theme&&this.editor.setOption("theme",this.props.theme)}},{key:"render",value:function(){var e=this;return i.createElement("div",{ref:function(t){return e._node=t}})}}]),t}(i.PureComponent),L=function(e){function t(){var e,n,r,i=this;b(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.state={showCopiedTooltip:!1,optionValuesBySnippet:new Map,snippet:null,codesandboxResult:null},r._activeSnippet=function(){return r.props.snippet||r.state.snippet||r.props.snippets[0]},r.setSnippet=function(e){r.props.onSelectSnippet&&r.props.onSelectSnippet(e),r.setState({snippet:e,codesandboxResult:null})},r.setLanguage=function(e){var t=r.props.snippets.find((function(t){return t.language===e}));t&&r.setSnippet(t)},r.handleSetOptionValue=function(e,t,n){r.props.onSetOptionValue&&r.props.onSetOptionValue(e,t,n);var o=r.state.optionValuesBySnippet,i=o.get(e)||{};return o.set(e,m({},i,y({},t,n))),r.setState({optionValuesBySnippet:o})},r.getOptionValues=function(e){var t=e.options.reduce((function(e,t){return m({},e,y({},t.id,t.initial))}),{});return m({},t,r.state.optionValuesBySnippet.get(e)||{},r.props.optionValues)},r._generateCodesandbox=function(){var e=T(o().mark((function e(t){var n,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.setState({codesandboxResult:{type:"loading"}}),n=r._activeSnippet()){e.next=5;break}return r.setState({codesandboxResult:{type:"error",error:"No active snippet"}}),e.abrupt("return");case 5:if(a=n.generateCodesandboxFiles){e.next=9;break}return r.setState({codesandboxResult:{type:"error",error:"Snippet does not support CodeSandbox"}}),e.abrupt("return");case 9:return e.prev=9,e.next=12,v(a(r._collectOptions(n,t,r.props.schema)));case 12:s=e.sent,r.setState({codesandboxResult:m({type:"success"},s)}),r.props.onGenerateCodesandbox&&r.props.onGenerateCodesandbox(s),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(9),console.error("Error generating codesandbox",e.t0),r.setState({codesandboxResult:{type:"error",error:"Failed to generate CodeSandbox"}});case 21:case"end":return e.stop()}}),e,i,[[9,17]])})));return function(t){return e.apply(this,arguments)}}(),r._collectOptions=function(e,t,n){var o=r.props,i=o.serverUrl,a=o.context,s=void 0===a?{}:a,l=o.headers;return{serverUrl:i,headers:void 0===l?{}:l,context:s,operationDataList:t,options:r.getOptionValues(e),schema:n}},_(r,n)}return E(t,e),g(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.query,r=t.snippets,o=t.variables,a=void 0===o?{}:o,l=this.state,c=l.showCopiedTooltip,u=l.codesandboxResult,p=this._activeSnippet(),d=p.name,f=p.language,h=p.generate,g=x({query:n,variables:a}),v=g.operationDefinitions,y=(g.fragmentDefinitions,g.rawOperationDataList,g.operationDataList),b=this.getOptionValues(p),_=v.length?h(this._collectOptions(p,y,this.props.schema)):null,E=p.generateCodesandboxFiles,T=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(new Set(r.map((function(e){return e.language}))))).sort((function(e,t){return e.localeCompare(t)}));return i.createElement("div",{className:"graphiql-code-exporter",style:{minWidth:410}},i.createElement("div",{style:{fontFamily:"system, -apple-system, San Francisco, Helvetica Neue, arial, sans-serif"}},i.createElement("div",{style:{padding:"12px 7px 8px"}},i.createElement(I,{label:f,title:"Language"},T.map((function(t){return i.createElement("li",{key:t,onClick:function(){return e.setLanguage(t)}},t)}))),i.createElement(I,{label:d,title:"Mode"},r.filter((function(e){return e.language===f})).map((function(t){return i.createElement("li",{key:t.name,onClick:function(){return e.setSnippet(t)}},t.name)})))),p.options.length>0?i.createElement("div",{style:{padding:"0px 11px 10px"}},i.createElement("div",{style:{fontWeight:700,color:"rgb(177, 26, 4)",fontVariant:"small-caps",textTransform:"lowercase"}},"Options"),p.options.map((function(t){return i.createElement("div",{key:t.id},i.createElement("input",{id:t.id,type:"checkbox",style:{position:"relative",top:-1},checked:b[t.id],onChange:function(){return e.handleSetOptionValue(p,t.id,!b[t.id])}}),i.createElement("label",{htmlFor:t.id,style:{paddingLeft:5}},t.label))}))):i.createElement("div",{style:{minHeight:8}}),E?i.createElement("div",{style:{padding:"0 7px 8px"}},i.createElement("button",{className:"toolbar-button",style:m({backgroundColor:"white",border:"none",outline:"none",maxWidth:320,display:"flex"},_?{}:{opacity:.6,cursor:"default",background:"#ececec"}),type:"button",disabled:!_,onClick:function(){return e._generateCodesandbox(y)}},k," ",i.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),u?i.createElement("div",{style:{paddingLeft:5,paddingTop:5}},"loading"===u.type?"Loading...":"error"===u.type?"Error: "+u.error:i.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+u.sandboxId},"Visit CodeSandbox")):null):null),i.createElement("button",{className:"toolbar-button",style:{fontSize:"1.2em",padding:0,position:"absolute",left:340,marginTop:-20,width:40,height:40,backgroundColor:"white",borderRadius:40,border:"none",outline:"none"},type:"link",onClick:function(){s()(_),e.setState({showCopiedTooltip:!0},(function(){return setTimeout((function(){return e.setState({showCopiedTooltip:!1})}),450)}))}},i.createElement("div",{style:{position:"absolute",top:"-30px",left:"-15px",fontSize:"small",padding:"6px 8px",color:"#fff",textAlign:"left",textDecoration:"none",wordWrap:"break-word",backgroundColor:"rgba(0,0,0,0.75)",borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:c?"block":"none"},pointerEvents:"none"},"Copied!"),w),i.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},_?i.createElement(D,{code:_,mode:p.codeMirrorMode,theme:this.props.codeMirrorTheme}):i.createElement("div",null,"The query is invalid.",i.createElement("br",null),"The generated code will appear here once the errors in the query editor are resolved.")))}}]),t}(i.Component),F=function(e){function t(){var e,n,r;b(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=_(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={hasError:!1},_(r,n)}return E(t,e),g(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?i.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Error generating code. Please"," ",i.createElement("a",{href:"https://spectrum.chat/onegraph",target:"_blank",rel:"noreferrer noopener"},"report your query on Spectrum"),"."):this.props.children}}]),t}(i.Component);function M(e){return e.charAt(0).toUpperCase()+e.slice(1)}function R(e,t){return function(n){return e?"// "+t[n]:""}}function j(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var P=["query","mutation","subscription"];function V(e){return-1===P.indexOf(e.name.trim())}function q(e,t){var n=[].concat(j(new Array(t+1))).join(" ");return e.split("\n").map((function(e){return""+n+e})).join("\n")}function U(e){return e.replace(/\n{2,}/g,"\n\n")}n(27090);var B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};var G="fetchGraphQL";function W(e){var t=e.type,n="query"===t?"fetch":"mutation"===t?"execute":"subscription"===t?"subscribeTo":"";return n+(n.length>0?M(e.name):e.name)}const Q={language:"JavaScript",codeMirrorMode:"javascript",name:"fetch",options:[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],generate:function(e){var t=e.serverUrl,n=e.headers,r=e.options,o=e.operationDataList.map((function(e,t){return V(e)?e:B({},e,{name:("unnamed"+M(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+M(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),i=R(!0,H),a=r.server?i("nodeFetch"):"",s=r.server?'import fetch from "node-fetch";\n':"",l=function(e){return"const operationsDoc = `\n"+q(e.map((function(e){return e.query})).join("\n\n").trim(),2)+"\n`;"}(o),c=(JSON.stringify({},null,2),[]),u=!0,p=!1,d=void 0;try{for(var f,h=Object.keys(n)[Symbol.iterator]();!(u=(f=h.next()).done);u=!0){var m=f.value;m&&n[m]&&c.push('"'+m+'": "'+n[m]+'"')}}catch(T){p=!0,d=T}finally{try{!u&&h.return&&h.return()}finally{if(p)throw d}}var g=c.length?""+c.join(",\n"):"",v=[r.server?'"node-fetch": "^2.5.0"':null].filter(Boolean),y=v.length>0?"/*\nAdd these to your `package.json`:\n"+q(v.join(",\n"),2)+"\n*/\n":"",b=r.asyncAwait?function(e,t){return"async function "+G+'(operationsDoc, operationName, variables) {\n const result = await fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+q(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n );\n\n return await result.json();\n}"}(t,g):function(e,t){return"function "+G+'(operationsDoc, operationName, variables) {\n return fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+q(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n ).then((result) => result.json());\n}"}(t,g),_=function(e){return e.map((function(e){var t=W(e),n=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r="{"+n.map((function(e){return'"'+e+'": '+e})).join(", ")+"}";return"function "+t+"("+n.join(", ")+") {\n return "+G+'(\n operationsDoc,\n "'+e.name+'",\n '+r+"\n );\n}"})).join("\n\n")}(o),E=r.asyncAwait?function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r=Object.entries(t.variables||{}).map((function(e){var t=z(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"}));return"async function start"+M(W(t))+"("+n.join(", ")+") {\n const { errors, data } = await "+W(t)+"("+n.join(", ")+");\n\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n\n "+e("graphqlData")+"\n console.log(data);\n}\n\n"+r.join("\n")+"\n\nstart"+M(W(t))+"("+n.join(", ")+");"})).join("\n\n")}(i,o):function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value}));return Object.entries(t.variables||{}).map((function(e){var t=z(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"})).join("\n")+"\n\n"+W(t)+"("+n.join(", ")+")\n .then(({ data, errors }) => {\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n "+e("graphqlData")+"\n console.log(data);\n })\n .catch((error) => {\n "+e("fetchError")+"\n console.error(error);\n });"})).join("\n\n")}(i,o);return U(("\n/*\nThis is an example snippet - you should consider tailoring it\nto your service.\n*/\n"+y+"\n"+a+"\n"+s+"\n\n"+b+"\n\n"+l+"\n\n"+_+"\n\n"+E).trim())}};n(50563);var X=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Y={setup:"This setup is only needed once per application"};function $(e){var t=e.type;return function(e){var t=e.name;return t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}(e)+"_"+t.toUpperCase()}function K(e){var t=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),n="{"+t.map((function(e){return'"'+e+'": '+e})).join(", ")+"}",r=t.map((function(e){return'"'+e+'": props.'+e})).join(", ");return{params:t,variables:n,props:"{"+r+"}"}}function Z(e){var t=e.type,n="query"===t?"Query":"mutation"===t?"Mutation":"subscription"===t?"Subscription":"";return n.length>0?""+M(e.name)+n:M(e.name)}function ee(e,t,n,r,o,i){var a=K(r),s=a.params,l=a.variables,c="() => "+(r.name+"("+(0===s.length?"":""+l)+")");return"<Mutation\n mutation={"+$(r)+"}"+("{}"===o?"":"\n context={{ headers: "+o+" }}\n")+">\n {("+r.name+", { loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n\n if (error)\n return (\n <"+n+">\n Error in "+$(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n const dataEl = data ? (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n ) : null;\n\n return (\n <div>\n {dataEl}\n\n <button onClick={"+c+"}>\n Run mutation: "+r.name+"\n </button>\n </div>\n );\n }}\n</Mutation>"}var te=function(e,t,n,r,o,i){var a=K(r),s=a.params,l=a.props;return"<Query\n query={"+$(r)+"}"+("{}"===o?"":"\n context={{ headers: "+o+" }}")+" "+(0===s.length?"":"\n variables={"+l+"}")+">\n {({ loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n if (error)\n return (\n <"+n+">\n Error in "+$(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n if (data) {\n return (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n )\n }\n }}\n</Query>"};const ne=[Q,{language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var t,n=e.headers,r=e.options,o=e.serverUrl,i=R(!0,Y),a=e.operationDataList.map((function(e,t){return V(e)?e:J({},e,{name:("unnamed"+M(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+M(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),s=r.reactNative?"View":"pre",l=JSON.stringify({},null,2),c="{"+[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(n||[]))).filter((function(e){return n[e]})).map((function(e){return'"'+e+'": "'+n[e]+'"'})).join(",\n")+"}",u=r.client?i("setup")+';\nconst apolloClient = new ApolloClient({\n cache: new InMemoryCache(),\n link: new HttpLink({\n uri: "'+o+'",\n }),\n});\n':"",p=(t=a.map((function(e){return e.type})),[].concat(j(new Set(t)))),d="import { "+[p.indexOf("query")>-1?"Query":null,p.indexOf("mutation")>-1?"Mutation":null,"ApolloProvider"].filter(Boolean).join(", ")+' } from "react-apollo";',f='import React from "react";\nimport ReactDOM from "react-dom";\nimport { '+(r.client?"ApolloClient, ":"")+'InMemoryCache, HttpLink } from "apollo-boost";',h=r.imports?'import gql from "graphql-tag";\n'+f+"\n"+d:"",m=a.map((function(e){var t="query"===e.type?te:"mutation"===e.type?ee:function(){return"\"We don't support "+e.type+' GraphQL operations yet"'};return"const "+$(e)+" = gql`\n"+q(e.query,2)+"\n`;"+"\n\nconst "+Z(e)+" = (props) => {\n return (\n"+q(t(i,r,s,e,c,l),4)+"\n )\n};"})).join("\n\n"),g=a.map((function(e){var t=K(e).params.map((function(e){return e+"={"+e+"}"})).join(" ");return"<"+Z(e)+" "+t+" />"})).join("\n");return U(('\n/* This is an example snippet - you should consider tailoring it\nto your service.\n*/\n/*\n Add these to your `package.json`:\n "apollo-boost": "^0.3.1",\n "graphql": "^14.2.1",\n "graphql-tag": "^2.10.0",\n "react-apollo": "^2.5.5"\n*/\n\n'+h+"\n\n"+u+"\n\n"+m+"\n\n"+(a.map((function(e){return""+Object.entries(e.variables||{}).map((function(e){var t=X(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"})).join("\n")})).join("\n\n")+"\n\nconst container = (\n <ApolloProvider client={apolloClient}>\n"+q(g,4)+"\n </ApolloProvider>\n);")+'\n\nReactDOM.render(container, document.getElementById("root"));').trim())}}],re=function(e){var t=e.query,n=e.serverUrl,r=e.variables,o=e.context,a=void 0===o?{}:o,s=e.headers,l=void 0===s?{}:s,c=e.hideCodeExporter,u=void 0===c?function(){}:c,p=e.snippets,d=e.snippet,f=e.codeMirrorTheme,m=e.onSelectSnippet,g=e.onSetOptionValue,v=e.optionValues,y=e.onGenerateCodesandbox,b=e.schema,_={};try{var E=JSON.parse(r);"object"===("undefined"===typeof E?"undefined":h(E))&&(_=E)}catch(T){}return i.createElement("div",{className:"docExplorerWrap",style:{width:440,minWidth:440,zIndex:7}},i.createElement("div",{className:"doc-explorer-title-bar"},i.createElement("div",{className:"doc-explorer-title"},"Code Exporter"),i.createElement("div",{className:"doc-explorer-rhs"},i.createElement("div",{className:"docExplorerHide",onClick:u},"\u2715"))),i.createElement("div",{className:"doc-explorer-contents",style:{borderTop:"1px solid #d6d6d6",padding:0}},p.length?i.createElement(F,null,i.createElement(L,{query:t,serverUrl:n,snippets:p,snippet:d,context:a,headers:l,variables:_,codeMirrorTheme:f,onSelectSnippet:m,onSetOptionValue:g,optionValues:v||{},onGenerateCodesandbox:y,schema:b})):i.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))}},13897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(84179)),o=i(n(36695));function i(e){return e&&e.__esModule?e:{default:e}}t.default=[r.default,o.default]},84179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=l(n(76091)),a=l(n(37904)),s=n(54866);function l(e){return e&&e.__esModule?e:{default:e}}n(27090);var c={setup:"This setup is only needed once per application",nodeFetch:"Node doesn't implement fetch so we have to import it",graphqlError:"handle those errors like a pro",graphqlData:"do something great with this precious data",fetchError:"handle errors from fetch itself"};var u="fetchGraphQL";function p(e){var t=e.type,n="query"===t?"fetch":"mutation"===t?"execute":"subscription"===t?"subscribeTo":"";return n+(n.length>0?(0,i.default)(e.name):e.name)}var d={language:"JavaScript",codeMirrorMode:"javascript",name:"fetch",options:[{id:"server",label:"server-side usage",initial:!1},{id:"asyncAwait",label:"async/await",initial:!0}],generate:function(e){var t=e.serverUrl,n=e.headers,l=e.options,d=e.operationDataList.map((function(e,t){return(0,s.isOperationNamed)(e)?e:r({},e,{name:("unnamed"+(0,i.default)(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+(0,i.default)(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),f=(0,a.default)(!0,c),h=l.server?f("nodeFetch"):"",m=l.server?'import fetch from "node-fetch";\n':"",g=function(e){var t=e.map((function(e){return e.query})).join("\n\n").trim();return"const operationsDoc = `\n"+(0,s.addLeftWhitespace)(t,2)+"\n`;"}(d),v=(JSON.stringify({},null,2),[]),y=!0,b=!1,_=void 0;try{for(var E,T=Object.keys(n)[Symbol.iterator]();!(y=(E=T.next()).done);y=!0){var w=E.value;w&&n[w]&&v.push('"'+w+'": "'+n[w]+'"')}}catch(I){b=!0,_=I}finally{try{!y&&T.return&&T.return()}finally{if(b)throw _}}var k=v.length?""+v.join(",\n"):"",x=[l.server?'"node-fetch": "^2.5.0"':null].filter(Boolean),S=x.length>0?"/*\nAdd these to your `package.json`:\n"+(0,s.addLeftWhitespace)(x.join(",\n"),2)+"\n*/\n":"",C=l.asyncAwait?function(e,t){return"async function "+u+'(operationsDoc, operationName, variables) {\n const result = await fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+(0,s.addLeftWhitespace)(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n );\n\n return await result.json();\n}"}(t,k):function(e,t){return"function "+u+'(operationsDoc, operationName, variables) {\n return fetch(\n "'+e+'",\n {\n method: "POST",'+(t?"\n headers: {\n"+(0,s.addLeftWhitespace)(t,8)+"\n },":"")+"\n body: JSON.stringify({\n query: operationsDoc,\n variables: variables,\n operationName: operationName\n })\n }\n ).then((result) => result.json());\n}"}(t,k),N=function(e){return e.map((function(e){var t=p(e),n=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r="{"+n.map((function(e){return'"'+e+'": '+e})).join(", ")+"}";return"function "+t+"("+n.join(", ")+") {\n return "+u+'(\n operationsDoc,\n "'+e.name+'",\n '+r+"\n );\n}"})).join("\n\n")}(d),A=l.asyncAwait?function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),r=Object.entries(t.variables||{}).map((function(e){var t=o(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"}));return"async function start"+(0,i.default)(p(t))+"("+n.join(", ")+") {\n const { errors, data } = await "+p(t)+"("+n.join(", ")+");\n\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n\n "+e("graphqlData")+"\n console.log(data);\n}\n\n"+r.join("\n")+"\n\nstart"+(0,i.default)(p(t))+"("+n.join(", ")+");"})).join("\n\n")}(f,d):function(e,t,n){return t.map((function(t){var n=(t.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value}));return Object.entries(t.variables||{}).map((function(e){var t=o(e,2),n=t[0],r=t[1];return"const "+n+" = "+JSON.stringify(r,null,2)+";"})).join("\n")+"\n\n"+p(t)+"("+n.join(", ")+")\n .then(({ data, errors }) => {\n if (errors) {\n "+e("graphqlError")+"\n console.error(errors);\n }\n "+e("graphqlData")+"\n console.log(data);\n })\n .catch((error) => {\n "+e("fetchError")+"\n console.error(error);\n });"})).join("\n\n")}(f,d),O="\n/*\nThis is an example snippet - you should consider tailoring it\nto your service.\n*/\n"+S+"\n"+h+"\n"+m+"\n\n"+C+"\n\n"+g+"\n\n"+N+"\n\n"+A;return(0,s.collapseExtraNewlines)(O.trim())}};t.default=d},36695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=l(n(76091)),a=l(n(37904)),s=n(54866);function l(e){return e&&e.__esModule?e:{default:e}}n(50563);var c={setup:"This setup is only needed once per application"};function u(e){var t=e.type;return function(e){var t=e.name;return t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()}(e)+"_"+t.toUpperCase()}function p(e){var t=(e.operationDefinition.variableDefinitions||[]).map((function(e){return e.variable.name.value})),n="{"+t.map((function(e){return'"'+e+'": '+e})).join(", ")+"}",r=t.map((function(e){return'"'+e+'": props.'+e})).join(", ");return{params:t,variables:n,props:"{"+r+"}"}}function d(e){var t=e.type,n="query"===t?"Query":"mutation"===t?"Mutation":"subscription"===t?"Subscription":"";return n.length>0?""+(0,i.default)(e.name)+n:(0,i.default)(e.name)}function f(e,t,n,r,o,i){var a=p(r),s=a.params,l=a.variables,c="() => "+(r.name+"("+(0===s.length?"":""+l)+")");return"<Mutation\n mutation={"+u(r)+"}"+("{}"===o?"":"\n context={{ headers: "+o+" }}\n")+">\n {("+r.name+", { loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n\n if (error)\n return (\n <"+n+">\n Error in "+u(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n const dataEl = data ? (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n ) : null;\n\n return (\n <div>\n {dataEl}\n\n <button onClick={"+c+"}>\n Run mutation: "+r.name+"\n </button>\n </div>\n );\n }}\n</Mutation>"}var h=function(e,t,n,r,o,i){var a=p(r),s=a.params,l=a.props;return"<Query\n query={"+u(r)+"}"+("{}"===o?"":"\n context={{ headers: "+o+" }}")+" "+(0===s.length?"":"\n variables={"+l+"}")+">\n {({ loading, error, data }) => {\n if (loading) return <"+n+">Loading</"+n+">\n if (error)\n return (\n <"+n+">\n Error in "+u(r)+"\n {JSON.stringify(error, null, 2)}\n </"+n+">\n );\n\n if (data) {\n return (\n <"+n+">{JSON.stringify(data, null, 2)}</"+n+">\n )\n }\n }}\n</Query>"},m={language:"JavaScript",codeMirrorMode:"jsx",name:"react-apollo",options:[{id:"client",label:"with client setup",initial:!0},{id:"imports",label:"with required imports",initial:!0}],generate:function(e){var t=e.headers,n=e.options,l=e.serverUrl,m=(0,a.default)(!0,c),g=e.operationDataList.map((function(e,t){return(0,s.isOperationNamed)(e)?e:o({},e,{name:("unnamed"+(0,i.default)(e.type)+(t+1)).trim(),query:"# Consider giving this "+e.type+" a unique, descriptive\n# name in your application as a best practice\n"+e.type+" unnamed"+(0,i.default)(e.type)+(t+1)+" "+e.query.trim().replace(/^(query|mutation|subscription) /i,"")})})),v=n.reactNative?"View":"pre",y=JSON.stringify({},null,2),b="{"+[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(t||[]))).filter((function(e){return t[e]})).map((function(e){return'"'+e+'": "'+t[e]+'"'})).join(",\n")+"}",_=n.client?m("setup")+';\nconst apolloClient = new ApolloClient({\n cache: new InMemoryCache(),\n link: new HttpLink({\n uri: "'+l+'",\n }),\n});\n':"",E=(0,s.distinct)(g.map((function(e){return e.type}))),T="import { "+[E.indexOf("query")>-1?"Query":null,E.indexOf("mutation")>-1?"Mutation":null,"ApolloProvider"].filter(Boolean).join(", ")+' } from "react-apollo";',w='import React from "react";\nimport ReactDOM from "react-dom";\nimport { '+(n.client?"ApolloClient, ":"")+'InMemoryCache, HttpLink } from "apollo-boost";',k=n.imports?'import gql from "graphql-tag";\n'+w+"\n"+T:"",x=g.map((function(e){var t="query"===e.type?h:"mutation"===e.type?f:function(){return"\"We don't support "+e.type+' GraphQL operations yet"'};return"const "+u(e)+" = gql`\n"+(0,s.addLeftWhitespace)(e.query,2)+"\n`;"+"\n\nconst "+d(e)+" = (props) => {\n return (\n"+(0,s.addLeftWhitespace)(t(m,n,v,e,b,y),4)+"\n )\n};"})).join("\n\n"),S=g.map((function(e){var t=p(e).params.map((function(e){return e+"={"+e+"}"})).join(" ");return"<"+d(e)+" "+t+" />"})).join("\n"),C='\n/* This is an example snippet - you should consider tailoring it\nto your service.\n*/\n/*\n Add these to your `package.json`:\n "apollo-boost": "^0.3.1",\n "graphql": "^14.2.1",\n "graphql-tag": "^2.10.0",\n "react-apollo": "^2.5.5"\n*/\n\n'+k+"\n\n"+_+"\n\n"+x+"\n\n"+(g.map((function(e){return""+Object.entries(e.variables||{}).map((function(e){var t=r(e,2),n=t[0],o=t[1];return"const "+n+" = "+JSON.stringify(o,null,2)+";"})).join("\n")})).join("\n\n")+"\n\nconst container = (\n <ApolloProvider client={apolloClient}>\n"+(0,s.addLeftWhitespace)(S,4)+"\n </ApolloProvider>\n);")+'\n\nReactDOM.render(container, document.getElementById("root"));';return(0,s.collapseExtraNewlines)(C.trim())}};t.default=m},76091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},54866:(e,t)=>{"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=["query","mutation","subscription"];function o(e){return-1===r.indexOf(e.name.trim())}t.distinct=function(e){return[].concat(n(new Set(e)))},t.findFirstNamedOperation=function(e){return e.find(o)},t.isOperationNamed=o,t.addLeftWhitespace=function(e,t){var r=[].concat(n(new Array(t+1))).join(" ");return e.split("\n").map((function(e){return""+r+e})).join("\n")},t.collapseExtraNewlines=function(e){return e.replace(/\n{2,}/g,"\n\n")}},37904:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return e?"// "+t[n]:""}}},49814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.defaultValue=S;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5057)),l=n(18700);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}var m={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},g=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),v=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),y=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),b=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function _(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function E(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach((function(e){(0,l.isLeafType)(t[e].type)&&r.push(e)})),r.length?r.slice(0,2):["__typename"]}function T(e){return(0,l.isNonNullType)(e.type)&&void 0===e.defaultValue}function w(e){for(var t=e;(0,l.isWrappingType)(t);)t=t.ofType;return t}function k(e,t){if("string"!==typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,l.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"===typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(o){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(o){return console.error("error coercing arg value",o,t),{kind:"StringValue",value:t}}else try{var r=e.parseValue(t);return r?{kind:"EnumValue",value:String(r)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(o){return{kind:"EnumValue",value:e.getValues()[0].name}}}var x=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return r.props.selection.fields.find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(){var e=r.props.selection,t=r._getArgSelection();r._previousArgSelection=t,r.props.modifyFields(e.fields.filter((function(e){return e!==t})),!0)},r._addArg=function(){var e=r.props,t=e.selection,n=e.arg,o=e.getDefaultScalarArgValue,i=e.parentField,a=e.makeDefaultArg,s=w(n.type),c=null;if(r._previousArgSelection)c=r._previousArgSelection;else if((0,l.isInputObjectType)(s)){var p=s.getFields();c={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:L(o,a,i,Object.keys(p).map((function(e){return p[e]})))}}}else(0,l.isLeafType)(s)&&(c={kind:"ObjectField",name:{kind:"Name",value:n.name},value:o(i,n,s)});if(c)return r.props.modifyFields([].concat(u(t.fields||[]),[c]),!0);console.error("Unable to add arg for argType",s)},r._setArgValue=function(e,t){var n=!1,o=!1,a=!1;try{"VariableDefinition"===e.kind?o=!0:null===e||"undefined"===typeof e?n=!0:"string"===typeof e.kind&&(a=!0)}catch(f){}var s=r.props.selection,c=r._getArgSelection();if(c){var u=w(r.props.arg.type);if((0,l.isLeafType)(u)||o||n||a){var p=void 0,d=void 0;return null===e||"undefined"===typeof e?d=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?d=(p=e).variable:"string"===typeof e.kind?d=e:e.target&&"string"===typeof e.target.value&&(p=e.target.value,d=k(u,p)),r.props.modifyFields((s.fields||[]).map((function(e){return e===c?i({},e,{value:d}):e})),t)}console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e)}else console.error("missing arg selection when setting arg value")},r._modifyChildFields=function(e){return r.props.modifyFields(r.props.selection.fields.map((function(t){return t.name.value===r.props.arg.name?i({},t,{value:{kind:"ObjectValue",fields:e}}):t})),!0)},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(O,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);function S(e){if((0,l.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}}function C(e,t,n){return S(n)}var N=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return(r.props.selection.arguments||[]).find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(e){var t=r.props.selection,n=r._getArgSelection();return r._previousArgSelection=n,r.props.modifyArguments((t.arguments||[]).filter((function(e){return e!==n})),e)},r._addArg=function(e){var t=r.props,n=t.selection,o=t.getDefaultScalarArgValue,i=t.makeDefaultArg,a=t.parentField,s=t.arg,c=w(s.type),p=null;if(r._previousArgSelection)p=r._previousArgSelection;else if((0,l.isInputObjectType)(c)){var d=c.getFields();p={kind:"Argument",name:{kind:"Name",value:s.name},value:{kind:"ObjectValue",fields:L(o,i,a,Object.keys(d).map((function(e){return d[e]})))}}}else(0,l.isLeafType)(c)&&(p={kind:"Argument",name:{kind:"Name",value:s.name},value:o(a,s,c)});return p?r.props.modifyArguments([].concat(u(n.arguments||[]),[p]),e):(console.error("Unable to add arg for argType",c),null)},r._setArgValue=function(e,t){var n=!1,o=!1,a=!1;try{"VariableDefinition"===e.kind?o=!0:null===e||"undefined"===typeof e?n=!0:"string"===typeof e.kind&&(a=!0)}catch(f){}var s=r.props.selection,c=r._getArgSelection();if(c||o){var u=w(r.props.arg.type);if((0,l.isLeafType)(u)||o||n||a){var p=void 0,d=void 0;return null===e||"undefined"===typeof e?d=null:e.target&&"string"===typeof e.target.value?(p=e.target.value,d=k(u,p)):e.target||"VariableDefinition"!==e.kind?"string"===typeof e.kind&&(d=e):d=(p=e).variable,r.props.modifyArguments((s.arguments||[]).map((function(e){return e===c?i({},e,{value:d}):e})),t)}console.warn("Unable to handle non leaf types in ArgView._setArgValue")}else console.error("missing arg selection when setting arg value")},r._setArgFields=function(e,t){var n=r.props.selection,o=r._getArgSelection();if(o)return r.props.modifyArguments((n.arguments||[]).map((function(t){return t===o?i({},t,{value:{kind:"ObjectValue",fields:e}}):t})),t);console.error("missing arg selection when setting arg value")},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(O,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);var A=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._handleChange=function(e){r.props.setArgValue(e,!0)},d(r,n)}return f(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,o=t.styleConfig,i=w(n.type),a="string"===typeof r.value?r.value:"",l="StringValue"===this.props.argValue.kind?o.colors.string:o.colors.number;return s.createElement("span",{style:{color:l}},"String"===i.name?'"':"",s.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,a.length))+"ch",color:l},ref:function(t){e._ref=t},type:"text",onChange:this._handleChange,value:a}),"String"===i.name?'"':"")}}]),t}(s.PureComponent),O=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={displayArgActions:!1},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,a=t.styleConfig,c=w(r.type),p=null;if(n)if("Variable"===n.kind)p=s.createElement("span",{style:{color:a.colors.variable}},"$",n.name.value);else if((0,l.isScalarType)(c))p="Boolean"===c.name?s.createElement("select",{style:{color:a.colors.builtin},onChange:this.props.setArgValue,value:"BooleanValue"===n.kind?n.value:void 0},s.createElement("option",{key:"true",value:"true"},"true"),s.createElement("option",{key:"false",value:"false"},"false")):s.createElement(A,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(c))"EnumValue"===n.kind?p=s.createElement("select",{style:{backgroundColor:"white",color:a.colors.string2},onChange:this.props.setArgValue,value:n.value},c.getValues().map((function(e){return s.createElement("option",{key:e.name,value:e.name},e.name)}))):console.error("arg mismatch between arg and selection",c,n);else if((0,l.isInputObjectType)(c))if("ObjectValue"===n.kind){var d=c.getFields();p=s.createElement("div",{style:{marginLeft:16}},Object.keys(d).sort().map((function(t){return s.createElement(x,{key:t,arg:d[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})))}else console.error("arg mismatch between arg and selection",c,n);var f=function(){var t=r.name,a=(e.props.definition.variableDefinitions||[]).filter((function(e){return e.variable.name.value.startsWith(t)})).length,s=void 0;s=a>0?""+t+a:t;var c=r.type.toString(),p={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:s}},type:(0,l.parseType)(c),directives:[]},d=void 0,f={};if("undefined"!==typeof n&&null!==n){var h=(0,l.visit)(n,{Variable:function(t){var n,r=t.name.value,o=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(f[r]=f[r]+1||1,o)return o.defaultValue}}),m="NonNullType"===p.type.kind?i({},p,{type:p.type.type}):p;d=i({},m,{defaultValue:h})}else d=p;var g=Object.entries(f).filter((function(e){var t=o(e,2);t[0];return t[1]<2})).map((function(e){var t=o(e,2),n=t[0];t[1];return n}));if(d){var v=e.props.setArgValue(d,!1);if(v){var y=v.definitions.find((function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value})),b=[].concat(u(y.variableDefinitions||[]),[d]).filter((function(e){return-1===g.indexOf(e.variable.name.value)})),_=i({},y,{variableDefinitions:b}),E=v.definitions.map((function(e){return y===e?_:e})),T=i({},v,{definitions:E});e.props.onCommit(T)}}},h=n&&"Variable"===n.kind,m=this.state.displayArgActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:h?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),h?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===t}));if(r){var o=r.defaultValue,a=e.props.setArgValue(o,{commit:!1});if(a){var s=a.definitions.find((function(t){return t.name.value===e.props.definition.name.value}));if(!s)return;var c=0;(0,l.visit)(s,{Variable:function(e){e.name.value===t&&(c+=1)}});var u=s.variableDefinitions||[];c<2&&(u=u.filter((function(e){return e.variable.name.value!==t})));var p=i({},s,{variableDefinitions:u}),d=a.definitions.map((function(e){return s===e?p:e})),f=i({},a,{definitions:d});e.props.onCommit(f)}}}}():f()},style:a.styles.actionButtonStyle},s.createElement("span",{style:{color:a.colors.variable}},"$")):null;return s.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":c.name,className:"graphiql-explorer-"+r.name},s.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,l.isInputObjectType)(c)?s.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(_,{checked:!!n,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:a.colors.attribute},title:r.description,onMouseEnter:function(){null!==n&&"undefined"!==typeof n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,T(r)?"*":"",": ",m," ")," "),p||s.createElement("span",null)," ")}}]),t}(s.PureComponent),I=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._addFragment=function(){r.props.modifySelections([].concat(u(r.props.selections),[r._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:r.props.getDefaultFieldNames(r.props.implementingType).map((function(e){return{kind:"Field",name:{kind:"Name",value:e}}}))}}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"InlineFragment"===e.kind&&e.typeCondition&&r.props.implementingType.name===e.typeCondition.name.value}));return e?"InlineFragment"===e.kind?e:void 0:null},r._modifyChildSelections=function(e,t){var n=r._getSelection();return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{directives:t.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:t})),t)},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,o=t.getDefaultFieldNames,i=t.styleConfig,a=this._getSelection(),l=n.getFields(),c=a&&a.selectionSet?a.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+n.name},s.createElement("span",{style:{cursor:"pointer"},onClick:a?this._removeFragment:this._addFragment},s.createElement(_,{checked:!!a,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:i.colors.atom}},this.props.implementingType.name)),a?s.createElement("div",{style:{marginLeft:16}},Object.keys(l).sort().map((function(t){return s.createElement(M,{key:t,field:l[t],selections:c,modifySelections:e._modifyChildSelections,schema:r,getDefaultFieldNames:o,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,onCommit:e.props.onCommit,styleConfig:e.props.styleConfig,definition:e.props.definition,availableFragments:e.props.availableFragments})}))):null)}}]),t}(s.PureComponent),D=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._addFragment=function(){r.props.modifySelections([].concat(u(r.props.selections),[r._previousSelection||{kind:"FragmentSpread",name:r.props.fragment.name}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(e){return!("FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value)})))},r._getSelection=function(){return r.props.selections.find((function(e){return"FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value}))},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this.props.styleConfig,t=this._getSelection();return s.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},s.createElement("span",{style:{cursor:"pointer"},onClick:t?this._removeFragment:this._addFragment},s.createElement(_,{checked:!!t,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:e.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(s.PureComponent);function L(e,t,n,r){var o=[],i=!0,a=!1,s=void 0;try{for(var c,u=r[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var p=c.value;if((0,l.isRequiredInputField)(p)||t&&t(n,p)){var d=w(p.type);(0,l.isInputObjectType)(d)?function(){var r=d.getFields();o.push({kind:"ObjectField",name:{kind:"Name",value:p.name},value:{kind:"ObjectValue",fields:L(e,t,n,Object.keys(r).map((function(e){return r[e]})))}})}():(0,l.isLeafType)(d)&&o.push({kind:"ObjectField",name:{kind:"Name",value:p.name},value:e(n,p,d)})}}}catch(f){a=!0,s=f}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}function F(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,c=n.args[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var u=s.value;if(T(u)||t&&t(n,u)){var p=w(u.type);(0,l.isInputObjectType)(p)?function(){var o=p.getFields();r.push({kind:"Argument",name:{kind:"Name",value:u.name},value:{kind:"ObjectValue",fields:L(e,t,n,Object.keys(o).map((function(e){return o[e]})))}})}():(0,l.isLeafType)(p)&&r.push({kind:"Argument",name:{kind:"Name",value:u.name},value:e(n,u,p)})}}}catch(d){i=!0,a=d}finally{try{!o&&c.return&&c.return()}finally{if(i)throw a}}return r}var M=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={displayFieldActions:!1},r._addAllFieldsToSelections=function(e){var t={kind:"SelectionSet",selections:e?Object.keys(e).map((function(e){return{kind:"Field",name:{kind:"Name",value:e},arguments:[]}})):[]},n=[].concat(u(r.props.selections.filter((function(e){return"InlineFragment"===e.kind||e.name.value!==r.props.field.name}))),[{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:F(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field),selectionSet:t}]);r.props.modifySelections(n)},r._addFieldToSelections=function(e){var t=[].concat(u(r.props.selections),[r._previousSelection||{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:F(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,l.getNamedType)(r.props.field.type),n=(0,l.isObjectType)(t)&&t.getFields();!!n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"Field"===e.kind&&r.props.field.name===e.name.value}));return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e,t){var n=r._getSelection();if(n)return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{alias:n.alias,arguments:e,directives:n.directives,kind:"Field",name:n.name,selectionSet:n.selectionSet}:t})),t);console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e,t){return r.props.modifySelections(r.props.selections.map((function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t})),t)},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,o=n.schema,a=n.getDefaultFieldNames,c=n.styleConfig,p=this._getSelection(),d=function(e){for(var t=e;(0,l.isWrappingType)(t);)t=t.ofType;return t}(r.type),f=r.args.sort((function(e,t){return e.name.localeCompare(t.name)})),h="graphiql-explorer-node graphiql-explorer-"+r.name;r.isDeprecated&&(h+=" graphiql-explorer-deprecated");var m=(0,l.isObjectType)(d)||(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d)?this.props.availableFragments&&this.props.availableFragments[d.name]:null,g=s.createElement("div",{className:h},s.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":d.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){(0,l.isObjectType)(d)&&p&&p.selectionSet&&p.selectionSet.selections.filter((function(e){return"FragmentSpread"!==e.kind})).length>0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,l.isObjectType)(d)?s.createElement("span",null,p?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(d)?null:s.createElement(_,{checked:!!p,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:c.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=d.name+"Fragment",r=(m||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var o=p&&p.selectionSet?p.selectionSet.selections:[],a=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],s={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:d.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:o}},l=e._modifyChildSelections(a,!1);if(l){var c=i({},l,{definitions:[].concat(u(l.definitions),[s])});e.props.onCommit(c)}else console.warn("Unable to complete extractFragment operation")},style:i({},c.styles.actionButtonStyle)},s.createElement("span",null,"\u2026")):null),p&&f.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},f.map((function(t){return s.createElement(N,{key:t.name,parentField:r,arg:t,selection:p,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(p&&((0,l.isObjectType)(d)||(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d))){var v=(0,l.isUnionType)(d)?{}:d.getFields(),y=p&&p.selectionSet?p.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+r.name},g,s.createElement("div",{style:{marginLeft:16}},m?m.map((function(t){var n=o.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(D,{key:r,fragment:t,selections:y,modifySelections:e._modifyChildSelections,schema:o,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null})):null,Object.keys(v).sort().map((function(n){return s.createElement(t,{key:n,field:v[n],selections:y,modifySelections:e._modifyChildSelections,schema:o,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})),(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d)?o.getPossibleTypes(d).map((function(t){return s.createElement(I,{key:t.name,implementingType:t,selections:y,modifySelections:e._modifyChildSelections,schema:o,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null))}return g}}]),t}(s.PureComponent);var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},j=null;function P(e){if(j&&j[0]===e)return j[1];var t=function(e){try{return e.trim()?(0,l.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}(e);return t?t instanceof Error?j?j[1]:R:(j=[e,t],t):R}var V={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},q=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={newOperationType:"query",displayTitleActions:!1},r._modifySelections=function(e,t){var n=r.props.definition;0===n.selectionSet.selections.length&&r._previousOperationDef&&(n=r._previousOperationDef);var o=void 0;if("FragmentDefinition"===n.kind)o=i({},n,{selectionSet:i({},n.selectionSet,{selections:e})});else if("OperationDefinition"===n.kind){var a=e.filter((function(e){return!("Field"===e.kind&&"__typename"===e.name.value)}));0===a.length&&(a=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),o=i({},n,{selectionSet:i({},n.selectionSet,{selections:a})})}return r.props.onEdit(o,t)},r._onOperationRename=function(e){return r.props.onOperationRename(e.target.value)},r._handlePotentialRun=function(e){(function(e){return e.ctrlKey&&"Enter"===e.key})(e)&&"FragmentDefinition"!==r.props.definition.kind&&r.props.onRunOperation(r.props.name)},r._rootViewElId=function(){var e=r.props;return e.operationType+"-"+(e.name||"unknown")},d(r,n)}return f(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._rootViewElId();this.props.onMount(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.operationType,r=t.definition,o=t.schema,a=t.getDefaultFieldNames,l=t.styleConfig,c=this._rootViewElId(),u=this.props.fields||{},p=r.selectionSet.selections,d=this.props.name||h(n)+" Name";return s.createElement("div",{id:c,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},s.createElement("div",{style:{color:l.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return e.setState({displayTitleActions:!0})},onMouseLeave:function(){return e.setState({displayTitleActions:!1})}},n," ",s.createElement("span",{style:{color:l.colors.def}},s.createElement("input",{style:{color:l.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,d.length)+"ch"},autoComplete:"false",placeholder:h(n)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?s.createElement("span",null,s.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?s.createElement(s.Fragment,null,s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationDestroy()},style:i({},l.styles.actionButtonStyle)},s.createElement("span",null,"\u2715")),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationClone()},style:i({},l.styles.actionButtonStyle)},s.createElement("span",null,"\u2398"))):""),Object.keys(u).sort().map((function(t){return s.createElement(M,{key:t,field:u[t],selections:p,modifySelections:e._modifySelections,schema:o,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})))}}]),t}(s.PureComponent);function U(){return s.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},s.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",s.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),s.createElement("div",null,"Contribute on"," ",s.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var B=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={newOperationType:"query",operation:null,operationToScrollTo:null},r._resetScroll=function(){var e=r._ref;e&&(e.scrollLeft=0)},r._onEdit=function(e){return r.props.onEdit(e)},r._setAddOperationType=function(e){r.setState({newOperationType:e})},r._handleRootViewMount=function(e){if(r.state.operationToScrollTo&&r.state.operationToScrollTo===e){var t=".graphiql-explorer-root #"+e,n=document.querySelector(t);n&&n.scrollIntoView()}},d(r,n)}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,o=t.query,a=t.makeDefaultArg;if(!n)return s.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var p={colors:this.props.colors||m,checkboxChecked:this.props.checkboxChecked||y,checkboxUnchecked:this.props.checkboxUnchecked||b,arrowClosed:this.props.arrowClosed||v,arrowOpen:this.props.arrowOpen||g,styles:this.props.styles?i({},V,this.props.styles):V},d=n.getQueryType(),f=n.getMutationType(),_=n.getSubscriptionType();if(!d&&!f&&!_)return s.createElement("div",null,"Missing query type");var T=d&&d.getFields(),w=f&&f.getFields(),k=_&&_.getFields(),x=P(o),S=this.props.getDefaultFieldNames||E,N=this.props.getDefaultScalarArgValue||C,A=x.definitions.map((function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null})).filter(Boolean),O=0===A.length?R.definitions:A,I=[T?s.createElement("option",{key:"query",className:"toolbar-button",style:p.styles.buttonStyle,type:"link",value:"query"},"Query"):null,w?s.createElement("option",{key:"mutation",className:"toolbar-button",style:p.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,k?s.createElement("option",{key:"subscription",className:"toolbar-button",style:p.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),D=0===I.length||this.props.hideActions?null:s.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},s.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:i({},p.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(e){return e.preventDefault()}},s.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),s.createElement("select",{onChange:function(t){return e._setAddOperationType(t.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},I),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.state.newOperationType?function(t){var n=x.definitions,r=1===x.definitions.length&&x.definitions[0]===R.definitions[0],o=r?[]:n.filter((function(e){return"OperationDefinition"===e.kind&&e.operation===t})),a="My"+h(t)+(0===o.length?"":o.length+1),s={kind:"OperationDefinition",operation:t,name:{kind:"Name",value:a},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},c=r?[s]:[].concat(u(x.definitions),[s]),p=i({},x,{definitions:c});e.setState({operationToScrollTo:t+"-"+a}),e.props.onEdit((0,l.print)(p))}(e.state.newOperationType):null},style:i({},p.styles.buttonStyle,{height:"22px",width:"22px"})},s.createElement("span",null,"+")))),L=this.props.externalFragments&&this.props.externalFragments.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],o=[].concat(u(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return i({},e,c({},n,o))}return e}),{}),F=O.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],o=[].concat(u(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return i({},e,c({},n,o))}return e}),{}),M=i({},F,L),j=this.props.showAttribution?s.createElement(U,null):null;return s.createElement("div",{ref:function(t){e._ref=t},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},s.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},O.map((function(t,o){var c=t&&t.name&&t.name.value,d="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",f="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),h=f instanceof l.GraphQLObjectType?f.getFields():null,m="query"===d?T:"mutation"===d?w:"subscription"===d?k:"FragmentDefinition"===t.kind?h:null,g="FragmentDefinition"===t.kind?t.typeCondition.name.value:null,v=function(t){var n=(0,l.print)(t);e.props.onEdit(n)};return s.createElement(q,{key:o,isLast:o===O.length-1,fields:m,operationType:d,name:c,definition:t,onOperationRename:function(n){var r=function(e,t){var n=i({},e,{name:null==t||""===t?null:{kind:"Name",value:t,loc:void 0}}),r=x.definitions.map((function(t){return e===t?n:t}));return i({},x,{definitions:r})}(t,n);e.props.onEdit((0,l.print)(r))},onOperationDestroy:function(){var n=function(e){var t=x.definitions.filter((function(t){return e!==t}));return i({},x,{definitions:t})}(t);e.props.onEdit((0,l.print)(n))},onOperationClone:function(){var n=function(t){var n=void 0;n="FragmentDefinition"===t.kind?"fragment":t.operation;var r=(t.name&&t.name.value||"")+"Copy",o=i({},t,{name:{kind:"Name",value:r,loc:void 0}}),a=x.definitions,s=[].concat(u(a),[o]);return e.setState({operationToScrollTo:n+"-"+r}),i({},x,{definitions:s})}(t);e.props.onEdit((0,l.print)(n))},onTypeName:g,onMount:e._handleRootViewMount,onCommit:v,onEdit:function(e,n){var o=void 0;if(o="object"!==("undefined"===typeof n?"undefined":r(n))||"undefined"===typeof n.commit||n.commit,e){var a=i({},x,{definitions:x.definitions.map((function(n){return n===t?e:n}))});return o?(v(a),a):a}return x},schema:n,getDefaultFieldNames:S,getDefaultScalarArgValue:N,makeDefaultArg:a,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(c)},styleConfig:p,availableFragments:M})})),j),D)}}]),t}(s.PureComponent);B.defaultProps={getDefaultFieldNames:E,getDefaultScalarArgValue:C};var z=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={hasError:!1,error:null,errorInfo:null},d(r,n)}return f(t,e),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?s.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},s.createElement("div",null,"Something went wrong"),s.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,s.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(s.Component),H=function(e){function t(){return p(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"render",value:function(){return s.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},s.createElement("div",{className:"doc-explorer-title-bar"},s.createElement("div",{className:"doc-explorer-title"},this.props.title),s.createElement("div",{className:"doc-explorer-rhs"},s.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"\u2715"))),s.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},s.createElement(z,null,s.createElement(B,this.props))))}}]),t}(s.PureComponent);H.defaultValue=S,H.defaultProps={width:320,title:"Explorer"},t.default=H},42220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explorer=void 0;var r,o=n(49814),i=(r=o)&&r.__esModule?r:{default:r};t.Explorer=i.default,t.default=i.default},4338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DocExplorer:()=>H,GraphiQL:()=>ve,QueryEditor:()=>h,ToolbarButton:()=>l,ToolbarGroup:()=>c,ToolbarMenu:()=>p,ToolbarMenuItem:()=>d,ToolbarSelect:()=>Ce,ToolbarSelectOption:()=>Ne,VariableEditor:()=>g,default:()=>De,fillLeafs:()=>Fe,getSelectedOperationName:()=>Me,mergeAst:()=>Re,onHasCompletion:()=>Le});var r=n(5057),o=n(17687),i=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function a(){var e=(0,o.useEditorContext)({nonNull:!0}),t=e.queryEditor,n=e.setOperationName,a=(0,o.useExecutionContext)({nonNull:!0}),s=a.isFetching,l=a.operationName,c=a.run,u=a.stop,p=i((0,r.useState)(!1),2),d=p[0],f=p[1],h=i((0,r.useState)(null),2),m=h[0],g=h[1],v=(null===t||void 0===t?void 0:t.operations)||[],y=v.length>1&&"string"!==typeof l;return r.createElement("div",{className:"execute-button-wrap"},r.createElement("button",{type:"button",className:"execute-button",onMouseDown:s||!y||d?void 0:function(e){var t=!0,n=e.currentTarget;g(null),f(!0);var r=function(e){var o;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(o=n.parentNode)||void 0===o?void 0:o.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||f(!1))};document.addEventListener("mouseup",r)},onClick:s||!y?function(){s?u():c()}:void 0,title:"Execute Query (Ctrl-Enter)"},r.createElement("svg",{width:"34",height:"34"},s?r.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):r.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"}))),y&&d?r.createElement("ul",{className:"execute-options"},v.map((function(e,o){var i=e.name?e.name.value:"<Unnamed ".concat(e.operation,">");return r.createElement("li",{key:"".concat(i,"-").concat(o),className:e===m?"selected":void 0,onMouseOver:function(){return g(e)},onMouseOut:function(){return g(null)},onMouseUp:function(){var r;f(!1);var o=null===(r=e.name)||void 0===r?void 0:r.value;t&&o&&o!==t.operationName&&n(o),c()}},i)}))):null)}var s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){if(e instanceof Error)return void n.setState({error:e});throw e}},n.state={error:null},n}return s(t,e),t.prototype.render=function(){var e=this.state.error;return r.createElement("button",{type:"button",className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(r.Component);function c(e){var t=e.children;return r.createElement("div",{className:"toolbar-button-group"},t)}var u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){f(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return u(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return r.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:f,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,r.createElement("svg",{width:"14",height:"8"},r.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),r.createElement("ul",{className:"toolbar-menu-items"+(t?" 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(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(r.Component),d=function(e){var t=e.onSelect,n=e.title,o=e.label;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:f,onMouseUp:t,title:n},o)};function f(e){e.preventDefault()}function h(e){var t=(0,o.useQueryEditor)(e);return r.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:t})}var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function g(e){var t=e.active,n=m(e,["active"]),i=(0,o.useVariableEditor)(n);return r.createElement("div",{className:"codemirrorWrap",style:{position:t?"relative":"absolute",visibility:t?"visible":"hidden"},ref:i})}var v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function y(e){var t=e.active,n=v(e,["active"]),i=(0,o.useHeaderEditor)(n);return r.createElement("div",{className:"codemirrorWrap",style:{position:t?"relative":"absolute",visibility:t?"visible":"hidden"},ref:i})}function b(e){var t=(0,o.useResponseEditor)(e);return r.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}var _=n(10949);function E(e){var t=(0,o.useExplorerContext)({nonNull:!0,caller:E}).push;if(!e.type)return null;var n=e.type;return(0,_.zM)(n)?r.createElement(r.Fragment,null,r.createElement(E,{type:n.ofType}),"!"):(0,_.HG)(n)?r.createElement(r.Fragment,null,"[",r.createElement(E,{type:n.ofType}),"]"):r.createElement("a",{className:"type-name",onClick:function(e){e.preventDefault(),t({name:n.name,def:n})},href:"#"},n.name)}var T=n(56327),w=n(99024),k=function(e){return e?(0,T.S)(e):""};function x(e){var t=e.field;return"defaultValue"in t&&void 0!==t.defaultValue?r.createElement("span",null," = ",r.createElement("span",{className:"arg-default-value"},k((0,w.J)(t.defaultValue,t.type)))):null}function S(e){var t=e.arg,n=e.showDefaultValue;return r.createElement("span",{className:"arg"},r.createElement("span",{className:"arg-name"},t.name),": ",r.createElement(E,{type:t.type}),!1!==n&&r.createElement(x,{field:t}))}function C(e){var t=e.directive;return r.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var N=n(48776),A=new(n.n(N)())({breaks:!0,linkify:!0});function O(e){var t=e.markdown,n=e.className;return t?r.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:A.render(t)}}):r.createElement("div",null)}var I=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function D(){var e,t,n,i,a=(0,o.useExplorerContext)({nonNull:!0}).explorerNavStack,s=I(r.useState(!1),2),l=s[0],c=s[1],u=a[a.length-1].def;if(!u||(0,_.P9)(u))return null;if(u&&"args"in u&&u.args.length>0){t=r.createElement("div",{id:"doc-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"arguments"),u.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement("div",null,r.createElement(S,{arg:e})),r.createElement(O,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(O,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})));var p=u.args.filter((function(e){return Boolean(e.deprecationReason)}));p.length>0&&(n=r.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated arguments"),l?p.map((function(e,t){return r.createElement("div",{key:t},r.createElement("div",null,r.createElement(S,{arg:e})),r.createElement(O,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(O,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})):r.createElement("button",{type:"button",className:"show-btn",onClick:function(){return c(!l)}},"Show deprecated arguments...")))}return(null===(e=null===u||void 0===u?void 0:u.astNode)||void 0===e?void 0:e.directives)&&u.astNode.directives.length>0&&(i=r.createElement("div",{id:"doc-directives",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"directives"),u.astNode.directives.map((function(e){return r.createElement("div",{key:e.name.value,className:"doc-category-item"},r.createElement("div",null,r.createElement(C,{directive:e})))})))),r.createElement("div",null,r.createElement(O,{className:"doc-type-description",markdown:u.description||"No Description"}),u&&"deprecationReason"in u&&r.createElement(O,{className:"doc-deprecation",markdown:u.deprecationReason}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"type"),r.createElement(E,{type:u.type})),t,i,n)}function L(){var e,t,n=(0,o.useSchemaContext)({nonNull:!0}).schema;if(!n)return null;var i=n.getQueryType(),a=null===(e=n.getMutationType)||void 0===e?void 0:e.call(n),s=null===(t=n.getSubscriptionType)||void 0===t?void 0:t.call(n);return r.createElement("div",null,r.createElement(O,{className:"doc-type-description",markdown:n.description||"A GraphQL schema provides a root type for each kind of operation."}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"root types"),i?r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"query"),": ",r.createElement(E,{type:i})):null,a&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"mutation"),": ",r.createElement(E,{type:a})),s&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"subscription"),": ",r.createElement(E,{type:s}))))}var F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const M=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){var t=e.currentTarget.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:t.value||""},n.debouncedOnSearch=function(e,t){var n;return function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=null,t.apply(r,o)}),e)}}(200,n.props.onSearch),n}return F(t,e),t.prototype.render=function(){return r.createElement("label",{className:"search-box"},r.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"\u26b2"),r.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&r.createElement("button",{type:"button",className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"\u2715"))},t}(r.Component);function R(e){var t=(0,o.useExplorerContext)({nonNull:!0}).push;return r.createElement("a",{className:"field-name",onClick:function(n){n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#"},e.field.name)}var j=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function P(){var e,t,n=(0,o.useExplorerContext)({nonNull:!0}).explorerNavStack,i=(0,o.useSchemaContext)({nonNull:!0}).schema,a=n[n.length-1];if(!i||!a.search)return null;var s=a.search,l=a.def,c=[],u=[],p=[],d=i.getTypeMap(),f=Object.keys(d);l&&(f=f.filter((function(e){return e!==l.name}))).unshift(l.name);var h=function(e){if(c.length+u.length+p.length>=100)return"break";var t=d[e];if(l!==t&&V(e,s)&&u.push(r.createElement("div",{className:"doc-category-item",key:e},r.createElement(E,{type:t}))),t&&"getFields"in t){var n=t.getFields();Object.keys(n).forEach((function(o){var i,a=n[o];if(!V(o,s)){if(!("args"in a)||!a.args.length)return;if(0===(i=a.args.filter((function(e){return V(e.name,s)}))).length)return}var u=r.createElement("div",{className:"doc-category-item",key:e+"."+o},l!==t&&[r.createElement(E,{key:"type",type:t}),"."],r.createElement(R,{field:a}),i&&["(",r.createElement("span",{key:"args"},i.map((function(e){return r.createElement(S,{key:e.name,arg:e,showDefaultValue:!1})}))),")"]);l===t?c.push(u):p.push(u)}))}};try{for(var m=j(f),g=m.next();!g.done;g=m.next()){if("break"===h(g.value))break}}catch(v){e={error:v}}finally{try{g&&!g.done&&(t=m.return)&&t.call(m)}finally{if(e)throw e.error}}return c.length+u.length+p.length===0?r.createElement("span",{className:"doc-alert-text"},"No results found."):l&&u.length+p.length>0?r.createElement("div",null,c,r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"other results"),u,p)):r.createElement("div",{className:"doc-search-items"},c,u,p)}function V(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(r){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}var q=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function U(){var e=(0,o.useSchemaContext)({nonNull:!0}).schema,t=(0,o.useExplorerContext)({nonNull:!0}).explorerNavStack,n=q((0,r.useState)(!1),2),i=n[0],a=n[1],s=t[t.length-1].def;if(!e||!(0,_.Zs)(s))return null;var l,c,u,p,d,f=null,h=[];if((0,_.EN)(s)?(f="possible types",h=e.getPossibleTypes(s)):(0,_.oT)(s)?(f="implementations",h=e.getPossibleTypes(s)):(0,_.lp)(s)&&(f="implements",h=s.getInterfaces()),h&&h.length>0&&(l=r.createElement("div",{id:"doc-types",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},f),h.map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement(E,{type:e}))})))),s&&"getFields"in s){var m=s.getFields(),g=Object.keys(m).map((function(e){return m[e]}));c=r.createElement("div",{id:"doc-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"fields"),g.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(B,{key:e.name,type:s,field:e})})));var v=g.filter((function(e){return Boolean(e.deprecationReason)}));v.length>0&&(u=r.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated fields"),i?v.map((function(e){return r.createElement(B,{key:e.name,type:s,field:e})})):r.createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated fields...")))}if((0,_.EM)(s)){var y=s.getValues();p=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"values"),y.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return r.createElement(z,{key:e.name,value:e})})));var b=y.filter((function(e){return Boolean(e.deprecationReason)}));b.length>0&&(d=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated values"),i?b.map((function(e){return r.createElement(z,{key:e.name,value:e})})):r.createElement("button",{type:"button",className:"show-btn",onClick:function(){a(!0)}},"Show deprecated values...")))}return r.createElement("div",null,r.createElement(O,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),(0,_.lp)(s)&&l,c,u,p,d,!(0,_.lp)(s)&&l)}function B(e){var t=e.field;return r.createElement("div",{className:"doc-category-item"},r.createElement(R,{field:t}),"args"in t&&t.args&&t.args.length>0&&["(",r.createElement("span",{key:"args"},t.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(S,{key:e.name,arg:e})}))),")"],": ",r.createElement(E,{type:t.type}),r.createElement(x,{field:t}),t.description&&r.createElement(O,{className:"field-short-description",markdown:t.description}),"deprecationReason"in t&&t.deprecationReason&&r.createElement(O,{className:"doc-deprecation",markdown:t.deprecationReason}))}function z(e){var t=e.value;return r.createElement("div",{className:"doc-category-item"},r.createElement("div",{className:"enum-value"},t.name),r.createElement(O,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&r.createElement(O,{className:"doc-deprecation",markdown:t.deprecationReason}))}function H(e){var t=(0,o.useSchemaContext)({nonNull:!0}),n=t.fetchError,i=t.isFetching,a=t.schema,s=t.validationErrors,l=(0,o.useExplorerContext)({nonNull:!0}),c=l.explorerNavStack,u=l.hide,p=l.pop,d=l.showSearch,f=c[c.length-1],h=void 0===e.schema?a:e.schema,m=null;n?m=r.createElement("div",{className:"error-container"},"Error fetching schema"):s.length>0?m=r.createElement("div",{className:"error-container"},"Schema is invalid: ",s[0].message):i?m=r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})):h?f.search?m=r.createElement(P,null):1===c.length?m=r.createElement(L,null):(0,_.P9)(f.def)?m=r.createElement(U,null):f.def&&(m=r.createElement(D,null)):m=r.createElement("div",{className:"error-container"},"No Schema Available");var g,v=1===c.length||(0,_.P9)(f.def)&&"getFields"in f.def;return c.length>1&&(g=c[c.length-2].name),r.createElement("section",{className:"doc-explorer",key:f.name,"aria-label":"Documentation Explorer"},r.createElement("div",{className:"doc-explorer-title-bar"},g&&r.createElement("button",{type:"button",className:"doc-explorer-back",onClick:p,"aria-label":"Go back to ".concat(g)},g),r.createElement("div",{className:"doc-explorer-title"},f.title||f.name),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){var t;u(),null===(t=e.onClose)||void 0===t||t.call(e)},"aria-label":"Close Documentation Explorer"},"\u2715"))),r.createElement("div",{className:"doc-explorer-contents"},v&&r.createElement(M,{value:f.search,placeholder:"Search ".concat(f.name,"..."),onSearch:d}),m))}var G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},G.apply(this,arguments)},W=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Q(){var e=(0,o.useHistoryContext)({nonNull:!0}),t=e.hide,n=e.items;return r.createElement("section",{"aria-label":"History"},r.createElement("div",{className:"history-title-bar"},r.createElement("div",{className:"history-title"},"History"),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("button",{type:"button",className:"docExplorerHide",onClick:function(){return t()},"aria-label":"Close History"},"\u2715"))),r.createElement("ul",{className:"history-contents"},n.slice().reverse().map((function(e,t){return r.createElement(X,{key:"".concat(t,":").concat(e.label||e.query),item:e})}))))}function X(e){var t,n=(0,o.useHistoryContext)({nonNull:!0}),i=n.editLabel,a=n.toggleFavorite,s=(0,o.useSelectHistoryItem)(),l=(0,r.useRef)(null),c=W((0,r.useState)(!1),2),u=c[0],p=c[1];(0,r.useEffect)((function(){u&&l.current&&l.current.focus()}),[u]);var d=e.item.label||e.item.operationName||(null===(t=e.item.query)||void 0===t?void 0:t.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),f=e.item.favorite?"\u2605":"\u2606";return r.createElement("li",{className:u?"editable":void 0},u?r.createElement("input",{type:"text",defaultValue:e.item.label,ref:l,onBlur:function(t){t.stopPropagation(),p(!1),i(G(G({},e.item),{label:t.target.value}))},onKeyDown:function(t){13===t.keyCode&&(t.stopPropagation(),p(!1),i(G(G({},e.item),{label:t.currentTarget.value})))},placeholder:"Type a label"}):r.createElement("button",{type:"button",className:"history-label",onClick:function(){s(e.item)}},d),r.createElement("button",{type:"button",onClick:function(e){e.stopPropagation(),p(!0)},"aria-label":"Edit label"},"\u270e"),r.createElement("button",{type:"button",onClick:function(t){t.stopPropagation(),a(e.item)},"aria-label":e.item.favorite?"Remove favorite":"Add favorite"},f))}function J(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function Y(e){return JSON.stringify(e,null,2)}function $(e){return e instanceof Error?function(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}(e):e}var K=n(92460),Z=n(23857),ee=n(7751),te=n(60844);function ne(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let o;try{o=(0,K.Qc)(t)}catch(s){return{insertions:r,result:t}}const i=n||re,a=new Z.a(e);return(0,ee.Vn)(o,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const n=oe(function(e){if(e)return e}(a.getType()),i);if(n&&e.loc){const o=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,T.S)(n).replace(/\n/g,"\n"+o)})}}}}),{insertions:r,result:ie(t,r)}}function re(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];return Object.keys(t).forEach((e=>{(0,_.UT)(t[e].type)&&n.push(e)})),n}function oe(e,t){const n=(0,_.xC)(e);if(!e||(0,_.UT)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:te.h.SELECTION_SET,selections:r.map((e=>{const r=n.getFields()[e],o=r?r.type:null;return{kind:te.h.FIELD,name:{kind:te.h.NAME,value:e},selectionSet:oe(o,t)}}))}:void 0}function ie(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach((t=>{let{index:o,string:i}=t;n+=e.slice(r,o)+i,r=o})),n+=e.slice(r),n}function ae(e,t,n){var r;const o=n?(0,_.xC)(n).name:null,i=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.indexOf(t)>=0)continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:te.h.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===te.h.INLINE_FRAGMENT&&(!s.directives||0===(null===(r=s.directives)||void 0===r?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===o){i.push(...ae(e,s.selectionSet.selections,n));continue}}i.push(s)}return i}function se(e,t){const n=t?new Z.a(t):null,r=Object.create(null);for(const i of e.definitions)i.kind===te.h.FRAGMENT_DEFINITION&&(r[i.name.value]=i);const o={SelectionSet(e){const t=n?n.getParentType():null;let{selections:o}=e;return o=ae(r,o,t),o=function(e,t){var n;const r=new Map,o=[];for(const i of e)if("Field"===i.kind){const e=t(i),a=r.get(e);if(null===(n=i.directives)||void 0===n?void 0:n.length){const e=Object.assign({},i);o.push(e)}else if((null===a||void 0===a?void 0:a.selectionSet)&&i.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...i.selectionSet.selections];else if(!a){const t=Object.assign({},i);r.set(e,t),o.push(t)}}else o.push(i);return o}(o,(e=>e.alias?e.alias.value:e.name.value)),Object.assign(Object.assign({},e),{selections:o})},FragmentDefinition:()=>null};return(0,ee.Vn)(e,n?(0,Z.y)(n,o):o)}function le(e,t,n){if(!n||n.length<1)return;const r=n.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map((e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.value})).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}var ce=function(){return ce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ce.apply(this,arguments)};function ue(e){return r.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(t){t.stopPropagation(),e.onClick()}})}function pe(e){return r.createElement("button",ce({},e.tabProps,{role:"tab",type:"button","aria-selected":e.isActive,title:e.title,className:"tab".concat(e.isActive?" active":""),onClick:e.onSelect}),e.title,e.isCloseable?r.createElement(ue,{onClick:function(){return e.onClose()}}):null)}function de(e){return r.createElement("button",{type:"button",onClick:e.onClick,className:"tab-add",title:"Create new tab"},r.createElement("span",null,"+"))}function fe(e){return r.createElement("div",ce({role:"tablist",className:"tabs"},e.tabsProps),e.children)}var he=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=function(){return me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},me.apply(this,arguments)},ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};if(parseInt(r.version.slice(0,2),10)<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("\n"));var ve=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=null,n}return he(t,e),t.prototype.componentDidMount=function(){"undefined"!==typeof window&&(window.g=this)},t.prototype.render=function(){var e=this;return r.createElement(ye,me({},this.props,{ref:function(t){e.ref=t}}))},t.prototype.getQueryEditor=function(){var e;return console.warn("The method `GraphiQL.getQueryEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `query` prop. To react on changes of the editor value you can pass a callback to the `onEditQuery` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getQueryEditor())||null},t.prototype.getVariableEditor=function(){var e;return console.warn("The method `GraphiQL.getVariableEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `variables` prop. To react on changes of the editor value you can pass a callback to the `onEditVariables` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getVariableEditor())||null},t.prototype.getHeaderEditor=function(){var e;return console.warn("The method `GraphiQL.getHeaderEditor` is deprecated and will be removed in the next major version. To set the value of the editor you can use the `headers` prop. To react on changes of the editor value you can pass a callback to the `onEditHeaders` prop."),(null===(e=this.ref)||void 0===e?void 0:e.getHeaderEditor())||null},t.prototype.refresh=function(){var e;console.warn("The method `GraphiQL.refresh` is deprecated and will be removed in the next major version. Already now, all editors should automatically refresh when their size changes."),null===(e=this.ref)||void 0===e||e.refresh()},t.prototype.autoCompleteLeafs=function(){var e;return console.warn("The method `GraphiQL.autoCompleteLeafs` is deprecated and will be removed in the next major version. Please switch to using the `autoCompleteLeafs` function provided by the `EditorContext` from the `@graphiql/react` package."),null===(e=this.ref)||void 0===e?void 0:e.autoCompleteLeafs()},t.formatResult=function(e){return console.warn("The function `GraphiQL.formatResult` is deprecated and will be removed in the next major version. Please switch to using the `formatResult` function provided by the `@graphiql/toolkit` package."),function(e){return Y(e)}(e)},t.formatError=function(e){return console.warn("The function `GraphiQL.formatError` is deprecated and will be removed in the next major version. Please switch to using the `formatError` function provided by the `@graphiql/toolkit` package."),function(e){return Array.isArray(e)?Y({errors:e.map((e=>$(e)))}):Y({errors:[$(e)]})}(e)},t.Logo=Ee,t.Toolbar=Te,t.Footer=we,t.QueryEditor=h,t.VariableEditor=g,t.HeaderEditor=y,t.ResultViewer=b,t.Button=l,t.ToolbarButton=l,t.Group=c,t.Menu=p,t.MenuItem=d,t}(r.Component),ye=(0,r.forwardRef)((function(e,t){var n=e.dangerouslyAssumeSchemaIsValid,i=e.docExplorerOpen,a=e.externalFragments,s=e.fetcher,l=e.headers,c=e.inputValueDeprecation,u=e.introspectionQueryName,p=e.maxHistoryLength,d=e.onEditOperationName,f=e.onSchemaChange,h=e.onToggleHistory,m=e.onToggleDocs,g=e.operationName,v=e.query,y=e.response,b=e.storage,_=e.schema,E=e.schemaDescription,T=e.shouldPersistHeaders,w=e.validationRules,k=e.variables,x=ge(e,["dangerouslyAssumeSchemaIsValid","docExplorerOpen","externalFragments","fetcher","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onToggleHistory","onToggleDocs","operationName","query","response","storage","schema","schemaDescription","shouldPersistHeaders","validationRules","variables"]);if("function"!==typeof s)throw new TypeError("GraphiQL requires a fetcher function.");return r.createElement(o.StorageContextProvider,{storage:b},r.createElement(o.HistoryContextProvider,{maxHistoryLength:p,onToggle:h},r.createElement(o.EditorContextProvider,{defaultQuery:x.defaultQuery,externalFragments:a,headers:l,onEditOperationName:d,onTabChange:"object"===typeof x.tabs?x.tabs.onTabChange:void 0,query:v,response:y,shouldPersistHeaders:T,validationRules:w,variables:k},r.createElement(o.SchemaContextProvider,{dangerouslyAssumeSchemaIsValid:n,fetcher:s,inputValueDeprecation:c,introspectionQueryName:u,onSchemaChange:f,schema:_,schemaDescription:E},r.createElement(o.ExecutionContextProvider,{fetcher:s,operationName:g},r.createElement(o.ExplorerContextProvider,{isVisible:i,onToggleVisibility:m},r.createElement(be,me({},x,{ref:t}))))))))})),be=(0,r.forwardRef)((function(e,t){var n=e.getDefaultFieldNames,i=ge(e,["getDefaultFieldNames"]),a=(0,o.useEditorContext)({nonNull:!0}),s=(0,o.useExecutionContext)({nonNull:!0}),l=(0,o.useExplorerContext)(),c=(0,o.useHistoryContext)(),u=(0,o.useSchemaContext)({nonNull:!0}),p=(0,o.useStorageContext)(),d=(0,o.useAutoCompleteLeafs)({getDefaultFieldNames:n}),f=(0,o.useCopyQuery)({onCopyQuery:i.onCopyQuery}),h=(0,o.useMergeQuery)(),m=(0,o.usePrettifyEditors)(),g=(0,o.useDragResize)({defaultSizeRelation:3,direction:"horizontal",initiallyHidden:(null===l||void 0===l?void 0:l.isVisible)?void 0:"second",onHiddenElementChange:function(e){"second"===e?null===l||void 0===l||l.hide():null===l||void 0===l||l.show()},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),v=(0,o.useDragResize)({direction:"horizontal",storageKey:"editorFlex"}),y=(0,o.useDragResize)({defaultSizeRelation:3,direction:"vertical",initiallyHidden:void 0!==i.defaultVariableEditorOpen?i.defaultVariableEditorOpen?void 0:"second":void 0!==i.defaultSecondaryEditorOpen?i.defaultSecondaryEditorOpen?void 0:"second":a.initialVariables||a.initialHeaders?void 0:"second",sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"});return r.createElement(_e,me({},i,{editorContext:a,executionContext:s,explorerContext:l,historyContext:c,schemaContext:u,storageContext:p,autoCompleteLeafs:d,copy:f,merge:h,prettify:m,docResize:g,editorResize:v,secondaryEditorResize:y,ref:t}))})),_e=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activeSecondaryEditor:"variable"},n}return he(t,e),t.prototype.render=function(){var e,t,n,o,i=this,s=r.Children.toArray(this.props.children),c=J(s,(function(e){return ke(e,ve.Logo)}))||r.createElement(ve.Logo,null),u=J(s,(function(e){return ke(e,ve.Toolbar)}))||r.createElement(ve.Toolbar,null,r.createElement(l,{onClick:function(){i.props.prettify()},title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),r.createElement(l,{onClick:function(){i.props.merge()},title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),r.createElement(l,{onClick:function(){i.props.copy()},title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),r.createElement(l,{onClick:function(){var e;return null===(e=i.props.historyContext)||void 0===e?void 0:e.toggle()},title:(null===(e=this.props.historyContext)||void 0===e?void 0:e.isVisible)?"Hide History":"Show History",label:"History"}),r.createElement(l,{onClick:function(){return i.props.schemaContext.introspect()},title:"Fetch GraphQL schema using introspection (Shift-Ctrl-R)",label:"Introspect"}),(null===(t=this.props.toolbar)||void 0===t?void 0:t.additionalContent)?this.props.toolbar.additionalContent:null),p=J(s,(function(e){return ke(e,ve.Footer)})),d=null===(n=this.props.headerEditorEnabled)||void 0===n||n;return r.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},r.createElement("div",{ref:this.props.docResize.firstRef},(null===(o=this.props.historyContext)||void 0===o?void 0:o.isVisible)&&r.createElement("div",{className:"historyPaneWrap",style:{width:"230px",zIndex:7}},r.createElement(Q,null)),r.createElement("div",{className:"editorWrap"},r.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,r.createElement("div",{className:"topBar"},c,r.createElement(a,null),u),this.props.explorerContext&&!this.props.explorerContext.isVisible&&r.createElement("button",{type:"button",className:"docExplorerShow",onClick:function(){var e;null===(e=i.props.explorerContext)||void 0===e||e.show(),i.props.docResize.setHiddenElement(null)},"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?r.createElement(fe,{tabsProps:{"aria-label":"Select active operation"}},this.props.editorContext.tabs.map((function(e,t){return r.createElement(pe,{key:e.id,isActive:t===i.props.editorContext.activeTabIndex,title:e.title,isCloseable:i.props.editorContext.tabs.length>1,onSelect:function(){i.props.executionContext.stop(),i.props.editorContext.changeTab(t)},onClose:function(){i.props.editorContext.activeTabIndex===t&&i.props.executionContext.stop(),i.props.editorContext.closeTab(t)},tabProps:{"aria-controls":"sessionWrap",id:"session-tab-".concat(t)}})})),r.createElement(de,{onClick:function(){i.props.editorContext.addTab()}})):null,r.createElement("div",{role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-".concat(this.props.editorContext.activeTabIndex)},r.createElement("div",{ref:this.props.editorResize.firstRef},r.createElement("div",{className:"queryWrap"},r.createElement("div",{ref:this.props.secondaryEditorResize.firstRef},r.createElement(h,{editorTheme:this.props.editorTheme,onClickReference:function(){"second"===i.props.docResize.hiddenElement&&i.props.docResize.setHiddenElement(null)},keyMap:this.props.keyMap,onCopyQuery:this.props.onCopyQuery,onEdit:this.props.onEditQuery,readOnly:this.props.readOnly})),r.createElement("div",{ref:this.props.secondaryEditorResize.dragBarRef},r.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title"},r.createElement("div",{className:"variable-editor-title-text".concat("variable"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===i.props.secondaryEditorResize.hiddenElement&&i.props.secondaryEditorResize.setHiddenElement(null),i.setState({activeSecondaryEditor:"variable"},(function(){var e;null===(e=i.props.editorContext.variableEditor)||void 0===e||e.refresh()}))}},"Query Variables"),d&&r.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text".concat("header"===this.state.activeSecondaryEditor?" active":""),onClick:function(){"second"===i.props.secondaryEditorResize.hiddenElement&&i.props.secondaryEditorResize.setHiddenElement(null),i.setState({activeSecondaryEditor:"header"},(function(){var e;null===(e=i.props.editorContext.headerEditor)||void 0===e||e.refresh()}))}},"Request Headers"))),r.createElement("div",{ref:this.props.secondaryEditorResize.secondRef},r.createElement("section",{className:"variable-editor secondary-editor","aria-label":"variable"===this.state.activeSecondaryEditor?"Query Variables":"Request Headers"},r.createElement(g,{onEdit:this.props.onEditVariables,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:"variable"===this.state.activeSecondaryEditor,keyMap:this.props.keyMap}),d&&r.createElement(y,{active:"header"===this.state.activeSecondaryEditor,editorTheme:this.props.editorTheme,onEdit:this.props.onEditHeaders,readOnly:this.props.readOnly,keyMap:this.props.keyMap}))))),r.createElement("div",{ref:this.props.editorResize.dragBarRef},r.createElement("div",{className:"editor-drag-bar"})),r.createElement("div",{ref:this.props.editorResize.secondRef},r.createElement("div",{className:"resultWrap"},this.props.executionContext.isFetching&&r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})),r.createElement(b,{editorTheme:this.props.editorTheme,ResponseTooltip:this.props.ResultsTooltip,keyMap:this.props.keyMap}),p))))),r.createElement("div",{ref:this.props.docResize.dragBarRef},r.createElement("div",{className:"docExplorerResizer"})),r.createElement("div",{ref:this.props.docResize.secondRef},r.createElement("div",{className:"docExplorerWrap"},r.createElement(H,{onClose:function(){return i.props.docResize.setHiddenElement("second")}}))))},t.prototype.getQueryEditor=function(){return this.props.editorContext.queryEditor||null},t.prototype.getVariableEditor=function(){return this.props.editorContext.variableEditor||null},t.prototype.getHeaderEditor=function(){return this.props.editorContext.headerEditor||null},t.prototype.refresh=function(){var e,t,n,r;null===(e=this.props.editorContext.queryEditor)||void 0===e||e.refresh(),null===(t=this.props.editorContext.variableEditor)||void 0===t||t.refresh(),null===(n=this.props.editorContext.headerEditor)||void 0===n||n.refresh(),null===(r=this.props.editorContext.responseEditor)||void 0===r||r.refresh()},t.prototype.autoCompleteLeafs=function(){return this.props.autoCompleteLeafs()},t}(r.Component);function Ee(e){return r.createElement("div",{className:"title"},e.children||r.createElement("span",null,"Graph",r.createElement("em",null,"i"),"QL"))}function Te(e){return r.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function we(e){return r.createElement("div",{className:"footer"},e.children)}function ke(e,t){var n;return!(!(null===(n=null===e||void 0===e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}Ee.displayName="GraphiQLLogo",Te.displayName="GraphiQLToolbar",we.displayName="GraphiQLFooter";var xe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Se=function(){return Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Se.apply(this,arguments)};var Ce=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Ae(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return xe(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,o=r.Children.map(this.props.children,(function(n,o){var i;if(!function(e){return!(!e||"object"!==typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var a=n.props.onSelect||(null===(i=t.props.onSelect)||void 0===i?void 0:i.bind(null,n.props.value,o));return r.createElement(Ne,Se({},n.props,{onSelect:a}))}));return r.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Ae,ref:function(e){t._node=e},title:this.props.title},null===e||void 0===e?void 0:e.props.label,r.createElement("svg",{width:"13",height:"10"},r.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),r.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),r.createElement("ul",{className:"toolbar-select-options"+(n?" 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(e){this._node!==e.target&&(Ae(e),this.setState({visible:!1}),this._release())},t}(r.Component);function Ne(e){var t=e.onSelect,n=e.label,o=e.selected;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Ae,onMouseUp:t},n,o&&r.createElement("svg",{width:"13",height:"13"},r.createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\n 10.686,0 13,2.314 4.851,10.462"})))}function Ae(e){e.preventDefault()}var Oe=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Ie=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const De=ve;var Le=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `onHasCompletion` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `onHasCompletion` function provided by the `@graphiql/react` package."),o.onHasCompletion.apply(void 0,Ie([],Oe(e),!1))},Fe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `fillLeafs` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `fillLeafs` function provided by the `@graphiql/toolkit` package."),ne.apply(void 0,Ie([],Oe(e),!1))},Me=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `getSelectedOperationName` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `getSelectedOperationName` function provided by the `@graphiql/toolkit` package."),le.apply(void 0,Ie([],Oe(e),!1))},Re=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn("Importing `mergeAst` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `mergeAst` function provided by the `@graphiql/toolkit` package."),se.apply(void 0,Ie([],Oe(e),!1))}},86373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"temp",{enumerable:!0,get:function(){return o.default}});var r=i(n(36382)),o=i(n(82962));function i(e){return e&&e.__esModule?e:{default:e}}},36382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={common:{black:"#000",white:"#fff"},primary:{main:"#3773F2",contrastText:"#fff"},secondary:{main:"#16CED1",contrastText:"#fff"},error:{main:"#F16E6E",contrastText:"#fff"},warning:{main:"#DE9E37",contrastText:"#fff"},info:{main:"#0775F8",contrastText:"#fff"},success:{main:"#34BE74",contrastText:"#fff"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{default:"#fff"},did:{primary:"#4598FA",secondary:"#49C3AD"}};t.default=n},82962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lineStep:"rgba(18, 22, 24, 0.06)",lineBorderStrong:"rgba(18, 22, 24, 0.12)",lineBorderBase:"rgba(18, 22, 24, 0.06)",borderBase:"rgba(18, 22, 24, 0.06)",textMuted:"rgba(18, 22, 24, 0.36)",textSubtitle:"rgba(18, 22, 24, 0.6)",textBase:"rgba(18, 22, 24, 1)",textPrimaryBase:"rgba(18, 22, 24, 1)",surfaceBgSubtitle:"rgba(18, 22, 24, 0.03)",surfacePrimarySubtitle:"rgba(19, 125, 250, 0.06)",surfaceSuccess:"rgba(13, 202, 134, 1)",primaryBase:"rgba(19, 125, 250, 1)",primary100:"rgba(19, 125, 250, 1)",gray6:"rgba(17, 22, 24, 0.06)"};t.default=n},66044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={styled:!0,useTheme:!0,ThemeProvider:!0};Object.defineProperty(t,"ThemeProvider",{enumerable:!0,get:function(){return s.default}}),t.styled=void 0,Object.defineProperty(t,"useTheme",{enumerable:!0,get:function(){return o.useTheme}});var o=n(18537),i=n(57976);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a,s=(a=n(674))&&a.__esModule?a:{default:a};function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=e=>e.startsWith("$");t.styled=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.styled)(e,c(c({},t),{},{shouldForwardProp:e=>t.shouldForwardProp?t.shouldForwardProp(e)&&!p(e):!p(e)}))}},674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var r=c(n(55898)),o=n(18537),i=c(n(51909)),a=c(n(52010)),s=n(57976),l=n(96266);function c(e){return e&&e.__esModule?e:{default:e}}const u=(0,s.createTheme)();function p(e){let{children:t,theme:n,injectFirst:r}=e;return(0,l.jsx)(i.default,{injectFirst:r,children:(0,l.jsxs)(o.ThemeProvider,{theme:n,children:[(0,l.jsx)(a.default,{}),t]})})}p.propTypes={children:r.default.any,theme:r.default.any,injectFirst:r.default.bool},p.defaultProps={children:null,theme:u,injectFirst:!0}},57976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=t.create=void 0;var r=n(18537);n(7865),n(7091);var o,i=(o=n(86373))&&o.__esModule?o:{default:o};const a=["mode","pageWidth","palette","typography","overrides"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const p=(0,r.createTheme)({palette:{mode:"dark"}}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mode:t="light",pageWidth:n="md",palette:o,typography:s,overrides:c}=e,d=u(e,a);const f="light"===t?Object.assign(l(l({},i.default),{},{background:{paper:i.default.common.white,default:i.default.background.default},mode:t}),o||{}):Object.assign(l(l({},p.palette),{},{background:{paper:i.default.grey[900],default:i.default.grey[900]},mode:t}),o||{}),h=(0,r.createTheme)(l({themeName:"ArcBlock",palette:f,typography:Object.assign({useNextVariants:!0,color:{main:"light"===t?"#222222":i.default.common.white,gray:"light"===t?i.default.grey[500]:i.default.grey[300]},fontFamily:["Lato","Avenir","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),fontWeightLight:400,fontWeightRegular:400,fontWeightMedium:700,fontWeightBold:700,button:{fontWeight:700}},s||{}),components:l({MuiButton:{styleOverrides:{root:{boxShadow:"none"}}},MuiButtonGroup:{styleOverrides:{root:{boxShadow:"none"}}},MuiTableCell:{styleOverrides:{root:{borderBottomWidth:"0",paddingTop:"14px",paddingBottom:"14px",paddingLeft:0,paddingRight:"30px"},head:{textTransform:"uppercase",color:"light"===t?i.default.grey[900]:i.default.grey[300]},body:{color:"light"===t?i.default.grey[900]:i.default.grey[300]}}}},c),pageWidth:n,colors:{white:"#FFFFFF",dark:"#4A707C",gray:"#222222",minor:"#9B9B9B",darkText:"#DCDCDC",background:"#F7F8F8",yellow:"#FFCF71",green:"#44cdc6",red:"#D0021B",blue:"#4E6AF6",primary:"#222222",black:"#222222",secondary:"#44cdc6",mint:"#44cdc6",textSecondary:"#4A4A4A",active:"#5b9025",danger:"#D0021B",lightGrey:"#BCBCBC"},mode:t},d));return(0,r.responsiveFontSizes)(h,{breakpoints:["xs","sm","md","lg"],disableAlign:!1,factor:3,variants:["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]})};t.create=d;const f=d;t.createTheme=f},3044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.appendParams=void 0,t.detectWalletExtension=s,t.formatToDate=function(e){let{locale:t,tz:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a("ll")(e,{locale:t,tz:n})},t.formatToDatetime=function(e){let{locale:t,tz:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a("lll")(e,{locale:t,tz:n})},t.getColor=t.getBackground=t.formatUptime=void 0,t.getCookieOptions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={expireInDays:e};"object"===typeof e&&(t=e);void 0===t.path&&(t.path="/");t.expireInDays||(t.expireInDays=1);const n={expires:t.expireInDays,path:t.path,domain:t.domain||"",sameSite:t.sameSite||"lax"};if("undefined"===typeof window||t.domain||!1===t.returnDomain)return!1===t.returnDomain&&delete n.domain,n;return n},t.getCopyright=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2017;const t=(new Date).getFullYear();return"".concat(t)==="".concat(e)?"\xa9 ArcBlock ".concat(t):"\xa9 ArcBlock ".concat(e," - ").concat(t)},t.getDateTool=function(){return i},t.isUrl=t.isEthereumDid=t.getVisitorId=t.getUserAvatar=t.getTimezone=t.getFontSize=void 0,t.mergeProps=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=Object.assign({},e);Object.keys(t.defaultProps||{}).forEach((e=>{"string"===typeof r[e]&&0===r[e].indexOf("::prop::")&&(r[e]=t.defaultProps[e])})),Array.isArray(n)&&n.forEach((e=>{if("string"===typeof r[e])try{r[e]=JSON.parse(r[e])}catch(t){}}));return Object.keys(r).forEach((e=>{"string"===typeof r[e]&&0===r[e].indexOf("::prop::")&&(r[e]="")})),r},t.openWebWallet=function(e){let{webWalletUrl:t,action:n="login",locale:r="en",url:o,windowFeatures:i}=e;const a=s();if(a)return void a.open({action:n,locale:r,url:encodeURIComponent(o)});const l="".concat(t,"?action=").concat(n,"&locale=").concat(r,"&url=").concat(encodeURIComponent(o)),c=Object.assign({},{toolbar:"no",location:"no",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:414,height:736},i);if(!("left"in c)){const e=(u=window.top||window).innerWidth||u.document.documentElement.clientWidth||u.document.body.clientWidth,t=window.screenLeft||window.screenX;c.left=e+t-c.width}var u;if(!("top"in c)){const e=window.screenTop||window.screenY;c.top=e}const p=Object.keys(c).map((e=>"".concat(e,"=").concat(c[e]))).join(",");window.open(l,"targetWindow",p)},t.parseQuery=function(e){return e.replace(/^\?/,"").split("&").map((e=>e.split("="))).filter((e=>{let[t]=e;return!!t})).reduce(((e,t)=>{const n=t[0],r=decodeURIComponent(t[1])||!0;return e[n]=r,e}),{})},t.setDateTool=function(e){i=e},t.str2color=t.sleep=t.setVisitorId=void 0,t.stringifyQuery=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new URLSearchParams(e).toString()};var r,o=(r=n(47289))&&r.__esModule?r:{default:r};let i=null;t.getColor=e=>e.color?e.color:e.dark?e.theme.palette.common.white:e.theme.palette.text.primary;t.getBackground=e=>e.background?e.background:e.dark?e.theme.palette.common.black:e.theme.palette.common.white;t.getTimezone=()=>"object"===typeof Intl&&"function"===typeof Intl.DateTimeFormat&&"function"===typeof Intl.DateTimeFormat().resolvedOptions?Intl.DateTimeFormat().resolvedOptions().timeZone:"";t.str2color=e=>{let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){n+="00".concat((t>>8*r&255).toString(16)).substr(-2)}return n};t.formatUptime=e=>{const t=Math.round(e/1e3),n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),i=t%60;return"".concat((0,o.default)(n,2,"0"),":").concat((0,o.default)(r,2,"0"),":").concat((0,o.default)(i,2,"0"))};const a=e=>(t,n)=>{let{locale:r,tz:o}=n;if(null===i)throw new Error("call setDateTool to set the date tool library, such as: setDateTool(dayjs)");if(!t)return"-";let a=i(t);return o&&(a=a.tz(o)),"undefined"!==typeof r&&(a=a.locale(r)),a.format(e)};function s(){var e;const t=(null===(e=window)||void 0===e?void 0:e.ABT_DEV)||window.ABT;return t&&"function"===typeof t.open?t:null}t.getFontSize=e=>e&&Number(e)>=12?"".concat(Number(e),"px"):"inherit";t.isEthereumDid=e=>{const t=e.replace("did:abt:","");return!!/^(0x)?[0-9a-f]{40}$/i.test(t)};const l=(e,t)=>{if(!t)return e;try{const n=new URL(e,window.location.origin);return Object.keys(t).forEach((e=>{n.searchParams.set(e,t[e])})),n.origin===window.location.origin?n.pathname+n.search:n.href}catch(n){return e}};t.appendParams=l;t.getUserAvatar=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:48;return e&&e.indexOf("/.well-known/service")>=0?l(e,{imageFilter:"resize",w:t,h:t}):e};t.sleep=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((t=>{setTimeout((()=>{t()}),e)}))};t.isUrl=e=>/^https?:\/\//.test(e);const c="__visitor_id";t.getVisitorId=()=>localStorage.getItem(c);t.setVisitorId=e=>{null===e?localStorage.removeItem(c):localStorage.setItem(c,e)}},52010:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.ZP});var r=n(17369)},51909:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.Z});var r=n(178)},74031:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),a=r||o||i,s=a&&(r?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!i&&/Chrome\/(\d+)/.exec(e),p=u&&+u[1],d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),_=/\bCrOS\b/.test(e),E=/win/i.test(t),T=d&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(d=!1,l=!0);var w=b&&(c||d&&(null==T||T<12.11)),k=n||a&&s>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,C=function(e,t){var n=e.className,r=x(t).exec(n);if(r){var o=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return N(e).appendChild(t)}function O(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)o.appendChild(t[i]);return o}function I(e,t,n,r){var o=O(e,t,n,r);return o.setAttribute("role","presentation"),o}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function F(e,t){var n=e.className;x(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!x(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(o){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var R=function(e){e.select()};function j(e){return e.display.wrapper.ownerDocument}function P(e){return j(e).defaultView}function V(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function q(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function U(e,t,n,r,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,a=o||0;;){var s=e.indexOf("\t",i);if(s<0||s>=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}g?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=function(e){try{e.select()}catch(t){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var H=50,G={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},Q={origin:"*mouse"},X={origin:"+move"};function J(e,t,n){for(var r=0,o=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var a=i-r;if(i==e.length||o+a>=t)return r+Math.min(a,t-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=t)return r}}var Y=[""];function $(e){for(;Y.length<=e;)Y.push(K(Y)+" ");return Y[e]}function K(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(e,t,n){for(var r=0,o=n(t);r<e.length&&n(e[r])<=o;)r++;e.splice(r,0,t)}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&q(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&oe(e))||t.test(e):oe(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var o=(t+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}function pe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var o=!1,i=0;i<e.length;++i){var a=e[i];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(t,n,"ltr")}var de=null;function fe(e,t,n){var r;de=null;for(var o=0;o<e.length;++o){var i=e[o];if(i.from<t&&i.to>t)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:de=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:de=o)}return null!=r?r:de}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,p=[],d=0;d<u;++d)p.push(n(e.charCodeAt(d)));for(var f=0,h=c;f<u;++f){var m=p[f];"m"==m?p[f]=h:h=m}for(var g=0,v=c;g<u;++g){var y=p[g];"1"==y&&"r"==v?p[g]="n":i.test(y)&&(v=y,"r"==y&&(p[g]="R"))}for(var b=1,_=p[0];b<u-1;++b){var E=p[b];"+"==E&&"1"==_&&"1"==p[b+1]?p[b]="1":","!=E||_!=p[b+1]||"1"!=_&&"n"!=_||(p[b]=_),_=E}for(var T=0;T<u;++T){var w=p[T];if(","==w)p[T]="N";else if("%"==w){var k=void 0;for(k=T+1;k<u&&"%"==p[k];++k);for(var x=T&&"!"==p[T-1]||k<u&&"1"==p[k]?"1":"N",S=T;S<k;++S)p[S]=x;T=k-1}}for(var C=0,N=c;C<u;++C){var A=p[C];"L"==N&&"1"==A?p[C]="L":i.test(A)&&(N=A)}for(var O=0;O<u;++O)if(o.test(p[O])){var I=void 0;for(I=O+1;I<u&&o.test(p[I]);++I);for(var D="L"==(O?p[O-1]:c),L=D==("L"==(I<u?p[I]:c))?D?"L":"R":c,F=O;F<I;++F)p[F]=L;O=I-1}for(var M,R=[],j=0;j<u;)if(a.test(p[j])){var P=j;for(++j;j<u&&a.test(p[j]);++j);R.push(new l(0,P,j))}else{var V=j,q=R.length,U="rtl"==t?1:0;for(++j;j<u&&"L"!=p[j];++j);for(var B=V;B<j;)if(s.test(p[B])){V<B&&(R.splice(q,0,new l(1,V,B)),q+=U);var z=B;for(++B;B<j&&s.test(p[B]);++B);R.splice(q,0,new l(2,z,B)),q+=U,V=B}else++B;V<j&&R.splice(q,0,new l(1,V,j))}return"ltr"==t&&(1==R[0].level&&(M=e.match(/^\s+/))&&(R[0].from=M[0].length,R.unshift(new l(0,0,M[0].length))),1==K(R).level&&(M=e.match(/\s+$/))&&(K(R).to-=M[0].length,R.push(new l(0,u-M[0].length,u)))),"rtl"==t?R.reverse():R}}();function me(e,t){var n=e.order;return null==n&&(n=e.order=he(e.text,t)),n}var ge=[],ve=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ge).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||ge}function be(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,o=r&&r[t];if(o){var i=z(o,n);i>-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function _e(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,r)}function Ee(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),_e(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function Te(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function we(e,t){return ye(e,t).length>0}function ke(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){xe(e),Se(e)}function Ae(e){return e.target||e.srcElement}function Oe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ie,De,Le=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==Ie){var t=O("span","\u200b");A(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ie=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ie?O("span","\u200b"):O("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=De)return De;var t=A(e,document.createTextNode("A\u062eA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(De=r.right-n.right<3)}var Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),t+=a+1):(n.push(i),t=o+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe=function(){var e=O("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ve=null;function qe(e){if(null!=Ve)return Ve;var t=A(e,O("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Ve=Math.abs(n.left-r.left)>1}var Ue={},Be={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ue[e]=t}function He(e,t){Be[e]=t}function Ge(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=Ge(t);var n=Ue[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if(Qe.hasOwnProperty(t.name)){var o=Qe[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Qe={};function Xe(e,t){q(t,Qe.hasOwnProperty(e)?Qe[e]:Qe[e]={})}function Je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Ye(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t<i){n=o;break}t-=i}return n.lines[t]}function et(e,t,n){var r=[],o=t.line;return e.iter(t.line,n.line+1,(function(e){var i=e.text;o==n.line&&(i=i.slice(0,n.ch)),o==t.line&&(i=i.slice(t.ch)),r.push(i),++o})),r}function tt(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function nt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function rt(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)n+=r.children[o].chunkSize();return n+t.first}function ot(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],i=o.height;if(t<i){e=o;continue e}t-=i,n+=o.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function it(e,t){return t>=e.first&&t<e.first+e.size}function at(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function st(e,t,n){if(void 0===n&&(n=null),!(this instanceof st))return new st(e,t,n);this.line=e,this.ch=t,this.sticky=n}function lt(e,t){return e.line-t.line||e.ch-t.ch}function ct(e,t){return e.sticky==t.sticky&&0==lt(e,t)}function ut(e){return st(e.line,e.ch)}function pt(e,t){return lt(e,t)<0?t:e}function dt(e,t){return lt(e,t)<0?e:t}function ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return st(e.first,0);var n=e.first+e.size-1;return t.line>n?st(n,Ze(e,n).text.length):mt(t,Ze(e,t.line).text.length)}function mt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function gt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ht(e,t[r]);return n}Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ke.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var vt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function bt(e,t,n,r){var o=[e.state.modeGen],i={};Nt(e,t.text,e.doc.mode,n,(function(e,t){return o.push(e,t)}),i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Nt(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=o[l];r>e&&o.splice(l,1,e,o[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)o.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"overlay "+t}}),i),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function _t(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Et(e,rt(t)),o=t.text.length>e.options.maxHighlightLength&&Je(e.doc.mode,r.state),i=bt(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Et(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new yt(r,!0,t);var i=At(e,t,n),a=i>r.first&&Ze(r,i-1).stateAfter,s=a?yt.fromSaved(r,a,i):new yt(r,$e(r.mode),i);return r.iter(i,t,(function(n){Tt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&r<o.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function Tt(e,t,n,r){var o=e.doc.mode,i=new Ke(t,e.options.tabSize,n);for(i.start=i.pos=r||0,""==t&&wt(o,n.state);!i.eol();)kt(o,i,n.state),i.start=i.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ye(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function kt(e,t,n,r){for(var o=0;o<10;o++){r&&(r[0]=Ye(e,n).mode);var i=e.token(t,n);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,n){return t instanceof vt?new yt(e,Je(e.mode,t.state),n,t.lookAhead):new yt(e,Je(e.mode,t),n)},yt.prototype.save=function(e){var t=!1!==e?Je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var o,i,a=e.doc,s=a.mode,l=Ze(a,(t=ht(a,t)).line),c=Et(e,t.line,n),u=new Ke(l.text,e.options.tabSize,c);for(r&&(i=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=kt(s,u,c.state),r&&i.push(new xt(u,o,Je(a.mode,c.state)));return r?i:new xt(u,o,c.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Nt(e,t,n,r,o,i,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,p=new Ke(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&Ct(wt(n,r.state),i);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,a&&Tt(e,t,r,p.pos),p.pos=t.length,l=null):l=Ct(kt(n,p,r.state,d),i),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<p.start;)o(c=Math.min(p.start,c+5e3),u);u=l}p.start=p.pos}for(;c<p.pos;){var h=Math.min(p.pos,c+5e3);o(h,u),c=h}}function At(e,t,n){for(var r,o,i=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=i.first)return i.first;var l=Ze(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof vt?c.lookAhead:0)<=i.modeFrontier))return s;var u=U(l.text,null,e.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var o=Ze(e,r).stateAfter;if(o&&(!(o instanceof vt)||r+o.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var It=!1,Dt=!1;function Lt(){It=!0}function Ft(){Dt=!0}function Mt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Pt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Vt(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t)||i.from==t&&"bookmark"==a.type&&(!n||!i.marker.insertLeft)){var s=null==i.to||(a.inclusiveRight?i.to>=t:i.to>t);(r||(r=[])).push(new Mt(a,i.from,s?null:i.to))}}return r}function qt(e,t,n){var r;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.to||(a.inclusiveRight?i.to>=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t);(r||(r=[])).push(new Mt(a,s?null:i.from-t,null==i.to?null:i.to-t))}}return r}function Ut(e,t){if(t.full)return null;var n=it(e,t.from.line)&&Ze(e,t.from.line).markedSpans,r=it(e,t.to.line)&&Ze(e,t.to.line).markedSpans;if(!n&&!r)return null;var o=t.from.ch,i=t.to.ch,a=0==lt(t.from,t.to),s=Vt(n,o,a),l=qt(r,i,a),c=1==t.text.length,u=K(t.text).length+(c?o:0);if(s)for(var p=0;p<s.length;++p){var d=s[p];if(null==d.to){var f=Rt(l,d.marker);f?c&&(d.to=null==f.to?null:f.to+u):d.to=o}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=u),null==m.from?Rt(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Bt(s)),l&&l!=s&&(l=Bt(l));var g=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Mt(s[b].marker,null,null));for(var _=0;_<y;++_)g.push(v);g.push(l)}return g}function Bt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function zt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var o=[{from:t,to:n}],i=0;i<r.length;++i)for(var a=r[i],s=a.find(0),l=0;l<o.length;++l){var c=o[l];if(!(lt(c.to,s.from)<0||lt(c.from,s.to)>0)){var u=[l,1],p=lt(c.from,s.from),d=lt(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Gt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Wt(e){return e.inclusiveLeft?-1:0}function Qt(e){return e.inclusiveRight?1:0}function Xt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),o=t.find(),i=lt(r.from,o.from)||Wt(e)-Wt(t);if(i)return-i;var a=lt(r.to,o.to)||Qt(e)-Qt(t);return a||t.id-e.id}function Jt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var o=void 0,i=0;i<r.length;++i)(o=r[i]).marker.collapsed&&null==(t?o.from:o.to)&&(!n||Xt(n,o.marker)<0)&&(n=o.marker);return n}function Yt(e){return Jt(e,!0)}function $t(e){return Jt(e,!1)}function Kt(e,t){var n,r=Dt&&e.markedSpans;if(r)for(var o=0;o<r.length;++o){var i=r[o];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!n||Xt(n,i.marker)<0)&&(n=i.marker)}return n}function Zt(e,t,n,r,o){var i=Ze(e,t),a=Dt&&i.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=lt(c.from,n)||Wt(l.marker)-Wt(o),p=lt(c.to,r)||Qt(l.marker)-Qt(o);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?lt(c.to,n)>=0:lt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?lt(c.from,r)<=0:lt(c.from,r)<0)))return!0}}}function en(e){for(var t;t=Yt(e);)e=t.find(-1,!0).line;return e}function tn(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function nn(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function rn(e,t){var n=Ze(e,t),r=en(n);return n==r?t:rt(r)}function on(e,t){if(t>e.lastLine())return t;var n,r=Ze(e,t);if(!an(e,r))return t;for(;n=$t(r);)r=n.find(1,!0).line;return rt(r)+1}function an(e,t){var n=Dt&&t.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)if((r=n[o]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&sn(e,t,r))return!0}}function sn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return sn(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var o=void 0,i=0;i<t.markedSpans.length;++i)if((o=t.markedSpans[i]).marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&sn(e,t,o))return!0}function ln(e){for(var t=0,n=(e=en(e)).parent,r=0;r<n.lines.length;++r){var o=n.lines[r];if(o==e)break;t+=o.height}for(var i=n.parent;i;i=(n=i).parent)for(var a=0;a<i.children.length;++a){var s=i.children[a];if(s==n)break;t+=s.height}return t}function cn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Yt(r);){var o=t.find(0,!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=e;t=$t(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function un(e){var t=e.display,n=e.doc;t.maxLine=Ze(n,n.first),t.maxLineLength=cn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=cn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var pn=function(e,t,n){this.text=e,Gt(this,t),this.height=n?n(this):1};function dn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Gt(e,n);var o=r?r(e):1;o!=e.height&&nt(e,o)}function fn(e){e.parent=null,Ht(e)}pn.prototype.lineNo=function(){return rt(this)},ke(pn);var hn={},mn={};function gn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?mn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function vn(e,t){var n=I("span",null,null,l?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;r.pos=0,r.addToken=bn,Me(e.display.measure)&&(a=me(i,e.doc.direction))&&(r.addToken=En(r.addToken,a)),r.map=[],wn(i,r,_t(e,i,t!=e.display.externalMeasured&&rt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=M(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=M(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Fe(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return _e(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function yn(e){var t=O("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function bn(e,t,n,r,o,i,l){if(t){var c,u=e.splitSpaces?_n(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){c=document.createDocumentFragment();for(var f=0;;){p.lastIndex=f;var h=p.exec(t),m=h?h.index-f:t.length-f;if(m){var g=document.createTextNode(u.slice(f,f+m));a&&s<9?c.appendChild(O("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(O("span",$(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(O("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(O("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||o||d||i||l){var _=n||"";r&&(_+=r),o&&(_+=o);var E=O("span",[c],_,i);if(l)for(var T in l)l.hasOwnProperty(T)&&"style"!=T&&"class"!=T&&E.setAttribute(T,l[T]);return e.content.appendChild(E)}e.content.appendChild(c)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",o=0;o<e.length;o++){var i=e.charAt(o);" "!=i||!n||o!=e.length-1&&32!=e.charCodeAt(o+1)||(i="\xa0"),r+=i,n=" "==i}return r}function En(e,t){return function(n,r,o,i,a,s,l){o=o?o+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>c&&p.from<=c);d++);if(p.to>=u)return e(n,r,o,i,a,s,l);e(n,r.slice(0,p.to-c),o,i,null,s,l),i=null,r=r.slice(p.to-c),c=p.to}}}function Tn(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,l,c,u,p,d,f=o.length,h=0,m=1,g="",v=0;;){if(v==h){l=c=u=s="",d=null,p=null,v=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var E=r[_],T=E.marker;if("bookmark"==T.type&&E.from==h&&T.widgetNode)y.push(T);else if(E.from<=h&&(null==E.to||E.to>h||T.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&v>E.to&&(v=E.to,c=""),T.className&&(l+=" "+T.className),T.css&&(s=(s?s+";":"")+T.css),T.startStyle&&E.from==h&&(u+=" "+T.startStyle),T.endStyle&&E.to==v&&(b||(b=[])).push(T.endStyle,E.to),T.title&&((d||(d={})).title=T.title),T.attributes)for(var w in T.attributes)(d||(d={}))[w]=T.attributes[w];T.collapsed&&(!p||Xt(p.marker,T)<0)&&(p=E)}else E.from>h&&v>E.from&&(v=E.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==v&&(c+=" "+b[k]);if(!p||p.from==h)for(var x=0;x<y.length;++x)Tn(t,0,y[x]);if(p&&(p.from||0)==h){if(Tn(t,(null==p.to?f+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=f)break;for(var S=Math.min(f,v);;){if(g){var C=h+g.length;if(!p){var N=C>S?g.slice(0,S-h):g;t.addToken(t,N,a?a+l:l,u,h+N.length==v?c:"",s,d)}if(C>=S){g=g.slice(S-h),h=S;break}h=C,u=""}g=o.slice(i,i=n[m++]),a=gn(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,o.slice(i,i=n[A]),gn(n[A+1],t.cm.options))}function kn(e,t,n){this.line=t,this.rest=nn(t),this.size=this.rest?rt(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=an(e,t)}function xn(e,t,n){for(var r,o=[],i=t;i<n;i=r){var a=new kn(e.doc,Ze(e.doc,i),i);r=i+a.size,o.push(a)}return o}var Sn=null;function Cn(e){Sn?Sn.ops.push(e):e.ownsGroup=Sn={ops:[e],delayedCallbacks:[]}}function Nn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(n<t.length)}function An(e,t){var n=e.ownsGroup;if(n)try{Nn(n)}finally{Sn=null,t(n)}}var On=null;function In(e,t){var n=ye(e,t);if(n.length){var r,o=Array.prototype.slice.call(arguments,2);Sn?r=Sn.delayedCallbacks:On?r=On:(r=On=[],setTimeout(Dn,0));for(var i=function(e){r.push((function(){return n[e].apply(null,o)}))},a=0;a<n.length;++a)i(a)}}function Dn(){var e=On;On=null;for(var t=0;t<e.length;++t)e[t]()}function Ln(e,t,n,r){for(var o=0;o<t.changes.length;o++){var i=t.changes[o];"text"==i?jn(e,t):"gutter"==i?Vn(e,t,n,r):"class"==i?Pn(e,t):"widget"==i&&qn(e,t,r)}t.changes=null}function Fn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Mn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Fn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Rn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):vn(e,t)}function jn(e,t){var n=t.text.className,r=Rn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Pn(e,t)):n&&(t.text.className=n)}function Pn(e,t){Mn(e,t),t.line.wrapClass?Fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Vn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Fn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var a=Fn(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",at(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=i.hasOwnProperty(c)&&i[c];u&&s.appendChild(O("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function qn(e,t,n){t.alignable&&(t.alignable=null);for(var r=x("CodeMirror-linewidget"),o=t.node.firstChild,i=void 0;o;o=i)i=o.nextSibling,r.test(o.className)&&t.node.removeChild(o);Bn(e,t,n)}function Un(e,t,n,r){var o=Rn(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Pn(e,t),Vn(e,t,n,r),Bn(e,t,r),t.node}function Bn(e,t,n){if(zn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)zn(e,t.rest[r],t,n,!1)}function zn(e,t,n,r,o){if(t.widgets)for(var i=Fn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Hn(l,c,n,r),e.display.input.setUneditable(c),o&&l.above?i.insertBefore(c,n.gutter||n.text):i.appendChild(c),In(l,"redraw")}}function Hn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Gn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Wn(e,t){for(var n=Ae(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Qn(e){return e.lineSpace.offsetTop}function Xn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Jn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Yn(e){return H-e.display.nativeBarWidth}function $n(e){return e.display.scroller.clientWidth-Yn(e)-e.display.barWidth}function Kn(e){return e.display.scroller.clientHeight-Yn(e)-e.display.barHeight}function Zn(e,t,n){var r=e.options.lineWrapping,o=r&&$n(e);if(!t.measure.heights||r&&t.measure.width!=o){var i=t.measure.heights=[];if(r){t.measure.width=o;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function er(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var o=0;o<e.rest.length;o++)if(rt(e.rest[o])>n)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function tr(e,t){var n=rt(t=en(t)),r=e.display.externalMeasured=new kn(e.doc,t,n);r.lineN=n;var o=r.built=vn(e,r);return r.text=o.pre,A(e.display.lineMeasure,o.pre),r}function nr(e,t,n,r){return ir(e,or(e,t),n,r)}function rr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Pr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function or(e,t){var n=rt(t),r=rr(e,n);r&&!r.text?r=null:r&&r.changes&&(Ln(e,r,n,Lr(e)),e.curOp.forceUpdate=!0),r||(r=tr(e,t));var o=er(r,t,n);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function ir(e,t,n,r,o){t.before&&(n=-1);var i,a=n+(r||"");return t.cache.hasOwnProperty(a)?i=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Zn(e,t.view,t.rect),t.hasHeights=!0),(i=ur(e,t,n,r)).bogus||(t.cache[a]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}var ar,sr={left:0,right:0,top:0,bottom:0};function lr(e,t,n){for(var r,o,i,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(o=0,i=1,a="left"):t<l?i=1+(o=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(o=(i=l-s)-1,t>=l&&(a="right")),null!=o){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:o,end:i,collapse:a,coverStart:s,coverEnd:l}}function cr(e,t){var n=sr;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var o=e.length-1;o>=0&&(n=e[o]).left==n.right;o--);return n}function ur(e,t,n,r){var o,i=lr(t.map,n,r),l=i.node,c=i.start,u=i.end,p=i.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&le(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u<i.coverEnd&&le(t.line.text.charAt(i.coverStart+u));)++u;if((o=a&&s<9&&0==c&&u==i.coverEnd-i.coverStart?l.parentNode.getBoundingClientRect():cr(S(l,c,u).getClientRects(),r)).left||o.right||0==c)break;u=c,c-=1,p="right"}a&&s<11&&(o=pr(e.display.measure,o))}else{var f;c>0&&(p=r="right"),o=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+Dr(e.display),top:h.top,bottom:h.bottom}:sr}for(var m=o.top-t.rect.top,g=o.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var _=b?y[b-1]:0,E=y[b],T={left:("right"==p?o.right:o.left)-t.rect.left,right:("left"==p?o.left:o.right)-t.rect.left,top:_,bottom:E};return o.left||o.right||(T.bogus=!0),e.options.singleCursorHeightPerLine||(T.rtop=m,T.rbottom=g),T}function pr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!qe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function dr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function fr(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)dr(e.display.view[t])}function hr(e){fr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function mr(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function gr(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function vr(e){var t=en(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Gn(t[r]));return n}function yr(e,t,n,r,o){if(!o){var i=vr(t);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var a=ln(t);if("local"==r?a+=Qn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:gr(j(e)));var l=s.left+("window"==r?0:mr(j(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function br(e,t,n){if("div"==n)return t;var r=t.left,o=t.top;if("page"==n)r-=mr(j(e)),o-=gr(j(e));else if("local"==n||!n){var i=e.display.sizer.getBoundingClientRect();r+=i.left,o+=i.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:o-a.top}}function _r(e,t,n,r,o){return r||(r=Ze(e.doc,t.line)),yr(e,r,nr(e,r,t.ch,o),n)}function Er(e,t,n,r,o,i){function a(t,a){var s=ir(e,o,t,a?"right":"left",i);return a?s.left=s.right:s.right=s.left,yr(e,r,s,n)}r=r||Ze(e.doc,t.line),o||(o=or(e,r));var s=me(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=fe(s,l,c),d=de,f=u(l,p,"before"==c);return null!=d&&(f.other=u(l,d,"before"!=c)),f}function Tr(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Dr(e.display)*t.ch);var r=Ze(e.doc,t.line),o=ln(r)+Qn(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function wr(e,t,n,r,o){var i=st(e,t,n);return i.xRel=o,r&&(i.outside=r),i}function kr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var o=ot(r,n),i=r.first+r.size-1;if(o>i)return wr(r.first+r.size-1,Ze(r,i).text.length,null,1,1);t<0&&(t=0);for(var a=Ze(r,o);;){var s=Nr(e,a,o,t,n),l=Kt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=Ze(r,o=c.line)}}function xr(e,t,n,r){r-=vr(t);var o=t.text.length,i=ue((function(t){return ir(e,n,t-1).bottom<=r}),o,0);return{begin:i,end:o=ue((function(t){return ir(e,n,t).top>r}),i,o)}}function Sr(e,t,n,r){return n||(n=or(e,t)),xr(e,t,n,yr(e,t,ir(e,n,r),"line").top)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Nr(e,t,n,r,o){o-=ln(t);var i=or(e,t),a=vr(t),s=0,l=t.text.length,c=!0,u=me(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?Or:Ar)(e,t,n,i,u,r,o);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var d,f,h=null,m=null,g=ue((function(t){var n=ir(e,i,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==c;g=h+(b?0:1),f=b?"after":"before",d=y?m.left:m.right}else{c||g!=l&&g!=s||g++,f=0==g?"after":g==t.text.length?"before":ir(e,i,g-(c?1:0)).bottom+a<=o==c?"after":"before";var _=Er(e,st(n,g,f),"line",t,i);d=_.left,v=o<_.top?-1:o>=_.bottom?1:0}return wr(n,g=ce(t.text,g,1),f,v,r-d)}function Ar(e,t,n,r,o,i,a){var s=ue((function(s){var l=o[s],c=1!=l.level;return Cr(Er(e,st(n,c?l.to:l.from,c?"before":"after"),"line",t,r),i,a,!0)}),0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=Er(e,st(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Cr(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function Or(e,t,n,r,o,i,a){var s=xr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,p=null,d=0;d<o.length;d++){var f=o[d];if(!(f.from>=c||f.to<=l)){var h=ir(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=h<i?i-h+1e9:h-i;(!u||p>m)&&(u=f,p=m)}}return u||(u=o[o.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ar){ar=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ar.appendChild(document.createTextNode("x")),ar.appendChild(O("br"));ar.appendChild(document.createTextNode("x"))}A(e.measure,ar);var n=ar.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function Dr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Lr(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:Fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Mr(e){var t=Ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Dr(e.display)-3);return function(o){if(an(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*t:i+t}}function Rr(e){var t=e.doc,n=Mr(e);t.iter((function(e){var t=n(e);t!=e.height&&nt(e,t)}))}function jr(e,t,n,r){var o=e.display;if(!n&&"true"==Ae(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(p){return null}var l,c=kr(e,i,a);if(r&&c.xRel>0&&(l=Ze(e.doc,c.line).text).length==c.ch){var u=U(l,l.length,e.options.tabSize)-l.length;c=st(c.line,Math.max(0,Math.round((i-Jn(e.display).left)/Dr(e.display))-u))}return c}function Pr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Vr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Dt&&rn(e.doc,t)<o.viewTo&&Ur(e);else if(n<=o.viewFrom)Dt&&on(e.doc,n+r)>o.viewFrom?Ur(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Ur(e);else if(t<=o.viewFrom){var i=Br(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):Ur(e)}else if(n>=o.viewTo){var a=Br(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Ur(e)}else{var s=Br(e,t,t,-1),l=Br(e,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(xn(e,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):Ur(e)}var c=o.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(o.externalMeasured=null))}function qr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var i=r.view[Pr(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==z(a,n)&&a.push(n)}}}function Ur(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Br(e,t,n,r){var o,i=Pr(e,t),a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,l=0;l<i;l++)s+=a[l].size;if(s!=t){if(r>0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;rn(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function zr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=xn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=xn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Pr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(xn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Pr(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var o=t[r];o.hidden||o.node&&!o.changes||++n}return n}function Gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Wr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},o=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&Qr(e,u,o)}else(c||e.options.showCursorWhenSelecting)&&Qr(e,l.head,o);c||Jr(e,l,i)}}return r}function Qr(e,t,n){var r=Er(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(O("div","\xa0","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var i=_r(e,t,"div",null,null),a=i.right-i.left;o.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(O("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Xr(e,t){return e.top-t.top||e.left-t.left}function Jr(e,t,n){var r=e.display,o=e.doc,i=document.createDocumentFragment(),a=Jn(e.display),s=a.left,l=Math.max(r.sizerWidth,$n(e)-r.sizer.offsetLeft)-a.right,c="ltr"==o.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),i.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var i,a,p=Ze(o,t),d=p.text.length;function f(n,r){return _r(e,st(t,n),"div",p,r)}function h(t,n,r){var o=Sr(e,p,null,t),i="ltr"==n==("after"==r)?"left":"right";return f("after"==r?o.begin:o.end-(/\s/.test(p.text.charAt(o.end-1))?2:1),i)[i]}var m=me(p,o.direction);return pe(m,n||0,null==r?d:r,(function(e,t,o,p){var g="ltr"==o,v=f(e,g?"left":"right"),y=f(t-1,g?"right":"left"),b=null==n&&0==e,_=null==r&&t==d,E=0==p,T=!m||p==m.length-1;if(y.top-v.top<=3){var w=(c?_:b)&&T,k=(c?b:_)&&E?s:(g?v:y).left,x=w?l:(g?y:v).right;u(k,v.top,x-k,v.bottom)}else{var S,C,N,A;g?(S=c&&b&&E?s:v.left,C=c?l:h(e,o,"before"),N=c?s:h(t,o,"after"),A=c&&_&&T?l:y.right):(S=c?h(e,o,"before"):s,C=!c&&b&&E?l:v.right,N=!c&&_&&T?s:y.left,A=c?h(t,o,"after"):l),u(S,v.top,C-S,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(N,y.top,A-N,y.bottom)}(!i||Xr(v,i)<0)&&(i=v),Xr(y,i)<0&&(i=y),(!a||Xr(v,a)<0)&&(a=v),Xr(y,a)<0&&(a=y)})),{start:i,end:a}}var d=t.from(),f=t.to();if(d.line==f.line)p(d.line,d.ch,f.ch);else{var h=Ze(o,d.line),m=Ze(o,f.line),g=en(h)==en(m),v=p(d.line,d.ch,g?h.text.length+1:null).end,y=p(f.line,g?0:null,f.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(i)}function Yr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||eo(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function $r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Zr(e))}function Kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&eo(e))}),100)}function Zr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(_e(e,"focus",e,t),e.state.focused=!0,F(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Yr(e))}function eo(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function to(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,i=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,p=void 0,d=0;if(!c.hidden){if(o+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;p=f-n,n=f}else{var h=c.node.getBoundingClientRect();p=h.bottom-h.top,!u&&c.text.firstChild&&(d=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=c.line.height-p;if((m>.005||m<-.005)&&(o<r&&(i-=m),nt(c.line,p),no(c.line),c.rest))for(var g=0;g<c.rest.length;g++)no(c.rest[g]);if(d>e.display.sizerWidth){var v=Math.ceil(d/Dr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function no(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ro(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Qn(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=ot(t,r),a=ot(t,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<i?(i=s,a=ot(t,ln(Ze(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(i=ot(t,ln(Ze(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function oo(e,t){if(!Ee(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),o=null,i=n.wrapper.ownerDocument;if(t.top+r.top<0?o=!0:t.bottom+r.top>(i.defaultView.innerHeight||i.documentElement.clientHeight)&&(o=!1),null!=o&&!m){var a=O("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Qn(e.display))+"px;\n height: "+(t.bottom-t.top+Yn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function io(e,t,n,r){var o;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,s=Er(e,t),l=n&&n!=t?Er(e,n):s,c=so(e,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(mo(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(vo(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return o}function ao(e,t){var n=so(e,t);null!=n.scrollTop&&mo(e,n.scrollTop),null!=n.scrollLeft&&vo(e,n.scrollLeft)}function so(e,t){var n=e.display,r=Ir(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Kn(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Xn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<o)a.scrollTop=l?0:t.top;else if(t.bottom>o+i){var u=Math.min(t.top,(c?s:t.bottom)-i);u!=o&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,f=$n(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+p-(h?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function lo(e,t){null!=t&&(fo(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function co(e){fo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function uo(e,t,n){null==t&&null==n||fo(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function po(e,t){fo(e),e.curOp.scrollToPos=t}function fo(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ho(e,Tr(e,t.from),Tr(e,t.to),t.margin))}function ho(e,t,n,r){var o=so(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});uo(e,o.scrollLeft,o.scrollTop)}function mo(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Wo(e,{top:t}),go(e,t,!0),n&&Wo(e),Po(e,100))}function go(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vo(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Yo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yo(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Xn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Yn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var bo=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),ve(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ve(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},bo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bo.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new B,this.disableVert=new B},bo.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},bo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _o=function(){};function Eo(e,t){t||(t=yo(e));var n=e.display.barWidth,r=e.display.barHeight;To(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&to(e),To(e,yo(e)),n=e.display.barWidth,r=e.display.barHeight}function To(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}_o.prototype.update=function(){return{bottom:0,right:0}},_o.prototype.setScrollLeft=function(){},_o.prototype.setScrollTop=function(){},_o.prototype.clear=function(){};var wo={native:bo,null:_o};function ko(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wo[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?vo(e,t):mo(e,t)}),e),e.display.scrollbars.addClass&&F(e.display.wrapper,e.display.scrollbars.addClass)}var xo=0;function So(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++xo,markArrays:null},Cn(e.curOp)}function Co(e){var t=e.curOp;t&&An(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;No(e)}))}function No(e){for(var t=e.ops,n=0;n<t.length;n++)Ao(t[n]);for(var r=0;r<t.length;r++)Oo(t[r]);for(var o=0;o<t.length;o++)Io(t[o]);for(var i=0;i<t.length;i++)Do(t[i]);for(var a=0;a<t.length;a++)Lo(t[a])}function Ao(e){var t=e.cm,n=t.display;Uo(t),e.updateMaxLine&&un(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new qo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Oo(e){e.updatedDisplay=e.mustUpdate&&Ho(e.cm,e.update)}function Io(e){var t=e.cm,n=t.display;e.updatedDisplay&&to(t),e.barMeasure=yo(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=nr(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Yn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-$n(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Do(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&vo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L(j(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Eo(t,e.barMeasure),e.updatedDisplay&&Jo(t,e.barMeasure),e.selectionChanged&&Yr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&$r(e.cm)}function Lo(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Go(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&go(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&vo(t,e.scrollLeft,!0,!0),e.scrollToPos&&oo(t,io(t,ht(r,e.scrollToPos.from),ht(r,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||_e(o[a],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&_e(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&_e(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Fo(e,t){if(e.curOp)return t();So(e);try{return t()}finally{Co(e)}}function Mo(e,t){return function(){if(e.curOp)return t.apply(e,arguments);So(e);try{return t.apply(e,arguments)}finally{Co(e)}}}function Ro(e){return function(){if(this.curOp)return e.apply(this,arguments);So(this);try{return e.apply(this,arguments)}finally{Co(this)}}}function jo(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);So(t);try{return e.apply(this,arguments)}finally{Co(t)}}}function Po(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,V(Vo,e))}function Vo(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Et(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?Je(t.mode,r.state):null,l=bt(e,i,r,!0);s&&(r.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var p=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!p&&d<a.length;++d)p=a[d]!=i.styles[d];p&&o.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=e.options.maxHighlightLength&&Tt(e,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Po(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&Fo(e,(function(){for(var t=0;t<o.length;t++)qr(e,o[t],"text")}))}}var qo=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ro(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=$n(e),this.force=n,this.dims=Lr(e),this.events=[]};function Uo(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yn(e)+"px",t.scrollbarsClipped=!0)}function Bo(e){if(e.hasFocus())return null;var t=L(j(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=P(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function zo(e){if(e&&e.activeElt&&e.activeElt!=L(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Ho(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Ur(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;$o(e)&&(Ur(e),t.dims=Lr(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Dt&&(i=rn(e.doc,i),a=on(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zr(e,i,a),n.viewOffset=ln(Ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Hr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Bo(e);return l>4&&(n.lineDiv.style.display="none"),Qo(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,zo(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Po(e,400)),n.updateLineNumbers=null,!0}function Go(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=$n(e))r&&(t.visible=ro(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Xn(e.display)-Kn(e),n.top)}),t.visible=ro(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ho(e,t))break;to(e);var o=yo(e);Gr(e),Eo(e,o),Jo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wo(e,t){var n=new qo(e,t);if(Ho(e,n)){to(e),Go(e,n);var r=yo(e);Gr(e),Eo(e,r),Jo(e,r),n.finish()}}function Qo(e,t,n){var r=e.display,o=e.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,p=0;p<c.length;p++){var d=c[p];if(d.hidden);else if(d.node&&d.node.parentNode==i){for(;a!=d.node;)a=s(a);var f=o&&null!=t&&t<=u&&d.lineNumber;d.changes&&(z(d.changes,"gutter")>-1&&(f=!1),Ln(e,d,u,n)),f&&(N(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(at(e.options,u)))),a=d.node.nextSibling}else{var h=Un(e,d,u,n);i.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}function Xo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",In(e,"gutterChanged",e)}function Jo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yn(e)+"px"}function Yo(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Fr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=i),n[a].gutterBackground&&(n[a].gutterBackground.style.left=i));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function $o(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=at(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Xo(e.display),!0}return!1}function Ko(e,t){for(var n=[],r=!1,o=0;o<e.length;o++){var i=e[o],a=null;if("string"!=typeof i&&(a=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!t)continue;r=!0}n.push({className:i,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Zo(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var o=n[r],i=o.className,a=o.style,s=t.appendChild(O("div",null,"CodeMirror-gutter "+i));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==i&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Xo(e)}function ei(e){Zo(e.display),Vr(e),Yo(e)}function ti(e,t,r,o){var i=this;this.input=r,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=I("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=I("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var c=I("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[c],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+H+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),u&&p>=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&y||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Ko(o.gutters,o.lineNumbers),Zo(i),r.init(i)}qo.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments)},qo.prototype.finish=function(){for(var e=0;e<this.events.length;e++)_e.apply(null,this.events[e])};var ni=0,ri=null;function oi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ii(e){var t=oi(e);return t.x*=ri,t.y*=ri,t}function ai(e,t){u&&102==p&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=oi(t),o=r.x,i=r.y,a=ri;0===t.deltaMode&&(o=t.deltaX,i=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.clientWidth,h=c.scrollHeight>c.clientHeight;if(o&&f||i&&h){if(i&&b&&l)e:for(var m=t.target,g=s.view;m!=c;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(o&&!n&&!d&&null!=a)return i&&h&&mo(e,Math.max(0,c.scrollTop+i*a)),vo(e,Math.max(0,c.scrollLeft+o*a)),(!i||i&&h)&&xe(t),void(s.wheelStartX=null);if(i&&null!=a){var y=i*a,_=e.doc.scrollTop,E=_+s.wrapper.clientHeight;y<0?_=Math.max(0,_+y-50):E=Math.min(e.doc.height,E+y+50),Wo(e,{top:_,bottom:E})}ni<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=o,s.wheelDY=i,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ri=(ri*ni+n)/(ni+1),++ni)}}),200)):(s.wheelDX+=o,s.wheelDY+=i))}}a?ri=-.53:n?ri=15:u?ri=-.7:f&&(ri=-1/3);var si=function(e,t){this.ranges=e,this.primIndex=t};si.prototype.primary=function(){return this.ranges[this.primIndex]},si.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ct(n.anchor,r.anchor)||!ct(n.head,r.head))return!1}return!0},si.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new li(ut(this.ranges[t].anchor),ut(this.ranges[t].head));return new si(e,this.primIndex)},si.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},si.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(lt(t,r.from())>=0&&lt(e,r.to())<=0)return n}return-1};var li=function(e,t){this.anchor=e,this.head=t};function ci(e,t,n){var r=e&&e.options.selectionsMayTouch,o=t[n];t.sort((function(e,t){return lt(e.from(),t.from())})),n=z(t,o);for(var i=1;i<t.length;i++){var a=t[i],s=t[i-1],l=lt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=dt(s.from(),a.from()),u=pt(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,t.splice(--i,2,new li(p?u:c,p?c:u))}}return new si(t,n)}function ui(e,t){return new si([new li(e,t||e)],0)}function pi(e){return e.text?st(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function di(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return pi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=pi(t).ch-t.to.ch),st(n,r)}function fi(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];n.push(new li(di(o.anchor,t),di(o.head,t)))}return ci(e.cm,n,e.sel.primIndex)}function hi(e,t,n){return e.line==t.line?st(n.line,e.ch-t.ch+n.ch):st(n.line+(e.line-t.line),e.ch)}function mi(e,t,n){for(var r=[],o=st(e.first,0),i=o,a=0;a<t.length;a++){var s=t[a],l=hi(s.from,o,i),c=hi(pi(s),o,i);if(o=s.to,i=c,"around"==n){var u=e.sel.ranges[a],p=lt(u.head,u.anchor)<0;r[a]=new li(p?c:l,p?l:c)}else r[a]=new li(l,l)}return new si(r,e.sel.primIndex)}function gi(e){e.doc.mode=We(e.options,e.doc.modeOption),vi(e)}function vi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Po(e,100),e.state.modeGen++,e.curOp&&Vr(e)}function yi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function bi(e,t,n,r){function o(e){return n?n[e]:null}function i(e,n,o){dn(e,n,o,r),In(e,"change",e,t)}function a(e,t){for(var n=[],i=e;i<t;++i)n.push(new pn(c[i],o(i),r));return n}var s=t.from,l=t.to,c=t.text,u=Ze(e,s.line),p=Ze(e,l.line),d=K(c),f=o(c.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(yi(e,t)){var m=a(0,c.length-1);i(p,p.text,f),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==p)if(1==c.length)i(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),f);else{var g=a(1,c.length-1);g.push(new pn(d+u.text.slice(l.ch),f,r)),i(u,u.text.slice(0,s.ch)+c[0],o(0)),e.insert(s.line+1,g)}else if(1==c.length)i(u,u.text.slice(0,s.ch)+c[0]+p.text.slice(l.ch),o(0)),e.remove(s.line+1,h);else{i(u,u.text.slice(0,s.ch)+c[0],o(0)),i(p,d+p.text.slice(l.ch),f);var v=a(1,c.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}In(e,"change",e,t)}function _i(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=o){var l=i&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function Ei(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Rr(e),gi(e),Ti(e),e.options.direction=t.direction,e.options.lineWrapping||un(e),e.options.mode=t.modeOption,Vr(e)}function Ti(e){("rtl"==e.doc.direction?F:C)(e.display.lineDiv,"CodeMirror-rtl")}function wi(e){Fo(e,(function(){Ti(e),Vr(e)}))}function ki(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function xi(e,t){var n={from:ut(t.from),to:pi(t),text:et(e,t.from,t.to)};return Di(e,n,t.from.line,t.to.line+1),_i(e,(function(e){return Di(e,n,t.from.line,t.to.line+1)}),!0),n}function Si(e){for(;e.length&&K(e).ranges;)e.pop()}function Ci(e,t){return t?(Si(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}function Ni(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Ci(o,o.lastOp==r)))a=K(i.changes),0==lt(t.from,t.to)&&0==lt(t.from,a.to)?a.to=pi(t):i.changes.push(xi(e,t));else{var l=K(o.done);for(l&&l.ranges||Ii(e.sel,o.done),i={changes:[xi(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||_e(e,"historyAdded")}function Ai(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oi(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Ai(e,i,K(o.done),t))?o.done[o.done.length-1]=t:Ii(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Si(o.undone)}function Ii(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Di(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Li(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Fi(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(Li(n[o]));return r}function Mi(e,t){var n=Fi(e,t),r=Ut(e,t);if(!n)return r;if(!r)return n;for(var o=0;o<n.length;++o){var i=n[o],a=r[o];if(i&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<i.length;++c)if(i[c].marker==l.marker)continue e;i.push(l)}else a&&(n[o]=a)}return n}function Ri(e,t,n){for(var r=[],o=0;o<e.length;++o){var i=e[o];if(i.ranges)r.push(n?si.prototype.deepCopy.call(i):i);else{var a=i.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var p in c)(u=p.match(/^spans_(\d+)$/))&&z(t,Number(u[1]))>-1&&(K(s)[p]=c[p],delete c[p])}}}return r}function ji(e,t,n,r){if(r){var o=e.anchor;if(n){var i=lt(t,o)<0;i!=lt(n,o)<0?(o=t,t=n):i!=lt(t,n)<0&&(t=n)}return new li(o,t)}return new li(n||t,t)}function Pi(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Hi(e,new si([ji(e.sel.primary(),t,n,o)],0),r)}function Vi(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)r[i]=ji(e.sel.ranges[i],t[i],null,o);Hi(e,ci(e.cm,r,e.sel.primIndex),n)}function qi(e,t,n,r){var o=e.sel.ranges.slice(0);o[t]=n,Hi(e,ci(e.cm,o,e.sel.primIndex),r)}function Ui(e,t,n,r){Hi(e,ui(t,n),r)}function Bi(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new li(ht(e,t[n].anchor),ht(e,t[n].head))},origin:n&&n.origin};return _e(e,"beforeSelectionChange",e,r),e.cm&&_e(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ci(e.cm,r.ranges,r.ranges.length-1):t}function zi(e,t,n){var r=e.history.done,o=K(r);o&&o.ranges?(r[r.length-1]=t,Gi(e,t,n)):Hi(e,t,n)}function Hi(e,t,n){Gi(e,t,n),Oi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Gi(e,t,n){(we(e,"beforeSelectionChange")||e.cm&&we(e.cm,"beforeSelectionChange"))&&(t=Bi(e,t,n));var r=n&&n.bias||(lt(t.primary().head,e.sel.primary().head)<0?-1:1);Wi(e,Xi(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||co(e.cm)}function Wi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Te(e.cm)),In(e,"cursorActivity",e))}function Qi(e){Wi(e,Xi(e,e.sel,null,!1))}function Xi(e,t,n,r){for(var o,i=0;i<t.ranges.length;i++){var a=t.ranges[i],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],l=Yi(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:Yi(e,a.head,s&&s.head,n,r);(o||l!=a.anchor||c!=a.head)&&(o||(o=t.ranges.slice(0,i)),o[i]=new li(l,c))}return o?ci(e.cm,o,t.primIndex):t}function Ji(e,t,n,r,o){var i=Ze(e,t.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var s=i.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(o&&(_e(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(p=$i(e,p,-r,p&&p.line==t.line?i:null)),p&&p.line==t.line&&(d=lt(p,n))&&(r<0?d<0:d>0))return Ji(e,p,t,r,o)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=$i(e,f,r,f.line==t.line?i:null)),f?Ji(e,f,t,r,o):null}}return t}function Yi(e,t,n,r,o){var i=r||1,a=Ji(e,t,n,i,o)||!o&&Ji(e,t,n,i,!0)||Ji(e,t,n,-i,o)||!o&&Ji(e,t,n,-i,!0);return a||(e.cantEdit=!0,st(e.first,0))}function $i(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,st(t.line-1)):null:n>0&&t.ch==(r||Ze(e,t.line)).text.length?t.line<e.first+e.size-1?st(t.line+1,0):null:new st(t.line,t.ch+n)}function Ki(e){e.setSelection(st(e.firstLine(),0),st(e.lastLine()),W)}function Zi(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,o,i){t&&(r.from=ht(e,t)),n&&(r.to=ht(e,n)),o&&(r.text=o),void 0!==i&&(r.origin=i)}),_e(e,"beforeChange",e,r),e.cm&&_e(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ea(e,t,n){if(e.cm){if(!e.cm.curOp)return Mo(e.cm,ea)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"))||(t=Zi(e,t,!0))){var r=It&&!n&&zt(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)ta(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else ta(e,t)}}function ta(e,t){if(1!=t.text.length||""!=t.text[0]||0!=lt(t.from,t.to)){var n=fi(e,t);Ni(e,t,n,e.cm?e.cm.curOp.id:NaN),oa(e,t,n,Ut(e,t));var r=[];_i(e,(function(e,n){n||-1!=z(r,e.history)||(ca(e.history,t),r.push(e.history)),oa(e,t,null,Ut(e,t))}))}}function na(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,l="undo"==t?i.undone:i.done,c=0;c<s.length&&(o=s[c],n?!o.ranges||o.equals(e.sel):o.ranges);c++);if(c!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(o=s.pop()).ranges){if(r)return void s.push(o);break}if(Ii(o,l),n&&!o.equals(e.sel))return void Hi(e,o,{clearRedo:!1});a=o}var u=[];Ii(a,l),l.push({changes:u,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var p=we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"),d=function(n){var r=o.changes[n];if(r.origin=t,p&&!Zi(e,r,!1))return s.length=0,{};u.push(xi(e,r));var i=n?fi(e,r):K(s);oa(e,r,i,Mi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:pi(r)});var a=[];_i(e,(function(e,t){t||-1!=z(a,e.history)||(ca(e.history,r),a.push(e.history)),oa(e,r,null,Mi(e,r))}))},f=o.changes.length-1;f>=0;--f){var h=d(f);if(h)return h.v}}}}function ra(e,t){if(0!=t&&(e.first+=t,e.sel=new si(Z(e.sel.ranges,(function(e){return new li(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Vr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)qr(e.cm,r,"gutter")}}function oa(e,t,n,r){if(e.cm&&!e.cm.curOp)return Mo(e.cm,oa)(e,t,n,r);if(t.to.line<e.first)ra(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);ra(e,o),t={from:st(e.first,0),to:st(t.to.line+o,t.to.ch),text:[K(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:st(i,Ze(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),n||(n=fi(e,t)),e.cm?ia(e.cm,t,r):bi(e,t,r),Gi(e,n,W),e.cantEdit&&Yi(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function ia(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,l=i.line;e.options.lineWrapping||(l=rt(en(Ze(r,i.line))),r.iter(l,a.line+1,(function(e){if(e==o.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Te(e),bi(r,t,n,Mr(e)),e.options.lineWrapping||(r.iter(l,i.line+t.text.length,(function(e){var t=cn(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Ot(r,i.line),Po(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?Vr(e):i.line!=a.line||1!=t.text.length||yi(e.doc,t)?Vr(e,i.line,a.line+1,c):qr(e,i.line,"text");var u=we(e,"changes"),p=we(e,"change");if(p||u){var d={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&In(e,"change",e,d),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function aa(e,t,n,r,o){var i;r||(r=n),lt(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),ea(e,{from:n,to:r,text:t,origin:o})}function sa(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function la(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o],a=!0;if(i.ranges){i.copied||((i=e[o]=i.deepCopy()).copied=!0);for(var s=0;s<i.ranges.length;s++)sa(i.ranges[s].anchor,t,n,r),sa(i.ranges[s].head,t,n,r)}else{for(var l=0;l<i.changes.length;++l){var c=i.changes[l];if(n<c.from.line)c.from=st(c.from.line+r,c.from.ch),c.to=st(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,o+1),o=0)}}}function ca(e,t){var n=t.from.line,r=t.to.line,o=t.text.length-(r-n)-1;la(e.done,n,r,o),la(e.undone,n,r,o)}function ua(e,t,n,r){var o=t,i=t;return"number"==typeof t?i=Ze(e,ft(e,t)):o=rt(t),null==o?null:(r(i,o)&&e.cm&&qr(e.cm,o,n),i)}function pa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function da(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var o=e[r];t+=o.chunkSize(),n+=o.height,o.parent=this}this.size=t,this.height=n,this.parent=null}li.prototype.from=function(){return dt(this.anchor,this.head)},li.prototype.to=function(){return pt(this.anchor,this.head)},li.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var o=this.lines[n];this.height-=o.height,fn(o),In(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},da.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(e<o){var i=Math.min(t,o-e),a=r.height;if(r.removeInner(e,i),this.height-=a-r.height,o==i&&(this.children.splice(n--,1),r.parent=null),0==(t-=i))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof pa))){var s=[];this.collapse(s),this.children=[new pa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(e<=i){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,s=a;s<o.lines.length;){var l=new pa(o.lines.slice(s,s+=25));o.height-=l.height,this.children.splice(++r,0,l),l.parent=this}o.lines=o.lines.slice(0,a),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new da(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new da(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(e<i){var a=Math.min(t,i-e);if(o.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=i}}};var fa=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ha(e,t,n){ln(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&lo(e,n)}function ma(e,t,n,r){var o=new fa(e,n,r),i=e.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),ua(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length,Math.max(0,o.insertAt)),0,o),o.line=t,i&&!an(e,t)){var r=ln(t)<e.scrollTop;nt(t,t.height+Gn(o)),r&&lo(i,o.height),i.curOp.forceUpdate=!0}return!0})),i&&In(i,"lineWidgetAdded",i,o,"number"==typeof t?t:rt(t)),o}fa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=rt(n);if(null!=r&&t){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(n.widgets=null);var i=Gn(this);nt(n,Math.max(0,n.height-i)),e&&(Fo(e,(function(){ha(e,n,-i),qr(e,r,"widget")})),In(e,"lineWidgetCleared",e,this,r))}},fa.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var o=Gn(this)-t;o&&(an(this.doc,r)||nt(r,r.height+o),n&&Fo(n,(function(){n.curOp.forceUpdate=!0,ha(n,r,o),In(n,"lineWidgetChanged",n,e,rt(r))})))},ke(fa);var ga=0,va=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ga};function ya(e,t,n,r,o){if(r&&r.shared)return _a(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return Mo(e.cm,ya)(e,t,n,r,o);var i=new va(e,o),a=lt(t,n);if(r&&q(r,i,!1),a>0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=I("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Zt(e,t.line,t,n,i)||t.line!=n.line&&Zt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ft()}i.addToHistory&&Ni(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&i.collapsed&&!c.options.lineWrapping&&en(r)==c.display.maxLine&&(s=!0),i.collapsed&&l!=t.line&&nt(r,0),Pt(r,new Mt(i,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){an(e,t)&&nt(t,0)})),i.clearOnEnter&&ve(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Lt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++ga,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)Vr(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)qr(c,u,"text");i.atomic&&Qi(c.doc),In(c,"markerAdded",c,i)}return i}va.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&So(e),we(this,"clear")){var n=this.find();n&&In(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;i<this.lines.length;++i){var a=this.lines[i],s=Rt(a.markedSpans,this);e&&!this.collapsed?qr(e,rt(a),"text"):e&&(null!=s.to&&(o=rt(a)),null!=s.from&&(r=rt(a))),a.markedSpans=jt(a.markedSpans,s),null==s.from&&this.collapsed&&!an(this.doc,a)&&e&&nt(a,Ir(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=en(this.lines[l]),u=cn(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Vr(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qi(e.doc)),e&&In(e,"markerCleared",e,this,r,o),t&&Co(e),this.parent&&this.parent.clear()}},va.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o<this.lines.length;++o){var i=this.lines[o],a=Rt(i.markedSpans,this);if(null!=a.from&&(n=st(t?i:rt(i),a.from),-1==e))return n;if(null!=a.to&&(r=st(t?i:rt(i),a.to),1==e))return r}return n&&{from:n,to:r}},va.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Fo(r,(function(){var o=t.line,i=rt(t.line),a=rr(r,i);if(a&&(dr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!an(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var l=Gn(n)-s;l&&nt(o,o.height+l)}In(r,"markerChanged",r,e)}))},va.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},va.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ke(va);var ba=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _a(e,t,n,r,o){(r=q(r)).shared=!1;var i=[ya(e,t,n,r,o)],a=i[0],s=r.widgetNode;return _i(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(ya(e,ht(e,t),ht(e,n),r,o));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=K(i)})),new ba(i,a)}function Ea(e){return e.findMarks(st(e.first,0),e.clipPos(st(e.lastLine())),(function(e){return e.parent}))}function Ta(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r.find(),i=e.clipPos(o.from),a=e.clipPos(o.to);if(lt(i,a)){var s=ya(e,i,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function wa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];_i(n.primary.doc,(function(e){return r.push(e)}));for(var o=0;o<n.markers.length;o++){var i=n.markers[o];-1==z(r,i.doc)&&(i.parent=null,n.markers.splice(o--,1))}},n=0;n<e.length;n++)t(n)}ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();In(this,"clear")}},ba.prototype.find=function(e,t){return this.primary.find(e,t)},ke(ba);var ka=0,xa=function(e,t,n,r,o){if(!(this instanceof xa))return new xa(e,t,n,r,o);null==n&&(n=0),da.call(this,[new pa([new pn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=st(n,0);this.sel=ui(i),this.history=new ki(null),this.id=++ka,this.modeOption=t,this.lineSep=r,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),bi(this,{from:i,to:i,text:e}),Hi(this,ui(i),W)};xa.prototype=ne(da.prototype,{constructor:xa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=tt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:jo((function(e){var t=st(this.first,0),n=this.first+this.size-1;ea(this,{from:t,to:st(n,Ze(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&uo(this.cm,0,0),Hi(this,ui(t),W)})),replaceRange:function(e,t,n,r){aa(this,e,t=ht(this,t),n=n?ht(this,n):t,r)},getRange:function(e,t,n){var r=et(this,ht(this,e),ht(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(it(this,e))return Ze(this,e)},getLineNumber:function(e){return rt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ze(this,e)),en(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jo((function(e,t,n){Ui(this,ht(this,"number"==typeof e?st(e,t||0):e),null,n)})),setSelection:jo((function(e,t,n){Ui(this,ht(this,e),ht(this,t||e),n)})),extendSelection:jo((function(e,t,n){Pi(this,ht(this,e),t&&ht(this,t),n)})),extendSelections:jo((function(e,t){Vi(this,gt(this,e),t)})),extendSelectionsBy:jo((function(e,t){Vi(this,gt(this,Z(this.sel.ranges,e)),t)})),setSelections:jo((function(e,t,n){if(e.length){for(var r=[],o=0;o<e.length;o++)r[o]=new li(ht(this,e[o].anchor),ht(this,e[o].head||e[o].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Hi(this,ci(this.cm,r,t),n)}})),addSelection:jo((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new li(ht(this,e),ht(this,t||e))),Hi(this,ci(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var o=et(this,n[r].from(),n[r].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var o=et(this,n[r].from(),n[r].to());!1!==e&&(o=o.join(e||this.lineSeparator())),t[r]=o}return t},replaceSelection:function(e,t,n){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:jo((function(e,t,n){for(var r=[],o=this.sel,i=0;i<o.ranges.length;i++){var a=o.ranges[i];r[i]={from:a.from(),to:a.to(),text:this.splitLines(e[i]),origin:n}}for(var s=t&&"end"!=t&&mi(this,r,t),l=r.length-1;l>=0;l--)ea(this,r[l]);s?zi(this,s):this.cm&&co(this.cm)})),undo:jo((function(){na(this,"undo")})),redo:jo((function(){na(this,"redo")})),undoSelection:jo((function(){na(this,"undo",!0)})),redoSelection:jo((function(){na(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new ki(this.history),_i(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ri(this.history.done),undone:Ri(this.history.undone)}},setHistory:function(e){var t=this.history=new ki(this.history);t.done=Ri(e.done.slice(0),null,!0),t.undone=Ri(e.undone.slice(0),null,!0)},setGutterMarker:jo((function(e,t,n){return ua(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:jo((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ua(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!it(this,e))return null;if(t=e,!(e=Ze(this,e)))return null}else if(null==(t=rt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:jo((function(e,t,n){return ua(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(x(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:jo((function(e,t,n){return ua(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",o=e[r];if(!o)return!1;if(null==n)e[r]=null;else{var i=o.match(x(n));if(!i)return!1;var a=i.index+i[0].length;e[r]=o.slice(0,i.index)+(i.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0}))})),addLineWidget:jo((function(e,t,n){return ma(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ya(this,ht(this,e),ht(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ya(this,e=ht(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ze(this,(e=ht(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];(null==o.from||o.from<=e.ch)&&(null==o.to||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&o==e.line&&e.ch>=l.to||null==l.from&&o!=e.line||null!=l.from&&o==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(o){var i=o.text.length+r;if(i>e)return t=e,!0;e-=i,++n})),ht(this,st(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new xa(tt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new xa(tt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ta(r,Ea(this)),r},unlinkDoc:function(e){if(e instanceof Vs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),wa(Ea(this));break}if(e.history==this.history){var n=[e.id];_i(e,(function(e){return n.push(e.id)}),!0),e.history=new ki(null),e.history.done=Ri(this.history.done,n),e.history.undone=Ri(this.history.undone,n)}},iterLinkedDocs:function(e){_i(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:jo((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&wi(this.cm))}))}),xa.prototype.eachLine=xa.prototype.iter;var Sa=0;function Ca(e){var t=this;if(Oa(t),!Ee(t,e)&&!Wn(t.display,e)){xe(e),a&&(Sa=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),s=0,l=function(){++s==o&&Mo(t,(function(){var e={from:n=ht(t.doc,n),to:n,text:t.doc.splitLines(i.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ea(t.doc,e),zi(t.doc,ui(ht(t.doc,n),ht(t.doc,pi(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(i[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Gi(t.doc,ui(n,n)),d)for(var f=0;f<d.length;++f)aa(t.doc,"",d[f].anchor,d[f].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(h){}}}}function Na(e,t){if(a&&(!e.state.draggingText||+new Date-Sa<100))Ne(t);else if(!Ee(e,t)&&!Wn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Aa(e,t){var n=jr(e,t);if(n){var r=document.createDocumentFragment();Qr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}function Oa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ia(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var o=t[r].CodeMirror;o&&n.push(o)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Da=!1;function La(){Da||(Fa(),Da=!0)}function Fa(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ia(Ma)}),100))})),ve(window,"blur",(function(){return Ia(eo)}))}function Ma(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ra={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"},ja=0;ja<10;ja++)Ra[ja+48]=Ra[ja+96]=String(ja);for(var Pa=65;Pa<=90;Pa++)Ra[Pa]=String.fromCharCode(Pa);for(var Va=1;Va<=12;Va++)Ra[Va+111]=Ra[Va+63235]="F"+Va;var qa={};function Ua(e){var t,n,r,o,i=e.split(/-(?!$)/);e=i[i.length-1];for(var a=0;a<i.length-1;a++){var s=i[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ba(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var o=Z(n.split(" "),Ua),i=0;i<o.length;i++){var a=void 0,s=void 0;i==o.length-1?(s=o.join(" "),a=r):(s=o.slice(0,i+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function za(e,t,n,r){var o=(t=Qa(t)).call?t.call(e,r):t[e];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return za(e,t.fallthrough,n,r);for(var i=0;i<t.fallthrough.length;i++){var a=za(e,t.fallthrough[i],n,r);if(a)return a}}}function Ha(e){var t="string"==typeof e?e:Ra[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ga(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Wa(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ra[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ga(n,e,t))}function Qa(e){return"string"==typeof e?qa[e]:e}function Xa(e,t){for(var n=e.doc.sel.ranges,r=[],o=0;o<n.length;o++){for(var i=t(n[o]);r.length&&lt(i.from,K(r).to)<=0;){var a=r.pop();if(lt(a.from,i.from)<0){i.from=a.from;break}}r.push(i)}Fo(e,(function(){for(var t=r.length-1;t>=0;t--)aa(e.doc,"",r[t].from,r[t].to,"+delete");co(e)}))}function Ja(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ya(e,t,n){var r=Ja(e,t.ch,n);return null==r?null:new st(t.line,r,n<0?"after":"before")}function $a(e,t,n,r,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=me(n,t.doc.direction);if(i){var a,s=o<0?K(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=or(t,n);a=o<0?n.text.length-1:0;var u=ir(t,c,a).top;a=ue((function(e){return ir(t,c,e).top==u}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ja(n,a,1))}else a=o<0?s.to:s.from;return new st(r,a,l)}}return new st(r,o<0?n.text.length:0,o<0?"before":"after")}function Ka(e,t,n,r){var o=me(t,e.doc.direction);if(!o)return Ya(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=fe(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ya(t,n,r);var s,l=function(e,n){return Ja(t,e instanceof st?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||or(e,t),Sr(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,d=l(n,p?1:-1);if(null!=d&&(p?d<=a.to&&d<=u.end:d>=a.from&&d>=u.begin)){var f=p?"before":"after";return new st(n.line,d,f)}}var h=function(e,t,r){for(var i=function(e,t){return t?new st(n.line,l(e,1),"before"):new st(n.line,e,"after")};e>=0&&e<o.length;e+=t){var a=o[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return i(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return i(c,s)}},m=h(i+r,r,u);if(m)return m;var g=r>0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:o.length-1,r,c(g)))?null:m}qa.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"},qa.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"},qa.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"},qa.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"]},qa.default=b?qa.macDefault:qa.pcDefault;var Za={selectAll:Ki,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Xa(e,(function(t){if(t.empty()){var n=Ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:st(t.head.line+1,0)}:{from:t.head,to:st(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Xa(e,(function(t){return{from:st(t.from().line,0),to:ht(e.doc,st(t.to().line+1,0))}}))},delLineLeft:function(e){return Xa(e,(function(e){return{from:st(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Xa(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Xa(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(st(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(st(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return es(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ns(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),X)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),X)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ns(e,t.head):r}),X)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,o=0;o<n.length;o++){var i=n[o].from(),a=U(e.getLine(i.line),i.ch,r);t.push($(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Fo(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var o=t[r].head,i=Ze(e.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new st(o.line,o.ch-1)),o.ch>0)o=new st(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),st(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Ze(e.doc,o.line-1).text;a&&(o=new st(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),st(o.line-1,a.length-1),o,"+transpose"))}n.push(new li(o,o))}e.setSelections(n)}))},newlineAndIndent:function(e){return Fo(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);co(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function es(e,t){var n=Ze(e.doc,t),r=en(n);return r!=n&&(t=rt(r)),$a(!0,e,r,t,1)}function ts(e,t){var n=Ze(e.doc,t),r=tn(n);return r!=n&&(t=rt(r)),$a(!0,e,n,t,-1)}function ns(e,t){var n=es(e,t.line),r=Ze(e.doc,n.line),o=me(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return st(n.line,a?0:i,n.sticky)}return n}function rs(e,t,n){if("string"==typeof t&&!(t=Za[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=G}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function os(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var o=za(t,e.state.keyMaps[r],n,e);if(o)return o}return e.options.extraKeys&&za(t,e.options.extraKeys,n,e)||za(t,e.options.keyMap,n,e)}var is=new B;function as(e,t,n,r){var o=e.state.keySeq;if(o){if(Ha(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:is.set(50,(function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())})),ss(e,o+" "+t,n,r))return!0}return ss(e,t,n,r)}function ss(e,t,n,r){var o=os(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&In(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(xe(n),Yr(e)),!!o}function ls(e,t){var n=Wa(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?as(e,"Shift-"+n,t,(function(t){return rs(e,t,!0)}))||as(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return rs(e,t)})):as(e,n,t,(function(t){return rs(e,t)})))}function cs(e,t,n){return as(e,"'"+n+"'",t,(function(t){return rs(e,t,!0)}))}var us=null;function ps(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=L(j(t)),!Ee(t,e))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var o=ls(t,e);d&&(us=o?r:null,o||88!=r||Pe||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!o&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ds(t)}}function ds(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n))}F(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n)}function fs(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ee(this,e)}function hs(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(Wn(t.display,e)||Ee(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==us)return us=null,void xe(e);if(!d||e.which&&!(e.which<10)||!ls(t,e)){var o=String.fromCharCode(null==r?n:r);"\b"!=o&&(cs(t,e,o)||t.display.input.onKeyPress(e))}}}var ms,gs,vs=400,ys=function(e,t,n){this.time=e,this.pos=t,this.button=n};function bs(e,t){var n=+new Date;return gs&&gs.compare(n,e,t)?(ms=gs=null,"triple"):ms&&ms.compare(n,e,t)?(gs=new ys(n,e,t),ms=null,"double"):(ms=new ys(n,e,t),gs=null,"single")}function _s(e){var t=this,n=t.display;if(!(Ee(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Wn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!As(t,e)){var r=jr(t,e),o=Oe(e),i=r?bs(r,o):"single";P(t).focus(),1==o&&t.state.selectingText&&t.state.selectingText(e),r&&Es(t,o,r,i,e)||(1==o?r?ws(t,r,i,e):Ae(e)==n.scroller&&xe(e):2==o?(r&&Pi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==o&&(k?t.display.input.onContextMenu(e):Kr(t)))}}function Es(e,t,n,r,o){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),as(e,Ga(i=(1==t?"Left":2==t?"Middle":"Right")+i,o),o,(function(t){if("string"==typeof t&&(t=Za[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=G}finally{e.state.suppressEdits=!1}return r}))}function Ts(e,t,n){var r=e.getOption("configureMouse"),o=r?r(e,t,n):{};if(null==o.unit){var i=_?n.shiftKey&&n.metaKey:n.altKey;o.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==o.extend||e.doc.extend)&&(o.extend=e.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=b?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(b?n.altKey:n.ctrlKey)),o}function ws(e,t,n,r){a?setTimeout(V($r,e),0):e.curOp.focus=L(j(e));var o,i=Ts(e,n,r),s=e.doc.sel;e.options.dragDrop&&Le&&!e.isReadOnly()&&"single"==n&&(o=s.contains(t))>-1&&(lt((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(lt(o.to(),t)>0||t.xRel<0)?ks(e,r,t,i):Ss(e,r,t,i)}function ks(e,t,n,r){var o=e.display,i=!1,c=Mo(e,(function(t){l&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Kr(e)),be(o.wrapper.ownerDocument,"mouseup",c),be(o.wrapper.ownerDocument,"mousemove",u),be(o.scroller,"dragstart",p),be(o.scroller,"drop",c),i||(xe(t),r.addNew||Pi(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return i=!0};l&&(o.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ve(o.wrapper.ownerDocument,"mouseup",c),ve(o.wrapper.ownerDocument,"mousemove",u),ve(o.scroller,"dragstart",p),ve(o.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}function xs(e,t,n){if("char"==n)return new li(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new li(st(t.line,0),ht(e.doc,st(t.line+1,0)));var r=n(e,t);return new li(r.from,r.to)}function Ss(e,t,n,r){a&&Kr(e);var o=e.display,i=e.doc;xe(t);var s,l,c=i.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=i.sel.contains(n),s=l>-1?u[l]:new li(n,n)):(s=i.sel.primary(),l=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new li(n,n)),n=jr(e,t,!0,!0),l=-1;else{var p=xs(e,n,r.unit);s=r.extend?ji(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=u.length,Hi(i,ci(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Hi(i,ci(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):qi(i,l,s,Q):(l=0,Hi(i,new si([s],0),Q),c=i.sel);var d=n;function f(t){if(0!=lt(d,t))if(d=t,"rectangle"==r.unit){for(var o=[],a=e.options.tabSize,u=U(Ze(i,n.line).text,n.ch,a),p=U(Ze(i,t.line).text,t.ch,a),f=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ze(i,m).text,y=J(v,f,a);f==h?o.push(new li(st(m,y),st(m,y))):v.length>y&&o.push(new li(st(m,y),st(m,J(v,h,a))))}o.length||o.push(new li(n,n)),Hi(i,ci(e,c.ranges.slice(0,l).concat(o),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,E=xs(e,t,r.unit),T=_.anchor;lt(E.anchor,T)>0?(b=E.head,T=dt(_.from(),E.anchor)):(b=E.anchor,T=pt(_.to(),E.head));var w=c.ranges.slice(0);w[l]=Cs(e,new li(ht(i,T),b)),Hi(i,ci(e,w,l),Q)}}var h=o.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=jr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=lt(a,d)){e.curOp.focus=L(j(e)),f(a);var s=ro(o,i);(a.line>=s.to||a.line<s.from)&&setTimeout(Mo(e,(function(){m==n&&g(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(Mo(e,(function(){m==n&&(o.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(xe(t),o.input.focus()),be(o.wrapper.ownerDocument,"mousemove",y),be(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=Mo(e,(function(e){0!==e.buttons&&Oe(e)?g(e):v(e)})),b=Mo(e,v);e.state.selectingText=b,ve(o.wrapper.ownerDocument,"mousemove",y),ve(o.wrapper.ownerDocument,"mouseup",b)}function Cs(e,t){var n=t.anchor,r=t.head,o=Ze(e.doc,n.line);if(0==lt(n,r)&&n.sticky==r.sticky)return t;var i=me(o);if(!i)return t;var a=fe(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=fe(i,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var d=i[c+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new li(new st(n.line,h,m),r)}function Ns(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(u){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!we(e,n))return Ce(t);i-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=o)return _e(e,n,e,ot(e.doc,i),e.display.gutterSpecs[l].className,t),Ce(t)}}function As(e,t){return Ns(e,t,"gutterClick",!0)}function Os(e,t){Wn(e.display,t)||Is(e,t)||Ee(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Is(e,t){return!!we(e,"gutterContextMenu")&&Ns(e,t,"gutterContextMenu",!1)}function Ds(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}ys.prototype.compare=function(e,t,n){return this.time+vs>e&&0==lt(t,this.pos)&&n==this.button};var Ls={toString:function(){return"CodeMirror.Init"}},Fs={},Ms={};function Rs(e){var t=e.optionHandlers;function n(n,r,o,i){e.defaults[n]=r,o&&(t[n]=i?function(e,t,n){n!=Ls&&o(e,t,n)}:o)}e.defineOption=n,e.Init=Ls,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,gi(e)}),!0),n("indentUnit",2,gi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){vi(e),hr(e),Vr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(st(r,i))}r++}));for(var o=n.length-1;o>=0;o--)aa(e.doc,t,n[o],st(n[o].line,n[o].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ls&&e.refresh()})),n("specialCharPlaceholder",yn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ds(e),ei(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Qa(t),o=n!=Ls&&Qa(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ps,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ko(t,e.options.lineNumbers),ei(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Fr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Eo(e)}),!0),n("scrollbarStyle","native",(function(e){ko(e),Eo(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ko(e.options.gutters,t),ei(e)}),!0),n("firstLineNumber",1,ei,!0),n("lineNumberFormatter",(function(e){return e}),ei,!0),n("showCursorWhenSelecting",!1,Gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(eo(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,js),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Gr,!0),n("singleCursorHeightPerLine",!0,Gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,vi,!0),n("addModeClass",!1,vi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,vi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function js(e,t,n){if(!t!=!(n&&n!=Ls)){var r=e.display.dragFunctions,o=t?ve:be;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Ps(e){e.options.lineWrapping?(F(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),un(e)),Rr(e),Vr(e),hr(e),setTimeout((function(){return Eo(e)}),100)}function Vs(e,t){var n=this;if(!(this instanceof Vs))return new Vs(e,t);this.options=t=t?q(t):{},q(Fs,t,!1);var r=t.value;"string"==typeof r?r=new xa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Vs.inputStyles[t.inputStyle](this),i=this.display=new ti(e,r,o,t);for(var c in i.wrapper.CodeMirror=this,Ds(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ko(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 B,keySeq:null,specialChars:null},t.autofocus&&!y&&i.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),qs(this),La(),So(this),this.curOp.forceUpdate=!0,Ei(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Zr(n)}),20):eo(this),Ms)Ms.hasOwnProperty(c)&&Ms[c](this,t[c],Ls);$o(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Us.length;++u)Us[u](this);Co(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}function qs(e){var t=e.display;ve(t.scroller,"mousedown",Mo(e,_s)),ve(t.scroller,"dblclick",a&&s<11?Mo(e,(function(t){if(!Ee(e,t)){var n=jr(e,t);if(n&&!As(e,t)&&!Wn(e.display,t)){xe(t);var r=e.findWordAt(n);Pi(e.doc,r.anchor,r.head)}}})):function(t){return Ee(e,t)||xe(t)}),ve(t.scroller,"contextmenu",(function(t){return Os(e,t)})),ve(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Os(e,n)}));var n,r={end:0};function o(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function i(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ve(t.scroller,"touchstart",(function(o){if(!Ee(e,o)&&!i(o)&&!As(e,o)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Wn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=e.coordsChar(t.activeTouch,"page");i=!r.prev||l(r,r.prev)?new li(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new li(st(a.line,0),ht(e.doc,st(a.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),xe(n)}o()})),ve(t.scroller,"touchcancel",o),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mo(e,t.scroller.scrollTop),vo(e,t.scroller.scrollLeft,!0),_e(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return ai(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return ai(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Ee(e,t)||Ne(t)},over:function(t){Ee(e,t)||(Aa(e,t),Ne(t))},start:function(t){return Na(e,t)},drop:Mo(e,Ca),leave:function(t){Ee(e,t)||Oa(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return fs.call(e,t)})),ve(c,"keydown",Mo(e,ps)),ve(c,"keypress",Mo(e,hs)),ve(c,"focus",(function(t){return Zr(e,t)})),ve(c,"blur",(function(t){return eo(e,t)}))}Vs.defaults=Fs,Vs.optionHandlers=Ms;var Us=[];function Bs(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=Et(e,t).state:n="prev");var a=e.options.tabSize,s=Ze(i,t),l=U(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(u.length),s.text))==G||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?U(Ze(i,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var p="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)d+=a,p+="\t";if(d<c&&(p+=$(c-d)),p!=u)return aa(i,p,st(t,0),st(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<i.sel.ranges.length;h++){var m=i.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var g=st(t,u.length);qi(i,h,new li(g,g));break}}}Vs.defineInitHook=function(e){return Us.push(e)};var zs=null;function Hs(e){zs=e}function Gs(e,t,n,r,o){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var a=+new Date-200,s="paste"==o||e.state.pasteIncoming>a,l=Re(t),c=null;if(s&&r.ranges.length>1)if(zs&&zs.text.join("\n")==t){if(r.ranges.length%zs.text.length==0){c=[];for(var u=0;u<zs.text.length;u++)c.push(i.splitLines(zs.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Z(l,(function(e){return[e]})));for(var p=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var f=r.ranges[d],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=st(h.line,h.ch-n):e.state.overwrite&&!s?m=st(m.line,Math.min(Ze(i,m.line).text.length,m.ch+K(l).length)):s&&zs&&zs.lineWise&&zs.text.join("\n")==l.join("\n")&&(h=m=st(h.line,0)));var g={from:h,to:m,text:c?c[d%c.length]:l,origin:o||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ea(e.doc,g),In(e,"inputRead",e,g)}t&&!s&&Qs(e,t),co(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ws(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Fo(t,(function(){return Gs(t,n,0,null,"paste")})),!0}function Qs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s<i.electricChars.length;s++)if(t.indexOf(i.electricChars.charAt(s))>-1){a=Bs(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ze(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Bs(e,o.head.line,"smart"));a&&In(e,"electricInput",e,o.head.line)}}}function Xs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,i={anchor:st(o,0),head:st(o+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function Js(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Ys(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function $s(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){P(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Mo(this,t[e])(this,n,o),_e(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Qa(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ro((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Vr(this)})),removeOverlay:Ro((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Vr(this)}})),indentLine:Ro((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),it(this.doc,e)&&Bs(this,e,t,n)})),indentSelection:Ro((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var o=t[r];if(o.empty())o.head.line>n&&(Bs(this,o.head.line,e,!0),n=o.head.line,r==this.doc.sel.primIndex&&co(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Bs(this,l,e);var c=this.doc.sel.ranges;0==i.ch&&t.length==c.length&&c[r].from().ch>0&&qi(this.doc,r,new li(i,c[r].to()),W)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,st(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=_t(this,Ze(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]<i)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var o=n[t],i=this.getModeAt(e);if("string"==typeof i[t])o[i[t]]&&r.push(o[i[t]]);else if(i[t])for(var a=0;a<i[t].length;a++){var s=o[i[t][a]];s&&r.push(s)}else i.helperType&&o[i.helperType]?r.push(o[i.helperType]):o[i.name]&&r.push(o[i.name]);for(var l=0;l<o._global.length;l++){var c=o._global[l];c.pred(i,this)&&-1==z(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return Et(this,(e=ft(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Er(this,null==e?n.head:"object"==typeof e?ht(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return _r(this,ht(this.doc,e),t||"page")},coordsChar:function(e,t){return kr(this,(e=br(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=br(this,{top:e,left:0},t||"page").top,ot(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,o=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,o=!0),r=Ze(this.doc,e)}else r=e;return yr(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-ln(r):0)},defaultTextHeight:function(){return Ir(this.display)},defaultCharWidth:function(){return Dr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display,a=(e=Er(this,ht(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(i.wrapper.clientHeight,this.doc.height),c=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ao(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ro(ps),triggerOnKeyPress:Ro(hs),triggerOnKeyUp:fs,triggerOnMouseDown:Ro(_s),execCommand:function(e){if(Za.hasOwnProperty(e))return Za[e].call(null,this)},triggerElectric:Ro((function(e){Qs(this,e)})),findPosH:function(e,t,n,r){var o=1;t<0&&(o=-1,t=-t);for(var i=ht(this.doc,e),a=0;a<t&&!(i=Ks(this.doc,i,o,n,r)).hitSide;++a);return i},moveH:Ro((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ks(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),X)})),deleteH:Ro((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Xa(this,(function(n){var o=Ks(r,n.head,e,t,!1);return e<0?{from:o,to:n.head}:{from:n.head,to:o}}))})),findPosV:function(e,t,n,r){var o=1,i=r;t<0&&(o=-1,t=-t);for(var a=ht(this.doc,e),s=0;s<t;++s){var l=Er(this,a,"div");if(null==i?i=l.left:l.left=i,(a=Zs(this,l,o,n)).hitSide)break}return a},moveV:Ro((function(e,t){var n=this,r=this.doc,o=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(i)return e<0?a.from():a.to();var s=Er(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var l=Zs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&lo(n,_r(n,l,"div").top-s.top),l}),X),o.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=o[a]})),findWordAt:function(e){var t=Ze(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var i=t.charAt(n),a=ie(i,o)?function(e){return ie(e,o)}:/\s/.test(i)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ie(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new li(st(e.line,n),st(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),_e(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L(j(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ro((function(e,t){uo(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yn(this)-this.display.barHeight,width:e.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:Kn(this),clientWidth:$n(this)}},scrollIntoView:Ro((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:st(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?po(this,e):ho(this,e.from,e.to,e.margin)})),setSize:Ro((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&fr(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){qr(n,o,"widget");break}++o})),this.curOp.forceUpdate=!0,_e(this,"refresh",this)})),operation:function(e){return Fo(this,e)},startOperation:function(){return So(this)},endOperation:function(){return Co(this)},refresh:Ro((function(){var e=this.display.cachedTextHeight;Vr(this),this.curOp.forceUpdate=!0,hr(this),uo(this,this.doc.scrollLeft,this.doc.scrollTop),Xo(this.display),(null==e||Math.abs(e-Ir(this.display))>.5||this.options.lineWrapping)&&Rr(this),_e(this,"refresh",this)})),swapDoc:Ro((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ei(this,e),hr(this),this.display.input.reset(),uo(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,In(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}function Ks(e,t,n,r,o){var i=t,a=n,s=Ze(e,t.line),l=o&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),s=Ze(e,n))}function u(i){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new st(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=o?Ka(e.cm,s,t,n):Ya(s,t,n);if(null==a){if(i||!c())return!1;t=$a(o,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var p=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||u(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",g=ie(m,f)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||g||(g="s"),p&&p!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(p=g),n>0&&!u(!h))break}var v=Yi(e,t,i,a,!0);return ct(i,v)&&(v.hitSide=!0),v}function Zs(e,t,n,r){var o,i,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,P(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Ir(e.display),3);o=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(;(i=kr(e,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var el=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function tl(e,t){var n=rr(e,t.line);if(!n||n.hidden)return null;var r=Ze(e.doc,t.line),o=er(n,r,t.line),i=me(r,e.doc.direction),a="left";i&&(a=fe(i,t.ch)%2?"right":"left");var s=lr(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function nl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rl(e,t){return t&&(e.bad=!0),e}function ol(e,t,n,r,o){var i="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(i+=s,l&&(i+=s),a=l=!1)}function p(e){e&&(u(),i+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void p(n);var i,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(st(r,0),st(o+1,0),c(+f));return void(h.length&&(i=h[0].find(0))&&p(et(e.doc,i.from,i.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)d(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return i}function il(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return rl(e.clipPos(st(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var i=e.display.view[o];if(i.node==r)return al(i,t,n)}}function al(e,t,n){var r=e.text.firstChild,o=!1;if(!t||!D(r,t))return rl(st(rt(e.line),0),!0);if(t==r&&(o=!0,t=r.childNodes[n],n=0,!t)){var i=e.rest?K(e.rest):e.line;return rl(st(rt(i),i.text.length),o)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var o=-1;o<(c?c.length:0);o++)for(var i=o<0?l.map:c[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==t||s==n){var u=rt(o<0?e.line:e.rest[o]),p=i[a]+r;return(r<0||s!=t)&&(p=i[a+(r?1:0)]),st(u,p)}}}var p=u(a,s,n);if(p)return rl(p,o);for(var d=s.nextSibling,f=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(p=u(d,d.firstChild,0))return rl(st(p.line,p.ch-f),o);f+=d.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(p=u(h,h.firstChild,-1))return rl(st(p.line,p.ch+m),o);m+=h.textContent.length}}el.prototype.init=function(e){var t=this,n=this,r=n.cm,o=n.div=e.lineDiv;function i(e){for(var t=e.target;t;t=t.parentNode){if(t==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(i(e)&&!Ee(r,e)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Xs(r);Hs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,W),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=zs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Ys(),l=s.firstChild;Js(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=zs.text.join("\n");var c=L(o.ownerDocument);R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==o&&n.showPrimarySelection()}),50)}}o.contentEditable=!0,Js(o,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ve(o,"paste",(function(e){!i(e)||Ee(r,e)||Ws(e,r)||s<=11&&setTimeout(Mo(r,(function(){return t.updateFromDOM()})),20)})),ve(o,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(o,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(o,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(o,"touchstart",(function(){return n.forceCompositionEnd()})),ve(o,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(o,"copy",a),ve(o,"cut",a)},el.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},el.prototype.prepareSelection=function(){var e=Wr(this.cm,!1);return e.focus=L(this.div.ownerDocument)==this.div,e},el.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},el.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},el.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),o=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||o.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var a=il(t,e.anchorNode,e.anchorOffset),s=il(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=lt(dt(a,s),o)||0!=lt(pt(a,s),i)){var l=t.display.view,c=o.line>=t.display.viewFrom&&tl(t,o)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&tl(t,i);if(!u){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(c&&u){var f,h=e.rangeCount&&e.getRangeAt(0);try{f=S(c.node,c.offset,u.offset,u.node)}catch(m){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},el.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},el.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},el.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},el.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},el.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&L(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},el.prototype.blur=function(){this.div.blur()},el.prototype.getField=function(){return this.div},el.prototype.supportsTouch=function(){return!0},el.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Fo(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},el.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},el.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&nl(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=il(t,e.anchorNode,e.anchorOffset),r=il(t,e.focusNode,e.focusOffset);n&&r&&Fo(t,(function(){Hi(t.doc,ui(n,r),W),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},el.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,o=r.display,i=r.doc.sel.primary(),a=i.from(),s=i.to();if(0==a.ch&&a.line>r.firstLine()&&(a=st(a.line-1,Ze(r.doc,a.line-1).length)),s.ch==Ze(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=st(s.line+1,0)),a.line<o.viewFrom||s.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(e=Pr(r,a.line))?(t=rt(o.view[0].line),n=o.view[0].node):(t=rt(o.view[e].line),n=o.view[e-1].node.nextSibling);var l,c,u=Pr(r,s.line);if(u==o.view.length-1?(l=o.viewTo-1,c=o.lineDiv.lastChild):(l=rt(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(ol(r,n,c,t,l)),d=et(r.doc,st(t,0),st(l,Ze(r.doc,l).text.length));p.length>1&&d.length>1;)if(K(p)==K(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var f=0,h=0,m=p[0],g=d[0],v=Math.min(m.length,g.length);f<v&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=K(p),b=K(d),_=Math.min(y.length-(1==p.length?f:0),b.length-(1==d.length?f:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==d.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var E=st(t,f),T=st(l,d.length?K(d).length-h:0);return p.length>1||p[0]||lt(E,T)?(aa(r.doc,p,E,T,"+input"),!0):void 0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},el.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Fo(this.cm,(function(){return Vr(e.cm)}))},el.prototype.setUneditable=function(e){e.contentEditable="false"},el.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Mo(this.cm,Gs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},el.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;var sl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ll(e,t){if((t=t?q(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var o;if(e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=o))}},e.style.display="none";var s=Vs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function cl(e){e.off=be,e.on=ve,e.wheelEventPixels=ii,e.Doc=xa,e.splitLines=Re,e.countColumn=U,e.findColumn=J,e.isWordChar=oe,e.Pass=G,e.signal=_e,e.Line=pn,e.changeEnd=pi,e.scrollbarModel=wo,e.Pos=st,e.cmpPos=lt,e.modes=Ue,e.mimeModes=Be,e.resolveMode=Ge,e.getMode=We,e.modeExtensions=Qe,e.extendMode=Xe,e.copyState=Je,e.startState=$e,e.innerMode=Ye,e.commands=Za,e.keyMap=qa,e.keyName=Wa,e.isModifierKey=Ha,e.lookupKey=za,e.normalizeKeyMap=Ba,e.StringStream=Ke,e.SharedTextMarker=ba,e.TextMarker=va,e.LineWidget=fa,e.e_preventDefault=xe,e.e_stopPropagation=Se,e.e_stop=Ne,e.addClass=F,e.contains=D,e.rmClass=C,e.keyNames=Ra}sl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!Ee(r,e)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Xs(r);Hs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",o.value=t.text.join("\n"),R(o))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),ve(o,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ve(o,"paste",(function(e){Ee(r,e)||Ws(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ve(o,"cut",i),ve(o,"copy",i),ve(e.scroller,"paste",(function(t){if(!Wn(e,t)&&!Ee(r,t)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),ve(e.lineSpace,"selectstart",(function(t){Wn(e,t)||xe(t)})),ve(o,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},sl.prototype.createField=function(e){this.wrapper=Ys(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Js(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},sl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},sl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Wr(e);if(e.options.moveInputWithCursor){var o=Er(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},sl.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},sl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},sl.prototype.getField=function(){return this.textarea},sl.prototype.supportsTouch=function(){return!1},sl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},sl.prototype.blur=function(){this.textarea.blur()},sl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},sl.prototype.receivedFocus=function(){this.slowPoll()},sl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},sl.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},sl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||b&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,o.length);l<c&&r.charCodeAt(l)==o.charCodeAt(l);)++l;return Fo(t,(function(){Gs(t,o.slice(l),r.length-l,null,e.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},sl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},sl.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},sl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=jr(n,e),c=r.scroller.scrollTop;if(i&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&Mo(n,Hi)(n.doc,ui(i),W);var u,p=o.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=o.ownerDocument.defaultView.scrollY),r.input.focus(),l&&o.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),k){Ne(e);var m=function(){be(window,"mouseup",m),setTimeout(v,20)};ve(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=o.selectionStart){var e=n.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,o.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&s<9)&&g();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?Mo(n,Ki)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},sl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},sl.prototype.setUneditable=function(){},sl.prototype.needsContentAttribute=!1,Rs(Vs),$s(Vs);var ul="iter insert remove copy getEditor constructor".split(" ");for(var pl in xa.prototype)xa.prototype.hasOwnProperty(pl)&&z(ul,pl)<0&&(Vs.prototype[pl]=function(e){return function(){return e.apply(this.doc,arguments)}}(xa.prototype[pl]));return ke(xa),Vs.inputStyles={textarea:sl,contenteditable:el},Vs.defineMode=function(e){Vs.defaults.mode||"null"==e||(Vs.defaults.mode=e),ze.apply(this,arguments)},Vs.defineMIME=He,Vs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Vs.defineMIME("text/plain","null"),Vs.defineExtension=function(e,t){Vs.prototype[e]=t},Vs.defineDocExtension=function(e,t){xa.prototype[e]=t},Vs.fromTextArea=ll,cl(Vs),Vs.version="5.65.13",Vs}()},27090:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,o,i=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=!1!==n.trackScope,u=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),o=e("keyword d"),i=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function g(e,t,n){return r=e,o=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==n&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("="==n&&e.eat(">"))return g("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):ot(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==n)return t.tokenize=_,_(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),g("meta","meta");if("#"==n&&e.eatWhile(p))return g("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g("comment","comment");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?g("."):g("operator","operator",e.current());if(p.test(n)){e.eatWhile(p);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var o=d[r];return g(o.type,o.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",r)}return g("variable","variable",r)}}function y(e){return function(t,n){var r,o=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=v,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||o);)o=!o&&"\\"==r;return o||(n.tokenize=v),g("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="*"==n}return g("comment","comment")}function _(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=v;break}r=!r&&"\\"==n}return g("quasi","string-2",e.current())}var E="([{}])";function T(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var o=0,i=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=E.indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function k(e,t,n,r,o,i){this.indented=e,this.column=t,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function x(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function S(e,t,n,r,o){var i=e.cc;for(C.state=e,C.stream=o,C.marked=null,C.cc=i,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():l?G:z)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return C.marked?C.marked:"variable"==n&&x(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function A(){return N.apply(null,arguments),!0}function O(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function I(e){var t=C.state;if(C.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=D(e,t.context);if(null!=r)return void(t.context=r)}else if(!O(e,t.localVars))return void(t.localVars=new M(e,t.localVars));n.globalVars&&!O(e,t.globalVars)&&(t.globalVars=new M(e,t.globalVars))}}function D(e,t){if(t){if(t.block){var n=D(e,t.prev);return n?n==t.prev?t:new F(n,t.vars,!0):null}return O(e,t.vars)?t:new F(t.prev,new M(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}var R=new M("this",new M("arguments",null));function j(){C.state.context=new F(C.state.context,C.state.localVars,!1),C.state.localVars=R}function P(){C.state.context=new F(C.state.context,C.state.localVars,!0),C.state.localVars=null}function V(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function q(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new k(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function U(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){function t(n){return n==e?A():";"==e||"}"==n||")"==n||"]"==n?N():A(t)}return t}function z(e,t){return"var"==e?A(q("vardef",t),Ne,B(";"),U):"keyword a"==e?A(q("form"),Q,z,U):"keyword b"==e?A(q("form"),z,U):"keyword d"==e?C.stream.match(/^\s*$/,!1)?A():A(q("stat"),J,B(";"),U):"debugger"==e?A(B(";")):"{"==e?A(q("}"),P,de,U,V):";"==e?A():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==U&&C.state.cc.pop()(),A(q("form"),Q,z,U,Fe)):"function"==e?A(Pe):"for"==e?A(q("form"),P,Me,z,V,U):"class"==e||u&&"interface"==t?(C.marked="keyword",A(q("form","class"==e?e:t),ze,U)):"variable"==e?u&&"declare"==t?(C.marked="keyword",A(z)):u&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?A(tt):"type"==t?A(qe,B("operator"),ve,B(";")):A(q("form"),Ae,B("{"),q("}"),de,U,U)):u&&"namespace"==t?(C.marked="keyword",A(q("form"),G,z,U)):u&&"abstract"==t?(C.marked="keyword",A(z)):A(q("stat"),ie):"switch"==e?A(q("form"),Q,B("{"),q("}","switch"),P,de,U,U,V):"case"==e?A(G,B(":")):"default"==e?A(B(":")):"catch"==e?A(q("form"),j,H,z,U,V):"export"==e?A(q("stat"),Qe,U):"import"==e?A(q("stat"),Je,U):"async"==e?A(z):"@"==t?A(G,z):N(q("stat"),G,B(";"),U)}function H(e){if("("==e)return A(Ue,B(")"))}function G(e,t){return X(e,t,!1)}function W(e,t){return X(e,t,!0)}function Q(e){return"("!=e?N():A(q(")"),J,B(")"),U)}function X(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?te:ee;if("("==e)return A(j,q(")"),ue(Ue,")"),U,B("=>"),r,V);if("variable"==e)return N(j,Ae,B("=>"),r,V)}var o=n?$:Y;return w.hasOwnProperty(e)?A(o):"function"==e?A(Pe,o):"class"==e||u&&"interface"==t?(C.marked="keyword",A(q("form"),Be,U)):"keyword c"==e||"async"==e?A(n?W:G):"("==e?A(q(")"),J,B(")"),U,o):"operator"==e||"spread"==e?A(n?W:G):"["==e?A(q("]"),et,U,o):"{"==e?pe(se,"}",null,o):"quasi"==e?N(K,o):"new"==e?A(ne(n)):A()}function J(e){return e.match(/[;\}\)\],]/)?N():N(G)}function Y(e,t){return","==e?A(J):$(e,t,!1)}function $(e,t,n){var r=0==n?Y:$,o=0==n?G:W;return"=>"==e?A(j,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?A(r):u&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(q(">"),ue(ve,">"),U,r):"?"==t?A(G,B(":"),o):A(o):"quasi"==e?N(K,r):";"!=e?"("==e?pe(W,")","call",r):"."==e?A(ae,r):"["==e?A(q("]"),J,B("]"),U,r):u&&"as"==t?(C.marked="keyword",A(ve,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),A(o)):void 0:void 0}function K(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?A(K):A(J,Z)}function Z(e){if("}"==e)return C.marked="string-2",C.state.tokenize=_,A(K)}function ee(e){return T(C.stream,C.state),N("{"==e?z:G)}function te(e){return T(C.stream,C.state),N("{"==e?z:W)}function ne(e){return function(t){return"."==t?A(e?oe:re):"variable"==t&&u?A(xe,e?$:Y):N(e?W:G)}}function re(e,t){if("target"==t)return C.marked="keyword",A(Y)}function oe(e,t){if("target"==t)return C.marked="keyword",A($)}function ie(e){return":"==e?A(U,z):N(Y,B(";"),U)}function ae(e){if("variable"==e)return C.marked="property",A()}function se(e,t){return"async"==e?(C.marked="property",A(se)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?A(le):(u&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),A(ce))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",A(ce)):"jsonld-keyword"==e?A(ce):u&&L(t)?(C.marked="keyword",A(se)):"["==e?A(G,fe,B("]"),ce):"spread"==e?A(W,ce):"*"==t?(C.marked="keyword",A(se)):":"==e?N(ce):void 0;var n}function le(e){return"variable"!=e?N(ce):(C.marked="property",A(Pe))}function ce(e){return":"==e?A(W):"("==e?N(Pe):void 0}function ue(e,t,n){function r(o,i){if(n?n.indexOf(o)>-1:","==o){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A((function(n,r){return n==t||r==t?N():N(e)}),r)}return o==t||i==t?A():n&&n.indexOf(";")>-1?N(e):A(B(t))}return function(n,o){return n==t||o==t?A():N(e,r)}}function pe(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return A(q(t,n),ue(e,t),U)}function de(e){return"}"==e?A():N(z,de)}function fe(e,t){if(u){if(":"==e)return A(ve);if("?"==t)return A(fe)}}function he(e,t){if(u&&(":"==e||"in"==t))return A(ve)}function me(e){if(u&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?A(G,ge,ve):A(ve)}function ge(e,t){if("is"==t)return C.marked="keyword",A()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",A("typeof"==t?W:ve)):"variable"==e||"void"==t?(C.marked="type",A(ke)):"|"==t||"&"==t?A(ve):"string"==e||"number"==e||"atom"==e?A(ke):"["==e?A(q("]"),ue(ve,"]",","),U,ke):"{"==e?A(q("}"),be,U,ke):"("==e?A(ue(we,")"),ye,ke):"<"==e?A(ue(ve,">"),ve):"quasi"==e?N(Ee,ke):void 0}function ye(e){if("=>"==e)return A(ve)}function be(e){return e.match(/[\}\)\]]/)?A():","==e||";"==e?A(be):N(_e,be)}function _e(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",A(_e)):"?"==t||"number"==e||"string"==e?A(_e):":"==e?A(ve):"["==e?A(B("variable"),he,B("]"),_e):"("==e?N(Ve,_e):e.match(/[;\}\)\],]/)?void 0:A()}function Ee(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?A(Ee):A(ve,Te)}function Te(e){if("}"==e)return C.marked="string-2",C.state.tokenize=_,A(Ee)}function we(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?A(we):":"==e?A(ve):"spread"==e?A(we):N(ve)}function ke(e,t){return"<"==t?A(q(">"),ue(ve,">"),U,ke):"|"==t||"."==e||"&"==t?A(ve):"["==e?A(ve,B("]"),ke):"extends"==t||"implements"==t?(C.marked="keyword",A(ve)):"?"==t?A(ve,B(":"),ve):void 0}function xe(e,t){if("<"==t)return A(q(">"),ue(ve,">"),U,ke)}function Se(){return N(ve,Ce)}function Ce(e,t){if("="==t)return A(ve)}function Ne(e,t){return"enum"==t?(C.marked="keyword",A(tt)):N(Ae,fe,De,Le)}function Ae(e,t){return u&&L(t)?(C.marked="keyword",A(Ae)):"variable"==e?(I(t),A()):"spread"==e?A(Ae):"["==e?pe(Ie,"]"):"{"==e?pe(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?A(Ae):"}"==e?N():"["==e?A(G,B("]"),B(":"),Oe):A(B(":"),Ae,De)):(I(t),A(De))}function Ie(){return N(Ae,De)}function De(e,t){if("="==t)return A(W)}function Le(e){if(","==e)return A(Ne)}function Fe(e,t){if("keyword b"==e&&"else"==t)return A(q("form","else"),z,U)}function Me(e,t){return"await"==t?A(Me):"("==e?A(q(")"),Re,U):void 0}function Re(e){return"var"==e?A(Ne,je):"variable"==e?A(je):N(je)}function je(e,t){return")"==e?A():";"==e?A(je):"in"==t||"of"==t?(C.marked="keyword",A(G,je)):N(G,je)}function Pe(e,t){return"*"==t?(C.marked="keyword",A(Pe)):"variable"==e?(I(t),A(Pe)):"("==e?A(j,q(")"),ue(Ue,")"),U,me,z,V):u&&"<"==t?A(q(">"),ue(Se,">"),U,Pe):void 0}function Ve(e,t){return"*"==t?(C.marked="keyword",A(Ve)):"variable"==e?(I(t),A(Ve)):"("==e?A(j,q(")"),ue(Ue,")"),U,me,V):u&&"<"==t?A(q(">"),ue(Se,">"),U,Ve):void 0}function qe(e,t){return"keyword"==e||"variable"==e?(C.marked="type",A(qe)):"<"==t?A(q(">"),ue(Se,">"),U):void 0}function Ue(e,t){return"@"==t&&A(G,Ue),"spread"==e?A(Ue):u&&L(t)?(C.marked="keyword",A(Ue)):u&&"this"==e?A(fe,De):N(Ae,fe,De)}function Be(e,t){return"variable"==e?ze(e,t):He(e,t)}function ze(e,t){if("variable"==e)return I(t),A(He)}function He(e,t){return"<"==t?A(q(">"),ue(Se,">"),U,He):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(C.marked="keyword"),A(u?ve:G,He)):"{"==e?A(q("}"),Ge,U):void 0}function Ge(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&L(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",A(Ge)):"variable"==e||"keyword"==C.style?(C.marked="property",A(We,Ge)):"number"==e||"string"==e?A(We,Ge):"["==e?A(G,fe,B("]"),We,Ge):"*"==t?(C.marked="keyword",A(Ge)):u&&"("==e?N(Ve,Ge):";"==e||","==e?A(Ge):"}"==e?A():"@"==t?A(G,Ge):void 0}function We(e,t){if("!"==t)return A(We);if("?"==t)return A(We);if(":"==e)return A(ve,De);if("="==t)return A(W);var n=C.state.lexical.prev;return N(n&&"interface"==n.info?Ve:Pe)}function Qe(e,t){return"*"==t?(C.marked="keyword",A(Ze,B(";"))):"default"==t?(C.marked="keyword",A(G,B(";"))):"{"==e?A(ue(Xe,"}"),Ze,B(";")):N(z)}function Xe(e,t){return"as"==t?(C.marked="keyword",A(B("variable"))):"variable"==e?N(W,Xe):void 0}function Je(e){return"string"==e?A():"("==e?N(G):"."==e?N(Y):N(Ye,$e,Ze)}function Ye(e,t){return"{"==e?pe(Ye,"}"):("variable"==e&&I(t),"*"==t&&(C.marked="keyword"),A(Ke))}function $e(e){if(","==e)return A(Ye,$e)}function Ke(e,t){if("as"==t)return C.marked="keyword",A(Ye)}function Ze(e,t){if("from"==t)return C.marked="keyword",A(G)}function et(e){return"]"==e?A():N(ue(W,"]"))}function tt(){return N(q("form"),Ae,B("{"),q("}"),ue(nt,"}"),U,U)}function nt(){return N(Ae,De)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function ot(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return j.lex=P.lex=!0,V.lex=!0,U.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new k((e||0)-i,0,"block",!1),localVars:n.localVars,context:n.localVars&&new F(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),T(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=o&&"--"!=o?r:"incdec",S(t,n,r,o,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==_)return e.Pass;if(t.tokenize!=v)return 0;var o,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==U)l=l.prev;else if(u!=Fe&&u!=V)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=t.cc[t.cc.length-1])&&(o==Y||o==$)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,d=s==p;return"vardef"==p?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==p&&"{"==s?l.indented:"form"==p?l.indented+i:"stat"==p?l.indented+(rt(t,r)?a||i:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:i):l.indented+(/^(?:case|default)\b/.test(r)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:ot,skipExpression:function(t){S(t,"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})}(n(74031))},50563:(e,t,n)=>{!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,o){var i=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,o&&o.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=i.indent(e,"","");return e.tagName=t,n}function l(e,t){return t.context.mode==i?c(e,t,t.context):u(e,t,t.context)}function c(n,o,c){if(2==c.depth)return n.match(/^.*?\*\//)?c.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){i.skipAttribute(c.state);var u=s(c.state),p=c.state.context;if(p&&n.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?u-=r.indentUnit:c.prev.state.lexical&&(u=c.prev.state.lexical.indented)}else 1==c.depth&&(u+=r.indentUnit);return o.context=new t(e.startState(a,u),a,0,o.context),null}if(1==c.depth){if("<"==n.peek())return i.skipAttribute(c.state),o.context=new t(e.startState(i,s(c.state)),i,0,o.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return c.depth=2,l(n,o)}var d,f=i.token(n,c.state),h=n.current();return/\btag\b/.test(f)?/>$/.test(h)?c.state.context?c.depth=0:o.context=o.context.prev:/^</.test(h)&&(c.depth=1):!f&&(d=h.indexOf("{"))>-1&&n.backUp(h.length-d),f}function u(n,r,o){if("<"==n.peek()&&a.expressionAllowed(n,o.state))return r.context=new t(e.startState(i,a.indent(o.state,"","")),i,0,r.context),a.skipExpression(o.state),null;var s=a.token(n,o.state);if(!s&&null!=o.depth){var l=n.current();"{"==l?o.depth++:"}"==l&&0==--o.depth&&(r.context=r.context.prev)}return s}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:l,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(74031),n(58608),n(27090))},58608:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,o){var i,a,s=r.indentUnit,l={},c=o.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in o)l[u]=o[u];function p(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=p,i=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return i="equals",null;if("<"==n){t.tokenize=p,t.state=_,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=p;break}n.next()}return e}}function m(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=p;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;y(e)}}function _(e,t,n){return"openTag"==e?(n.tagStart=t.column(),E):"closeTag"==e?T:_}function E(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",x):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,t,n)):(a="error",E)}function T(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",w):(a="tag error",k)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",w(e,t,n)):(a="error",k)}function w(e,t,n){return"endTag"!=e?(a="error",w):(y(n),_)}function k(e,t,n){return a="error",w(e,t,n)}function x(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(r))?b(n,r):(b(n,r),n.context=new v(n,r,o==n.indented)),_}return a="error",x}function S(e,t,n){return"equals"==e?C:(l.allowMissing||(a="error"),x(e,t,n))}function C(e,t,n){return"string"==e?N:"word"==e&&l.allowUnquoted?(a="string",x):(a="error",x(e,t,n))}function N(e,t,n){return"string"==e?N:x(e,t,n)}return p.isInText=!0,{startState:function(e){var t={tokenize:p,state:_,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(a=null,t.state=t.state(i||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=p)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var i=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(i&&i[1])for(;o;){if(o.tagName==i[2]){o=o.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(o.tagName)))break;o=o.prev}else if(i)for(;o;){var a=l.contextGrabbers[g(o.tagName)];if(!a||!a.hasOwnProperty(g(i[2])))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=x)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(74031))},19445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5285),t),o(n(98060),t),o(n(15242),t)},76511:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="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]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function p(e){var t=e.re=n(48882)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(c),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===o(n))return!function(e){return"[object RegExp]"===o(e)}(n.validate)?i(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(i(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function f(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},48882:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(16637).source,t.src_Cc=n(3370).source,t.src_Z=n(95872).source,t.src_P=n(4226).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="(?:(?![><\uff5c]|"+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="(?=$|[><\uff5c]|"+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,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+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='(^|[><\uff5c]|"|\\(|'+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}},48776:(e,t,n)=>{"use strict";e.exports=n(82167)},58458:(e,t,n)=>{"use strict";e.exports=n(50549)},82805:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},94316:e=>{"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=o},26083:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(58458);var p=/[&<>"]/,d=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=n(4226);t.lib={},t.lib.mdurl=n(1036),t.lib.ucmicro=n(33146),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&c.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},84358:(e,t,n)=>{"use strict";t.parseLinkLabel=n(91637),t.parseLinkDestination=n(21066),t.parseLinkTitle=n(52675)},21066:(e,t,n)=>{"use strict";var r=n(26083).unescapeAll;e.exports=function(e,t,n){var o,i,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(o=e.charCodeAt(t)))return s;if(60===o)return s;if(62===o)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===o&&t+1<n?t+=2:t++}return s}for(i=0;t<n&&32!==(o=e.charCodeAt(t))&&!(o<32||127===o);)if(92===o&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===o&&++i>32)return s;if(41===o){if(0===i)break;i--}t++}return a===t||0!==i||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},91637:e=>{"use strict";e.exports=function(e,t,n){var r,o,i,a,s=-1,l=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(i=e.src.charCodeAt(e.pos))&&0===--r){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===i)if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}return o&&(s=e.pos),e.pos=c,s}},52675:(e,t,n)=>{"use strict";var r=n(26083).unescapeAll;e.exports=function(e,t,n){var o,i,a=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return l;for(t++,40===i&&(i=41);t<n;){if((o=e.charCodeAt(t))===i)return l.pos=t+1,l.lines=a,l.str=r(e.slice(s+1,t)),l.ok=!0,l;if(40===o&&41===i)return l;10===o?a++:92===o&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return l}},82167:(e,t,n)=>{"use strict";var r=n(26083),o=n(84358),i=n(70283),a=n(32494),s=n(64769),l=n(19957),c=n(76511),u=n(1036),p=n(78154),d={default:n(65432),zero:n(37104),commonmark:n(76188)},f=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!h.test(t)}var g=["http:","https:","mailto:"];function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(n){}return u.encode(u.format(t))}function y(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(n){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new c,this.validateLink=m,this.normalizeLink=v,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},o),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},64769:(e,t,n)=>{"use strict";var r=n(32655),o=[["table",n(15547),["paragraph","reference"]],["code",n(67600)],["fence",n(77351),["paragraph","reference","blockquote","list"]],["blockquote",n(63172),["paragraph","reference","blockquote","list"]],["hr",n(75080),["paragraph","reference","blockquote","list"]],["list",n(70954),["paragraph","reference","blockquote"]],["reference",n(73528)],["html_block",n(52820),["paragraph","reference","blockquote"]],["heading",n(99058),["paragraph","reference","blockquote"]],["lheading",n(62143)],["paragraph",n(81603)]];function i(){this.ruler=new r;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1],{alt:(o[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),i=o.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<i&&!o[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},i.prototype.parse=function(e,t,n,r){var o;e&&(o=new this.State(e,t,n,r),this.tokenize(o,o.line,o.lineMax))},i.prototype.State=n(96542),e.exports=i},32494:(e,t,n)=>{"use strict";var r=n(32655),o=[["normalize",n(77980)],["block",n(85887)],["inline",n(45076)],["linkify",n(28898)],["replacements",n(46247)],["smartquotes",n(53344)]];function i(){this.ruler=new r;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(86853),e.exports=i},19957:(e,t,n)=>{"use strict";var r=n(32655),o=[["text",n(43308)],["newline",n(12489)],["escape",n(69639)],["backticks",n(81864)],["strikethrough",n(69743).w],["emphasis",n(41568).w],["link",n(87463)],["image",n(62692)],["autolink",n(73455)],["html_inline",n(31519)],["entity",n(71467)]],i=[["balance_pairs",n(42935)],["strikethrough",n(69743).g],["emphasis",n(41568).g],["text_collapse",n(31072)]];function a(){var e;for(this.ruler=new r,e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1]);for(this.ruler2=new r,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,o=this.ruler.getRules(""),i=o.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"===typeof s[r]){if(e.level<a)for(n=0;n<i&&(e.level++,t=o[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,i=e.posMax,a=e.md.options.maxNesting;e.pos<i;){if(e.level<a)for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o<a;o++)i[o](s)},a.prototype.State=n(95361),e.exports=a},76188:e=>{"use strict";e.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"]}}}},65432:e=>{"use strict";e.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:{}}}},37104:e=>{"use strict";e.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"]}}}},70283:(e,t,n)=>{"use strict";var r=n(26083).assign,o=n(26083).unescapeAll,i=n(26083).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,o){var a=e[t];return"<code"+o.renderAttrs(a)+">"+i(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,o){var a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+i(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,l,c,u,p,d=e[t],f=d.info?o(d.info).trim():"",h="",m="";return f&&(h=(c=f.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,h,m)||i(d.content)).indexOf("<pre")?s+"\n":f?(l=d.attrIndex("class"),u=d.attrs?d.attrs.slice():[],l<0?u.push(["class",n.langPrefix+h]):(u[l]=u[l].slice(),u[l][1]+=" "+n.langPrefix+h),p={attrs:u},"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"},a.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return i(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,o="",i=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===a.nesting?"</":"<")+a.tag,o+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(o+=" /"),a.block&&(i=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(i=!1)),o+=i?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,o="",i=this.rules,a=0,s=e.length;a<s;a++)"undefined"!==typeof i[r=e[a].type]?o+=i[r](e,a,t,n,this):o+=this.renderToken(e,a,t);return o},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",o=0,i=e.length;o<i;o++)"text"===e[o].type?r+=e[o].content:"image"===e[o].type?r+=this.renderInlineAsText(e[o].children,t,n):"softbreak"===e[o].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,o,i,a="",s=this.rules;for(r=0,o=e.length;r<o;r++)"inline"===(i=e[r].type)?a+=this.renderInline(e[r].children,t,n):"undefined"!==typeof s[i]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},32655:e=>{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},63172:(e,t,n)=>{"use strict";var r=n(26083).isSpace;e.exports=function(e,t,n,o){var i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T,w,k,x=e.lineMax,S=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(o)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,l++,f++,i=!1,_=!0):9===e.src.charCodeAt(S)?(_=!0,(e.bsCount[t]+f)%4===3?(S++,l++,f++,i=!1):i=!0):_=!1,h=[e.bMarks[t]],e.bMarks[t]=S;S<C&&(a=e.src.charCodeAt(S),r(a));)9===a?f+=4-(f+e.bsCount[t]+(i?1:0))%4:f++,S++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(_?1:0),u=S>=C,y=[e.sCount[t]],e.sCount[t]=f-l,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],T=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(k=e.sCount[d]<e.blkIndent,!((S=e.bMarks[d]+e.tShift[d])>=(C=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(S++)||k){if(u)break;for(E=!1,s=0,c=T.length;s<c;s++)if(T[s](e,d,n,!0)){E=!0;break}if(E){e.lineMax=d,0!==e.blkIndent&&(h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]=-1}else{for(l=f=e.sCount[d]+1,32===e.src.charCodeAt(S)?(S++,l++,f++,i=!1,_=!0):9===e.src.charCodeAt(S)?(_=!0,(e.bsCount[d]+f)%4===3?(S++,l++,f++,i=!1):i=!0):_=!1,h.push(e.bMarks[d]),e.bMarks[d]=S;S<C&&(a=e.src.charCodeAt(S),r(a));)9===a?f+=4-(f+e.bsCount[d]+(i?1:0))%4:f++,S++;u=S>=C,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(_?1:0),y.push(e.sCount[d]),e.sCount[d]=f-l,b.push(e.tShift[d]),e.tShift[d]=S-e.bMarks[d]}for(g=e.blkIndent,e.blkIndent=0,(w=e.push("blockquote_open","blockquote",1)).markup=">",w.map=p=[t,0],e.md.block.tokenize(e,t,d),(w=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=v,p[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}},67600:e=>{"use strict";e.exports=function(e,t,n){var r,o,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;o=++r}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}},77351:e=>{"use strict";e.exports=function(e,t,n,r){var o,i,a,s,l,c,u,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(o=e.src.charCodeAt(d))&&96!==o)return!1;if(l=d,(i=(d=e.skipChars(d,o))-l)<3)return!1;if(u=e.src.slice(l,d),a=e.src.slice(d,f),96===o&&a.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(d)===o&&!(e.sCount[s]-e.blkIndent>=4)&&!((d=e.skipChars(d,o))-l<i)&&!((d=e.skipSpaces(d))<f)){p=!0;break}return i=e.sCount[t],e.line=s+(p?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,s,i,!0),c.markup=u,c.map=[t,e.line],!0}},99058:(e,t,n)=>{"use strict";var r=n(26083).isSpace;e.exports=function(e,t,n,o){var i,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(c))||c>=u)return!1;for(a=1,i=e.src.charCodeAt(++c);35===i&&c<u&&a<=6;)a++,i=e.src.charCodeAt(++c);return!(a>6||c<u&&!r(i))&&(o||(u=e.skipSpacesBack(u,c),(s=e.skipCharsBack(u,35,c))>c&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}},75080:(e,t,n)=>{"use strict";var r=n(26083).isSpace;e.exports=function(e,t,n,o){var i,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(c++))&&45!==i&&95!==i)return!1;for(a=1;c<u;){if((s=e.src.charCodeAt(c++))!==i&&!r(s))return!1;s===i&&a++}return!(a<3)&&(o||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(i))),!0)}},52820:(e,t,n)=>{"use strict";var r=n(82805),o=n(94316).q,i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(l=e.src.slice(c,u),o=0;o<i.length&&!i[o][0].test(l);o++);if(o===i.length)return!1;if(r)return i[o][2];if(a=t+1,!i[o][1].test(l))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],u=e.eMarks[a],l=e.src.slice(c,u),i[o][1].test(l)){0!==l.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},62143:e=>{"use strict";e.exports=function(e,t,n){var r,o,i,a,s,l,c,u,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(c=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=c)){u=61===p?1:2;break}if(!(e.sCount[f]<0)){for(o=!1,i=0,a=h.length;i<a;i++)if(h[i](e,f,n,!0)){o=!0;break}if(o)break}}return!!u&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=d,!0)}},70954:(e,t,n)=>{"use strict";var r=n(26083).isSpace;function o(e,t){var n,o,i,a;return o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(o++))&&45!==n&&43!==n||o<i&&(a=e.src.charCodeAt(o),!r(a))?-1:o}function i(e,t){var n,o=e.bMarks[t]+e.tShift[t],i=o,a=e.eMarks[t];if(i+1>=a)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=a)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-o>=10)return-1}return i<a&&(n=e.src.charCodeAt(i),!r(n))?-1:i}e.exports=function(e,t,n,r){var a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T,w,k,x,S,C,N,A,O,I,D,L,F=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(F=!0),(N=i(e,t))>=0){if(d=!0,O=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(O,N-1)),F&&1!==y)return!1}else{if(!((N=o(e,t))>=0))return!1;d=!1}if(F&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(N-1),r)return!0;for(g=e.tokens.length,d?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(v),_=t,A=!1,D=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";_<n;){for(C=N,b=e.eMarks[_],p=E=e.sCount[_]+N-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))E+=4-(E+e.bsCount[_])%4;else{if(32!==a)break;E++}C++}if((u=(s=C)>=b?1:E-p)>4&&(u=1),c=p+u,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),L.map=f=[t,0],d&&(L.info=e.src.slice(O,N-1)),S=e.tight,x=e.tShift[t],k=e.sCount[t],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[t]=x,e.sCount[t]=k,e.tight=S,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),_=t=e.line,f[1]=_,s=e.bMarks[t],_>=n)break;if(e.sCount[_]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(I=!1,l=0,h=D.length;l<h;l++)if(D[l](e,_,n,!0)){I=!0;break}if(I)break;if(d){if((N=i(e,_))<0)break;O=e.bMarks[_]+e.tShift[_]}else if((N=o(e,_))<0)break;if(v!==e.src.charCodeAt(N-1))break}return(L=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=_,e.line=_,e.parentType=w,M&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}},81603:e=>{"use strict";e.exports=function(e,t){var n,r,o,i,a,s,l=t+1,c=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<u&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(r=!1,o=0,i=c.length;o<i;o++)if(c[o](e,l,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},73528:(e,t,n)=>{"use strict";var r=n(26083).normalizeReference,o=n(26083).isSpace;e.exports=function(e,t,n,i){var a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T=0,w=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],x=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<k;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===k)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";x<c&&!e.isEmpty(x);x++)if(!(e.sCount[x]-e.blkIndent>3)&&!(e.sCount[x]<0)){for(b=!1,p=0,d=_.length;p<d;p++)if(_[p](e,x,c,!0)){b=!0;break}if(b)break}for(k=(y=e.getLines(t,x,e.blkIndent,!1).trim()).length,w=1;w<k;w++){if(91===(a=y.charCodeAt(w)))return!1;if(93===a){h=w;break}(10===a||92===a&&++w<k&&10===y.charCodeAt(w))&&T++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(w=h+2;w<k;w++)if(10===(a=y.charCodeAt(w)))T++;else if(!o(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,w,k)).ok)return!1;if(u=e.md.normalizeLink(g.str),!e.md.validateLink(u))return!1;for(s=w=g.pos,l=T+=g.lines,v=w;w<k;w++)if(10===(a=y.charCodeAt(w)))T++;else if(!o(a))break;for(g=e.md.helpers.parseLinkTitle(y,w,k),w<k&&v!==w&&g.ok?(E=g.str,w=g.pos,T+=g.lines):(E="",w=s,T=l);w<k&&(a=y.charCodeAt(w),o(a));)w++;if(w<k&&10!==y.charCodeAt(w)&&E)for(E="",w=s,T=l;w<k&&(a=y.charCodeAt(w),o(a));)w++;return!(w<k&&10!==y.charCodeAt(w))&&(!!(f=r(y.slice(1,h)))&&(i||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[f]&&(e.env.references[f]={title:E,href:u}),e.parentType=m,e.line=t+T+1),!0))}},96542:(e,t,n)=>{"use strict";var r=n(46581),o=n(26083).isSpace;function i(e,t,n,r){var i,a,s,l,c,u,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,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="",d=!1,s=l=u=p=0,c=(a=this.src).length;l<c;l++){if(i=a.charCodeAt(l),!d){if(o(i)){u++,9===i?p+=4-p%4:p++;continue}d=!0}10!==i&&l!==c-1||(10!==i&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(p),this.bsCount.push(0),d=!1,u=0,p=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,t,n){var o=new r(e,t,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),o(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,a,s,l,c,u,p,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;d<t;d++,i++){for(a=0,p=l=this.bMarks[d],c=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];l<c&&a<n;){if(s=this.src.charCodeAt(l),o(s))9===s?a+=4-(a+this.bsCount[d])%4:a++;else{if(!(l-p<this.tShift[d]))break;a++}l++}u[i]=a>n?new Array(a-n+1).join(" ")+this.src.slice(l,c):this.src.slice(l,c)}return u.join("")},i.prototype.Token=r,e.exports=i},15547:(e,t,n)=>{"use strict";var r=n(26083).isSpace;function o(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,o=e.length,i=!1,a=0,s="";for(t=e.charCodeAt(r);r<o;)124===t&&(i?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),i=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,t,n,a){var s,l,c,u,p,d,f,h,m,g,v,y,b,_,E,T,w,k;if(t+2>n)return!1;if(d=t+1,e.sCount[d]<e.blkIndent)return!1;if(e.sCount[d]-e.blkIndent>=4)return!1;if((c=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(w=e.src.charCodeAt(c++))&&45!==w&&58!==w)return!1;if(c>=e.eMarks[d])return!1;if(124!==(k=e.src.charCodeAt(c++))&&45!==k&&58!==k&&!r(k))return!1;if(45===w&&r(k))return!1;for(;c<e.eMarks[d];){if(124!==(s=e.src.charCodeAt(c))&&45!==s&&58!==s&&!r(s))return!1;c++}for(f=(l=o(e,t+1)).split("|"),g=[],u=0;u<f.length;u++){if(!(v=f[u].trim())){if(0===u||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=o(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((f=i(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(h=f.length)||h!==g.length)return!1;if(a)return!0;for(_=e.parentType,e.parentType="table",T=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<f.length;u++)m=e.push("th_open","th",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=t+2;d<n&&!(e.sCount[d]<e.blkIndent);d++){for(E=!1,u=0,p=T.length;u<p;u++)if(T[u](e,d,n,!0)){E=!0;break}if(E)break;if(!(l=o(e,d).trim()))break;if(e.sCount[d]-e.blkIndent>=4)break;for((f=i(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[d,d+1],u=0;u<h;u++)m=e.push("td_open","td",1),g[u]&&(m.attrs=[["style","text-align:"+g[u]]]),(m=e.push("inline","",0)).content=f[u]?f[u].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=_,e.line=d,!0}},85887:e=>{"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},45076:e=>{"use strict";e.exports=function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},28898:(e,t,n)=>{"use strict";var r=n(26083).arrayReplaceAt;function o(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,i,a,s,l,c,u,p,d,f,h,m,g,v,y,b,_,E=e.tokens;if(e.md.options.linkify)for(n=0,i=E.length;n<i;n++)if("inline"===E[n].type&&e.md.linkify.pretest(E[n].content))for(m=0,t=(a=E[n].children).length-1;t>=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(_=l.content,/^<a[>\s]/i.test(_)&&m>0&&m--,o(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,b=e.md.linkify.match(p),c=[],h=l.level,f=0,u=0;u<b.length;u++)g=b[u].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[u].text,y=b[u].schema?"mailto:"!==b[u].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(d=b[u].index)>f&&((s=new e.Token("text","",0)).content=p.slice(f,d),s.level=h,c.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",c.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,c.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",c.push(s),f=b[u].lastIndex);f<p.length&&((s=new e.Token("text","",0)).content=p.slice(f),s.level=h,c.push(s)),E[n].children=a=r(a,t,c)}}else for(t--;a[t].level!==l.level&&"link_open"!==a[t].type;)t--}},77980:e=>{"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"\ufffd"),e.src=r}},46247:e=>{"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,o={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function i(e,t){return o[t.toLowerCase()]}function a(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||o||(n.content=n.content.replace(r,i)),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}function s(e){var n,r,o=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||o||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},53344:(e,t,n)=>{"use strict";var r=n(26083).isWhiteSpace,o=n(26083).isPunctChar,i=n(26083).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,u,p,d,f,h,m,g,v,y,b,_,E,T,w,k,x,S,C;for(x=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,w=x.length-1;w>=0&&!(x[w].level<=f);w--);if(x.length=w+1,"text"===a.type){p=0,d=(c=a.content).length;e:for(;p<d&&(s.lastIndex=p,u=s.exec(c));){if(E=T=!0,p=u.index+1,k="'"===u[0],m=32,u.index-1>=0)m=c.charCodeAt(u.index-1);else for(w=n-1;w>=0&&("softbreak"!==e[w].type&&"hardbreak"!==e[w].type);w--)if(e[w].content){m=e[w].content.charCodeAt(e[w].content.length-1);break}if(g=32,p<d)g=c.charCodeAt(p);else for(w=n+1;w<e.length&&("softbreak"!==e[w].type&&"hardbreak"!==e[w].type);w++)if(e[w].content){g=e[w].content.charCodeAt(0);break}if(v=i(m)||o(String.fromCharCode(m)),y=i(g)||o(String.fromCharCode(g)),b=r(m),(_=r(g))?E=!1:y&&(b||v||(E=!1)),b?T=!1:v&&(_||y||(T=!1)),34===g&&'"'===u[0]&&m>=48&&m<=57&&(T=E=!1),E&&T&&(E=v,T=y),E||T){if(T)for(w=x.length-1;w>=0&&(h=x[w],!(x[w].level<f));w--)if(h.single===k&&x[w].level===f){h=x[w],k?(S=t.md.options.quotes[2],C=t.md.options.quotes[3]):(S=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=l(a.content,u.index,C),e[h.token].content=l(e[h.token].content,h.pos,S),p+=C.length-1,h.token===n&&(p+=S.length-1),d=(c=a.content).length,x.length=w;continue e}E?x.push({token:n,pos:u.index,single:k,level:f}):T&&k&&(a.content=l(a.content,u.index,"\u2019"))}else k&&(a.content=l(a.content,u.index,"\u2019"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},86853:(e,t,n)=>{"use strict";var r=n(46581);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r,e.exports=o},73455:e=>{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var o,i,a,s,l,c,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c)return!1;if(60===(s=e.src.charCodeAt(u)))return!1;if(62===s)break}return o=e.src.slice(l+1,u),n.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",i]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(o),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=o.length+2,!0))}},81864:e=>{"use strict";e.exports=function(e,t){var n,r,o,i,a,s,l,c,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(l=(o=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=o),e.pos+=l,!0;for(a=s=u;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((c=s-a)===l)return t||((i=e.push("code_inline","code",0)).markup=o,i.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}},42935:e=>{"use strict";function t(e,t){var n,r,o,i,a,s,l,c,u={},p=t.length;if(p){var d=0,f=-2,h=[];for(n=0;n<p;n++)if(o=t[n],h.push(0),t[d].marker===o.marker&&f===o.token-1||(d=n),f=o.token,o.length=o.length||0,o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),a=u[o.marker][(o.open?3:0)+o.length%3],s=r=d-h[d]-1;r>a;r-=h[r]+1)if((i=t[r]).marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3===0&&o.length%3===0||(l=!0)),!l)){c=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+c,h[r]=c,o.open=!1,i.end=n,i.close=!1,s=-1,f=-2;break}-1!==s&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},41568:e=>{"use strict";function t(e,t){var n,r,o,i,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(o=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),(i=e.tokens[r.token]).type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="",(i=e.tokens[o.token]).type=s?"strong_close":"em_close",i.tag=s?"strong":"em",i.nesting=-1,i.markup=s?a+a:a,i.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},71467:(e,t,n)=>{"use strict";var r=n(58458),o=n(26083).has,i=n(26083).isValidEntityCode,a=n(26083).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<p)if(35===e.src.charCodeAt(u+1)){if(c=e.src.slice(u).match(s))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=i(n)?a(n):a(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(u).match(l))&&o(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},69639:(e,t,n)=>{"use strict";for(var r=n(26083).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,i=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i<a){if((n=e.src.charCodeAt(i))<256&&0!==o[n])return t||(e.pending+=e.src[i]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),i++;i<a&&(n=e.src.charCodeAt(i),r(n));)i++;return e.pos=i,!0}}return t||(e.pending+="\\"),e.pos++,!0}},31519:(e,t,n)=>{"use strict";var r=n(94316).n;e.exports=function(e,t){var n,o,i,a=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=i)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(o=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+o[0].length)),e.pos+=o[0].length,!0))))}},62692:(e,t,n)=>{"use strict";var r=n(26083).normalizeReference,o=n(26083).isSpace;e.exports=function(e,t){var n,i,a,s,l,c,u,p,d,f,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=l+1)<b&&40===e.src.charCodeAt(u)){for(u++;u<b&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);if(u>=b)return!1;for(g=u,(d=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(v=e.md.normalizeLink(d.str),e.md.validateLink(v)?u=d.pos:v=""),g=u;u<b&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);if(d=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<b&&g!==u&&d.ok)for(f=d.str,u=d.pos;u<b&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);else f="";if(u>=b||41!==e.src.charCodeAt(u))return e.pos=y,!1;u++}else{if("undefined"===typeof e.env.references)return!1;if(u<b&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(g,u++):u=l+1):u=l+1,s||(s=e.src.slice(c,l)),!(p=e.env.references[r(s)]))return e.pos=y,!1;v=p.href,f=p.title}return t||(a=e.src.slice(c,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],h.children=m,h.content=a,f&&n.push(["title",f])),e.pos=u,e.posMax=b,!0}},87463:(e,t,n)=>{"use strict";var r=n(26083).normalizeReference,o=n(26083).isSpace;e.exports=function(e,t){var n,i,a,s,l,c,u,p,d="",f="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=s+1)<m&&40===e.src.charCodeAt(c)){for(v=!1,c++;c<m&&(i=e.src.charCodeAt(c),o(i)||10===i);c++);if(c>=m)return!1;if(g=c,(u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?c=u.pos:d="",g=c;c<m&&(i=e.src.charCodeAt(c),o(i)||10===i);c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&g!==c&&u.ok)for(f=u.str,c=u.pos;c<m&&(i=e.src.charCodeAt(c),o(i)||10===i);c++);}(c>=m||41!==e.src.charCodeAt(c))&&(v=!0),c++}if(v){if("undefined"===typeof e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(g,c++):c=s+1):c=s+1,a||(a=e.src.slice(l,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;d=p.href,f=p.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},12489:(e,t,n)=>{"use strict";var r=n(26083).isSpace;e.exports=function(e,t){var n,o,i,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,o=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<o&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}},95361:(e,t,n)=>{"use strict";var r=n(46581),o=n(26083).isWhiteSpace,i=n(26083).isPunctChar,a=n(26083).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var o=new r(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},s.prototype.scanDelims=function(e,t){var n,r,s,l,c,u,p,d,f,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<v&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<v?this.src.charCodeAt(h):32,p=a(n)||i(String.fromCharCode(n)),f=a(r)||i(String.fromCharCode(r)),u=o(n),(d=o(r))?m=!1:f&&(u||p||(m=!1)),u?g=!1:p&&(d||f||(g=!1)),t?(l=m,c=g):(l=m&&(!g||p),c=g&&(!m||f)),{can_open:l,can_close:c,length:s}},s.prototype.Token=r,e.exports=s},69743:e=>{"use strict";function t(e,t){var n,r,o,i,a,s=[],l=t.length;for(n=0;n<l;n++)126===(o=t[n]).marker&&-1!==o.end&&(i=t[o.end],(a=e.tokens[o.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[i.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&s.push(i.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.w=function(e,t){var n,r,o,i,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(o=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(s),o<2)return!1;for(o%2&&(e.push("text","",0).content=i,o--),n=0;n<o;n+=2)e.push("text","",0).content=i+i,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},43308:e=>{"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},31072:e=>{"use strict";e.exports=function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}},46581:e=>{"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},69080:e=>{"use strict";var t={};function n(e,r){var o;return"string"!==typeof r&&(r=n.defaultChars),o=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),o.push(r);for(n=0;n<e.length;n++)o[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return o}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,i,a,s,l,c="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?c+=o[r]:192===(224&r)&&t+3<n&&128===(192&(i=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=r<<6&1984|63&i)<128?"\ufffd\ufffd":String.fromCharCode(l),t+=3):224===(240&r)&&t+6<n&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&i)&&128===(192&a))?(c+=(l=r<<12&61440|i<<6&4032|63&a)<2048||l>=55296&&l<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(l),t+=6):240===(248&r)&&t+9<n&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&i)&&128===(192&a)&&128===(192&s))?((l=r<<18&1835008|i<<12&258048|a<<6&4032|63&s)<65536||l>1114111?c+="\ufffd\ufffd\ufffd\ufffd":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="\ufffd";return c}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},33754:e=>{"use strict";var t={};function n(e,r,o){var i,a,s,l,c,u="";for("string"!==typeof r&&(o=r,r=n.defaultChars),"undefined"===typeof o&&(o=!0),c=function(e){var n,r,o=t[e];if(o)return o;for(o=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?o.push(r):o.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)o[e.charCodeAt(n)]=e[n];return o}(r),i=0,a=e.length;i<a;i++)if(s=e.charCodeAt(i),o&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(l=e.charCodeAt(i+1))>=56320&&l<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},74647:e=>{"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},1036:(e,t,n)=>{"use strict";e.exports.encode=n(33754),e.exports.decode=n(69080),e.exports.format=n(74647),e.exports.parse=n(63179)},63179:e=>{"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(i),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,i,a,f,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=o.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&p[v]||(m=m.substr(2),this.slashes=!0)),!p[v]&&(h||v&&!d[v])){var y,b,_=-1;for(r=0;r<l.length;r++)-1!==(f=m.indexOf(l[r]))&&(-1===_||f<_)&&(_=f);for(-1!==(b=-1===_?m.lastIndexOf("@"):m.lastIndexOf("@",_))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),_=-1,r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===_||f<_)&&(_=f);-1===_&&(_=m.length),":"===m[_-1]&&_--;var E=m.slice(0,_);m=m.slice(_),this.parseHost(E),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T){var w=this.hostname.split(/\./);for(r=0,i=w.length;r<i;r++){var k=w[r];if(k&&!k.match(c)){for(var x="",S=0,C=k.length;S<C;S++)k.charCodeAt(S)>127?x+="x":x+=k[S];if(!x.match(c)){var N=w.slice(0,r),A=w.slice(r+1),O=k.match(u);O&&(N.push(O[1]),A.unshift(O[2])),A.length&&(m=A.join(".")+m),this.hostname=N.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=m.indexOf("#");-1!==I&&(this.hash=m.substr(I),m=m.slice(0,I));var D=m.indexOf("?");return-1!==D&&(this.search=m.substr(D),m=m.slice(0,D)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},78154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>E,encode:()=>y,toASCII:()=>_,toUnicode:()=>b,ucs2decode:()=>f,ucs2encode:()=>h});const r=2147483647,o=36,i=/^xn--/,a=/[^\0-\x7F]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(l[e])}function d(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+o}function f(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const h=e=>String.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=o)e=c(e/35);return c(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let i=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&p("not-basic"),t.push(e.charCodeAt(r));for(let d=l>0?l+1:0;d<n;){const l=i;for(let t=1,a=o;;a+=o){d>=n&&p("invalid-input");const l=(u=e.charCodeAt(d++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:o;l>=o&&p("invalid-input"),l>c((r-i)/t)&&p("overflow"),i+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(l<f)break;const h=o-f;t>c(r/h)&&p("overflow"),t*=h}const f=t.length+1;s=g(i-l,f,0==l),c(i/f)>r-a&&p("overflow"),a+=c(i/f),i%=f,t.splice(i++,0,a)}var u;return String.fromCodePoint(...t)},y=function(e){const t=[],n=(e=f(e)).length;let i=128,a=0,s=72;for(const r of e)r<128&&t.push(u(r));const l=t.length;let d=l;for(l&&t.push("-");d<n;){let n=r;for(const t of e)t>=i&&t<n&&(n=t);const f=d+1;n-i>c((r-a)/f)&&p("overflow"),a+=(n-i)*f,i=n;for(const h of e)if(h<i&&++a>r&&p("overflow"),h===i){let e=a;for(let n=o;;n+=o){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const i=e-r,a=o-r;t.push(u(m(r+i%a,0))),e=c(i/a)}t.push(u(m(e,0))),s=g(a,f,d===l),a=0,++d}++a,++i}return t.join("")},b=function(e){return d(e,(function(e){return i.test(e)?v(e.slice(4).toLowerCase()):e}))},_=function(e){return d(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},E={version:"2.1.0",ucs2:{decode:f,encode:h},decode:v,encode:y,toASCII:_,toUnicode:b}},36676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(5057),a=(r=i)&&r.__esModule?r:{default:r},s=n(55898);var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scriptLoaderId="id"+n.constructor.idCount++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.onError,n=e.onLoad,r=e.url;this.constructor.loadedScripts[r]?n():this.constructor.erroredScripts[r]?t():this.constructor.scriptObservers[r]?this.constructor.scriptObservers[r][this.scriptLoaderId]=this.props:(this.constructor.scriptObservers[r]=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.scriptLoaderId,this.props),this.createScript())}},{key:"componentWillUnmount",value:function(){var e=this.props.url,t=this.constructor.scriptObservers[e];t&&delete t[this.scriptLoaderId]}},{key:"createScript",value:function(){var e=this,t=this.props,n=t.onCreate,r=t.url,o=t.attributes,i=document.createElement("script");n(),o&&Object.keys(o).forEach((function(e){return i.setAttribute(e,o[e])})),i.src=r,i.hasAttribute("async")||(i.async=1);var a=function(t){var n=e.constructor.scriptObservers[r];Object.keys(n).forEach((function(o){t(n[o])&&delete e.constructor.scriptObservers[r][e.scriptLoaderId]}))};i.onload=function(){e.constructor.loadedScripts[r]=!0,a((function(e){return e.onLoad(),!0}))},i.onerror=function(){e.constructor.erroredScripts[r]=!0,a((function(e){return e.onError(),!0}))},document.body.appendChild(i)}},{key:"render",value:function(){return null}}]),t}(a.default.Component);l.propTypes={attributes:s.PropTypes.object,onCreate:s.PropTypes.func,onError:s.PropTypes.func.isRequired,onLoad:s.PropTypes.func.isRequired,url:s.PropTypes.string.isRequired},l.defaultProps={attributes:{},onCreate:function(){},onError:function(){},onLoad:function(){}},l.scriptObservers={},l.loadedScripts={},l.erroredScripts={},l.idCount=0,t.default=l,e.exports=t.default},3370:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},8152:e=>{e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},4226:e=>{e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},95872:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},33146:(e,t,n)=>{"use strict";t.Any=n(16637),t.Cc=n(3370),t.Cf=n(8152),t.P=n(4226),t.Z=n(95872)},16637:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},26762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},3307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},84808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={}},27609:(e,t,n)=>{var r=n(67425).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new L(r||[]);return s(i,"_invoke",{value:A(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",g="suspendedYield",v="executing",y="completed",b={};function _(){}function E(){}function T(){}var w={};d(w,c,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(F([])));x&&x!==i&&a.call(x,c)&&(w=x);var S=T.prototype=_.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(o,i,s,l){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==r(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(p).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function A(e,n,r){var o=m;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=O(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=h(e,n,r);if("normal"===c.type){if(o=r.done?y:g,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function F(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=T,s(S,"constructor",{value:T,configurable:!0}),s(T,"constructor",{value:E,configurable:!0}),E.displayName=d(T,p,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,T):(e.__proto__=T,d(e,p,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},C(N.prototype),d(N.prototype,u,(function(){return this})),n.AsyncIterator=N,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new N(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),d(S,p,"Generator"),d(S,c,(function(){return this})),d(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=F,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:F(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},67425:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},82841:(e,t,n)=>{var r=n(27609)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},72243:(e,t,n)=>{"use strict";n.d(t,{OS:()=>l,Z:()=>c,__:()=>a});var r=n(17869),o=n(56287),i=n(38766);class a extends Error{constructor(e){for(var t,n,i,l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];const{nodes:p,source:d,positions:f,path:h,originalError:m,extensions:g}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(c);super(e),this.name="GraphQLError",this.path=null!==h&&void 0!==h?h:void 0,this.originalError=null!==m&&void 0!==m?m:void 0,this.nodes=s(Array.isArray(p)?p:p?[p]:void 0);const v=s(null===(t=this.nodes)||void 0===t?void 0:t.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==d&&void 0!==d?d:null===v||void 0===v||null===(n=v[0])||void 0===n?void 0:n.source,this.positions=null!==f&&void 0!==f?f:null===v||void 0===v?void 0:v.map((e=>e.start)),this.locations=f&&d?f.map((e=>(0,o.k)(d,e))):null===v||void 0===v?void 0:v.map((e=>(0,o.k)(e.source,e.start)));const y=(0,r.y)(null===m||void 0===m?void 0:m.extensions)?null===m||void 0===m?void 0:m.extensions:void 0;this.extensions=null!==(i=null!==g&&void 0!==g?g:y)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==m&&void 0!==m&&m.stack?Object.defineProperty(this,"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,i.Q)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,i.z)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}function l(e){return e.toString()}function c(e){return e.toJSON()}},96843:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(72243);function o(e,t,n){return new r.__("Syntax Error: ".concat(n),{source:e,positions:[t]})}},55744:(e,t,n)=>{"use strict";n.d(t,{g:()=>l,w:()=>c});var r=n(60844),o=n(10949),i=n(78831),a=n(80371),s=n(11331);function l(e,t,n,r,o){const i=new Map;return u(e,t,n,r,o,i,new Set),i}function c(e,t,n,r,o){const i=new Map,a=new Set;for(const s of o)s.selectionSet&&u(e,t,n,r,s.selectionSet,i,a);return i}function u(e,t,n,o,i,a,s){for(const c of i.selections)switch(c.kind){case r.h.FIELD:{if(!p(n,c))continue;const e=(l=c).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(c):a.set(e,[c]);break}case r.h.INLINE_FRAGMENT:if(!p(n,c)||!d(e,c,o))continue;u(e,t,n,o,c.selectionSet,a,s);break;case r.h.FRAGMENT_SPREAD:{const r=c.name.value;if(s.has(r)||!p(n,c))continue;s.add(r);const i=t[r];if(!i||!d(e,i,o))continue;u(e,t,n,o,i.selectionSet,a,s);break}}var l}function p(e,t){const n=(0,s.zu)(i.QE,t,e);if(!0===(null===n||void 0===n?void 0:n.if))return!1;const r=(0,s.zu)(i.Yf,t,e);return!1!==(null===r||void 0===r?void 0:r.if)}function d(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=(0,a._)(e,r);return i===n||!!(0,o.m0)(i)&&e.isSubType(i,n)}},11331:(e,t,n)=>{"use strict";n.d(t,{LX:()=>h,QF:()=>f,zu:()=>m});var r=n(6024),o=n(92373),i=n(2960),a=n(72243),s=n(60844),l=n(56327),c=n(10949),u=n(44517),p=n(80371),d=n(42954);function f(e,t,n,o){const s=[],f=null===o||void 0===o?void 0:o.maxErrors;try{const o=function(e,t,n,o){const s={};for(const f of t){const t=f.variable.name.value,h=(0,p._)(e,f.type);if(!(0,c.j$)(h)){const e=(0,l.S)(f.type);o(new a.__('Variable "$'.concat(t,'" expected value of type "').concat(e,'" which cannot be used as an input type.'),{nodes:f.type}));continue}if(!g(n,t)){if(f.defaultValue)s[t]=(0,d.u)(f.defaultValue,h);else if((0,c.zM)(h)){const e=(0,r.X)(h);o(new a.__('Variable "$'.concat(t,'" of required type "').concat(e,'" was not provided.'),{nodes:f}))}continue}const m=n[t];if(null===m&&(0,c.zM)(h)){const e=(0,r.X)(h);o(new a.__('Variable "$'.concat(t,'" of non-null type "').concat(e,'" must not be null.'),{nodes:f}))}else s[t]=(0,u.K)(m,h,((e,n,s)=>{let l='Variable "$'.concat(t,'" got invalid value ')+(0,r.X)(n);e.length>0&&(l+=' at "'.concat(t).concat((0,i.F)(e),'"')),o(new a.__(l+"; "+s.message,{nodes:f,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=f&&s.length>=f)throw new a.__("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:o}}catch(h){s.push(h)}return{errors:s}}function h(e,t,n){var i;const u={},p=null!==(i=t.arguments)&&void 0!==i?i:[],f=(0,o.P)(p,(e=>e.name.value));for(const o of e.args){const e=o.name,i=o.type,p=f[e];if(!p){if(void 0!==o.defaultValue)u[e]=o.defaultValue;else if((0,c.zM)(i))throw new a.__('Argument "'.concat(e,'" of required type "').concat((0,r.X)(i),'" ')+"was not provided.",{nodes:t});continue}const h=p.value;let m=h.kind===s.h.NULL;if(h.kind===s.h.VARIABLE){const t=h.name.value;if(null==n||!g(n,t)){if(void 0!==o.defaultValue)u[e]=o.defaultValue;else if((0,c.zM)(i))throw new a.__('Argument "'.concat(e,'" of required type "').concat((0,r.X)(i),'" ')+'was provided the variable "$'.concat(t,'" which was not provided a runtime value.'),{nodes:h});continue}m=null==n[t]}if(m&&(0,c.zM)(i))throw new a.__('Argument "'.concat(e,'" of non-null type "').concat((0,r.X)(i),'" ')+"must not be null.",{nodes:h});const v=(0,d.u)(h,i,n);if(void 0===v)throw new a.__('Argument "'.concat(e,'" has invalid value ').concat((0,l.S)(h),"."),{nodes:h});u[e]=v}return u}function m(e,t,n){var r;const o=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(o)return h(e,o,n)}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},18700:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>te.$_,BreakingChangeType:()=>Ft,DEFAULT_DEPRECATION_REASON:()=>W.SY,DangerousChangeType:()=>Mt,DirectiveLocation:()=>ne.B,ExecutableDefinitionsRule:()=>ue.i,FieldsOnCorrectTypeRule:()=>pe.A,FragmentsOnCompositeTypesRule:()=>de.T,GRAPHQL_MAX_INT:()=>Q.HI,GRAPHQL_MIN_INT:()=>Q.st,GraphQLBoolean:()=>Q.EZ,GraphQLDeprecatedDirective:()=>W.fg,GraphQLDirective:()=>W.NZ,GraphQLEnumType:()=>E.mR,GraphQLError:()=>g.__,GraphQLFloat:()=>Q.av,GraphQLID:()=>Q.km,GraphQLIncludeDirective:()=>W.Yf,GraphQLInputObjectType:()=>E.sR,GraphQLInt:()=>Q._o,GraphQLInterfaceType:()=>E.oW,GraphQLList:()=>E.p2,GraphQLNonNull:()=>E.bM,GraphQLObjectType:()=>E.h6,GraphQLScalarType:()=>E.n2,GraphQLSchema:()=>G.XO,GraphQLSkipDirective:()=>W.QE,GraphQLSpecifiedByDirective:()=>W.df,GraphQLString:()=>Q.kH,GraphQLUnionType:()=>E.Gp,Kind:()=>_.h,KnownArgumentNamesRule:()=>fe.e,KnownDirectivesRule:()=>he.J,KnownFragmentNamesRule:()=>me.a,KnownTypeNamesRule:()=>ge.I,Lexer:()=>K.h,Location:()=>b.Ye,LoneAnonymousOperationRule:()=>ve.F,LoneSchemaDefinitionRule:()=>Re.t,NoDeprecatedCustomRule:()=>He.r,NoFragmentCyclesRule:()=>ye.H,NoSchemaIntrospectionCustomRule:()=>se,NoUndefinedVariablesRule:()=>be.$,NoUnusedFragmentsRule:()=>_e.J,NoUnusedVariablesRule:()=>Ee.p,OperationTypeNode:()=>b.ku,OverlappingFieldsCanBeMergedRule:()=>Te.y,PossibleFragmentSpreadsRule:()=>we.a,PossibleTypeExtensionsRule:()=>ze.g,ProvidedRequiredArgumentsRule:()=>ke.s,ScalarLeafsRule:()=>xe.O,SchemaMetaFieldDef:()=>T.Az,SingleFieldSubscriptionsRule:()=>Se.Z,Source:()=>J.H,Token:()=>b.WU,TokenKind:()=>Z.T,TypeInfo:()=>nn.a,TypeKind:()=>T.zU,TypeMetaFieldDef:()=>T.tF,TypeNameMetaFieldDef:()=>T.hU,UniqueArgumentDefinitionNamesRule:()=>Ue.L,UniqueArgumentNamesRule:()=>Ce.L,UniqueDirectiveNamesRule:()=>Be.o,UniqueDirectivesPerLocationRule:()=>Ne.k,UniqueEnumValueNamesRule:()=>Ve.L,UniqueFieldDefinitionNamesRule:()=>qe.y,UniqueFragmentNamesRule:()=>Ae.N,UniqueInputFieldNamesRule:()=>Oe.P,UniqueOperationNamesRule:()=>Ie.H,UniqueOperationTypesRule:()=>je.q,UniqueTypeNamesRule:()=>Pe.P,UniqueVariableNamesRule:()=>De.H,ValidationContext:()=>le._t,ValuesOfCorrectTypeRule:()=>Le.j,VariablesAreInputTypesRule:()=>Fe.I,VariablesInAllowedPositionRule:()=>Me.w,__Directive:()=>T.l3,__DirectiveLocation:()=>T.x2,__EnumValue:()=>T.jT,__Field:()=>T.e_,__InputValue:()=>T.XQ,__Schema:()=>T.TK,__Type:()=>T.qz,__TypeKind:()=>T.PX,assertAbstractType:()=>E.fU,assertCompositeType:()=>E.M_,assertDirective:()=>W.CO,assertEnumType:()=>E.Zu,assertEnumValueName:()=>X.g,assertInputObjectType:()=>E.U8,assertInputType:()=>E.qT,assertInterfaceType:()=>E.k2,assertLeafType:()=>E.H5,assertListType:()=>E.kS,assertName:()=>X.i,assertNamedType:()=>E.rM,assertNonNullType:()=>E.E$,assertNullableType:()=>E.i_,assertObjectType:()=>E.Z6,assertOutputType:()=>E.Gt,assertScalarType:()=>E.Pt,assertSchema:()=>G.EO,assertType:()=>E.p_,assertUnionType:()=>E.rc,assertValidName:()=>Dt,assertValidSchema:()=>l.J,assertWrappingType:()=>E.vX,astFromValue:()=>ft.J,buildASTSchema:()=>ot,buildClientSchema:()=>Zt.Z,buildSchema:()=>it,coerceInputValue:()=>rn.K,concatAST:()=>Ct,createSourceEventStream:()=>ae,defaultFieldResolver:()=>q,defaultTypeResolver:()=>V,doTypesOverlap:()=>on.zR,execute:()=>S,executeSync:()=>C,extendSchema:()=>Ze,findBreakingChanges:()=>jt,findDangerousChanges:()=>Pt,formatError:()=>g.Z,getArgumentValues:()=>k.LX,getDirectiveValues:()=>k.zu,getEnterLeaveForKind:()=>te.Eu,getIntrospectionQuery:()=>Xe.K,getLocation:()=>Y.k,getNamedType:()=>E.xC,getNullableType:()=>E.tf,getOperationAST:()=>We,getOperationRootType:()=>Qe,getVariableValues:()=>k.QF,getVisitFn:()=>te.CK,graphql:()=>B,graphqlSync:()=>z,introspectionFromSchema:()=>Je,introspectionTypes:()=>T.nL,isAbstractType:()=>E.m0,isCompositeType:()=>E.Gv,isConstValueNode:()=>re.Of,isDefinitionNode:()=>re.Ir,isDirective:()=>W.wX,isEnumType:()=>E.EM,isEqualType:()=>on._7,isExecutableDefinitionNode:()=>re.Wk,isInputObjectType:()=>E.hL,isInputType:()=>E.j$,isInterfaceType:()=>E.oT,isIntrospectionType:()=>T.s9,isLeafType:()=>E.UT,isListType:()=>E.HG,isNamedType:()=>E.Zs,isNonNullType:()=>E.zM,isNullableType:()=>E.zP,isObjectType:()=>E.lp,isOutputType:()=>E.SZ,isRequiredArgument:()=>E.dK,isRequiredInputField:()=>E.Wd,isScalarType:()=>E.KA,isSchema:()=>G.nN,isSelectionNode:()=>re.pO,isSpecifiedDirective:()=>W.xg,isSpecifiedScalarType:()=>Q.u1,isType:()=>E.P9,isTypeDefinitionNode:()=>re.zT,isTypeExtensionNode:()=>re.D$,isTypeNode:()=>re.VB,isTypeSubTypeOf:()=>on.uJ,isTypeSystemDefinitionNode:()=>re.G4,isTypeSystemExtensionNode:()=>re.aU,isUnionType:()=>E.EN,isValidNameError:()=>Lt,isValueNode:()=>re.nr,isWrappingType:()=>E.fw,lexicographicSortSchema:()=>lt,locatedError:()=>y,parse:()=>s.Qc,parseConstValue:()=>s.tl,parseType:()=>s.gZ,parseValue:()=>s.H2,print:()=>ee.S,printError:()=>g.OS,printIntrospectionSchema:()=>mt,printLocation:()=>$.Q,printSchema:()=>ht,printSourceLocation:()=>$.z,printType:()=>bt,resolveObjMapThunk:()=>E.WB,resolveReadonlyArrayThunk:()=>E._9,responsePathAsArray:()=>h.N,separateOperations:()=>Nt,specifiedDirectives:()=>W.V4,specifiedRules:()=>ce.i,specifiedScalarTypes:()=>Q.HS,stripIgnoredCharacters:()=>It,subscribe:()=>ie,syntaxError:()=>Ge.h,typeFromAST:()=>en._,validate:()=>c.Gu,validateSchema:()=>l.F,valueFromAST:()=>Ke.u,valueFromASTUntyped:()=>tn.M,version:()=>r,versionInfo:()=>o,visit:()=>te.Vn,visitInParallel:()=>te.j1,visitWithTypeInfo:()=>nn.y});const r="16.7.1",o=Object.freeze({major:16,minor:7,patch:1,preReleaseTag:null});var i=n(61388);function a(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}var s=n(92460),l=n(91681),c=n(72996),u=n(6024),p=n(42690),d=n(73342),f=n(17869);var h=n(97836);function m(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,o]of Object.keys(e).entries())n[o]=t[r];return n}))}var g=n(72243);class v extends Error{constructor(e){super("Unexpected error value: "+(0,u.X)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function y(e,t,n){var r;const o=(i=e)instanceof Error?i:new v(i);var i,a;return a=o,Array.isArray(a.path)?o:new g.__(o.message,{nodes:null!==(r=o.nodes)&&void 0!==r?r:t,source:o.source,positions:o.positions,path:n,originalError:o})}var b=n(48700),_=n(60844),E=n(10949),T=n(64478),w=n(55744),k=n(11331);const x=function(e){let t;return function(n,r,o){void 0===t&&(t=new WeakMap);let i=t.get(n);void 0===i&&(i=new WeakMap,t.set(n,i));let a=i.get(r);void 0===a&&(a=new WeakMap,i.set(r,a));let s=a.get(o);return void 0===s&&(s=e(n,r,o),a.set(o,s)),s}}(((e,t,n)=>(0,w.w)(e.schema,e.fragments,e.variableValues,t,n)));function S(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:o}=e;A(t,n,r);const s=O(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new g.__("Schema is not configured to execute ".concat(t.operation," operation."),{nodes:t});const o=(0,w.g)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),i=void 0;switch(t.operation){case b.ku.QUERY:return I(e,r,n,i,o);case b.ku.MUTATION:return function(e,t,n,r,o){return function(e,t,n){let r=n;for(const o of e)r=a(r)?r.then((e=>t(e,o))):t(r,o);return r}(o.entries(),((o,i)=>{let[s,l]=i;const c=(0,h.Q)(r,s,t.name),u=D(e,t,n,l,c);return void 0===u?o:a(u)?u.then((e=>(o[s]=e,o))):(o[s]=u,o)}),Object.create(null))}(e,r,n,i,o);case b.ku.SUBSCRIPTION:return I(e,r,n,i,o)}}(s,e,o);return a(t)?t.then((e=>N(e,s.errors)),(e=>(s.errors.push(e),N(null,s.errors)))):N(t,s.errors)}catch(l){return s.errors.push(l),N(null,s.errors)}}function C(e){const t=S(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function N(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function A(e,t,n){t||(0,i.a)(!1,"Must provide document."),(0,l.J)(e),null==n||(0,f.y)(n)||(0,i.a)(!1,"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 O(e){var t,n;const{schema:r,document:o,rootValue:i,contextValue:a,variableValues:s,operationName:l,fieldResolver:c,typeResolver:u,subscribeFieldResolver:p}=e;let d;const f=Object.create(null);for(const v of o.definitions)switch(v.kind){case _.h.OPERATION_DEFINITION:if(null==l){if(void 0!==d)return[new g.__("Must provide operation name if query contains multiple operations.")];d=v}else(null===(t=v.name)||void 0===t?void 0:t.value)===l&&(d=v);break;case _.h.FRAGMENT_DEFINITION:f[v.name.value]=v}if(!d)return null!=l?[new g.__('Unknown operation named "'.concat(l,'".'))]:[new g.__("Must provide an operation.")];const h=null!==(n=d.variableDefinitions)&&void 0!==n?n:[],m=(0,k.QF)(r,h,null!==s&&void 0!==s?s:{},{maxErrors:50});return m.errors?m.errors:{schema:r,fragments:f,rootValue:i,contextValue:a,operation:d,variableValues:m.coerced,fieldResolver:null!==c&&void 0!==c?c:q,typeResolver:null!==u&&void 0!==u?u:V,subscribeFieldResolver:null!==p&&void 0!==p?p:q,errors:[]}}function I(e,t,n,r,o){const i=Object.create(null);let s=!1;try{for(const[l,c]of o.entries()){const o=D(e,t,n,c,(0,h.Q)(r,l,t.name));void 0!==o&&(i[l]=o,a(o)&&(s=!0))}}catch(l){if(s)return m(i).finally((()=>{throw l}));throw l}return s?m(i):i}function D(e,t,n,r,o){var i;const s=U(e.schema,t,r[0]);if(!s)return;const l=s.type,c=null!==(i=s.resolve)&&void 0!==i?i:e.fieldResolver,u=L(e,s,r,t,o);try{const t=(0,k.LX)(s,r[0],e.variableValues),i=c(n,t,e.contextValue,u);let p;return p=a(i)?i.then((t=>M(e,l,r,u,o,t))):M(e,l,r,u,o,i),a(p)?p.then(void 0,(t=>F(y(t,r,(0,h.N)(o)),l,e))):p}catch(p){return F(y(p,r,(0,h.N)(o)),l,e)}}function L(e,t,n,r,o){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function F(e,t,n){if((0,E.zM)(t))throw e;return n.errors.push(e),null}function M(e,t,n,r,o,i){if(i instanceof Error)throw i;if((0,E.zM)(t)){const a=M(e,t.ofType,n,r,o,i);if(null===a)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return a}return null==i?null:(0,E.HG)(t)?function(e,t,n,r,o,i){if(!(0,d.i)(i))throw new g.__('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));const s=t.ofType;let l=!1;const c=Array.from(i,((t,i)=>{const c=(0,h.Q)(o,i,void 0);try{let o;return o=a(t)?t.then((t=>M(e,s,n,r,c,t))):M(e,s,n,r,c,t),a(o)?(l=!0,o.then(void 0,(t=>F(y(t,n,(0,h.N)(c)),s,e)))):o}catch(u){return F(y(u,n,(0,h.N)(c)),s,e)}}));return l?Promise.all(c):c}(e,t,n,r,o,i):(0,E.UT)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error("Expected `".concat((0,u.X)(e),".serialize(").concat((0,u.X)(t),")` to ")+"return non-nullable value, returned: ".concat((0,u.X)(n)));return n}(t,i):(0,E.m0)(t)?function(e,t,n,r,o,i){var s;const l=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,c=e.contextValue,u=l(i,c,r,t);if(a(u))return u.then((a=>j(e,R(a,e,t,n,r,i),n,r,o,i)));return j(e,R(u,e,t,n,r,i),n,r,o,i)}(e,t,n,r,o,i):(0,E.lp)(t)?j(e,t,n,r,o,i):void(0,p.k)(!1,"Cannot complete value of unexpected output type: "+(0,u.X)(t))}function R(e,t,n,r,o,i){if(null==e)throw new g.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(o.parentType.name,".").concat(o.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if((0,E.lp)(e))throw new g.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!==typeof e)throw new g.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(o.parentType.name,".").concat(o.fieldName,'" with ')+"value ".concat((0,u.X)(i),', received "').concat((0,u.X)(e),'".'));const a=t.schema.getType(e);if(null==a)throw new g.__('Abstract type "'.concat(n.name,'" was resolved to a type "').concat(e,'" that does not exist inside the schema.'),{nodes:r});if(!(0,E.lp)(a))throw new g.__('Abstract type "'.concat(n.name,'" was resolved to a non-object type "').concat(e,'".'),{nodes:r});if(!t.schema.isSubType(n,a))throw new g.__('Runtime Object type "'.concat(a.name,'" is not a possible type for "').concat(n.name,'".'),{nodes:r});return a}function j(e,t,n,r,o,i){const s=x(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(i,e.contextValue,r);if(a(l))return l.then((r=>{if(!r)throw P(t,i,n);return I(e,t,i,o,s)}));if(!l)throw P(t,i,n)}return I(e,t,i,o,s)}function P(e,t,n){return new g.__('Expected value of type "'.concat(e.name,'" but got: ').concat((0,u.X)(t),"."),{nodes:n})}const V=function(e,t,n,r){if((0,f.y)(e)&&"string"===typeof e.__typename)return e.__typename;const o=n.schema.getPossibleTypes(r),i=[];for(let s=0;s<o.length;s++){const r=o[s];if(r.isTypeOf){const o=r.isTypeOf(e,t,n);if(a(o))i[s]=o;else if(o)return r.name}}return i.length?Promise.all(i).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return o[t].name})):void 0},q=function(e,t,n,r){if((0,f.y)(e)||"function"===typeof e){const o=e[r.fieldName];return"function"===typeof o?e[r.fieldName](t,n,r):o}};function U(e,t,n){const r=n.name.value;return r===T.Az.name&&e.getQueryType()===t?T.Az:r===T.tF.name&&e.getQueryType()===t?T.tF:r===T.hU.name?T.hU:t.getFields()[r]}function B(e){return new Promise((t=>t(H(e))))}function z(e){const t=H(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function H(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:o,variableValues:a,operationName:u,fieldResolver:p,typeResolver:d}=e,f=(0,l.F)(t);if(f.length>0)return{errors:f};let h;try{h=(0,s.Qc)(n)}catch(Ge){return{errors:[Ge]}}const m=(0,c.Gu)(t,h);return m.length>0?{errors:m}:S({schema:t,document:h,rootValue:r,contextValue:o,variableValues:a,operationName:u,fieldResolver:p,typeResolver:d})}var G=n(88041),W=n(78831),Q=n(540),X=n(56086),J=n(84835),Y=n(56287),$=n(38766),K=n(54551),Z=n(42008),ee=n(56327),te=n(7751),ne=n(62724),re=n(2364);function oe(e){return"function"===typeof(null===e||void 0===e?void 0:e[Symbol.asyncIterator])}async function ie(e){arguments.length<2||(0,i.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await ae(e);if(!oe(t))return t;return function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(r){if("function"===typeof n.return)try{await n.return()}catch(o){}throw r}}return{next:async()=>r(await n.next()),return:async()=>"function"===typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"===typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t,(t=>S({...e,rootValue:t})))}async function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(t),{schema:o,document:i,variableValues:a}=r;A(o,i,a);const s=O(r);if(!("schema"in s))return{errors:s};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:o,rootValue:i}=e,a=t.getSubscriptionType();if(null==a)throw new g.__("Schema is not configured to execute subscription operation.",{nodes:r});const s=(0,w.g)(t,n,o,a,r.selectionSet),[l,c]=[...s.entries()][0],u=U(t,a,c[0]);if(!u){const e=c[0].name.value;throw new g.__('The subscription field "'.concat(e,'" is not defined.'),{nodes:c})}const p=(0,h.Q)(void 0,l,a.name),d=L(e,u,c,a,p);try{var f;const t=(0,k.LX)(u,c[0],o),n=e.contextValue,r=null!==(f=u.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,a=await r(i,t,n,d);if(a instanceof Error)throw a;return a}catch(m){throw y(m,c,(0,h.N)(p))}}(s);if(!oe(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,u.X)(e),"."));return e}catch(l){if(l instanceof g.__)return{errors:[l]};throw l}}function se(e){return{Field(t){const n=(0,E.xC)(e.getType());n&&(0,T.s9)(n)&&e.reportError(new g.__('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),{nodes:t}))}}}var le=n(26743),ce=n(14141),ue=n(77382),pe=n(5741),de=n(84876),fe=n(68521),he=n(84646),me=n(27499),ge=n(52546),ve=n(76373),ye=n(76776),be=n(754),_e=n(5826),Ee=n(67184),Te=n(61074),we=n(20919),ke=n(25897),xe=n(80926),Se=n(93448),Ce=n(65915),Ne=n(23453),Ae=n(53316),Oe=n(83703),Ie=n(83654),De=n(42205),Le=n(82856),Fe=n(15024),Me=n(15247),Re=n(1367),je=n(54495),Pe=n(63669),Ve=n(15617),qe=n(77916),Ue=n(15702),Be=n(86066),ze=n(92793),He=n(43113),Ge=n(96843);function We(e,t){let n=null;for(const o of e.definitions){var r;if(o.kind===_.h.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(r=o.name)||void 0===r?void 0:r.value)===t)return o}return n}function Qe(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new g.__("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new g.__("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new g.__("Schema is not configured for subscriptions.",{nodes:t});return n}throw new g.__("Can only have query, mutation and subscription operations.",{nodes:t})}var Xe=n(95122);function Je(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=C({schema:e,document:(0,s.Qc)((0,Xe.K)(n))});return!r.errors&&r.data||(0,p.k)(!1),r.data}var Ye=n(92373),$e=n(2153),Ke=n(42954);function Ze(e,t,n){(0,G.EO)(e),null!=t&&t.kind===_.h.DOCUMENT||(0,i.a)(!1,"Must provide valid Document AST."),!0!==(null===n||void 0===n?void 0:n.assumeValid)&&!0!==(null===n||void 0===n?void 0:n.assumeValidSDL)&&(0,c.ED)(t,e);const r=e.toConfig(),o=et(r,t,n);return r===o?e:new G.XO(o)}function et(e,t,n){var r,o,i,a;const s=[],l=Object.create(null),c=[];let d;const f=[];for(const u of t.definitions)if(u.kind===_.h.SCHEMA_DEFINITION)d=u;else if(u.kind===_.h.SCHEMA_EXTENSION)f.push(u);else if((0,re.zT)(u))s.push(u);else if((0,re.D$)(u)){const e=u.name.value,t=l[e];l[e]=t?t.concat([u]):[u]}else u.kind===_.h.DIRECTIVE_DEFINITION&&c.push(u);if(0===Object.keys(l).length&&0===s.length&&0===c.length&&0===f.length&&null==d)return e;const h=Object.create(null);for(const u of e.types)h[u.name]=b(u);for(const u of s){var m;const e=u.name.value;h[e]=null!==(m=tt[e])&&void 0!==m?m:F(u)}const g={query:e.query&&y(e.query),mutation:e.mutation&&y(e.mutation),subscription:e.subscription&&y(e.subscription),...d&&x([d]),...x(f)};return{description:null===(r=d)||void 0===r||null===(o=r.description)||void 0===o?void 0:o.value,...g,types:Object.values(h),directives:[...e.directives.map((function(e){const t=e.toConfig();return new W.NZ({...t,args:(0,$e.j)(t.args,k)})})),...c.map((function(e){var t;return new W.NZ({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((e=>{let{value:t}=e;return t})),isRepeatable:e.repeatable,args:A(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(i=d)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null===n||void 0===n?void 0:n.assumeValid)&&void 0!==a&&a};function v(e){return(0,E.HG)(e)?new E.p2(v(e.ofType)):(0,E.zM)(e)?new E.bM(v(e.ofType)):y(e)}function y(e){return h[e.name]}function b(e){return(0,T.s9)(e)||(0,Q.u1)(e)?e:(0,E.KA)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];let o=n.specifiedByURL;for(const a of r){var i;o=null!==(i=rt(a))&&void 0!==i?i:o}return new E.n2({...n,specifiedByURL:o,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,E.lp)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new E.h6({...n,interfaces:()=>[...e.getInterfaces().map(y),...D(r)],fields:()=>({...(0,$e.j)(n.fields,w),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,E.oT)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new E.oW({...n,interfaces:()=>[...e.getInterfaces().map(y),...D(r)],fields:()=>({...(0,$e.j)(n.fields,w),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,E.EN)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new E.Gp({...n,types:()=>[...e.getTypes().map(y),...L(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,E.EM)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new E.mR({...n,values:{...n.values,...I(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,E.hL)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new E.sR({...n,fields:()=>({...(0,$e.j)(n.fields,(e=>({...e,type:v(e.type)}))),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void(0,p.k)(!1,"Unexpected type: "+(0,u.X)(e))}function w(e){return{...e,type:v(e.type),args:e.args&&(0,$e.j)(e.args,k)}}function k(e){return{...e,type:v(e.type)}}function x(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=S(n.type)}return t}function S(e){var t;const n=e.name.value,r=null!==(t=tt[n])&&void 0!==t?t:h[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function C(e){return e.kind===_.h.LIST_TYPE?new E.p2(C(e.type)):e.kind===_.h.NON_NULL_TYPE?new E.bM(C(e.type)):S(e)}function N(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:C(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:A(n.arguments),deprecationReason:nt(n),astNode:n}}}return t}function A(e){const t=null!==e&&void 0!==e?e:[],n=Object.create(null);for(const o of t){var r;const e=C(o.type);n[o.name.value]={type:e,description:null===(r=o.description)||void 0===r?void 0:r.value,defaultValue:(0,Ke.u)(o.defaultValue,e),deprecationReason:nt(o),astNode:o}}return n}function O(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=C(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,Ke.u)(n.defaultValue,e),deprecationReason:nt(n),astNode:n}}}return t}function I(e){const t=Object.create(null);for(const o of e){var n;const e=null!==(n=o.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:nt(n),astNode:n}}}return t}function D(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(S))&&void 0!==t?t:[]}))}function L(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(S))&&void 0!==t?t:[]}))}function F(e){var t;const n=e.name.value,r=null!==(t=l[n])&&void 0!==t?t:[];switch(e.kind){case _.h.OBJECT_TYPE_DEFINITION:{var o;const t=[e,...r];return new E.h6({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>D(t),fields:()=>N(t),astNode:e,extensionASTNodes:r})}case _.h.INTERFACE_TYPE_DEFINITION:{var i;const t=[e,...r];return new E.oW({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>D(t),fields:()=>N(t),astNode:e,extensionASTNodes:r})}case _.h.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new E.mR({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:I(t),astNode:e,extensionASTNodes:r})}case _.h.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new E.Gp({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>L(t),astNode:e,extensionASTNodes:r})}case _.h.SCALAR_TYPE_DEFINITION:var c;return new E.n2({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:rt(e),astNode:e,extensionASTNodes:r});case _.h.INPUT_OBJECT_TYPE_DEFINITION:{var u;const t=[e,...r];return new E.sR({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,fields:()=>O(t),astNode:e,extensionASTNodes:r})}}}}const tt=(0,Ye.P)([...Q.HS,...T.nL],(e=>e.name));function nt(e){const t=(0,k.zu)(W.fg,e);return null===t||void 0===t?void 0:t.reason}function rt(e){const t=(0,k.zu)(W.df,e);return null===t||void 0===t?void 0:t.url}function ot(e,t){null!=e&&e.kind===_.h.DOCUMENT||(0,i.a)(!1,"Must provide valid Document AST."),!0!==(null===t||void 0===t?void 0:t.assumeValid)&&!0!==(null===t||void 0===t?void 0:t.assumeValidSDL)&&(0,c.zo)(e);const n=et({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const o of n.types)switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}const r=[...n.directives,...W.V4.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new G.XO({...n,directives:r})}function it(e,t){return ot((0,s.Qc)(e,{noLocation:null===t||void 0===t?void 0:t.noLocation,allowLegacyFragmentVariables:null===t||void 0===t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null===t||void 0===t?void 0:t.assumeValidSDL,assumeValid:null===t||void 0===t?void 0:t.assumeValid})}var at=n(50964),st=n(9911);function lt(e){const t=e.toConfig(),n=(0,at.w)(ut(t.types),(e=>e.name),(function(e){if((0,E.KA)(e)||(0,T.s9)(e))return e;if((0,E.lp)(e)){const t=e.toConfig();return new E.h6({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if((0,E.oT)(e)){const t=e.toConfig();return new E.oW({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if((0,E.EN)(e)){const t=e.toConfig();return new E.Gp({...t,types:()=>l(t.types)})}if((0,E.EM)(e)){const t=e.toConfig();return new E.mR({...t,values:ct(t.values,(e=>e))})}if((0,E.hL)(e)){const t=e.toConfig();return new E.sR({...t,fields:()=>ct(t.fields,(e=>({...e,type:r(e.type)})))})}(0,p.k)(!1,"Unexpected type: "+(0,u.X)(e))}));return new G.XO({...t,types:Object.values(n),directives:ut(t.directives).map((function(e){const t=e.toConfig();return new W.NZ({...t,locations:pt(t.locations,(e=>e)),args:a(t.args)})})),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)});function r(e){return(0,E.HG)(e)?new E.p2(r(e.ofType)):(0,E.zM)(e)?new E.bM(r(e.ofType)):o(e)}function o(e){return n[e.name]}function i(e){return e&&o(e)}function a(e){return ct(e,(e=>({...e,type:r(e.type)})))}function s(e){return ct(e,(e=>({...e,type:r(e.type),args:e.args&&a(e.args)})))}function l(e){return ut(e).map(o)}}function ct(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(st.K))n[r]=t(e[r]);return n}function ut(e){return pt(e,(e=>e.name))}function pt(e,t){return e.slice().sort(((e,n)=>{const r=t(e),o=t(n);return(0,st.K)(r,o)}))}var dt=n(5035),ft=n(99024);function ht(e){return vt(e,(e=>!(0,W.xg)(e)),gt)}function mt(e){return vt(e,W.xg,T.s9)}function gt(e){return!(0,Q.u1)(e)&&!(0,T.s9)(e)}function vt(e,t,n){const r=e.getDirectives().filter(t),o=Object.values(e.getTypeMap()).filter(n);return[yt(e),...r.map((e=>function(e){return St(e)+"directive @"+e.name+wt(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...o.map((e=>bt(e)))].filter(Boolean).join("\n\n")}function yt(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));const r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));const o=e.getSubscriptionType();return o&&t.push(" subscription: ".concat(o.name)),St(e)+"schema {\n".concat(t.join("\n"),"\n}")}function bt(e){return(0,E.KA)(e)?function(e){return St(e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByURL)return"";const t=(0,ee.S)({kind:_.h.STRING,value:e.specifiedByURL});return" @specifiedBy(url: ".concat(t,")")}(e)}(e):(0,E.lp)(e)?function(e){return St(e)+"type ".concat(e.name)+_t(e)+Et(e)}(e):(0,E.oT)(e)?function(e){return St(e)+"interface ".concat(e.name)+_t(e)+Et(e)}(e):(0,E.EN)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return St(e)+"union "+e.name+n}(e):(0,E.EM)(e)?function(e){const t=e.getValues().map(((e,t)=>St(e," ",!t)+" "+e.name+xt(e.deprecationReason)));return St(e)+"enum ".concat(e.name)+Tt(t)}(e):(0,E.hL)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>St(e," ",!t)+" "+kt(e)));return St(e)+"input ".concat(e.name)+Tt(t)}(e):void(0,p.k)(!1,"Unexpected type: "+(0,u.X)(e))}function _t(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function Et(e){return Tt(Object.values(e.getFields()).map(((e,t)=>St(e," ",!t)+" "+e.name+wt(e.args," ")+": "+String(e.type)+xt(e.deprecationReason))))}function Tt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(kt).join(", ")+")":"(\n"+e.map(((e,n)=>St(e," "+t,!n)+" "+t+kt(e))).join("\n")+"\n"+t+")"}function kt(e){const t=(0,ft.J)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=" = ".concat((0,ee.S)(t))),n+xt(e.deprecationReason)}function xt(e){if(null==e)return"";if(e!==W.SY){const t=(0,ee.S)({kind:_.h.STRING,value:e});return" @deprecated(reason: ".concat(t,")")}return" @deprecated"}function St(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{description:r}=e;if(null==r)return"";return(t&&!n?"\n"+t:t)+(0,ee.S)({kind:_.h.STRING,value:r,block:(0,dt.MZ)(r)}).replace(/\n/g,"\n"+t)+"\n"}function Ct(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:_.h.DOCUMENT,definitions:t}}function Nt(e){const t=[],n=Object.create(null);for(const o of e.definitions)switch(o.kind){case _.h.OPERATION_DEFINITION:t.push(o);break;case _.h.FRAGMENT_DEFINITION:n[o.name.value]=Ot(o.selectionSet)}const r=Object.create(null);for(const o of t){const t=new Set;for(const e of Ot(o.selectionSet))At(t,n,e);r[o.name?o.name.value:""]={kind:_.h.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===_.h.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function At(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)At(e,t,n)}}function Ot(e){const t=[];return(0,te.Vn)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function It(e){const t=(0,J.T)(e)?e:new J.H(e),n=t.body,r=new K.h(t);let o="",i=!1;for(;r.advance().kind!==Z.T.EOF;){const e=r.token,t=e.kind,a=!(0,K.u)(e.kind);i&&(a||e.kind===Z.T.SPREAD)&&(o+=" ");const s=n.slice(e.start,e.end);t===Z.T.BLOCK_STRING?o+=(0,dt.LZ)(e.value,{minimize:!0}):o+=s,i=a}return o}function Dt(e){const t=Lt(e);if(t)throw t;return e}function Lt(e){if("string"===typeof e||(0,i.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new g.__('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));try{(0,X.i)(e)}catch(t){return t}}var Ft,Mt,Rt=n(67853);function jt(e,t){return Vt(e,t).filter((e=>e.type in Ft))}function Pt(e,t){return Vt(e,t).filter((e=>e.type in Mt))}function Vt(e,t){return[...Ut(e,t),...qt(e,t)]}function qt(e,t){const n=[],r=Kt(e.getDirectives(),t.getDirectives());for(const o of r.removed)n.push({type:Ft.DIRECTIVE_REMOVED,description:"".concat(o.name," was removed.")});for(const[o,i]of r.persisted){const e=Kt(o.args,i.args);for(const t of e.added)(0,E.dK)(t)&&n.push({type:Ft.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(t.name," on directive ").concat(o.name," was added.")});for(const t of e.removed)n.push({type:Ft.DIRECTIVE_ARG_REMOVED,description:"".concat(t.name," was removed from ").concat(o.name,".")});o.isRepeatable&&!i.isRepeatable&&n.push({type:Ft.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(o.name,".")});for(const t of o.locations)i.locations.includes(t)||n.push({type:Ft.DIRECTIVE_LOCATION_REMOVED,description:"".concat(t," was removed from ").concat(o.name,".")})}return n}function Ut(e,t){const n=[],r=Kt(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const o of r.removed)n.push({type:Ft.TYPE_REMOVED,description:(0,Q.u1)(o)?"Standard scalar ".concat(o.name," was removed because it is not referenced anymore."):"".concat(o.name," was removed.")});for(const[o,i]of r.persisted)(0,E.EM)(o)&&(0,E.EM)(i)?n.push(...Ht(o,i)):(0,E.EN)(o)&&(0,E.EN)(i)?n.push(...zt(o,i)):(0,E.hL)(o)&&(0,E.hL)(i)?n.push(...Bt(o,i)):(0,E.lp)(o)&&(0,E.lp)(i)||(0,E.oT)(o)&&(0,E.oT)(i)?n.push(...Wt(o,i),...Gt(o,i)):o.constructor!==i.constructor&&n.push({type:Ft.TYPE_CHANGED_KIND,description:"".concat(o.name," changed from ")+"".concat(Yt(o)," to ").concat(Yt(i),".")});return n}function Bt(e,t){const n=[],r=Kt(Object.values(e.getFields()),Object.values(t.getFields()));for(const o of r.added)(0,E.Wd)(o)?n.push({type:Ft.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(o.name," on input type ").concat(e.name," was added.")}):n.push({type:Mt.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(o.name," on input type ").concat(e.name," was added.")});for(const o of r.removed)n.push({type:Ft.FIELD_REMOVED,description:"".concat(e.name,".").concat(o.name," was removed.")});for(const[o,i]of r.persisted){Jt(o.type,i.type)||n.push({type:Ft.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(o.name," changed type from ")+"".concat(String(o.type)," to ").concat(String(i.type),".")})}return n}function zt(e,t){const n=[],r=Kt(e.getTypes(),t.getTypes());for(const o of r.added)n.push({type:Mt.TYPE_ADDED_TO_UNION,description:"".concat(o.name," was added to union type ").concat(e.name,".")});for(const o of r.removed)n.push({type:Ft.TYPE_REMOVED_FROM_UNION,description:"".concat(o.name," was removed from union type ").concat(e.name,".")});return n}function Ht(e,t){const n=[],r=Kt(e.getValues(),t.getValues());for(const o of r.added)n.push({type:Mt.VALUE_ADDED_TO_ENUM,description:"".concat(o.name," was added to enum type ").concat(e.name,".")});for(const o of r.removed)n.push({type:Ft.VALUE_REMOVED_FROM_ENUM,description:"".concat(o.name," was removed from enum type ").concat(e.name,".")});return n}function Gt(e,t){const n=[],r=Kt(e.getInterfaces(),t.getInterfaces());for(const o of r.added)n.push({type:Mt.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(o.name," added to interfaces implemented by ").concat(e.name,".")});for(const o of r.removed)n.push({type:Ft.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(o.name,".")});return n}function Wt(e,t){const n=[],r=Kt(Object.values(e.getFields()),Object.values(t.getFields()));for(const o of r.removed)n.push({type:Ft.FIELD_REMOVED,description:"".concat(e.name,".").concat(o.name," was removed.")});for(const[o,i]of r.persisted){n.push(...Qt(e,o,i));Xt(o.type,i.type)||n.push({type:Ft.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(o.name," changed type from ")+"".concat(String(o.type)," to ").concat(String(i.type),".")})}return n}function Qt(e,t,n){const r=[],o=Kt(t.args,n.args);for(const i of o.removed)r.push({type:Ft.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(i.name," was removed.")});for(const[i,a]of o.persisted){if(Jt(i.type,a.type)){if(void 0!==i.defaultValue)if(void 0===a.defaultValue)r.push({type:Mt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(i.name," defaultValue was removed.")});else{const n=$t(i.defaultValue,i.type),o=$t(a.defaultValue,a.type);n!==o&&r.push({type:Mt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(i.name," has changed defaultValue from ").concat(n," to ").concat(o,".")})}}else r.push({type:Ft.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(i.name," has changed type from ")+"".concat(String(i.type)," to ").concat(String(a.type),".")})}for(const i of o.added)(0,E.dK)(i)?r.push({type:Ft.REQUIRED_ARG_ADDED,description:"A required arg ".concat(i.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:Mt.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(i.name," on ").concat(e.name,".").concat(t.name," was added.")});return r}function Xt(e,t){return(0,E.HG)(e)?(0,E.HG)(t)&&Xt(e.ofType,t.ofType)||(0,E.zM)(t)&&Xt(e,t.ofType):(0,E.zM)(e)?(0,E.zM)(t)&&Xt(e.ofType,t.ofType):(0,E.Zs)(t)&&e.name===t.name||(0,E.zM)(t)&&Xt(e,t.ofType)}function Jt(e,t){return(0,E.HG)(e)?(0,E.HG)(t)&&Jt(e.ofType,t.ofType):(0,E.zM)(e)?(0,E.zM)(t)&&Jt(e.ofType,t.ofType)||!(0,E.zM)(t)&&Jt(e.ofType,t):(0,E.Zs)(t)&&e.name===t.name}function Yt(e){return(0,E.KA)(e)?"a Scalar type":(0,E.lp)(e)?"an Object type":(0,E.oT)(e)?"an Interface type":(0,E.EN)(e)?"a Union type":(0,E.EM)(e)?"an Enum type":(0,E.hL)(e)?"an Input type":void(0,p.k)(!1,"Unexpected type: "+(0,u.X)(e))}function $t(e,t){const n=(0,ft.J)(e,t);return null!=n||(0,p.k)(!1),(0,ee.S)((0,Rt.n)(n))}function Kt(e,t){const n=[],r=[],o=[],i=(0,Ye.P)(e,(e=>{let{name:t}=e;return t})),a=(0,Ye.P)(t,(e=>{let{name:t}=e;return t}));for(const s of e){const e=a[s.name];void 0===e?r.push(s):o.push([s,e])}for(const s of t)void 0===i[s.name]&&n.push(s);return{added:n,persisted:o,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Ft||(Ft={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Mt||(Mt={}));var Zt=n(89836),en=n(80371),tn=n(83576),nn=n(23857),rn=n(44517),on=n(34836)},97836:(e,t,n)=>{"use strict";function r(e,t,n){return{prev:e,key:t,typename:n}}function o(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}n.d(t,{N:()=>o,Q:()=>r})},61388:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{a:()=>r})},18513:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});const r=5;function o(e,t){const[n,o]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const a=o.map((e=>'"'.concat(e,'"')));switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}const s=a.slice(0,r),l=s.pop();return i+s.join(", ")+", or "+l+"?"}},34807:(e,t,n)=>{"use strict";function r(e,t){const n=new Map;for(const r of e){const e=t(r),o=n.get(e);void 0===o?n.set(e,[r]):o.push(r)}return n}n.d(t,{v:()=>r})},6024:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});const r=10,o=2;function i(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"===typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"===typeof t?t:a(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>o)return"[Array]";const n=Math.min(r,e.length),i=e.length-n,s=[];for(let r=0;r<n;++r)s.push(a(e[r],t));1===i?s.push("... 1 more item"):i>1&&s.push("... ".concat(i," more items"));return"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>o)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){const t=e.constructor.name;if("string"===typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((e=>{let[n,r]=e;return n+": "+a(r,t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},31040:(e,t,n)=>{"use strict";n.d(t,{n:()=>o});var r=n(6024);const o=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===typeof e&&null!==e){var n;const o=t.prototype[Symbol.toStringTag];if(o===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.X)(e);throw new Error("Cannot use ".concat(o,' "').concat(t,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1}},42690:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{k:()=>r})},73342:(e,t,n)=>{"use strict";function r(e){return"object"===typeof e&&"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}n.d(t,{i:()=>r})},17869:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{y:()=>r})},92373:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}n.d(t,{P:()=>r})},50964:(e,t,n)=>{"use strict";function r(e,t,n){const r=Object.create(null);for(const o of e)r[t(o)]=n(o);return r}n.d(t,{w:()=>r})},2153:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}n.d(t,{j:()=>r})},9911:(e,t,n)=>{"use strict";function r(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(a(i)&&a(s)){let l=0;do{++n,l=10*l+i-o,i=e.charCodeAt(n)}while(a(i)&&l>0);let c=0;do{++r,c=10*c+s-o,s=t.charCodeAt(r)}while(a(s)&&c>0);if(l<c)return-1;if(l>c)return 1}else{if(i<s)return-1;if(i>s)return 1;++n,++r}}return e.length-t.length}n.d(t,{K:()=>r});const o=48,i=57;function a(e){return!isNaN(e)&&o<=e&&e<=i}},2960:(e,t,n)=>{"use strict";function r(e){return e.map((e=>"number"===typeof e?"["+e.toString()+"]":"."+e)).join("")}n.d(t,{F:()=>r})},23649:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(9911);function o(e,t){const n=Object.create(null),o=new i(e),a=Math.floor(.4*e.length)+1;for(const r of t){const e=o.measure(r,a);void 0!==e&&(n[r]=e)}return Object.keys(n).sort(((e,t)=>{const o=n[e]-n[t];return 0!==o?o:(0,r.K)(e,t)}))}class i{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=a(n),o=this._inputArray;if(r.length<o.length){const e=r;r=o,o=e}const i=r.length,s=o.length;if(i-s>t)return;const l=this._rows;for(let a=0;a<=s;a++)l[0][a]=a;for(let a=1;a<=i;a++){const e=l[(a-1)%3],n=l[a%3];let i=n[0]=a;for(let t=1;t<=s;t++){const s=r[a-1]===o[t-1]?0:1;let c=Math.min(e[t]+1,n[t-1]+1,e[t-1]+s);if(a>1&&t>1&&r[a-1]===o[t-2]&&r[a-2]===o[t-1]){const e=l[(a-2)%3][t-2];c=Math.min(c,e+1)}c<i&&(i=c),n[t]=c}if(i>t)return}const c=l[i%3][s];return c<=t?c:void 0}}function a(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},69182:(e,t,n)=>{"use strict";function r(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}n.d(t,{u:()=>r})},48700:(e,t,n)=>{"use strict";n.d(t,{UG:()=>s,WU:()=>o,Ye:()=>r,h8:()=>i,ku:()=>l});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o{constructor(e,t,n,r,o,i){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["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"]},a=new Set(Object.keys(i));function s(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},5035:(e,t,n)=>{"use strict";n.d(t,{LZ:()=>s,MZ:()=>a,wv:()=>o});var r=n(14907);function o(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let s=0;s<e.length;++s){var a;const t=e[s],l=i(t);l!==t.length&&(r=null!==(a=r)&&void 0!==a?a:s,o=s,0!==s&&l<n&&(n=l))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function i(e){let t=0;for(;t<e.length&&(0,r.FD)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,n=!1,r=!0,o=!1;for(let i=0;i<e.length;++i)switch(e.codePointAt(i)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!o)return!1;o=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!o)}function s(e,t){const n=e.replace(/"""/g,'\\"""'),o=n.split(/\r\n|[\n\r]/g),i=1===o.length,a=o.length>1&&o.slice(1).every((e=>0===e.length||(0,r.FD)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,p=!(null!==t&&void 0!==t&&t.minimize)&&(!i||e.length>70||u||a||s);let d="";const f=i&&(0,r.FD)(e.charCodeAt(0));return(p&&!f||a)&&(d+="\n"),d+=n,(p||u)&&(d+="\n"),'"""'+d+'"""'}},14907:(e,t,n)=>{"use strict";function r(e){return 9===e||32===e}function o(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return i(e)||95===e}function s(e){return i(e)||o(e)||95===e}n.d(t,{FD:()=>r,HQ:()=>s,LQ:()=>a,X1:()=>o})},62724:(e,t,n)=>{"use strict";var r;n.d(t,{B:()=>r}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(r||(r={}))},60844:(e,t,n)=>{"use strict";var r;n.d(t,{h:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},54551:(e,t,n)=>{"use strict";n.d(t,{h:()=>l,u:()=>c});var r=n(96843),o=n(48700),i=n(5035),a=n(14907),s=n(42008);class l{constructor(e){const t=new o.WU(s.T.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.T.EOF)do{if(e.next)e=e.next;else{const t=g(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.T.COMMENT);return e}}function c(e){return e===s.T.BANG||e===s.T.DOLLAR||e===s.T.AMP||e===s.T.PAREN_L||e===s.T.PAREN_R||e===s.T.SPREAD||e===s.T.COLON||e===s.T.EQUALS||e===s.T.AT||e===s.T.BRACKET_L||e===s.T.BRACKET_R||e===s.T.BRACE_L||e===s.T.PIPE||e===s.T.BRACE_R}function u(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function p(e,t){return d(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function h(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.T.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":'"'.concat(e,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,i){const a=e.line,s=1+n-e.lineStart;return new o.WU(t,n,r,a,s,i)}function g(e,t){const n=e.source.body,o=n.length;let i=t;for(;i<o;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return v(e,i);case 33:return m(e,s.T.BANG,i,i+1);case 36:return m(e,s.T.DOLLAR,i,i+1);case 38:return m(e,s.T.AMP,i,i+1);case 40:return m(e,s.T.PAREN_L,i,i+1);case 41:return m(e,s.T.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return m(e,s.T.SPREAD,i,i+3);break;case 58:return m(e,s.T.COLON,i,i+1);case 61:return m(e,s.T.EQUALS,i,i+1);case 64:return m(e,s.T.AT,i,i+1);case 91:return m(e,s.T.BRACKET_L,i,i+1);case 93:return m(e,s.T.BRACKET_R,i,i+1);case 123:return m(e,s.T.BRACE_L,i,i+1);case 124:return m(e,s.T.PIPE,i,i+1);case 125:return m(e,s.T.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?S(e,i):_(e,i)}if((0,a.X1)(t)||45===t)return y(e,i,t);if((0,a.LQ)(t))return C(e,i);throw(0,r.h)(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||p(n,i)?"Unexpected character: ".concat(h(e,i),"."):"Invalid character: ".concat(h(e,i),"."))}return m(e,s.T.EOF,o,o)}function v(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(u(e))++o;else{if(!p(n,o))break;o+=2}}return m(e,s.T.COMMENT,t,o,n.slice(t+1,o))}function y(e,t,n){const o=e.source.body;let i=t,l=n,c=!1;if(45===l&&(l=o.charCodeAt(++i)),48===l){if(l=o.charCodeAt(++i),(0,a.X1)(l))throw(0,r.h)(e.source,i,"Invalid number, unexpected digit after 0: ".concat(h(e,i),"."))}else i=b(e,i,l),l=o.charCodeAt(i);if(46===l&&(c=!0,l=o.charCodeAt(++i),i=b(e,i,l),l=o.charCodeAt(i)),69!==l&&101!==l||(c=!0,l=o.charCodeAt(++i),43!==l&&45!==l||(l=o.charCodeAt(++i)),i=b(e,i,l),l=o.charCodeAt(i)),46===l||(0,a.LQ)(l))throw(0,r.h)(e.source,i,"Invalid number, expected digit but got: ".concat(h(e,i),"."));return m(e,c?s.T.FLOAT:s.T.INT,t,i,o.slice(t,i))}function b(e,t,n){if(!(0,a.X1)(n))throw(0,r.h)(e.source,t,"Invalid number, expected digit but got: ".concat(h(e,t),"."));const o=e.source.body;let i=t+1;for(;(0,a.X1)(o.charCodeAt(i));)++i;return i}function _(e,t){const n=e.source.body,o=n.length;let i=t+1,a=i,l="";for(;i<o;){const o=n.charCodeAt(i);if(34===o)return l+=n.slice(a,i),m(e,s.T.STRING,t,i+1,l);if(92!==o){if(10===o||13===o)break;if(u(o))++i;else{if(!p(n,i))throw(0,r.h)(e.source,i,"Invalid character within String: ".concat(h(e,i),"."));i+=2}}else{l+=n.slice(a,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?E(e,i):T(e,i):x(e,i);l+=t.value,i+=t.size,a=i}}throw(0,r.h)(e.source,i,"Unterminated string.")}function E(e,t){const n=e.source.body;let o=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!u(o))break;return{value:String.fromCodePoint(o),size:i}}if(o=o<<4|k(e),o<0)break}throw(0,r.h)(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+i),'".'))}function T(e,t){const n=e.source.body,o=w(n,t+2);if(u(o))return{value:String.fromCodePoint(o),size:6};if(d(o)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=w(n,t+8);if(f(e))return{value:String.fromCodePoint(o,e),size:12}}throw(0,r.h)(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}function w(e,t){return k(e.charCodeAt(t))<<12|k(e.charCodeAt(t+1))<<8|k(e.charCodeAt(t+2))<<4|k(e.charCodeAt(t+3))}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.h)(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function S(e,t){const n=e.source.body,o=n.length;let a=e.lineStart,l=t+3,c=l,d="";const f=[];for(;l<o;){const o=n.charCodeAt(l);if(34===o&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){d+=n.slice(c,l),f.push(d);const r=m(e,s.T.BLOCK_STRING,t,l+3,(0,i.wv)(f).join("\n"));return e.line+=f.length-1,e.lineStart=a,r}if(92!==o||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==o&&13!==o)if(u(o))++l;else{if(!p(n,l))throw(0,r.h)(e.source,l,"Invalid character within String: ".concat(h(e,l),"."));l+=2}else d+=n.slice(c,l),f.push(d),13===o&&10===n.charCodeAt(l+1)?l+=2:++l,d="",c=l,a=l;else d+=n.slice(c,l),c=l+1,l+=4}throw(0,r.h)(e.source,l,"Unterminated string.")}function C(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(!(0,a.HQ)(e))break;++o}return m(e,s.T.NAME,t,o,n.slice(t,o))}},56287:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(42690);const o=/\r\n|[\n\r]/g;function i(e,t){let n=0,i=1;for(const a of e.body.matchAll(o)){if("number"===typeof a.index||(0,r.k)(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}},92460:(e,t,n)=>{"use strict";n.d(t,{H2:()=>p,Qc:()=>u,gZ:()=>f,tl:()=>d});var r=n(96843),o=n(48700),i=n(62724),a=n(60844),s=n(54551),l=n(84835),c=n(42008);function u(e,t){return new h(e,t).parseDocument()}function p(e,t){const n=new h(e,t);n.expectToken(c.T.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(c.T.EOF),r}function d(e,t){const n=new h(e,t);n.expectToken(c.T.SOF);const r=n.parseConstValueLiteral();return n.expectToken(c.T.EOF),r}function f(e,t){const n=new h(e,t);n.expectToken(c.T.SOF);const r=n.parseTypeReference();return n.expectToken(c.T.EOF),r}class h{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,l.T)(e)?e:new l.H(e);this._lexer=new s.h(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(c.T.NAME);return this.node(e,{kind:a.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.h.DOCUMENT,definitions:this.many(c.T.SOF,this.parseDefinition,c.T.EOF)})}parseDefinition(){if(this.peek(c.T.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.T.NAME){switch(t.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()}if(e)throw(0,r.h)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(c.T.BRACE_L))return this.node(e,{kind:a.h.OPERATION_DEFINITION,operation:o.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(c.T.NAME)&&(n=this.parseName()),this.node(e,{kind:a.h.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(c.T.NAME);switch(e.value){case"query":return o.ku.QUERY;case"mutation":return o.ku.MUTATION;case"subscription":return o.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.T.PAREN_L,this.parseVariableDefinition,c.T.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.T.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(c.T.DOLLAR),this.node(e,{kind:a.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.h.SELECTION_SET,selections:this.many(c.T.BRACE_L,this.parseSelection,c.T.BRACE_R)})}parseSelection(){return this.peek(c.T.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(c.T.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.h.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.T.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.T.PAREN_L,t,c.T.PAREN_R)}parseArgument(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this._lexer.token,n=this.parseName();return this.expectToken(c.T.COLON),this.node(t,{kind:a.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(c.T.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(c.T.NAME)?this.node(e,{kind:a.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case c.T.BRACKET_L:return this.parseList(e);case c.T.BRACE_L:return this.parseObject(e);case c.T.INT:return this.advanceLexer(),this.node(t,{kind:a.h.INT,value:t.value});case c.T.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.h.FLOAT,value:t.value});case c.T.STRING:case c.T.BLOCK_STRING:return this.parseStringLiteral();case c.T.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.h.NULL});default:return this.node(t,{kind:a.h.ENUM,value:t.value})}case c.T.DOLLAR:if(e){if(this.expectToken(c.T.DOLLAR),this._lexer.token.kind===c.T.NAME){const e=this._lexer.token.value;throw(0,r.h)(this._lexer.source,t.start,'Unexpected variable "$'.concat(e,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.h.STRING,value:e.value,block:e.kind===c.T.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.h.LIST,values:this.any(c.T.BRACKET_L,(()=>this.parseValueLiteral(e)),c.T.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.h.OBJECT,fields:this.any(c.T.BRACE_L,(()=>this.parseObjectField(e)),c.T.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(c.T.COLON),this.node(t,{kind:a.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(c.T.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(c.T.AT),this.node(t,{kind:a.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(c.T.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(c.T.BRACKET_R),t=this.node(e,{kind:a.h.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(c.T.BANG)?this.node(e,{kind:a.h.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.T.STRING)||this.peek(c.T.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(c.T.BRACE_L,this.parseOperationTypeDefinition,c.T.BRACE_R);return this.node(e,{kind:a.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.T.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:a.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.T.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.T.BRACE_L,this.parseFieldDefinition,c.T.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.T.COLON);const o=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:a.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i})}parseArgumentDefs(){return this.optionalMany(c.T.PAREN_L,this.parseInputValueDef,c.T.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(c.T.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(c.T.EQUALS)&&(o=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(e,{kind:a.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:i})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:a.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:a.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(c.T.EQUALS)?this.delimitedMany(c.T.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:a.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(c.T.BRACE_L,this.parseEnumValueDefinition,c.T.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.h)(this._lexer.source,this._lexer.token.start,"".concat(m(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:a.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(c.T.BRACE_L,this.parseInputValueDef,c.T.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===c.T.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(c.T.BRACE_L,this.parseOperationTypeDefinition,c.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:a.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:a.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.T.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(e,{kind:a.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:i})}parseDirectiveLocations(){return this.delimitedMany(c.T.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i.B,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new o.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.h)(this._lexer.source,t.start,"Expected ".concat(g(e),", found ").concat(m(t),"."))}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==c.T.NAME||t.value!==e)throw(0,r.h)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(m(t),"."));this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===c.T.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!==e&&void 0!==e?e:this._lexer.token;return(0,r.h)(this._lexer.source,t.start,"Unexpected ".concat(m(t),"."))}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==c.T.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,r.h)(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}function m(e){const t=e.value;return g(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function g(e){return(0,s.u)(e)?'"'.concat(e,'"'):e}},2364:(e,t,n)=>{"use strict";n.d(t,{D$:()=>f,G4:()=>u,Ir:()=>o,Of:()=>l,VB:()=>c,Wk:()=>i,aU:()=>d,nr:()=>s,pO:()=>a,zT:()=>p});var r=n(60844);function o(e){return i(e)||u(e)||d(e)}function i(e){return e.kind===r.h.OPERATION_DEFINITION||e.kind===r.h.FRAGMENT_DEFINITION}function a(e){return e.kind===r.h.FIELD||e.kind===r.h.FRAGMENT_SPREAD||e.kind===r.h.INLINE_FRAGMENT}function s(e){return e.kind===r.h.VARIABLE||e.kind===r.h.INT||e.kind===r.h.FLOAT||e.kind===r.h.STRING||e.kind===r.h.BOOLEAN||e.kind===r.h.NULL||e.kind===r.h.ENUM||e.kind===r.h.LIST||e.kind===r.h.OBJECT}function l(e){return s(e)&&(e.kind===r.h.LIST?e.values.some(l):e.kind===r.h.OBJECT?e.fields.some((e=>l(e.value))):e.kind!==r.h.VARIABLE)}function c(e){return e.kind===r.h.NAMED_TYPE||e.kind===r.h.LIST_TYPE||e.kind===r.h.NON_NULL_TYPE}function u(e){return e.kind===r.h.SCHEMA_DEFINITION||p(e)||e.kind===r.h.DIRECTIVE_DEFINITION}function p(e){return e.kind===r.h.SCALAR_TYPE_DEFINITION||e.kind===r.h.OBJECT_TYPE_DEFINITION||e.kind===r.h.INTERFACE_TYPE_DEFINITION||e.kind===r.h.UNION_TYPE_DEFINITION||e.kind===r.h.ENUM_TYPE_DEFINITION||e.kind===r.h.INPUT_OBJECT_TYPE_DEFINITION}function d(e){return e.kind===r.h.SCHEMA_EXTENSION||f(e)}function f(e){return e.kind===r.h.SCALAR_TYPE_EXTENSION||e.kind===r.h.OBJECT_TYPE_EXTENSION||e.kind===r.h.INTERFACE_TYPE_EXTENSION||e.kind===r.h.UNION_TYPE_EXTENSION||e.kind===r.h.ENUM_TYPE_EXTENSION||e.kind===r.h.INPUT_OBJECT_TYPE_EXTENSION}},38766:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,z:()=>i});var r=n(56287);function o(e){return i(e.source,(0,r.k)(e.source,e.start))}function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,l=1===t.line?n:0,c=t.column+l,u="".concat(e.name,":").concat(s,":").concat(c,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[o];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let r=0;r<d.length;r+=80)n.push(d.slice(r,r+80));return u+a([["".concat(s," |"),n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+a([["".concat(s-1," |"),p[o-1]],["".concat(s," |"),d],["|","^".padStart(c)],["".concat(s+1," |"),p[o+1]]])}function a(e){const t=e.filter((e=>{let[t,n]=e;return void 0!==n})),n=Math.max(...t.map((e=>{let[t]=e;return t.length})));return t.map((e=>{let[t,r]=e;return t.padStart(n)+(r?" "+r:"")})).join("\n")}},56327:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(5035);const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=n(7751);function l(e){return(0,s.Vn)(e,c)}const c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=d("(",u(e.variableDefinitions,", "),")"),n=u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:n,defaultValue:r,directives:o}=e;return t+": "+n+d(" = ",r)+d(" ",u(o," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return p(t)}},Field:{leave(e){let{alias:t,name:n,arguments:r,directives:o,selectionSet:i}=e;const a=d("",t,": ")+n;let s=a+d("(",u(r,", "),")");return s.length>80&&(s=a+d("(\n",f(u(r,"\n")),"\n)")),u([s,u(o," "),i]," ")}},Argument:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},FragmentSpread:{leave:e=>{let{name:t,directives:n}=e;return"..."+t+d(" ",u(n," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:n,selectionSet:r}=e;return u(["...",d("on ",t),u(n," "),r]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:n,variableDefinitions:r,directives:o,selectionSet:i}=e;return"fragment ".concat(t).concat(d("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(d("",u(o," ")," "))+i}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:n}=e;return n?(0,r.LZ)(t):'"'.concat(t.replace(o,i),'"')}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+u(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+u(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},Directive:{leave:e=>{let{name:t,arguments:n}=e;return"@"+t+d("(",u(n,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:n,operationTypes:r}=e;return d("",t,"\n")+u(["schema",u(n," "),p(r)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:n}=e;return t+": "+n}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return d("",t,"\n")+u(["scalar",n,u(r," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:o,fields:i}=e;return d("",t,"\n")+u(["type",n,d("implements ",u(r," & ")),u(o," "),p(i)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:n,arguments:r,type:o,directives:i}=e;return d("",t,"\n")+n+(h(r)?d("(\n",f(u(r,"\n")),"\n)"):d("(",u(r,", "),")"))+": "+o+d(" ",u(i," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:n,type:r,defaultValue:o,directives:i}=e;return d("",t,"\n")+u([n+": "+r,d("= ",o),u(i," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:o,fields:i}=e;return d("",t,"\n")+u(["interface",n,d("implements ",u(r," & ")),u(o," "),p(i)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,types:o}=e;return d("",t,"\n")+u(["union",n,u(r," "),d("= ",u(o," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,values:o}=e;return d("",t,"\n")+u(["enum",n,u(r," "),p(o)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return d("",t,"\n")+u([n,u(r," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,fields:o}=e;return d("",t,"\n")+u(["input",n,u(r," "),p(o)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:n,arguments:r,repeatable:o,locations:i}=e;return d("",t,"\n")+"directive @"+n+(h(r)?d("(\n",f(u(r,"\n")),"\n)"):d("(",u(r,", "),")"))+(o?" repeatable":"")+" on "+u(i," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:n}=e;return u(["extend schema",u(t," "),p(n)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:n}=e;return u(["extend scalar",t,u(n," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:o}=e;return u(["extend type",t,d("implements ",u(n," & ")),u(r," "),p(o)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:o}=e;return u(["extend interface",t,d("implements ",u(n," & ")),u(r," "),p(o)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:n,types:r}=e;return u(["extend union",t,u(n," "),d("= ",u(r," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:n,values:r}=e;return u(["extend enum",t,u(n," "),p(r)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:n,fields:r}=e;return u(["extend input",t,u(n," "),p(r)]," ")}}};function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var n;return null!==(n=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function p(e){return d("{\n",f(u(e,"\n")),"\n}")}function d(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function f(e){return d(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},84835:(e,t,n)=>{"use strict";n.d(t,{H:()=>a,T:()=>s});var r=n(61388),o=n(6024),i=n(31040);class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||(0,r.a)(!1,"Body must be a string. Received: ".concat((0,o.X)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return(0,i.n)(e,a)}},42008:(e,t,n)=>{"use strict";var r;n.d(t,{T:()=>r}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}))},7751:(e,t,n)=>{"use strict";n.d(t,{$_:()=>s,CK:()=>p,Eu:()=>u,Vn:()=>l,j1:()=>c});var r=n(61388),o=n(6024),i=n(48700),a=n(60844);const s=Object.freeze({});function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.h8;const l=new Map;for(const r of Object.values(a.h))l.set(r,u(t,r));let c,p,d,f=Array.isArray(e),h=[e],m=-1,g=[],v=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(p=0===b.length?void 0:y[y.length-1],v=d,d=b.pop(),a)if(f){v=v.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[e,t]of g)v[e]=t}m=c.index,h=c.keys,g=c.edits,f=c.inArray,c=c.prev}else if(d){if(p=f?m:h[m],v=d[p],null===v||void 0===v)continue;y.push(p)}let u;if(!Array.isArray(v)){var _,E;(0,i.UG)(v)||(0,r.a)(!1,"Invalid AST Node: ".concat((0,o.X)(v),"."));const n=e?null===(_=l.get(v.kind))||void 0===_?void 0:_.leave:null===(E=l.get(v.kind))||void 0===E?void 0:E.enter;if(u=null===n||void 0===n?void 0:n.call(t,v,p,d,y,b),u===s)break;if(!1===u){if(!e){y.pop();continue}}else if(void 0!==u&&(g.push([p,u]),!e)){if(!(0,i.UG)(u)){y.pop();continue}v=u}}var T;if(void 0===u&&a&&g.push([p,v]),e)y.pop();else c={inArray:f,index:m,keys:h,edits:g,prev:c},f=Array.isArray(v),h=f?v:null!==(T=n[v.kind])&&void 0!==T?T:[],m=-1,g=[],d&&b.push(d),d=v}while(void 0!==c);return 0!==g.length?g[g.length-1][1]:e}function c(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.h)){let o=!1;const i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=u(e[t],r);o||(o=null!=n||null!=s),i[t]=n,a[t]=s}if(!o)continue;const l={enter(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const a=r[0];for(let c=0;c<e.length;c++)if(null===t[c]){var l;const n=null===(l=i[c])||void 0===l?void 0:l.apply(e[c],r);if(!1===n)t[c]=a;else if(n===s)t[c]=s;else if(void 0!==n)return n}},leave(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=r[0];for(let c=0;c<e.length;c++)if(null===t[c]){var l;const n=null===(l=a[c])||void 0===l?void 0:l.apply(e[c],r);if(n===s)t[c]=s;else if(void 0!==n&&!1!==n)return n}else t[c]===i&&(t[c]=null)}};n[r]=l}return n}function u(e,t){const n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function p(e,t,n){const{enter:r,leave:o}=u(e,t);return n?o:r}},56086:(e,t,n)=>{"use strict";n.d(t,{g:()=>s,i:()=>a});var r=n(61388),o=n(72243),i=n(14907);function a(e){if(null!=e||(0,r.a)(!1,"Must provide name."),"string"===typeof e||(0,r.a)(!1,"Expected name to be a string."),0===e.length)throw new o.__("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,i.HQ)(e.charCodeAt(t)))throw new o.__('Names must only contain [_a-zA-Z0-9] but "'.concat(e,'" does not.'));if(!(0,i.LQ)(e.charCodeAt(0)))throw new o.__('Names must start with [_a-zA-Z] but "'.concat(e,'" does not.'));return e}function s(e){if("true"===e||"false"===e||"null"===e)throw new o.__("Enum values cannot be named: ".concat(e));return a(e)}},10949:(e,t,n)=>{"use strict";n.d(t,{mR:()=>ve,sR:()=>be,oW:()=>he,p2:()=>Q,bM:()=>X,h6:()=>ae,n2:()=>ie,Gp:()=>me,DM:()=>de,fU:()=>W,M_:()=>H,Zu:()=>O,U8:()=>D,qT:()=>P,k2:()=>S,H5:()=>B,kS:()=>F,rM:()=>te,E$:()=>R,i_:()=>K,Z6:()=>k,Gt:()=>q,Pt:()=>T,p_:()=>_,rc:()=>N,vX:()=>Y,WO:()=>ce,xC:()=>ne,tf:()=>Z,m0:()=>G,Gv:()=>z,EM:()=>A,hL:()=>I,j$:()=>j,oT:()=>x,UT:()=>U,HG:()=>L,Zs:()=>ee,zM:()=>M,zP:()=>$,lp:()=>w,SZ:()=>V,dK:()=>fe,Wd:()=>Ee,KA:()=>E,P9:()=>b,EN:()=>C,fw:()=>J,WB:()=>oe,_9:()=>re});var r=n(61388),o=n(18513);function i(e){return e}var a=n(6024),s=n(31040),l=n(17869),c=n(92373),u=n(50964),p=n(2153),d=n(23649),f=n(69182),h=n(72243),m=n(60844),g=n(56327),v=n(83576),y=n(56086);function b(e){return E(e)||w(e)||x(e)||C(e)||A(e)||I(e)||L(e)||M(e)}function _(e){if(!b(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL type."));return e}function E(e){return(0,s.n)(e,ie)}function T(e){if(!E(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Scalar type."));return e}function w(e){return(0,s.n)(e,ae)}function k(e){if(!w(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Object type."));return e}function x(e){return(0,s.n)(e,he)}function S(e){if(!x(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Interface type."));return e}function C(e){return(0,s.n)(e,me)}function N(e){if(!C(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Union type."));return e}function A(e){return(0,s.n)(e,ve)}function O(e){if(!A(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Enum type."));return e}function I(e){return(0,s.n)(e,be)}function D(e){if(!I(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Input Object type."));return e}function L(e){return(0,s.n)(e,Q)}function F(e){if(!L(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL List type."));return e}function M(e){return(0,s.n)(e,X)}function R(e){if(!M(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL Non-Null type."));return e}function j(e){return E(e)||A(e)||I(e)||J(e)&&j(e.ofType)}function P(e){if(!j(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL input type."));return e}function V(e){return E(e)||w(e)||x(e)||C(e)||A(e)||J(e)&&V(e.ofType)}function q(e){if(!V(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL output type."));return e}function U(e){return E(e)||A(e)}function B(e){if(!U(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL leaf type."));return e}function z(e){return w(e)||x(e)||C(e)}function H(e){if(!z(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL composite type."));return e}function G(e){return x(e)||C(e)}function W(e){if(!G(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL abstract type."));return e}class Q{constructor(e){b(e)||(0,r.a)(!1,"Expected ".concat((0,a.X)(e)," to be a GraphQL type.")),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class X{constructor(e){$(e)||(0,r.a)(!1,"Expected ".concat((0,a.X)(e)," to be a GraphQL nullable type.")),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function J(e){return L(e)||M(e)}function Y(e){if(!J(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL wrapping type."));return e}function $(e){return b(e)&&!M(e)}function K(e){if(!$(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL nullable type."));return e}function Z(e){if(e)return M(e)?e.ofType:e}function ee(e){return E(e)||w(e)||x(e)||C(e)||A(e)||I(e)}function te(e){if(!ee(e))throw new Error("Expected ".concat((0,a.X)(e)," to be a GraphQL named type."));return e}function ne(e){if(e){let t=e;for(;J(t);)t=t.ofType;return t}}function re(e){return"function"===typeof e?e():e}function oe(e){return"function"===typeof e?e():e}class ie{constructor(e){var t,n,o,s;const l=null!==(t=e.parseValue)&&void 0!==t?t:i;this.name=(0,y.i)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:i,this.parseValue=l,this.parseLiteral=null!==(o=e.parseLiteral)&&void 0!==o?o:(e,t)=>l((0,v.M)(e,t)),this.extensions=(0,f.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"===typeof e.specifiedByURL||(0,r.a)(!1,"".concat(this.name,' must provide "specifiedByURL" as a string, ')+"but got: ".concat((0,a.X)(e.specifiedByURL),".")),null==e.serialize||"function"===typeof e.serialize||(0,r.a)(!1,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,r.a)(!1,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ae{constructor(e){var t;this.name=(0,y.i)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>le(e),this._interfaces=()=>se(e),null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,r.a)(!1,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,a.X)(e.isTypeOf),"."))}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:pe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function se(e){var t;const n=re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.a)(!1,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function le(e){const t=oe(e.fields);return ue(t)||(0,r.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,p.j)(t,((t,n)=>{var o;ue(t)||(0,r.a)(!1,"".concat(e.name,".").concat(n," field config must be an object.")),null==t.resolve||"function"===typeof t.resolve||(0,r.a)(!1,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,a.X)(t.resolve),"."));const i=null!==(o=t.args)&&void 0!==o?o:{};return ue(i)||(0,r.a)(!1,"".concat(e.name,".").concat(n," args must be an object with argument names as keys.")),{name:(0,y.i)(n),description:t.description,type:t.type,args:ce(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.u)(t.extensions),astNode:t.astNode}}))}function ce(e){return Object.entries(e).map((e=>{let[t,n]=e;return{name:(0,y.i)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,f.u)(n.extensions),astNode:n.astNode}}))}function ue(e){return(0,l.y)(e)&&!Array.isArray(e)}function pe(e){return(0,p.j)(e,(e=>({description:e.description,type:e.type,args:de(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function de(e){return(0,u.w)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function fe(e){return M(e.type)&&void 0===e.defaultValue}class he{constructor(e){var t;this.name=(0,y.i)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=le.bind(void 0,e),this._interfaces=se.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,r.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,a.X)(e.resolveType),"."))}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:pe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class me{constructor(e){var t;this.name=(0,y.i)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ge.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,r.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,a.X)(e.resolveType),"."))}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ge(e){const t=re(e.types);return Array.isArray(t)||(0,r.a)(!1,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}class ve{constructor(e){var t,n,o;this.name=(0,y.i)(e.name),this.description=e.description,this.extensions=(0,f.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,ue(o=e.values)||(0,r.a)(!1,"".concat(n," values must be an object with value names as keys.")),Object.entries(o).map((e=>{let[t,o]=e;return ue(o)||(0,r.a)(!1,"".concat(n,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,a.X)(o),".")),{name:(0,y.g)(t),description:o.description,value:void 0!==o.value?o.value:t,deprecationReason:o.deprecationReason,extensions:(0,f.u)(o.extensions),astNode:o.astNode}}))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=(0,c.P)(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h.__('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,a.X)(e)));return t.name}parseValue(e){if("string"!==typeof e){const t=(0,a.X)(e);throw new h.__('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+ye(this,t))}const t=this.getValue(e);if(null==t)throw new h.__('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+ye(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.h.ENUM){const t=(0,g.S)(e);throw new h.__('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(t,".")+ye(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.S)(e);throw new h.__('Value "'.concat(t,'" does not exist in "').concat(this.name,'" enum.')+ye(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,u.w)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ye(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.D)(t,n);return(0,o.l)("the enum value",r)}class be{constructor(e){var t;this.name=(0,y.i)(e.name),this.description=e.description,this.extensions=(0,f.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=_e.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,p.j)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function _e(e){const t=oe(e.fields);return ue(t)||(0,r.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,p.j)(t,((t,n)=>(!("resolve"in t)||(0,r.a)(!1,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:(0,y.i)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.u)(t.extensions),astNode:t.astNode})))}function Ee(e){return M(e.type)&&void 0===e.defaultValue}},78831:(e,t,n)=>{"use strict";n.d(t,{CO:()=>f,NZ:()=>h,QE:()=>g,SY:()=>v,V4:()=>_,Yf:()=>m,df:()=>b,fg:()=>y,wX:()=>d,xg:()=>E});var r=n(61388),o=n(6024),i=n(31040),a=n(17869),s=n(69182),l=n(62724),c=n(56086),u=n(10949),p=n(540);function d(e){return(0,i.n)(e,h)}function f(e){if(!d(e))throw new Error("Expected ".concat((0,o.X)(e)," to be a GraphQL directive."));return e}class h{constructor(e){var t,n;this.name=(0,c.i)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.u)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.a)(!1,"@".concat(e.name," locations must be an Array."));const o=null!==(n=e.args)&&void 0!==n?n:{};(0,a.y)(o)&&!Array.isArray(o)||(0,r.a)(!1,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=(0,u.WO)(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,u.DM)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const m=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.B.FIELD,l.B.FRAGMENT_SPREAD,l.B.INLINE_FRAGMENT],args:{if:{type:new u.bM(p.EZ),description:"Included when true."}}}),g=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.B.FIELD,l.B.FRAGMENT_SPREAD,l.B.INLINE_FRAGMENT],args:{if:{type:new u.bM(p.EZ),description:"Skipped when true."}}}),v="No longer supported",y=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.B.FIELD_DEFINITION,l.B.ARGUMENT_DEFINITION,l.B.INPUT_FIELD_DEFINITION,l.B.ENUM_VALUE],args:{reason:{type:p.kH,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:v}}}),b=new h({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[l.B.SCALAR],args:{url:{type:new u.bM(p.kH),description:"The URL that specifies the behavior of this scalar."}}}),_=Object.freeze([m,g,y,b]);function E(e){return _.some((t=>{let{name:n}=t;return n===e.name}))}},64478:(e,t,n)=>{"use strict";n.d(t,{Az:()=>b,PX:()=>y,TK:()=>u,XQ:()=>m,e_:()=>h,hU:()=>E,jT:()=>g,l3:()=>p,nL:()=>T,qz:()=>f,s9:()=>w,tF:()=>_,x2:()=>d,zU:()=>v});var r=n(6024),o=n(42690),i=n(62724),a=n(56327),s=n(99024),l=n(10949),c=n(540);const u=new l.h6({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:c.kH,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.bM(new l.p2(new l.bM(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.bM(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.bM(new l.p2(new l.bM(p))),resolve:e=>e.getDirectives()}})}),p=new l.h6({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.bM(c.kH),resolve:e=>e.name},description:{type:c.kH,resolve:e=>e.description},isRepeatable:{type:new l.bM(c.EZ),resolve:e=>e.isRepeatable},locations:{type:new l.bM(new l.p2(new l.bM(d))),resolve:e=>e.locations},args:{type:new l.bM(new l.p2(new l.bM(m))),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter((e=>null==e.deprecationReason))}}})}),d=new l.mR({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:i.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:i.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:i.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:i.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:i.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:i.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:i.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:i.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:i.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:i.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:i.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:i.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:i.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:i.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:i.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:i.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:i.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:i.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:i.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),f=new l.h6({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new l.bM(y),resolve:e=>(0,l.KA)(e)?v.SCALAR:(0,l.lp)(e)?v.OBJECT:(0,l.oT)(e)?v.INTERFACE:(0,l.EN)(e)?v.UNION:(0,l.EM)(e)?v.ENUM:(0,l.hL)(e)?v.INPUT_OBJECT:(0,l.HG)(e)?v.LIST:(0,l.zM)(e)?v.NON_NULL:void(0,o.k)(!1,'Unexpected type: "'.concat((0,r.X)(e),'".'))},name:{type:c.kH,resolve:e=>"name"in e?e.name:void 0},description:{type:c.kH,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:c.kH,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.p2(new l.bM(h)),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if((0,l.lp)(e)||(0,l.oT)(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.p2(new l.bM(f)),resolve(e){if((0,l.lp)(e)||(0,l.oT)(e))return e.getInterfaces()}},possibleTypes:{type:new l.p2(new l.bM(f)),resolve(e,t,n,r){let{schema:o}=r;if((0,l.m0)(e))return o.getPossibleTypes(e)}},enumValues:{type:new l.p2(new l.bM(g)),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if((0,l.EM)(e)){const t=e.getValues();return n?t:t.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.p2(new l.bM(m)),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if((0,l.hL)(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0}})}),h=new l.h6({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new l.bM(c.kH),resolve:e=>e.name},description:{type:c.kH,resolve:e=>e.description},args:{type:new l.bM(new l.p2(new l.bM(m))),args:{includeDeprecated:{type:c.EZ,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter((e=>null==e.deprecationReason))}},type:{type:new l.bM(f),resolve:e=>e.type},isDeprecated:{type:new l.bM(c.EZ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.kH,resolve:e=>e.deprecationReason}})}),m=new l.h6({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new l.bM(c.kH),resolve:e=>e.name},description:{type:c.kH,resolve:e=>e.description},type:{type:new l.bM(f),resolve:e=>e.type},defaultValue:{type:c.kH,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.J)(n,t);return r?(0,a.S)(r):null}},isDeprecated:{type:new l.bM(c.EZ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.kH,resolve:e=>e.deprecationReason}})}),g=new l.h6({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new l.bM(c.kH),resolve:e=>e.name},description:{type:c.kH,resolve:e=>e.description},isDeprecated:{type:new l.bM(c.EZ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:c.kH,resolve:e=>e.deprecationReason}})});var v;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(v||(v={}));const y=new l.mR({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:new l.bM(u),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,r)=>{let{schema:o}=r;return o},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},_={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.bM(c.kH),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,t,n,r)=>{let{name:o}=t,{schema:i}=r;return i.getType(o)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},E={name:"__typename",type:new l.bM(c.kH),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,r)=>{let{parentType:o}=r;return o.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},T=Object.freeze([u,p,d,f,h,m,g,y]);function w(e){return T.some((t=>{let{name:n}=t;return e.name===n}))}},540:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>h,HI:()=>c,HS:()=>g,_o:()=>p,av:()=>d,kH:()=>f,km:()=>m,st:()=>u,u1:()=>v});var r=n(6024),o=n(17869),i=n(72243),a=n(60844),s=n(56327),l=n(10949);const c=2147483647,u=-2147483648,p=new l.n2({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=y(e);if("boolean"===typeof t)return t?1:0;let n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isInteger(n))throw new i.__("Int cannot represent non-integer value: ".concat((0,r.X)(t)));if(n>c||n<u)throw new i.__("Int cannot represent non 32-bit signed integer value: "+(0,r.X)(t));return n},parseValue(e){if("number"!==typeof e||!Number.isInteger(e))throw new i.__("Int cannot represent non-integer value: ".concat((0,r.X)(e)));if(e>c||e<u)throw new i.__("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral(e){if(e.kind!==a.h.INT)throw new i.__("Int cannot represent non-integer value: ".concat((0,s.S)(e)),{nodes:e});const t=parseInt(e.value,10);if(t>c||t<u)throw new i.__("Int cannot represent non 32-bit signed integer value: ".concat(e.value),{nodes:e});return t}}),d=new l.n2({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=y(e);if("boolean"===typeof t)return t?1:0;let n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isFinite(n))throw new i.__("Float cannot represent non numeric value: ".concat((0,r.X)(t)));return n},parseValue(e){if("number"!==typeof e||!Number.isFinite(e))throw new i.__("Float cannot represent non numeric value: ".concat((0,r.X)(e)));return e},parseLiteral(e){if(e.kind!==a.h.FLOAT&&e.kind!==a.h.INT)throw new i.__("Float cannot represent non numeric value: ".concat((0,s.S)(e)),e);return parseFloat(e.value)}}),f=new l.n2({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=y(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if("number"===typeof t&&Number.isFinite(t))return t.toString();throw new i.__("String cannot represent value: ".concat((0,r.X)(e)))},parseValue(e){if("string"!==typeof e)throw new i.__("String cannot represent a non string value: ".concat((0,r.X)(e)));return e},parseLiteral(e){if(e.kind!==a.h.STRING)throw new i.__("String cannot represent a non string value: ".concat((0,s.S)(e)),{nodes:e});return e.value}}),h=new l.n2({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=y(e);if("boolean"===typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new i.__("Boolean cannot represent a non boolean value: ".concat((0,r.X)(t)))},parseValue(e){if("boolean"!==typeof e)throw new i.__("Boolean cannot represent a non boolean value: ".concat((0,r.X)(e)));return e},parseLiteral(e){if(e.kind!==a.h.BOOLEAN)throw new i.__("Boolean cannot represent a non boolean value: ".concat((0,s.S)(e)),{nodes:e});return e.value}}),m=new l.n2({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=y(e);if("string"===typeof t)return t;if(Number.isInteger(t))return String(t);throw new i.__("ID cannot represent value: ".concat((0,r.X)(e)))},parseValue(e){if("string"===typeof e)return e;if("number"===typeof e&&Number.isInteger(e))return e.toString();throw new i.__("ID cannot represent value: ".concat((0,r.X)(e)))},parseLiteral(e){if(e.kind!==a.h.STRING&&e.kind!==a.h.INT)throw new i.__("ID cannot represent a non-string and non-integer value: "+(0,s.S)(e),{nodes:e});return e.value}}),g=Object.freeze([f,p,d,h,m]);function v(e){return g.some((t=>{let{name:n}=t;return e.name===n}))}function y(e){if((0,o.y)(e)){if("function"===typeof e.valueOf){const t=e.valueOf();if(!(0,o.y)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}},88041:(e,t,n)=>{"use strict";n.d(t,{EO:()=>f,XO:()=>h,nN:()=>d});var r=n(61388),o=n(6024),i=n(31040),a=n(17869),s=n(69182),l=n(48700),c=n(10949),u=n(78831),p=n(64478);function d(e){return(0,i.n)(e,h)}function f(e){if(!d(e))throw new Error("Expected ".concat((0,o.X)(e)," to be a GraphQL schema."));return e}class h{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.y)(e)||(0,r.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.a)(!1,'"types" must be Array if provided but got: '.concat((0,o.X)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,r.a)(!1,'"directives" must be Array if provided but got: '+"".concat((0,o.X)(e.directives),".")),this.description=e.description,this.extensions=(0,s.u)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:u.V4;const i=new Set(e.types);if(null!=e.types)for(const r of e.types)i.delete(r),m(r,i);null!=this._queryType&&m(this._queryType,i),null!=this._mutationType&&m(this._mutationType,i),null!=this._subscriptionType&&m(this._subscriptionType,i);for(const r of this._directives)if((0,u.wX)(r))for(const e of r.args)m(e.type,i);m(p.TK,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(null==o)continue;const e=o.name;if(e||(0,r.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(e,'".'));if(this._typeMap[e]=o,(0,c.oT)(o)){for(const t of o.getInterfaces())if((0,c.oT)(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.interfaces.push(o)}}else if((0,c.lp)(o))for(const t of o.getInterfaces())if((0,c.oT)(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.objects.push(o)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.ku.QUERY:return this.getQueryType();case l.ku.MUTATION:return this.getMutationType();case l.ku.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,c.EN)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,c.EN)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function m(e,t){const n=(0,c.xC)(e);if(!t.has(n))if(t.add(n),(0,c.EN)(n))for(const r of n.getTypes())m(r,t);else if((0,c.lp)(n)||(0,c.oT)(n)){for(const e of n.getInterfaces())m(e,t);for(const e of Object.values(n.getFields())){m(e.type,t);for(const n of e.args)m(n.type,t)}}else if((0,c.hL)(n))for(const r of Object.values(n.getFields()))m(r.type,t);return t}},91681:(e,t,n)=>{"use strict";n.d(t,{F:()=>p,J:()=>d});var r=n(6024),o=n(72243),i=n(48700),a=n(34836),s=n(10949),l=n(78831),c=n(64478),u=n(88041);function p(e){if((0,u.EO)(e),e.__validationErrors)return e.__validationErrors;const t=new f(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.lp)(n)){var o;e.reportError("Query root type must be Object type, it cannot be ".concat((0,r.X)(n),"."),null!==(o=h(t,i.ku.QUERY))&&void 0!==o?o:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var l;a&&!(0,s.lp)(a)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,r.X)(a),"."),null!==(l=h(t,i.ku.MUTATION))&&void 0!==l?l:a.astNode);const c=t.getSubscriptionType();var u;c&&!(0,s.lp)(c)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,r.X)(c),"."),null!==(u=h(t,i.ku.SUBSCRIPTION))&&void 0!==u?u:c.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.wX)(n)){m(e,n);for(const o of n.args){var t;if(m(e,o),(0,s.j$)(o.type)||e.reportError("The type of @".concat(n.name,"(").concat(o.name,":) must be Input Type ")+"but got: ".concat((0,r.X)(o.type),"."),o.astNode),(0,s.dK)(o)&&null!=o.deprecationReason)e.reportError("Required argument @".concat(n.name,"(").concat(o.name,":) cannot be deprecated."),[x(o.astNode),null===(t=o.astNode)||void 0===t?void 0:t.type])}}else e.reportError("Expected directive but got: ".concat((0,r.X)(n),"."),null===n||void 0===n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,r[i.name]=n.length;const a=Object.values(i.getFields());for(const t of a)if((0,s.zM)(t.type)&&(0,s.hL)(t.type.ofType)){const i=t.type.ofType,a=r[i.name];if(n.push(t),void 0===a)o(i);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError('Cannot reference Input Object "'.concat(i.name,'" within itself through a series of non-null fields: "').concat(r,'".'),t.map((e=>e.astNode)))}n.pop()}r[i.name]=void 0}}(e),n=e.schema.getTypeMap();for(const o of Object.values(n))(0,s.Zs)(o)?((0,c.s9)(o)||m(e,o),(0,s.lp)(o)||(0,s.oT)(o)?(g(e,o),v(e,o)):(0,s.EN)(o)?_(e,o):(0,s.EM)(o)?E(e,o):(0,s.hL)(o)&&(T(e,o),t(o))):e.reportError("Expected GraphQL named type but got: ".concat((0,r.X)(o),"."),o.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function d(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class f{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new o.__(e,{nodes:n}))}getErrors(){return this._errors}}function h(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function m(e,t){t.name.startsWith("__")&&e.reportError('Name "'.concat(t.name,'" must not begin with "__", which is reserved by GraphQL introspection.'),t.astNode)}function g(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),[t.astNode,...t.extensionASTNodes]);for(const l of n){var o;if(m(e,l),!(0,s.SZ)(l.type))e.reportError("The type of ".concat(t.name,".").concat(l.name," must be Output Type ")+"but got: ".concat((0,r.X)(l.type),"."),null===(o=l.astNode)||void 0===o?void 0:o.type);for(const n of l.args){const o=n.name;var i,a;if(m(e,n),!(0,s.j$)(n.type))e.reportError("The type of ".concat(t.name,".").concat(l.name,"(").concat(o,":) must be Input ")+"Type but got: ".concat((0,r.X)(n.type),"."),null===(i=n.astNode)||void 0===i?void 0:i.type);if((0,s.dK)(n)&&null!=n.deprecationReason)e.reportError("Required argument ".concat(t.name,".").concat(l.name,"(").concat(o,":) cannot be deprecated."),[x(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function v(e,t){const n=Object.create(null);for(const o of t.getInterfaces())(0,s.oT)(o)?t!==o?n[o.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),w(t,o)):(n[o.name]=!0,b(e,t,o),y(e,t,o)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),w(t,o)):e.reportError("Type ".concat((0,r.X)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,r.X)(o),"."),w(t,o))}function y(e,t,n){const o=t.getFields();for(const p of Object.values(n.getFields())){const d=p.name,f=o[d];if(f){var i,l;if(!(0,a.uJ)(e.schema,f.type,p.type))e.reportError("Interface field ".concat(n.name,".").concat(d," expects type ")+"".concat((0,r.X)(p.type)," but ").concat(t.name,".").concat(d," ")+"is type ".concat((0,r.X)(f.type),"."),[null===(i=p.astNode)||void 0===i?void 0:i.type,null===(l=f.astNode)||void 0===l?void 0:l.type]);for(const o of p.args){const i=o.name,s=f.args.find((e=>e.name===i));var c,u;if(s){if(!(0,a._7)(o.type,s.type))e.reportError("Interface field argument ".concat(n.name,".").concat(d,"(").concat(i,":) ")+"expects type ".concat((0,r.X)(o.type)," but ")+"".concat(t.name,".").concat(d,"(").concat(i,":) is type ")+"".concat((0,r.X)(s.type),"."),[null===(c=o.astNode)||void 0===c?void 0:c.type,null===(u=s.astNode)||void 0===u?void 0:u.type])}else e.reportError("Interface field argument ".concat(n.name,".").concat(d,"(").concat(i,":) expected but ").concat(t.name,".").concat(d," does not provide it."),[o.astNode,f.astNode])}for(const r of f.args){const o=r.name;!p.args.find((e=>e.name===o))&&(0,s.dK)(r)&&e.reportError("Object field ".concat(t.name,".").concat(d," includes required argument ").concat(o," that is missing from the Interface field ").concat(n.name,".").concat(d,"."),[r.astNode,p.astNode])}}else e.reportError("Interface field ".concat(n.name,".").concat(d," expected but ").concat(t.name," does not provide it."),[p.astNode,t.astNode,...t.extensionASTNodes])}}function b(e,t,n){const r=t.getInterfaces();for(const o of n.getInterfaces())r.includes(o)||e.reportError(o===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(o.name," because it is implemented by ").concat(n.name,"."),[...w(n,o),...w(t,n)])}function _(e,t){const n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),[t.astNode,...t.extensionASTNodes]);const o=Object.create(null);for(const i of n)o[i.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(i.name," once."),k(t,i.name)):(o[i.name]=!0,(0,s.lp)(i)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,r.X)(i),"."),k(t,String(i))))}function E(e,t){const n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),[t.astNode,...t.extensionASTNodes]);for(const r of n)m(e,r)}function T(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),[t.astNode,...t.extensionASTNodes]);for(const a of n){var o,i;if(m(e,a),!(0,s.j$)(a.type))e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Input Type ")+"but got: ".concat((0,r.X)(a.type),"."),null===(o=a.astNode)||void 0===o?void 0:o.type);if((0,s.Wd)(a)&&null!=a.deprecationReason)e.reportError("Required input field ".concat(t.name,".").concat(a.name," cannot be deprecated."),[x(a.astNode),null===(i=a.astNode)||void 0===i?void 0:i.type])}}function w(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function k(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function x(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.fg.name))}},23857:(e,t,n)=>{"use strict";n.d(t,{a:()=>c,y:()=>p});var r=n(48700),o=n(60844),i=n(7751),a=n(10949),s=n(64478),l=n(80371);class c{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==n&&void 0!==n?n:u,t&&((0,a.j$)(t)&&this._inputTypeStack.push(t),(0,a.Gv)(t)&&this._parentTypeStack.push(t),(0,a.SZ)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case o.h.SELECTION_SET:{const e=(0,a.xC)(this.getType());this._parentTypeStack.push((0,a.Gv)(e)?e:void 0);break}case o.h.FIELD:{const n=this.getParentType();let r,o;n&&(r=this._getFieldDef(t,n,e),r&&(o=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.SZ)(o)?o:void 0);break}case o.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case o.h.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.lp)(n)?n:void 0);break}case o.h.INLINE_FRAGMENT:case o.h.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,l._)(t,n):(0,a.xC)(this.getType());this._typeStack.push((0,a.SZ)(r)?r:void 0);break}case o.h.VARIABLE_DEFINITION:{const n=(0,l._)(t,e.type);this._inputTypeStack.push((0,a.j$)(n)?n:void 0);break}case o.h.ARGUMENT:{var n;let t,r;const o=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();o&&(t=o.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.j$)(r)?r:void 0);break}case o.h.LIST:{const e=(0,a.tf)(this.getInputType()),t=(0,a.HG)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.j$)(t)?t:void 0);break}case o.h.OBJECT_FIELD:{const t=(0,a.xC)(this.getInputType());let n,r;(0,a.hL)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.j$)(n)?n:void 0);break}case o.h.ENUM:{const t=(0,a.xC)(this.getInputType());let n;(0,a.EM)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case o.h.SELECTION_SET:this._parentTypeStack.pop();break;case o.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case o.h.DIRECTIVE:this._directive=null;break;case o.h.OPERATION_DEFINITION:case o.h.INLINE_FRAGMENT:case o.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case o.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case o.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.h.LIST:case o.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case o.h.ENUM:this._enumValue=null}}}function u(e,t,n){const r=n.name.value;return r===s.Az.name&&e.getQueryType()===t?s.Az:r===s.tF.name&&e.getQueryType()===t?s.tF:r===s.hU.name&&(0,a.Gv)(t)?s.hU:(0,a.lp)(t)||(0,a.oT)(t)?t.getFields()[r]:void 0}function p(e,t){return{enter(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];const s=o[0];e.enter(s);const l=(0,i.Eu)(t,s.kind).enter;if(l){const n=l.apply(t,o);return void 0!==n&&(e.leave(s),(0,r.UG)(n)&&e.enter(n)),n}},leave(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const a=r[0],s=(0,i.Eu)(t,a.kind).leave;let l;return s&&(l=s.apply(t,r)),e.leave(a),l}}}},99024:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(6024),o=n(42690),i=n(73342),a=n(17869),s=n(60844),l=n(10949),c=n(540);function u(e,t){if((0,l.zM)(t)){const n=u(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===s.h.NULL?null:n}if(null===e)return{kind:s.h.NULL};if(void 0===e)return null;if((0,l.HG)(t)){const n=t.ofType;if((0,i.i)(e)){const t=[];for(const r of e){const e=u(r,n);null!=e&&t.push(e)}return{kind:s.h.LIST,values:t}}return u(e,n)}if((0,l.hL)(t)){if(!(0,a.y)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=u(e[r.name],r.type);t&&n.push({kind:s.h.OBJECT_FIELD,name:{kind:s.h.NAME,value:r.name},value:t})}return{kind:s.h.OBJECT,fields:n}}if((0,l.UT)(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"===typeof n)return{kind:s.h.BOOLEAN,value:n};if("number"===typeof n&&Number.isFinite(n)){const e=String(n);return p.test(e)?{kind:s.h.INT,value:e}:{kind:s.h.FLOAT,value:e}}if("string"===typeof n)return(0,l.EM)(t)?{kind:s.h.ENUM,value:n}:t===c.km&&p.test(n)?{kind:s.h.INT,value:n}:{kind:s.h.STRING,value:n};throw new TypeError("Cannot convert value to AST: ".concat((0,r.X)(n),"."))}(0,o.k)(!1,"Unexpected input type: "+(0,r.X)(t))}const p=/^-?(?:0|[1-9][0-9]*)$/},89836:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(61388),o=n(6024),i=n(17869),a=n(50964),s=n(92460),l=n(10949),c=n(78831),u=n(64478),p=n(540),d=n(88041),f=n(42954);function h(e,t){(0,i.y)(e)&&(0,i.y)(e.__schema)||(0,r.a)(!1,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,o.X)(e),"."));const n=e.__schema,h=(0,a.w)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case u.zU.SCALAR:return r=e,new l.n2({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case u.zU.OBJECT:return n=e,new l.h6({name:n.name,description:n.description,interfaces:()=>w(n),fields:()=>k(n)});case u.zU.INTERFACE:return t=e,new l.oW({name:t.name,description:t.description,interfaces:()=>w(t),fields:()=>k(t)});case u.zU.UNION:return function(e){if(!e.possibleTypes){const t=(0,o.X)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new l.Gp({name:e.name,description:e.description,types:()=>e.possibleTypes.map(E)})}(e);case u.zU.ENUM:return function(e){if(!e.enumValues){const t=(0,o.X)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new l.mR({name:e.name,description:e.description,values:(0,a.w)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case u.zU.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,o.X)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new l.sR({name:e.name,description:e.description,fields:()=>S(e.inputFields)})}(e)}var t;var n;var r;const i=(0,o.X)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(i,"."))}(e)));for(const r of[...p.HS,...u.nL])h[r.name]&&(h[r.name]=r);const m=n.queryType?E(n.queryType):null,g=n.mutationType?E(n.mutationType):null,v=n.subscriptionType?E(n.subscriptionType):null,y=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,o.X)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){const t=(0,o.X)(e);throw new Error("Introspection result missing directive locations: ".concat(t,"."))}return new c.NZ({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:S(e.args)})})):[];return new d.XO({description:n.description,query:m,mutation:g,subscription:v,types:Object.values(h),directives:y,assumeValid:null===t||void 0===t?void 0:t.assumeValid});function b(e){if(e.kind===u.zU.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new l.p2(b(t))}if(e.kind===u.zU.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new l.bM((0,l.i_)(n))}return _(e)}function _(e){const t=e.name;if(!t)throw new Error("Unknown type reference: ".concat((0,o.X)(e),"."));const n=h[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function E(e){return(0,l.Z6)(_(e))}function T(e){return(0,l.k2)(_(e))}function w(e){if(null===e.interfaces&&e.kind===u.zU.INTERFACE)return[];if(!e.interfaces){const t=(0,o.X)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(T)}function k(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat((0,o.X)(e),"."));return(0,a.w)(e.fields,(e=>e.name),x)}function x(e){const t=b(e.type);if(!(0,l.SZ)(t)){const e=(0,o.X)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(e,"."))}if(!e.args){const t=(0,o.X)(e);throw new Error("Introspection result missing field args: ".concat(t,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:S(e.args)}}function S(e){return(0,a.w)(e,(e=>e.name),C)}function C(e){const t=b(e.type);if(!(0,l.j$)(t)){const e=(0,o.X)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(e,"."))}const n=null!=e.defaultValue?(0,f.u)((0,s.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}},44517:(e,t,n)=>{"use strict";n.d(t,{K:()=>f});var r=n(18513),o=n(6024),i=n(42690),a=n(73342),s=n(17869),l=n(97836),c=n(2960),u=n(23649),p=n(72243),d=n(10949);function f(e,t){return m(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,void 0)}function h(e,t,n){let r="Invalid value "+(0,o.X)(t);throw e.length>0&&(r+=' at "value'.concat((0,c.F)(e),'"')),n.message=r+": "+n.message,n}function m(e,t,n,c){if((0,d.zM)(t))return null!=e?m(e,t.ofType,n,c):void n((0,l.N)(c),e,new p.__('Expected non-nullable type "'.concat((0,o.X)(t),'" not to be null.')));if(null==e)return null;if((0,d.HG)(t)){const r=t.ofType;return(0,a.i)(e)?Array.from(e,((e,t)=>{const o=(0,l.Q)(c,t,void 0);return m(e,r,n,o)})):[m(e,r,n,c)]}if((0,d.hL)(t)){if(!(0,s.y)(e))return void n((0,l.N)(c),e,new p.__('Expected type "'.concat(t.name,'" to be an object.')));const i={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)i[r.name]=m(a,r.type,n,(0,l.Q)(c,r.name,t.name));else if(void 0!==r.defaultValue)i[r.name]=r.defaultValue;else if((0,d.zM)(r.type)){const t=(0,o.X)(r.type);n((0,l.N)(c),e,new p.__('Field "'.concat(r.name,'" of required type "').concat(t,'" was not provided.')))}}for(const o of Object.keys(e))if(!a[o]){const i=(0,u.D)(o,Object.keys(t.getFields()));n((0,l.N)(c),e,new p.__('Field "'.concat(o,'" is not defined by type "').concat(t.name,'".')+(0,r.l)(i)))}return i}if((0,d.UT)(t)){let r;try{r=t.parseValue(e)}catch(f){return void(f instanceof p.__?n((0,l.N)(c),e,f):n((0,l.N)(c),e,new p.__('Expected type "'.concat(t.name,'". ')+f.message,{originalError:f})))}return void 0===r&&n((0,l.N)(c),e,new p.__('Expected type "'.concat(t.name,'".'))),r}(0,i.k)(!1,"Unexpected input type: "+(0,o.X)(t))}},95122:(e,t,n)=>{"use strict";function r(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",o=t.directiveIsRepeatable?"isRepeatable":"",i=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(i,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(o,"\n locations\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(r,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(a("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(a("isDeprecated"),"\n ").concat(a("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}n.d(t,{K:()=>r})},67853:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(9911),o=n(60844);function i(e){switch(e.kind){case o.h.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:i(e.value)}))).sort(((e,t)=>(0,r.K)(e.name.value,t.name.value))))};case o.h.LIST:return{...e,values:e.values.map(i)};case o.h.INT:case o.h.FLOAT:case o.h.STRING:case o.h.BOOLEAN:case o.h.NULL:case o.h.ENUM:case o.h.VARIABLE:return e}var t}},34836:(e,t,n)=>{"use strict";n.d(t,{_7:()=>o,uJ:()=>i,zR:()=>a});var r=n(10949);function o(e,t){return e===t||((0,r.zM)(e)&&(0,r.zM)(t)||!(!(0,r.HG)(e)||!(0,r.HG)(t)))&&o(e.ofType,t.ofType)}function i(e,t,n){return t===n||((0,r.zM)(n)?!!(0,r.zM)(t)&&i(e,t.ofType,n.ofType):(0,r.zM)(t)?i(e,t.ofType,n):(0,r.HG)(n)?!!(0,r.HG)(t)&&i(e,t.ofType,n.ofType):!(0,r.HG)(t)&&((0,r.m0)(n)&&((0,r.oT)(t)||(0,r.lp)(t))&&e.isSubType(n,t)))}function a(e,t,n){return t===n||((0,r.m0)(t)?(0,r.m0)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.m0)(n)&&e.isSubType(n,t))}},80371:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(60844),o=n(10949);function i(e,t){switch(t.kind){case r.h.LIST_TYPE:{const n=i(e,t.type);return n&&new o.p2(n)}case r.h.NON_NULL_TYPE:{const n=i(e,t.type);return n&&new o.bM(n)}case r.h.NAMED_TYPE:return e.getType(t.name.value)}}},42954:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(6024),o=n(42690),i=n(92373),a=n(60844),s=n(10949);function l(e,t,n){if(e){if(e.kind===a.h.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const o=n[r];if(null===o&&(0,s.zM)(t))return;return o}if((0,s.zM)(t)){if(e.kind===a.h.NULL)return;return l(e,t.ofType,n)}if(e.kind===a.h.NULL)return null;if((0,s.HG)(t)){const r=t.ofType;if(e.kind===a.h.LIST){const t=[];for(const o of e.values)if(c(o,n)){if((0,s.zM)(r))return;t.push(null)}else{const e=l(o,r,n);if(void 0===e)return;t.push(e)}return t}const o=l(e,r,n);if(void 0===o)return;return[o]}if((0,s.hL)(t)){if(e.kind!==a.h.OBJECT)return;const r=Object.create(null),o=(0,i.P)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=o[e.name];if(!t||c(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if((0,s.zM)(e.type))return;continue}const i=l(t.value,e.type,n);if(void 0===i)return;r[e.name]=i}return r}if((0,s.UT)(t)){let r;try{r=t.parseLiteral(e,n)}catch(u){return}if(void 0===r)return;return r}(0,o.k)(!1,"Unexpected input type: "+(0,r.X)(t))}}function c(e,t){return e.kind===a.h.VARIABLE&&(null==t||void 0===t[e.name.value])}},83576:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});var r=n(50964),o=n(60844);function i(e,t){switch(e.kind){case o.h.NULL:return null;case o.h.INT:return parseInt(e.value,10);case o.h.FLOAT:return parseFloat(e.value);case o.h.STRING:case o.h.ENUM:case o.h.BOOLEAN:return e.value;case o.h.LIST:return e.values.map((e=>i(e,t)));case o.h.OBJECT:return(0,r.w)(e.fields,(e=>e.name.value),(e=>i(e.value,t)));case o.h.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}}},26743:(e,t,n)=>{"use strict";n.d(t,{_t:()=>l,yv:()=>s});var r=n(60844),o=n(7751),i=n(23857);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.h.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let o;for(;o=n.pop();)for(const e of o.selections)e.kind===r.h.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==n[o]){n[o]=!0;const e=this.getFragment(o);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class l extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new i.a(this._schema);(0,o.Vn)(e,(0,i.y)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}},77382:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(72243),o=n(60844),i=n(2364);function a(e){return{Document(t){for(const n of t.definitions)if(!(0,i.Wk)(n)){const t=n.kind===o.h.SCHEMA_DEFINITION||n.kind===o.h.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.__("The ".concat(t," definition is not executable."),{nodes:n}))}return!1}}}},5741:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(18513),o=n(9911),i=n(23649),a=n(72243),s=n(10949);function l(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const l=e.getSchema(),c=t.name.value;let u=(0,r.l)("to use an inline fragment on",function(e,t,n){if(!(0,s.m0)(t))return[];const r=new Set,i=Object.create(null);for(const o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(const e of o.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(a=i[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:(0,s.oT)(t)&&e.isSubType(t,n)?-1:(0,s.oT)(n)&&e.isSubType(n,t)?1:(0,o.K)(t.name,n.name)})).map((e=>e.name))}(l,n,c));""===u&&(u=(0,r.l)(function(e,t){if((0,s.lp)(e)||(0,s.oT)(e)){const n=Object.keys(e.getFields());return(0,i.D)(t,n)}return[]}(n,c))),e.reportError(new a.__('Cannot query field "'.concat(c,'" on type "').concat(n.name,'".')+u,{nodes:t}))}}}}}},84876:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var r=n(72243),o=n(56327),i=n(10949),a=n(80371);function s(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a._)(e.getSchema(),n);if(t&&!(0,i.Gv)(t)){const t=(0,o.S)(n);e.reportError(new r.__('Fragment cannot condition on non composite type "'.concat(t,'".'),{nodes:n}))}}},FragmentDefinition(t){const n=(0,a._)(e.getSchema(),t.typeCondition);if(n&&!(0,i.Gv)(n)){const n=(0,o.S)(t.typeCondition);e.reportError(new r.__('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(n,'".'),{nodes:t.typeCondition}))}}}}},68521:(e,t,n)=>{"use strict";n.d(t,{e:()=>l,o:()=>c});var r=n(18513),o=n(23649),i=n(72243),a=n(60844),s=n(78831);function l(e){return{...c(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,l=a.args.map((e=>e.name)),c=(0,o.D)(n,l);e.reportError(new i.__('Unknown argument "'.concat(n,'" on field "').concat(s.name,".").concat(a.name,'".')+(0,r.l)(c),{nodes:t}))}}}}function c(e){const t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():s.V4;for(const r of l)t[r.name]=r.args.map((e=>e.name));const c=e.getDocument().definitions;for(const r of c)if(r.kind===a.h.DIRECTIVE_DEFINITION){var u;const e=null!==(u=r.arguments)&&void 0!==u?u:[];t[r.name.value]=e.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const l=(0,o.D)(n,s);e.reportError(new i.__('Unknown argument "'.concat(n,'" on directive "@').concat(a,'".')+(0,r.l)(l),{nodes:t}))}}return!1}}}},84646:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var r=n(6024),o=n(42690),i=n(72243),a=n(48700),s=n(62724),l=n(60844),c=n(78831);function u(e){const t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():c.V4;for(const r of u)t[r.name]=r.locations;const p=e.getDocument().definitions;for(const r of p)r.kind===l.h.DIRECTIVE_DEFINITION&&(t[r.name.value]=r.locations.map((e=>e.value)));return{Directive(n,c,u,p,d){const f=n.name.value,h=t[f];if(!h)return void e.reportError(new i.__('Unknown directive "@'.concat(f,'".'),{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,o.k)(!1),t.kind){case l.h.OPERATION_DEFINITION:return function(e){switch(e){case a.ku.QUERY:return s.B.QUERY;case a.ku.MUTATION:return s.B.MUTATION;case a.ku.SUBSCRIPTION:return s.B.SUBSCRIPTION}}(t.operation);case l.h.FIELD:return s.B.FIELD;case l.h.FRAGMENT_SPREAD:return s.B.FRAGMENT_SPREAD;case l.h.INLINE_FRAGMENT:return s.B.INLINE_FRAGMENT;case l.h.FRAGMENT_DEFINITION:return s.B.FRAGMENT_DEFINITION;case l.h.VARIABLE_DEFINITION:return s.B.VARIABLE_DEFINITION;case l.h.SCHEMA_DEFINITION:case l.h.SCHEMA_EXTENSION:return s.B.SCHEMA;case l.h.SCALAR_TYPE_DEFINITION:case l.h.SCALAR_TYPE_EXTENSION:return s.B.SCALAR;case l.h.OBJECT_TYPE_DEFINITION:case l.h.OBJECT_TYPE_EXTENSION:return s.B.OBJECT;case l.h.FIELD_DEFINITION:return s.B.FIELD_DEFINITION;case l.h.INTERFACE_TYPE_DEFINITION:case l.h.INTERFACE_TYPE_EXTENSION:return s.B.INTERFACE;case l.h.UNION_TYPE_DEFINITION:case l.h.UNION_TYPE_EXTENSION:return s.B.UNION;case l.h.ENUM_TYPE_DEFINITION:case l.h.ENUM_TYPE_EXTENSION:return s.B.ENUM;case l.h.ENUM_VALUE_DEFINITION:return s.B.ENUM_VALUE;case l.h.INPUT_OBJECT_TYPE_DEFINITION:case l.h.INPUT_OBJECT_TYPE_EXTENSION:return s.B.INPUT_OBJECT;case l.h.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,o.k)(!1),t.kind===l.h.INPUT_OBJECT_TYPE_DEFINITION?s.B.INPUT_FIELD_DEFINITION:s.B.ARGUMENT_DEFINITION}default:(0,o.k)(!1,"Unexpected kind: "+(0,r.X)(t.kind))}}(d);m&&!h.includes(m)&&e.reportError(new i.__('Directive "@'.concat(f,'" may not be used on ').concat(m,"."),{nodes:n}))}}}},27499:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(72243);function o(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.__('Unknown fragment "'.concat(n,'".'),{nodes:t.name}))}}}},52546:(e,t,n)=>{"use strict";n.d(t,{I:()=>l});var r=n(18513),o=n(23649),i=n(72243),a=n(2364),s=n(64478);function l(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const r of e.getDocument().definitions)(0,a.zT)(r)&&(s[r.name.value]=!0);const l=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,u,p,d,f){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=f[2])&&void 0!==m?m:p,s=null!=n&&("kind"in(g=n)&&((0,a.G4)(g)||(0,a.aU)(g)));if(s&&c.includes(h))return;const u=(0,o.D)(h,s?c.concat(l):l);e.reportError(new i.__('Unknown type "'.concat(h,'".')+(0,r.l)(u),{nodes:t}))}var g}}}const c=[...n(540).HS,...s.nL].map((e=>e.name))},76373:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(72243),o=n(60844);function i(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===o.h.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.__("This anonymous operation must be the only defined operation.",{nodes:n}))}}}},1367:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(72243);function o(e){var t,n,o;const i=e.getSchema(),a=null!==(t=null!==(n=null!==(o=null===i||void 0===i?void 0:i.astNode)&&void 0!==o?o:null===i||void 0===i?void 0:i.getQueryType())&&void 0!==n?n:null===i||void 0===i?void 0:i.getMutationType())&&void 0!==t?t:null===i||void 0===i?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.__("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.__("Must provide only one schema definition.",{nodes:t})),++s)}}}},76776:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(72243);function o(e){const t=Object.create(null),n=[],o=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const l=e.getFragmentSpreads(a.selectionSet);if(0!==l.length){o[s]=n.length;for(const t of l){const a=t.name.value,s=o[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&i(t)}else{const t=n.slice(s),o=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.__('Cannot spread fragment "'.concat(a,'" within itself')+(""!==o?" via ".concat(o,"."):"."),{nodes:t}))}n.pop()}o[s]=void 0}}}},754:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(72243);function o(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:i}of o){const o=i.name.value;!0!==t[o]&&e.reportError(new r.__(n.name?'Variable "$'.concat(o,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(o,'" is not defined.'),{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}},5826:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(72243);function o(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const o=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))o[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==o[n]&&e.reportError(new r.__('Fragment "'.concat(n,'" is never used.'),{nodes:t}))}}}}}},67184:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(72243);function o(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const o=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)o[e.name.value]=!0;for(const a of t){const t=a.variable.name.value;!0!==o[t]&&e.reportError(new r.__(n.name?'Variable "$'.concat(t,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(t,'" is never used.'),{nodes:a}))}}},VariableDefinition(e){t.push(e)}}}},61074:(e,t,n)=>{"use strict";n.d(t,{y:()=>p});var r=n(6024),o=n(72243),i=n(60844),a=n(56327),s=n(10949),l=n(67853),c=n(80371);function u(e){return Array.isArray(e)?e.map((e=>{let[t,n]=e;return'subfields "'.concat(t,'" conflict because ')+u(n)})).join(" and "):e}function p(e){const t=new E,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,o){const i=[],[a,s]=y(e,t,r,o);if(function(e,t,n,r,o){for(const[i,a]of Object.entries(o))if(a.length>1)for(let o=0;o<a.length;o++)for(let s=o+1;s<a.length;s++){const l=m(e,n,r,!1,i,a[o],a[s]);l&&t.push(l)}}(e,i,t,n,a),0!==s.length)for(let l=0;l<s.length;l++){d(e,i,t,n,!1,a,s[l]);for(let r=l+1;r<s.length;r++)f(e,i,t,n,!1,s[l],s[r])}return i}(e,n,t,e.getParentType(),r);for(const[[t,n],a,s]of i){const r=u(n);e.reportError(new o.__('Fields "'.concat(t,'" conflict because ').concat(r,". Use different aliases on the fields to fetch both if this was intentional."),{nodes:a.concat(s)}))}}}}function d(e,t,n,r,o,i,a){const s=e.getFragment(a);if(!s)return;const[l,c]=b(e,n,s);if(i!==l){h(e,t,n,r,o,i,l);for(const s of c)r.has(s,a,o)||(r.add(s,a,o),d(e,t,n,r,o,i,s))}}function f(e,t,n,r,o,i,a){if(i===a)return;if(r.has(i,a,o))return;r.add(i,a,o);const s=e.getFragment(i),l=e.getFragment(a);if(!s||!l)return;const[c,u]=b(e,n,s),[p,d]=b(e,n,l);h(e,t,n,r,o,c,p);for(const h of d)f(e,t,n,r,o,i,h);for(const h of u)f(e,t,n,r,o,h,a)}function h(e,t,n,r,o,i,a){for(const[s,l]of Object.entries(i)){const i=a[s];if(i)for(const a of l)for(const l of i){const i=m(e,n,r,o,s,a,l);i&&t.push(i)}}}function m(e,t,n,o,i,a,l){const[c,u,p]=a,[m,b,_]=l,E=o||c!==m&&(0,s.lp)(c)&&(0,s.lp)(m);if(!E){const e=u.name.value,t=b.name.value;if(e!==t)return[[i,'"'.concat(e,'" and "').concat(t,'" are different fields')],[u],[b]];if(g(u)!==g(b))return[[i,"they have differing arguments"],[u],[b]]}const T=null===p||void 0===p?void 0:p.type,w=null===_||void 0===_?void 0:_.type;if(T&&w&&v(T,w))return[[i,'they return conflicting types "'.concat((0,r.X)(T),'" and "').concat((0,r.X)(w),'"')],[u],[b]];const k=u.selectionSet,x=b.selectionSet;if(k&&x){const r=function(e,t,n,r,o,i,a,s){const l=[],[c,u]=y(e,t,o,i),[p,m]=y(e,t,a,s);h(e,l,t,n,r,c,p);for(const f of m)d(e,l,t,n,r,c,f);for(const f of u)d(e,l,t,n,r,p,f);for(const d of u)for(const o of m)f(e,l,t,n,r,d,o);return l}(e,t,n,E,(0,s.xC)(T),k,(0,s.xC)(w),x);return function(e,t,n,r){if(e.length>0)return[[t,e.map((e=>{let[t]=e;return t}))],[n,...e.map((e=>{let[,t]=e;return t})).flat()],[r,...e.map((e=>{let[,,t]=e;return t})).flat()]]}(r,i,u,b)}}function g(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[],r={kind:i.h.OBJECT,fields:n.map((e=>({kind:i.h.OBJECT_FIELD,name:e.name,value:e.value})))};return(0,a.S)((0,l.n)(r))}function v(e,t){return(0,s.HG)(e)?!(0,s.HG)(t)||v(e.ofType,t.ofType):!!(0,s.HG)(t)||((0,s.zM)(e)?!(0,s.zM)(t)||v(e.ofType,t.ofType):!!(0,s.zM)(t)||!(!(0,s.UT)(e)&&!(0,s.UT)(t))&&e!==t)}function y(e,t,n,r){const o=t.get(r);if(o)return o;const i=Object.create(null),a=Object.create(null);_(e,n,r,i,a);const s=[i,Object.keys(a)];return t.set(r,s),s}function b(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const o=(0,c._)(e.getSchema(),n.typeCondition);return y(e,t,o,n.selectionSet)}function _(e,t,n,r,o){for(const a of n.selections)switch(a.kind){case i.h.FIELD:{const e=a.name.value;let n;((0,s.lp)(t)||(0,s.oT)(t))&&(n=t.getFields()[e]);const o=a.alias?a.alias.value:e;r[o]||(r[o]=[]),r[o].push([t,a,n]);break}case i.h.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case i.h.INLINE_FRAGMENT:{const n=a.typeCondition,i=n?(0,c._)(e.getSchema(),n):t;_(e,i,a.selectionSet,r,o);break}}}class E{constructor(){this._data=new Map}has(e,t,n){var r;const[o,i]=e<t?[e,t]:[t,e],a=null===(r=this._data.get(o))||void 0===r?void 0:r.get(i);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,o]=e<t?[e,t]:[t,e],i=this._data.get(r);void 0===i?this._data.set(r,new Map([[o,n]])):i.set(o,n)}}},20919:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(6024),o=n(72243),i=n(10949),a=n(34836),s=n(80371);function l(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,i.Gv)(n)&&(0,i.Gv)(s)&&!(0,a.zR)(e.getSchema(),n,s)){const i=(0,r.X)(s),a=(0,r.X)(n);e.reportError(new o.__('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(a,'".'),{nodes:t}))}},FragmentSpread(t){const n=t.name.value,l=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s._)(e.getSchema(),n.typeCondition);if((0,i.Gv)(t))return t}}(e,n),c=e.getParentType();if(l&&c&&!(0,a.zR)(e.getSchema(),l,c)){const i=(0,r.X)(c),a=(0,r.X)(l);e.reportError(new o.__('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(i,'" can never be of type "').concat(a,'".'),{nodes:t}))}}}}},92793:(e,t,n)=>{"use strict";n.d(t,{g:()=>p});var r=n(18513),o=n(6024),i=n(42690),a=n(23649),s=n(72243),l=n(60844),c=n(2364),u=n(10949);function p(e){const t=e.getSchema(),n=Object.create(null);for(const r of e.getDocument().definitions)(0,c.zT)(r)&&(n[r.name.value]=r);return{ScalarTypeExtension:p,ObjectTypeExtension:p,InterfaceTypeExtension:p,UnionTypeExtension:p,EnumTypeExtension:p,InputObjectTypeExtension:p};function p(c){const p=c.name.value,f=n[p],h=null===t||void 0===t?void 0:t.getType(p);let m;if(f?m=d[f.kind]:h&&(m=function(e){if((0,u.KA)(e))return l.h.SCALAR_TYPE_EXTENSION;if((0,u.lp)(e))return l.h.OBJECT_TYPE_EXTENSION;if((0,u.oT)(e))return l.h.INTERFACE_TYPE_EXTENSION;if((0,u.EN)(e))return l.h.UNION_TYPE_EXTENSION;if((0,u.EM)(e))return l.h.ENUM_TYPE_EXTENSION;if((0,u.hL)(e))return l.h.INPUT_OBJECT_TYPE_EXTENSION;(0,i.k)(!1,"Unexpected type: "+(0,o.X)(e))}(h)),m){if(m!==c.kind){const t=function(e){switch(e){case l.h.SCALAR_TYPE_EXTENSION:return"scalar";case l.h.OBJECT_TYPE_EXTENSION:return"object";case l.h.INTERFACE_TYPE_EXTENSION:return"interface";case l.h.UNION_TYPE_EXTENSION:return"union";case l.h.ENUM_TYPE_EXTENSION:return"enum";case l.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,i.k)(!1,"Unexpected kind: "+(0,o.X)(e))}}(c.kind);e.reportError(new s.__("Cannot extend non-".concat(t,' type "').concat(p,'".'),{nodes:f?[f,c]:c}))}}else{const o=Object.keys({...n,...null===t||void 0===t?void 0:t.getTypeMap()}),i=(0,a.D)(p,o);e.reportError(new s.__('Cannot extend type "'.concat(p,'" because it is not defined.')+(0,r.l)(i),{nodes:c.name}))}}}const d={[l.h.SCALAR_TYPE_DEFINITION]:l.h.SCALAR_TYPE_EXTENSION,[l.h.OBJECT_TYPE_DEFINITION]:l.h.OBJECT_TYPE_EXTENSION,[l.h.INTERFACE_TYPE_DEFINITION]:l.h.INTERFACE_TYPE_EXTENSION,[l.h.UNION_TYPE_DEFINITION]:l.h.UNION_TYPE_EXTENSION,[l.h.ENUM_TYPE_DEFINITION]:l.h.ENUM_TYPE_EXTENSION,[l.h.INPUT_OBJECT_TYPE_DEFINITION]:l.h.INPUT_OBJECT_TYPE_EXTENSION}},25897:(e,t,n)=>{"use strict";n.d(t,{c:()=>p,s:()=>u});var r=n(6024),o=n(92373),i=n(72243),a=n(60844),s=n(56327),l=n(10949),c=n(78831);function u(e){return{...p(e),Field:{leave(t){var n;const o=e.getFieldDef();if(!o)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const s of o.args)if(!a.has(s.name)&&(0,l.dK)(s)){const n=(0,r.X)(s.type);e.reportError(new i.__('Field "'.concat(o.name,'" argument "').concat(s.name,'" of type "').concat(n,'" is required, but it was not provided.'),{nodes:t}))}}}}}function p(e){var t;const n=Object.create(null),u=e.getSchema(),p=null!==(t=null===u||void 0===u?void 0:u.getDirectives())&&void 0!==t?t:c.V4;for(const r of p)n[r.name]=(0,o.P)(r.args.filter(l.dK),(e=>e.name));const f=e.getDocument().definitions;for(const r of f)if(r.kind===a.h.DIRECTIVE_DEFINITION){var h;const e=null!==(h=r.arguments)&&void 0!==h?h:[];n[r.name.value]=(0,o.P)(e.filter(d),(e=>e.name.value))}return{Directive:{leave(t){const o=t.name.value,a=n[o];if(a){var c;const n=null!==(c=t.arguments)&&void 0!==c?c:[],u=new Set(n.map((e=>e.name.value)));for(const[c,p]of Object.entries(a))if(!u.has(c)){const n=(0,l.P9)(p.type)?(0,r.X)(p.type):(0,s.S)(p.type);e.reportError(new i.__('Directive "@'.concat(o,'" argument "').concat(c,'" of type "').concat(n,'" is required, but it was not provided.'),{nodes:t}))}}}}}}function d(e){return e.type.kind===a.h.NON_NULL_TYPE&&null==e.defaultValue}},80926:(e,t,n)=>{"use strict";n.d(t,{O:()=>a});var r=n(6024),o=n(72243),i=n(10949);function a(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,i.UT)((0,i.xC)(n))){if(a){const i=t.name.value,s=(0,r.X)(n);e.reportError(new o.__('Field "'.concat(i,'" must not have a selection since type "').concat(s,'" has no subfields.'),{nodes:a}))}}else if(!a){const i=t.name.value,a=(0,r.X)(n);e.reportError(new o.__('Field "'.concat(i,'" of type "').concat(a,'" must have a selection of subfields. Did you mean "').concat(i,' { ... }"?'),{nodes:t}))}}}}},93448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(72243),o=n(60844),i=n(55744);function a(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,l=Object.create(null),c=e.getDocument(),u=Object.create(null);for(const e of c.definitions)e.kind===o.h.FRAGMENT_DEFINITION&&(u[e.name.value]=e);const p=(0,i.g)(n,u,l,a,t.selectionSet);if(p.size>1){const t=[...p.values()].slice(1).flat();e.reportError(new r.__(null!=s?'Subscription "'.concat(s,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of p.values()){t[0].name.value.startsWith("__")&&e.reportError(new r.__(null!=s?'Subscription "'.concat(s,'" must not select an introspection top level field.'):"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}},15702:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(34807),o=n(72243);function i(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@".concat(e.name.value),r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,o=null!==(t=e.fields)&&void 0!==t?t:[];for(const a of o){var i;const e=a.name.value,t=null!==(i=a.arguments)&&void 0!==i?i:[];n("".concat(r,".").concat(e),t)}return!1}function n(t,n){const i=(0,r.v)(n,(e=>e.name.value));for(const[r,a]of i)a.length>1&&e.reportError(new o.__('Argument "'.concat(t,"(").concat(r,':)" can only be defined once.'),{nodes:a.map((e=>e.name))}));return!1}}},65915:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(34807),o=n(72243);function i(e){return{Field:t,Directive:t};function t(t){var n;const i=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.v)(i,(e=>e.name.value));for(const[r,s]of a)s.length>1&&e.reportError(new o.__('There can be only one argument named "'.concat(r,'".'),{nodes:s.map((e=>e.name))}))}}},86066:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(72243);function o(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(o){const i=o.name.value;if(null===n||void 0===n||!n.getDirective(i))return t[i]?e.reportError(new r.__('There can be only one directive named "@'.concat(i,'".'),{nodes:[t[i],o.name]})):t[i]=o.name,!1;e.reportError(new r.__('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),{nodes:o.name}))}}}},23453:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(72243),o=n(60844),i=n(2364),a=n(78831);function s(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.V4;for(const r of s)t[r.name]=!r.isRepeatable;const l=e.getDocument().definitions;for(const r of l)r.kind===o.h.DIRECTIVE_DEFINITION&&(t[r.name.value]=!r.repeatable);const c=Object.create(null),u=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===o.h.SCHEMA_DEFINITION||n.kind===o.h.SCHEMA_EXTENSION)a=c;else if((0,i.zT)(n)||(0,i.D$)(n)){const e=n.name.value;a=u[e],void 0===a&&(u[e]=a=Object.create(null))}else a=Object.create(null);for(const o of n.directives){const n=o.name.value;t[n]&&(a[n]?e.reportError(new r.__('The directive "@'.concat(n,'" can only be used once at this location.'),{nodes:[a[n],o]})):a[n]=o)}}}}},15617:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(72243),o=n(10949);function i(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;i[s]||(i[s]=Object.create(null));const l=null!==(a=t.values)&&void 0!==a?a:[],c=i[s];for(const i of l){const t=i.name.value,a=n[s];(0,o.EM)(a)&&a.getValue(t)?e.reportError(new r.__('Enum value "'.concat(s,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:i.name})):c[t]?e.reportError(new r.__('Enum value "'.concat(s,".").concat(t,'" can only be defined once.'),{nodes:[c[t],i.name]})):c[t]=i.name}return!1}}},77916:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(72243),o=n(10949);function i(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const s=t.name.value;o[s]||(o[s]=Object.create(null));const l=null!==(i=t.fields)&&void 0!==i?i:[],c=o[s];for(const o of l){const t=o.name.value;a(n[s],t)?e.reportError(new r.__('Field "'.concat(s,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:o.name})):c[t]?e.reportError(new r.__('Field "'.concat(s,".").concat(t,'" can only be defined once.'),{nodes:[c[t],o.name]})):c[t]=o.name}return!1}}function a(e,t){return!!((0,o.lp)(e)||(0,o.oT)(e)||(0,o.hL)(e))&&null!=e.getFields()[t]}},53316:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(72243);function o(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const o=n.name.value;return t[o]?e.reportError(new r.__('There can be only one fragment named "'.concat(o,'".'),{nodes:[t[o],n.name]})):t[o]=n.name,!1}}}},83703:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(42690),o=n(72243);function i(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.k)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new o.__('There can be only one input field named "'.concat(r,'".'),{nodes:[n[r],t.name]})):n[r]=t.name}}}},83654:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(72243);function o(e){const t=Object.create(null);return{OperationDefinition(n){const o=n.name;return o&&(t[o.value]?e.reportError(new r.__('There can be only one operation named "'.concat(o.value,'".'),{nodes:[t[o.value],o]})):t[o.value]=o),!1},FragmentDefinition:()=>!1}}},54495:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(72243);function o(e){const t=e.getSchema(),n=Object.create(null),o=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const a=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const s of a){const t=s.operation,i=n[t];o[t]?e.reportError(new r.__("Type for ".concat(t," already defined in the schema. It cannot be redefined."),{nodes:s})):i?e.reportError(new r.__("There can be only one ".concat(t," type in schema."),{nodes:[i,s]})):n[t]=s}return!1}}},63669:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(72243);function o(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:o,ObjectTypeDefinition:o,InterfaceTypeDefinition:o,UnionTypeDefinition:o,EnumTypeDefinition:o,InputObjectTypeDefinition:o};function o(o){const i=o.name.value;if(null===n||void 0===n||!n.getType(i))return t[i]?e.reportError(new r.__('There can be only one type named "'.concat(i,'".'),{nodes:[t[i],o.name]})):t[i]=o.name,!1;e.reportError(new r.__('Type "'.concat(i,'" already exists in the schema. It cannot also be defined in this type definition.'),{nodes:o.name}))}}},42205:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(34807),o=n(72243);function i(e){return{OperationDefinition(t){var n;const i=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.v)(i,(e=>e.variable.name.value));for(const[r,s]of a)s.length>1&&e.reportError(new o.__('There can be only one variable named "$'.concat(r,'".'),{nodes:s.map((e=>e.variable.name))}))}}}},82856:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var r=n(18513),o=n(6024),i=n(92373),a=n(23649),s=n(72243),l=n(56327),c=n(10949);function u(e){return{ListValue(t){const n=(0,c.tf)(e.getParentInputType());if(!(0,c.HG)(n))return p(e,t),!1},ObjectValue(t){const n=(0,c.xC)(e.getInputType());if(!(0,c.hL)(n))return p(e,t),!1;const r=(0,i.P)(t.fields,(e=>e.name.value));for(const i of Object.values(n.getFields())){if(!r[i.name]&&(0,c.Wd)(i)){const r=(0,o.X)(i.type);e.reportError(new s.__('Field "'.concat(n.name,".").concat(i.name,'" of required type "').concat(r,'" was not provided.'),{nodes:t}))}}},ObjectField(t){const n=(0,c.xC)(e.getParentInputType());if(!e.getInputType()&&(0,c.hL)(n)){const o=(0,a.D)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.__('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+(0,r.l)(o),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,c.zM)(n)&&e.reportError(new s.__('Expected value of type "'.concat((0,o.X)(n),'", found ').concat((0,l.S)(t),"."),{nodes:t}))},EnumValue:t=>p(e,t),IntValue:t=>p(e,t),FloatValue:t=>p(e,t),StringValue:t=>p(e,t),BooleanValue:t=>p(e,t)}}function p(e,t){const n=e.getInputType();if(!n)return;const r=(0,c.xC)(n);if((0,c.UT)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,o.X)(n);e.reportError(new s.__('Expected value of type "'.concat(r,'", found ').concat((0,l.S)(t),"."),{nodes:t}))}}catch(i){const r=(0,o.X)(n);i instanceof s.__?e.reportError(i):e.reportError(new s.__('Expected value of type "'.concat(r,'", found ').concat((0,l.S)(t),"; ")+i.message,{nodes:t,originalError:i}))}else{const r=(0,o.X)(n);e.reportError(new s.__('Expected value of type "'.concat(r,'", found ').concat((0,l.S)(t),"."),{nodes:t}))}}},15024:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(72243),o=n(56327),i=n(10949),a=n(80371);function s(e){return{VariableDefinition(t){const n=(0,a._)(e.getSchema(),t.type);if(void 0!==n&&!(0,i.j$)(n)){const n=t.variable.name.value,i=(0,o.S)(t.type);e.reportError(new r.__('Variable "$'.concat(n,'" cannot be non-input type "').concat(i,'".'),{nodes:t.type}))}}}}},15247:(e,t,n)=>{"use strict";n.d(t,{w:()=>c});var r=n(6024),o=n(72243),i=n(60844),a=n(10949),s=n(34836),l=n(80371);function c(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:a,type:s,defaultValue:c}of i){const n=a.name.value,i=t[n];if(i&&s){const t=e.getSchema(),p=(0,l._)(t,i.type);if(p&&!u(t,p,i.defaultValue,s,c)){const t=(0,r.X)(p),l=(0,r.X)(s);e.reportError(new o.__('Variable "$'.concat(n,'" of type "').concat(t,'" used in position expecting type "').concat(l,'".'),{nodes:[i,a]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function u(e,t,n,r,o){if((0,a.zM)(r)&&!(0,a.zM)(t)){if(!(null!=n&&n.kind!==i.h.NULL)&&!(void 0!==o))return!1;const a=r.ofType;return(0,s.uJ)(e,t,a)}return(0,s.uJ)(e,t,r)}},43113:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(42690),o=n(72243),i=n(10949);function a(e){return{Field(t){const n=e.getFieldDef(),i=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=i){const a=e.getParentType();null!=a||(0,r.k)(!1),e.reportError(new o.__("The field ".concat(a.name,".").concat(n.name," is deprecated. ").concat(i),{nodes:t}))}},Argument(t){const n=e.getArgument(),i=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=i){const a=e.getDirective();if(null!=a)e.reportError(new o.__('Directive "@'.concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.k)(!1),e.reportError(new o.__('Field "'.concat(a.name,".").concat(s.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),{nodes:t}))}}},ObjectField(t){const n=(0,i.xC)(e.getParentInputType());if((0,i.hL)(n)){const r=n.getFields()[t.name.value],i=null===r||void 0===r?void 0:r.deprecationReason;null!=i&&e.reportError(new o.__("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(i),{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,i.xC)(e.getInputType());null!=s||(0,r.k)(!1),e.reportError(new o.__('The enum value "'.concat(s.name,".").concat(n.name,'" is deprecated. ').concat(a),{nodes:t}))}}}}},14141:(e,t,n)=>{"use strict";n.d(t,{M:()=>P,i:()=>j});var r=n(77382),o=n(5741),i=n(84876),a=n(68521),s=n(84646),l=n(27499),c=n(52546),u=n(76373),p=n(1367),d=n(76776),f=n(754),h=n(5826),m=n(67184),g=n(61074),v=n(20919),y=n(92793),b=n(25897),_=n(80926),E=n(93448),T=n(15702),w=n(65915),k=n(86066),x=n(23453),S=n(15617),C=n(77916),N=n(53316),A=n(83703),O=n(83654),I=n(54495),D=n(63669),L=n(42205),F=n(82856),M=n(15024),R=n(15247);const j=Object.freeze([r.i,O.H,u.F,E.Z,c.I,i.T,M.I,_.O,o.A,N.N,l.a,h.J,v.a,d.H,L.H,f.$,m.p,s.J,x.k,a.e,w.L,F.j,b.s,R.w,g.y,A.P]),P=Object.freeze([p.t,I.q,D.P,S.L,C.y,T.L,k.o,c.I,s.J,x.k,y.g,a.o,w.L,A.P,b.c])},72996:(e,t,n)=>{"use strict";n.d(t,{ED:()=>f,Gu:()=>u,zo:()=>d});var r=n(61388),o=n(72243),i=n(7751),a=n(91681),s=n(23857),l=n(14141),c=n(26743);function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.i,u=arguments.length>3?arguments[3]:void 0,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new s.a(e);var d;const f=null!==(d=null===u||void 0===u?void 0:u.maxErrors)&&void 0!==d?d:100;t||(0,r.a)(!1,"Must provide document."),(0,a.J)(e);const h=Object.freeze({}),m=[],g=new c._t(e,t,p,(e=>{if(m.length>=f)throw m.push(new o.__("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),v=(0,i.j1)(n.map((e=>e(g))));try{(0,i.Vn)(t,(0,s.y)(p,v))}catch(y){if(y!==h)throw y}return m}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.M;const r=[],o=new c.yv(e,t,(e=>{r.push(e)})),a=n.map((e=>e(o)));return(0,i.Vn)(e,(0,i.j1)(a)),r}function d(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}function f(e,t){const n=p(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}},5285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CloseCode:()=>r.CloseCode,DEPRECATED_GRAPHQL_WS_PROTOCOL:()=>r.DEPRECATED_GRAPHQL_WS_PROTOCOL,GRAPHQL_TRANSPORT_WS_PROTOCOL:()=>r.GRAPHQL_TRANSPORT_WS_PROTOCOL,MessageType:()=>r.MessageType,createClient:()=>i,isMessage:()=>r.isMessage,parseMessage:()=>r.parseMessage,stringifyMessage:()=>r.stringifyMessage,validateMessage:()=>r.validateMessage});var r=n(15242),o=n(3403);function i(e){const{url:t,connectionParams:n,lazy:i=!0,onNonLazyError:s=console.error,lazyCloseTimeout:l=0,keepAlive:c=0,disablePong:u,connectionAckWaitTimeout:p=0,retryAttempts:d=5,retryWait:f=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise((e=>setTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:h=a,isFatalConnectionProblem:m,on:g,webSocketImpl:v,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:b,jsonMessageReviver:_}=e;let E;if(v){if(!("function"===typeof(T=v)&&"constructor"in T&&"CLOSED"in T&&"CLOSING"in T&&"CONNECTING"in T&&"OPEN"in T))throw new Error("Invalid WebSocket implementation provided");E=v}else"undefined"!==typeof WebSocket?E=WebSocket:"undefined"!==typeof global?E=global.WebSocket||global.MozWebSocket:"undefined"!==typeof window&&(E=window.WebSocket||window.MozWebSocket);var T;if(!E)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const w=E,k=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null===g||void 0===g?void 0:g.connecting)?[g.connecting]:[],opened:(null===g||void 0===g?void 0:g.opened)?[g.opened]:[],connected:(null===g||void 0===g?void 0:g.connected)?[g.connected]:[],ping:(null===g||void 0===g?void 0:g.ping)?[g.ping]:[],pong:(null===g||void 0===g?void 0:g.pong)?[g.pong]:[],message:(null===g||void 0===g?void 0:g.message)?[e.emit,g.message]:[e.emit],closed:(null===g||void 0===g?void 0:g.closed)?[g.closed]:[],error:(null===g||void 0===g?void 0:g.error)?[g.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const i of[...t[e]])i(...r)}}})();function x(e){const t=[k.on("error",(n=>{t.forEach((e=>e())),e(n)})),k.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let S,C,N=0,A=!1,O=0,I=!1;async function D(){clearTimeout(C);const[e,i]=await(null!==S&&void 0!==S?S:S=new Promise(((e,i)=>(async()=>{if(A){if(await f(O),!N)return S=void 0,i({code:1e3,reason:"All Subscriptions Gone"});O++}k.emit("connecting");const s=new w("function"===typeof t?await t():t,r.GRAPHQL_TRANSPORT_WS_PROTOCOL);let l,d;function h(){isFinite(c)&&c>0&&(clearTimeout(d),d=setTimeout((()=>{s.readyState===w.OPEN&&(s.send((0,r.stringifyMessage)({type:r.MessageType.Ping})),k.emit("ping",!1,void 0))}),c))}x((e=>{S=void 0,clearTimeout(l),clearTimeout(d),i(e),a(e)&&4499===e.code&&(s.close(4499,"Terminated"),s.onerror=null,s.onclose=null)})),s.onerror=e=>k.emit("error",e),s.onclose=e=>k.emit("closed",e),s.onopen=async()=>{try{k.emit("opened",s);const e="function"===typeof n?await n():n;if(s.readyState!==w.OPEN)return;s.send((0,r.stringifyMessage)(e?{type:r.MessageType.ConnectionInit,payload:e}:{type:r.MessageType.ConnectionInit},b)),isFinite(p)&&p>0&&(l=setTimeout((()=>{s.close(r.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),p)),h()}catch(e){k.emit("error",e),s.close(r.CloseCode.InternalClientError,(0,o.qj)(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let m=!1;s.onmessage=t=>{let{data:n}=t;try{const t=(0,r.parseMessage)(n,_);if(k.emit("message",t),"ping"===t.type||"pong"===t.type)return k.emit(t.type,!0,t.payload),void("pong"===t.type?h():u||(s.send((0,r.stringifyMessage)(t.payload?{type:r.MessageType.Pong,payload:t.payload}:{type:r.MessageType.Pong})),k.emit("pong",!1,t.payload)));if(m)return;if(t.type!==r.MessageType.ConnectionAck)throw new Error("First message cannot be of type ".concat(t.type));clearTimeout(l),m=!0,k.emit("connected",s,t.payload),A=!1,O=0,e([s,new Promise(((e,t)=>x(t)))])}catch(i){s.onmessage=null,k.emit("error",i),s.close(r.CloseCode.BadResponse,(0,o.qj)(i instanceof Error?i.message:new Error(i).message,"Bad response"))}}})())));e.readyState===w.CLOSING&&await i;let s=()=>{};const d=new Promise((e=>s=e));return[e,s,Promise.race([d.then((()=>{if(!N){const t=()=>e.close(1e3,"Normal Closure");isFinite(l)&&l>0?C=setTimeout((()=>{e.readyState===w.OPEN&&t()}),l):t()}})),i])]}function L(e){if(a(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(t)&&t>=1e3&&t<=1999||[r.CloseCode.InternalServerError,r.CloseCode.InternalClientError,r.CloseCode.BadRequest,r.CloseCode.BadResponse,r.CloseCode.Unauthorized,r.CloseCode.SubprotocolNotAcceptable,r.CloseCode.SubscriberAlreadyExists,r.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(I)return!1;if(a(e)&&1e3===e.code)return N>0;if(!d||O>=d)throw e;if(!h(e))throw e;if(null===m||void 0===m?void 0:m(e))throw e;return A=!0}return i||(async()=>{for(N++;;)try{const[,,e]=await D();await e}catch(e){try{if(!L(e))return}catch(e){return null===s||void 0===s?void 0:s(e)}}})(),{on:k.on,subscribe(e,t){const n=y(e);let o=!1,i=!1,a=()=>{N--,o=!0};return(async()=>{for(N++;;)try{const[s,l,c]=await D();if(o)return l();const u=k.onMessage(n,(e=>{switch(e.type){case r.MessageType.Next:return void t.next(e.payload);case r.MessageType.Error:return i=!0,o=!0,t.error(e.payload),void a();case r.MessageType.Complete:return o=!0,void a()}}));return s.send((0,r.stringifyMessage)({id:n,type:r.MessageType.Subscribe,payload:e},b)),a=()=>{o||s.readyState!==w.OPEN||s.send((0,r.stringifyMessage)({id:n,type:r.MessageType.Complete},b)),N--,o=!0,l()},void await c.finally(u)}catch(s){if(!L(s))return}})().then((()=>{i||t.complete()})).catch((e=>{t.error(e)})),()=>{o||a()}},async dispose(){if(I=!0,S){const[e]=await S;e.close(1e3,"Normal Closure")}},terminate(){S&&k.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}function a(e){return(0,o.Kn)(e)&&"code"in e&&"reason"in e}},15242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CloseCode:()=>a,DEPRECATED_GRAPHQL_WS_PROTOCOL:()=>i,GRAPHQL_TRANSPORT_WS_PROTOCOL:()=>o,MessageType:()=>s,isMessage:()=>c,parseMessage:()=>u,stringifyMessage:()=>p,validateMessage:()=>l});var r=n(3403);const o="graphql-transport-ws",i="graphql-ws";var a,s;function l(e){if(!(0,r.Kn)(e))throw new Error("Message is expected to be an object, but got ".concat((0,r.IR)(e)));if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!==typeof e.type)throw new Error("Message is expects the 'type' property to be a string, but got ".concat((0,r.IR)(e.type)));switch(e.type){case s.ConnectionInit:case s.ConnectionAck:case s.Ping:case s.Pong:if(null!=e.payload&&!(0,r.Kn)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object or nullish or missing, but got \"").concat(e.payload,'"'));break;case s.Subscribe:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,r.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!(0,r.Kn)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat((0,r.IR)(e.payload)));if("string"!==typeof e.payload.query)throw new Error('"'.concat(e.type,"\" message payload expects the 'query' property to be a string, but got ").concat((0,r.IR)(e.payload.query)));if(null!=e.payload.variables&&!(0,r.Kn)(e.payload.variables))throw new Error('"'.concat(e.type,"\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ").concat((0,r.IR)(e.payload.variables)));if(null!=e.payload.operationName&&"string"!==(0,r.IR)(e.payload.operationName))throw new Error('"'.concat(e.type,"\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ").concat((0,r.IR)(e.payload.operationName)));if(null!=e.payload.extensions&&!(0,r.Kn)(e.payload.extensions))throw new Error('"'.concat(e.type,"\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ").concat((0,r.IR)(e.payload.extensions)));break;case s.Next:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,r.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!(0,r.Kn)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat((0,r.IR)(e.payload)));break;case s.Error:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,r.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!(0,r.Ox)(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an array of GraphQL errors, but got ").concat(JSON.stringify(e.payload)));break;case s.Complete:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat((0,r.IR)(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));break;default:throw new Error("Invalid message 'type' property \"".concat(e.type,'"'))}return e}function c(e){try{return l(e),!0}catch(t){return!1}}function u(e,t){return l("string"===typeof e?JSON.parse(e,t):e)}function p(e,t){return l(e),JSON.stringify(e,t)}!function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(a||(a={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(s||(s={}))},98060:(e,t,n)=>{"use strict";n.r(t),n.d(t,{handleProtocols:()=>Qn,makeServer:()=>Wn});var r=n(86286),o=n(19313),i=n(62893),a=n(89193),s=n(61160),l=n(91510);const c=5;function u(e,t){const[n,r]=t?[e,t]:[void 0,e];let o=" Did you mean ";n&&(o+=n+" ");const i=r.map((e=>'"'.concat(e,'"')));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const a=i.slice(0,c),s=a.pop();return o+a.join(", ")+", or "+s+"?"}function p(e){return e}var d=n(35896),f=n(17032);function h(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function m(e,t,n){const r=Object.create(null);for(const o of e)r[t(o)]=n(o);return r}function g(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function v(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let o=e.charCodeAt(n),i=t.charCodeAt(r);if(_(o)&&_(i)){let a=0;do{++n,a=10*a+o-y,o=e.charCodeAt(n)}while(_(o)&&a>0);let s=0;do{++r,s=10*s+i-y,i=t.charCodeAt(r)}while(_(i)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(o<i)return-1;if(o>i)return 1;++n,++r}}return e.length-t.length}const y=48,b=57;function _(e){return!isNaN(e)&&y<=e&&e<=b}function E(e,t){const n=Object.create(null),r=new T(e),o=Math.floor(.4*e.length)+1;for(const i of t){const e=r.measure(i,o);void 0!==e&&(n[i]=e)}return Object.keys(n).sort(((e,t)=>{const r=n[e]-n[t];return 0!==r?r:v(e,t)}))}class T{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=w(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=w(n),o=this._inputArray;if(r.length<o.length){const e=r;r=o,o=e}const i=r.length,a=o.length;if(i-a>t)return;const s=this._rows;for(let c=0;c<=a;c++)s[0][c]=c;for(let c=1;c<=i;c++){const e=s[(c-1)%3],n=s[c%3];let i=n[0]=c;for(let t=1;t<=a;t++){const a=r[c-1]===o[t-1]?0:1;let l=Math.min(e[t]+1,n[t-1]+1,e[t-1]+a);if(c>1&&t>1&&r[c-1]===o[t-2]&&r[c-2]===o[t-1]){const e=s[(c-2)%3][t-2];l=Math.min(l,e+1)}l<i&&(i=l),n[t]=l}if(i>t)return}const l=s[i%3][a];return l<=t?l:void 0}}function w(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function k(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}var x=n(80866),S=n(97299);function C(e,t){switch(e.kind){case x.h.NULL:return null;case x.h.INT:return parseInt(e.value,10);case x.h.FLOAT:return parseFloat(e.value);case x.h.STRING:case x.h.ENUM:case x.h.BOOLEAN:return e.value;case x.h.LIST:return e.values.map((e=>C(e,t)));case x.h.OBJECT:return m(e.fields,(e=>e.name.value),(e=>C(e.value,t)));case x.h.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}}var N=n(6278);function A(e){if(null!=e||(0,o.a)(!1,"Must provide name."),"string"===typeof e||(0,o.a)(!1,"Expected name to be a string."),0===e.length)throw new i.__("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,N.HQ)(e.charCodeAt(t)))throw new i.__('Names must only contain [_a-zA-Z0-9] but "'.concat(e,'" does not.'));if(!(0,N.LQ)(e.charCodeAt(0)))throw new i.__('Names must start with [_a-zA-Z] but "'.concat(e,'" does not.'));return e}function O(e){if("true"===e||"false"===e||"null"===e)throw new i.__("Enum values cannot be named: ".concat(e));return A(e)}function I(e){return D(e)||L(e)||F(e)||M(e)||R(e)||j(e)||P(e)||V(e)}function D(e){return(0,d.n)(e,ee)}function L(e){return(0,d.n)(e,te)}function F(e){return(0,d.n)(e,ce)}function M(e){return(0,d.n)(e,ue)}function R(e){return(0,d.n)(e,de)}function j(e){return(0,d.n)(e,he)}function P(e){return(0,d.n)(e,G)}function V(e){return(0,d.n)(e,W)}function q(e){return D(e)||R(e)||j(e)||Q(e)&&q(e.ofType)}function U(e){return D(e)||L(e)||F(e)||M(e)||R(e)||Q(e)&&U(e.ofType)}function B(e){return D(e)||R(e)}function z(e){return L(e)||F(e)||M(e)}function H(e){return F(e)||M(e)}class G{constructor(e){I(e)||(0,o.a)(!1,"Expected ".concat((0,s.X)(e)," to be a GraphQL type.")),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class W{constructor(e){X(e)||(0,o.a)(!1,"Expected ".concat((0,s.X)(e)," to be a GraphQL nullable type.")),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function Q(e){return P(e)||V(e)}function X(e){return I(e)&&!V(e)}function J(e){if(e)return V(e)?e.ofType:e}function Y(e){return D(e)||L(e)||F(e)||M(e)||R(e)||j(e)}function $(e){if(e){let t=e;for(;Q(t);)t=t.ofType;return t}}function K(e){return"function"===typeof e?e():e}function Z(e){return"function"===typeof e?e():e}class ee{constructor(e){var t,n,r,i;const a=null!==(t=e.parseValue)&&void 0!==t?t:p;this.name=A(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:p,this.parseValue=a,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>a(C(e,t)),this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"===typeof e.specifiedByURL||(0,o.a)(!1,"".concat(this.name,' must provide "specifiedByURL" as a string, ')+"but got: ".concat((0,s.X)(e.specifiedByURL),".")),null==e.serialize||"function"===typeof e.serialize||(0,o.a)(!1,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,o.a)(!1,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class te{constructor(e){var t;this.name=A(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>re(e),this._interfaces=()=>ne(e),null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,o.a)(!1,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,s.X)(e.isTypeOf),"."))}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ae(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ne(e){var t;const n=K(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,o.a)(!1,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function re(e){const t=Z(e.fields);return ie(t)||(0,o.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),g(t,((t,n)=>{var r;ie(t)||(0,o.a)(!1,"".concat(e.name,".").concat(n," field config must be an object.")),null==t.resolve||"function"===typeof t.resolve||(0,o.a)(!1,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,s.X)(t.resolve),"."));const i=null!==(r=t.args)&&void 0!==r?r:{};return ie(i)||(0,o.a)(!1,"".concat(e.name,".").concat(n," args must be an object with argument names as keys.")),{name:A(n),description:t.description,type:t.type,args:oe(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:k(t.extensions),astNode:t.astNode}}))}function oe(e){return Object.entries(e).map((e=>{let[t,n]=e;return{name:A(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:k(n.extensions),astNode:n.astNode}}))}function ie(e){return(0,f.y)(e)&&!Array.isArray(e)}function ae(e){return g(e,(e=>({description:e.description,type:e.type,args:se(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function se(e){return m(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function le(e){return V(e.type)&&void 0===e.defaultValue}class ce{constructor(e){var t;this.name=A(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=re.bind(void 0,e),this._interfaces=ne.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,o.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,s.X)(e.resolveType),"."))}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ae(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ue{constructor(e){var t;this.name=A(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=pe.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,o.a)(!1,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,s.X)(e.resolveType),"."))}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function pe(e){const t=K(e.types);return Array.isArray(t)||(0,o.a)(!1,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}class de{constructor(e){var t,n,r;this.name=A(e.name),this.description=e.description,this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,ie(r=e.values)||(0,o.a)(!1,"".concat(n," values must be an object with value names as keys.")),Object.entries(r).map((e=>{let[t,r]=e;return ie(r)||(0,o.a)(!1,"".concat(n,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,s.X)(r),".")),{name:O(t),description:r.description,value:void 0!==r.value?r.value:t,deprecationReason:r.deprecationReason,extensions:k(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=h(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new i.__('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,s.X)(e)));return t.name}parseValue(e){if("string"!==typeof e){const t=(0,s.X)(e);throw new i.__('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+fe(this,t))}const t=this.getValue(e);if(null==t)throw new i.__('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+fe(this,e));return t.value}parseLiteral(e,t){if(e.kind!==x.h.ENUM){const t=(0,S.print)(e);throw new i.__('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(t,".")+fe(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,S.print)(e);throw new i.__('Value "'.concat(t,'" does not exist in "').concat(this.name,'" enum.')+fe(this,t),{nodes:e})}return n.value}toConfig(){const e=m(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function fe(e,t){return u("the enum value",E(t,e.getValues().map((e=>e.name))))}class he{constructor(e){var t;this.name=A(e.name),this.description=e.description,this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=me.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=g(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function me(e){const t=Z(e.fields);return ie(t)||(0,o.a)(!1,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),g(t,((t,n)=>(!("resolve"in t)||(0,o.a)(!1,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:A(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:k(t.extensions),astNode:t.astNode})))}function ge(e){return V(e.type)&&void 0===e.defaultValue}function ve(e,t){return e===t||(V(e)&&V(t)||!(!P(e)||!P(t)))&&ve(e.ofType,t.ofType)}function ye(e,t,n){return t===n||(V(n)?!!V(t)&&ye(e,t.ofType,n.ofType):V(t)?ye(e,t.ofType,n):P(n)?!!P(t)&&ye(e,t.ofType,n.ofType):!P(t)&&(H(n)&&(F(t)||L(t))&&e.isSubType(n,t)))}function be(e,t,n){return t===n||(H(t)?H(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!H(n)&&e.isSubType(n,t))}var _e=n(40588);const Ee=2147483647,Te=-2147483648,we=new ee({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Ae(e);if("boolean"===typeof t)return t?1:0;let n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isInteger(n))throw new i.__("Int cannot represent non-integer value: ".concat((0,s.X)(t)));if(n>Ee||n<Te)throw new i.__("Int cannot represent non 32-bit signed integer value: "+(0,s.X)(t));return n},parseValue(e){if("number"!==typeof e||!Number.isInteger(e))throw new i.__("Int cannot represent non-integer value: ".concat((0,s.X)(e)));if(e>Ee||e<Te)throw new i.__("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral(e){if(e.kind!==x.h.INT)throw new i.__("Int cannot represent non-integer value: ".concat((0,S.print)(e)),{nodes:e});const t=parseInt(e.value,10);if(t>Ee||t<Te)throw new i.__("Int cannot represent non 32-bit signed integer value: ".concat(e.value),{nodes:e});return t}}),ke=new ee({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Ae(e);if("boolean"===typeof t)return t?1:0;let n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isFinite(n))throw new i.__("Float cannot represent non numeric value: ".concat((0,s.X)(t)));return n},parseValue(e){if("number"!==typeof e||!Number.isFinite(e))throw new i.__("Float cannot represent non numeric value: ".concat((0,s.X)(e)));return e},parseLiteral(e){if(e.kind!==x.h.FLOAT&&e.kind!==x.h.INT)throw new i.__("Float cannot represent non numeric value: ".concat((0,S.print)(e)),e);return parseFloat(e.value)}}),xe=new ee({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Ae(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if("number"===typeof t&&Number.isFinite(t))return t.toString();throw new i.__("String cannot represent value: ".concat((0,s.X)(e)))},parseValue(e){if("string"!==typeof e)throw new i.__("String cannot represent a non string value: ".concat((0,s.X)(e)));return e},parseLiteral(e){if(e.kind!==x.h.STRING)throw new i.__("String cannot represent a non string value: ".concat((0,S.print)(e)),{nodes:e});return e.value}}),Se=new ee({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Ae(e);if("boolean"===typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new i.__("Boolean cannot represent a non boolean value: ".concat((0,s.X)(t)))},parseValue(e){if("boolean"!==typeof e)throw new i.__("Boolean cannot represent a non boolean value: ".concat((0,s.X)(e)));return e},parseLiteral(e){if(e.kind!==x.h.BOOLEAN)throw new i.__("Boolean cannot represent a non boolean value: ".concat((0,S.print)(e)),{nodes:e});return e.value}}),Ce=new ee({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Ae(e);if("string"===typeof t)return t;if(Number.isInteger(t))return String(t);throw new i.__("ID cannot represent value: ".concat((0,s.X)(e)))},parseValue(e){if("string"===typeof e)return e;if("number"===typeof e&&Number.isInteger(e))return e.toString();throw new i.__("ID cannot represent value: ".concat((0,s.X)(e)))},parseLiteral(e){if(e.kind!==x.h.STRING&&e.kind!==x.h.INT)throw new i.__("ID cannot represent a non-string and non-integer value: "+(0,S.print)(e),{nodes:e});return e.value}}),Ne=Object.freeze([xe,we,ke,Se,Ce]);function Ae(e){if((0,f.y)(e)){if("function"===typeof e.valueOf){const t=e.valueOf();if(!(0,f.y)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}function Oe(e){return(0,d.n)(e,Ie)}class Ie{constructor(e){var t,n;this.name=A(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=k(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,o.a)(!1,"@".concat(e.name," locations must be an Array."));const r=null!==(n=e.args)&&void 0!==n?n:{};(0,f.y)(r)&&!Array.isArray(r)||(0,o.a)(!1,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=oe(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:se(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const De=new Ie({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[_e.B.FIELD,_e.B.FRAGMENT_SPREAD,_e.B.INLINE_FRAGMENT],args:{if:{type:new W(Se),description:"Included when true."}}}),Le=new Ie({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[_e.B.FIELD,_e.B.FRAGMENT_SPREAD,_e.B.INLINE_FRAGMENT],args:{if:{type:new W(Se),description:"Skipped when true."}}}),Fe=new Ie({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[_e.B.FIELD_DEFINITION,_e.B.ARGUMENT_DEFINITION,_e.B.INPUT_FIELD_DEFINITION,_e.B.ENUM_VALUE],args:{reason:{type:xe,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:"No longer supported"}}}),Me=new Ie({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[_e.B.SCALAR],args:{url:{type:new W(xe),description:"The URL that specifies the behavior of this scalar."}}}),Re=Object.freeze([De,Le,Fe,Me]);var je=n(66297);function Pe(e){return"object"===typeof e&&"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}function Ve(e,t){if(V(t)){const n=Ve(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===x.h.NULL?null:n}if(null===e)return{kind:x.h.NULL};if(void 0===e)return null;if(P(t)){const n=t.ofType;if(Pe(e)){const t=[];for(const r of e){const e=Ve(r,n);null!=e&&t.push(e)}return{kind:x.h.LIST,values:t}}return Ve(e,n)}if(j(t)){if(!(0,f.y)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=Ve(e[r.name],r.type);t&&n.push({kind:x.h.OBJECT_FIELD,name:{kind:x.h.NAME,value:r.name},value:t})}return{kind:x.h.OBJECT,fields:n}}if(B(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"===typeof n)return{kind:x.h.BOOLEAN,value:n};if("number"===typeof n&&Number.isFinite(n)){const e=String(n);return qe.test(e)?{kind:x.h.INT,value:e}:{kind:x.h.FLOAT,value:e}}if("string"===typeof n)return R(t)?{kind:x.h.ENUM,value:n}:t===Ce&&qe.test(n)?{kind:x.h.INT,value:n}:{kind:x.h.STRING,value:n};throw new TypeError("Cannot convert value to AST: ".concat((0,s.X)(n),"."))}(0,je.k)(!1,"Unexpected input type: "+(0,s.X)(t))}const qe=/^-?(?:0|[1-9][0-9]*)$/,Ue=new te({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:xe,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new W(new G(new W(He))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new W(He),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:He,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:He,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new W(new G(new W(Be))),resolve:e=>e.getDirectives()}})}),Be=new te({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new W(xe),resolve:e=>e.name},description:{type:xe,resolve:e=>e.description},isRepeatable:{type:new W(Se),resolve:e=>e.isRepeatable},locations:{type:new W(new G(new W(ze))),resolve:e=>e.locations},args:{type:new W(new G(new W(We))),args:{includeDeprecated:{type:Se,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter((e=>null==e.deprecationReason))}}})}),ze=new de({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:_e.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:_e.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:_e.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:_e.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:_e.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:_e.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:_e.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:_e.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:_e.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:_e.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:_e.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:_e.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:_e.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:_e.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:_e.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:_e.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:_e.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:_e.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:_e.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),He=new te({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new W(Je),resolve:e=>D(e)?Xe.SCALAR:L(e)?Xe.OBJECT:F(e)?Xe.INTERFACE:M(e)?Xe.UNION:R(e)?Xe.ENUM:j(e)?Xe.INPUT_OBJECT:P(e)?Xe.LIST:V(e)?Xe.NON_NULL:void(0,je.k)(!1,'Unexpected type: "'.concat((0,s.X)(e),'".'))},name:{type:xe,resolve:e=>"name"in e?e.name:void 0},description:{type:xe,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:xe,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new G(new W(Ge)),args:{includeDeprecated:{type:Se,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(L(e)||F(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new G(new W(He)),resolve(e){if(L(e)||F(e))return e.getInterfaces()}},possibleTypes:{type:new G(new W(He)),resolve(e,t,n,r){let{schema:o}=r;if(H(e))return o.getPossibleTypes(e)}},enumValues:{type:new G(new W(Qe)),args:{includeDeprecated:{type:Se,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(R(e)){const t=e.getValues();return n?t:t.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new G(new W(We)),args:{includeDeprecated:{type:Se,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if(j(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},ofType:{type:He,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Ge=new te({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new W(xe),resolve:e=>e.name},description:{type:xe,resolve:e=>e.description},args:{type:new W(new G(new W(We))),args:{includeDeprecated:{type:Se,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter((e=>null==e.deprecationReason))}},type:{type:new W(He),resolve:e=>e.type},isDeprecated:{type:new W(Se),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:xe,resolve:e=>e.deprecationReason}})}),We=new te({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new W(xe),resolve:e=>e.name},description:{type:xe,resolve:e=>e.description},type:{type:new W(He),resolve:e=>e.type},defaultValue:{type:xe,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Ve(n,t);return r?(0,S.print)(r):null}},isDeprecated:{type:new W(Se),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:xe,resolve:e=>e.deprecationReason}})}),Qe=new te({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new W(xe),resolve:e=>e.name},description:{type:xe,resolve:e=>e.description},isDeprecated:{type:new W(Se),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:xe,resolve:e=>e.deprecationReason}})});let Xe;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Xe||(Xe={}));const Je=new de({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Xe.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Xe.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Xe.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Xe.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Xe.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Xe.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Xe.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Xe.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Ye={name:"__schema",type:new W(Ue),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,r)=>{let{schema:o}=r;return o},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},$e={name:"__type",type:He,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new W(xe),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,t,n,r)=>{let{name:o}=t,{schema:i}=r;return i.getType(o)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ke={name:"__typename",type:new W(xe),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,r)=>{let{parentType:o}=r;return o.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Ze=Object.freeze([Ue,Be,ze,He,Ge,We,Qe,Je]);function et(e){return Ze.some((t=>{let{name:n}=t;return e.name===n}))}function tt(e){if(!function(e){return(0,d.n)(e,nt)}(e))throw new Error("Expected ".concat((0,s.X)(e)," to be a GraphQL schema."));return e}class nt{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,f.y)(e)||(0,o.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,o.a)(!1,'"types" must be Array if provided but got: '.concat((0,s.X)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,o.a)(!1,'"directives" must be Array if provided but got: '+"".concat((0,s.X)(e.directives),".")),this.description=e.description,this.extensions=k(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:Re;const r=new Set(e.types);if(null!=e.types)for(const o of e.types)r.delete(o),rt(o,r);null!=this._queryType&&rt(this._queryType,r),null!=this._mutationType&&rt(this._mutationType,r),null!=this._subscriptionType&&rt(this._subscriptionType,r);for(const o of this._directives)if(Oe(o))for(const e of o.args)rt(e.type,r);rt(Ue,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const i of r){if(null==i)continue;const e=i.name;if(e||(0,o.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(e,'".'));if(this._typeMap[e]=i,F(i)){for(const t of i.getInterfaces())if(F(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.interfaces.push(i)}}else if(L(i))for(const t of i.getInterfaces())if(F(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.objects.push(i)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.ku.QUERY:return this.getQueryType();case l.ku.MUTATION:return this.getMutationType();case l.ku.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return M(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),M(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function rt(e,t){const n=$(e);if(!t.has(n))if(t.add(n),M(n))for(const r of n.getTypes())rt(r,t);else if(L(n)||F(n)){for(const e of n.getInterfaces())rt(e,t);for(const e of Object.values(n.getFields())){rt(e.type,t);for(const n of e.args)rt(n.type,t)}}else if(j(n))for(const r of Object.values(n.getFields()))rt(r.type,t);return t}function ot(e){if(tt(e),e.__validationErrors)return e.__validationErrors;const t=new at(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!L(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,s.X)(n),"."),null!==(r=st(t,l.ku.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const o=t.getMutationType();var i;o&&!L(o)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,s.X)(o),"."),null!==(i=st(t,l.ku.MUTATION))&&void 0!==i?i:o.astNode);const a=t.getSubscriptionType();var c;a&&!L(a)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,s.X)(a),"."),null!==(c=st(t,l.ku.SUBSCRIPTION))&&void 0!==c?c:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(Oe(n)){lt(e,n);for(const r of n.args){var t;if(lt(e,r),q(r.type)||e.reportError("The type of @".concat(n.name,"(").concat(r.name,":) must be Input Type ")+"but got: ".concat((0,s.X)(r.type),"."),r.astNode),le(r)&&null!=r.deprecationReason)e.reportError("Required argument @".concat(n.name,"(").concat(r.name,":) cannot be deprecated."),[yt(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError("Expected directive but got: ".concat((0,s.X)(n),"."),null===n||void 0===n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return o;function o(i){if(t[i.name])return;t[i.name]=!0,r[i.name]=n.length;const a=Object.values(i.getFields());for(const t of a)if(V(t.type)&&j(t.type.ofType)){const i=t.type.ofType,a=r[i.name];if(n.push(t),void 0===a)o(i);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError('Cannot reference Input Object "'.concat(i.name,'" within itself through a series of non-null fields: "').concat(r,'".'),t.map((e=>e.astNode)))}n.pop()}r[i.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))Y(r)?(et(r)||lt(e,r),L(r)||F(r)?(ct(e,r),ut(e,r)):M(r)?ft(e,r):R(r)?ht(e,r):j(r)&&(mt(e,r),t(r))):e.reportError("Expected GraphQL named type but got: ".concat((0,s.X)(r),"."),r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function it(e){const t=ot(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class at{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.__(e,{nodes:n}))}getErrors(){return this._errors}}function st(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function lt(e,t){t.name.startsWith("__")&&e.reportError('Name "'.concat(t.name,'" must not begin with "__", which is reserved by GraphQL introspection.'),t.astNode)}function ct(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;if(lt(e,a),!U(a.type))e.reportError("The type of ".concat(t.name,".").concat(a.name," must be Output Type ")+"but got: ".concat((0,s.X)(a.type),"."),null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var o,i;if(lt(e,n),!q(n.type))e.reportError("The type of ".concat(t.name,".").concat(a.name,"(").concat(r,":) must be Input ")+"Type but got: ".concat((0,s.X)(n.type),"."),null===(o=n.astNode)||void 0===o?void 0:o.type);if(le(n)&&null!=n.deprecationReason)e.reportError("Required argument ".concat(t.name,".").concat(a.name,"(").concat(r,":) cannot be deprecated."),[yt(n.astNode),null===(i=n.astNode)||void 0===i?void 0:i.type])}}}function ut(e,t){const n=Object.create(null);for(const r of t.getInterfaces())F(r)?t!==r?n[r.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(r.name," once."),gt(t,r)):(n[r.name]=!0,dt(e,t,r),pt(e,t,r)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),gt(t,r)):e.reportError("Type ".concat((0,s.X)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,s.X)(r),"."),gt(t,r))}function pt(e,t,n){const r=t.getFields();for(const c of Object.values(n.getFields())){const u=c.name,p=r[u];if(p){var o,i;if(!ye(e.schema,p.type,c.type))e.reportError("Interface field ".concat(n.name,".").concat(u," expects type ")+"".concat((0,s.X)(c.type)," but ").concat(t.name,".").concat(u," ")+"is type ".concat((0,s.X)(p.type),"."),[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(i=p.astNode)||void 0===i?void 0:i.type]);for(const r of c.args){const o=r.name,i=p.args.find((e=>e.name===o));var a,l;if(i){if(!ve(r.type,i.type))e.reportError("Interface field argument ".concat(n.name,".").concat(u,"(").concat(o,":) ")+"expects type ".concat((0,s.X)(r.type)," but ")+"".concat(t.name,".").concat(u,"(").concat(o,":) is type ")+"".concat((0,s.X)(i.type),"."),[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(l=i.astNode)||void 0===l?void 0:l.type])}else e.reportError("Interface field argument ".concat(n.name,".").concat(u,"(").concat(o,":) expected but ").concat(t.name,".").concat(u," does not provide it."),[r.astNode,p.astNode])}for(const r of p.args){const o=r.name;!c.args.find((e=>e.name===o))&&le(r)&&e.reportError("Object field ".concat(t.name,".").concat(u," includes required argument ").concat(o," that is missing from the Interface field ").concat(n.name,".").concat(u,"."),[r.astNode,c.astNode])}}else e.reportError("Interface field ".concat(n.name,".").concat(u," expected but ").concat(t.name," does not provide it."),[c.astNode,t.astNode,...t.extensionASTNodes])}}function dt(e,t,n){const r=t.getInterfaces();for(const o of n.getInterfaces())r.includes(o)||e.reportError(o===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(o.name," because it is implemented by ").concat(n.name,"."),[...gt(n,o),...gt(t,n)])}function ft(e,t){const n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const o of n)r[o.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),vt(t,o.name)):(r[o.name]=!0,L(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,s.X)(o),"."),vt(t,String(o))))}function ht(e,t){const n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),[t.astNode,...t.extensionASTNodes]);for(const r of n)lt(e,r)}function mt(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),[t.astNode,...t.extensionASTNodes]);for(const i of n){var r,o;if(lt(e,i),!q(i.type))e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Input Type ")+"but got: ".concat((0,s.X)(i.type),"."),null===(r=i.astNode)||void 0===r?void 0:r.type);if(ge(i)&&null!=i.deprecationReason)e.reportError("Required input field ".concat(t.name,".").concat(i.name," cannot be deprecated."),[yt(i.astNode),null===(o=i.astNode)||void 0===o?void 0:o.type])}}function gt(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function vt(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function yt(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===Fe.name))}function bt(e,t){switch(t.kind){case x.h.LIST_TYPE:{const n=bt(e,t.type);return n&&new G(n)}case x.h.NON_NULL_TYPE:{const n=bt(e,t.type);return n&&new W(n)}case x.h.NAMED_TYPE:return e.getType(t.name.value)}}class _t{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==n&&void 0!==n?n:Et,t&&(q(t)&&this._inputTypeStack.push(t),z(t)&&this._parentTypeStack.push(t),U(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case x.h.SELECTION_SET:{const e=$(this.getType());this._parentTypeStack.push(z(e)?e:void 0);break}case x.h.FIELD:{const n=this.getParentType();let r,o;n&&(r=this._getFieldDef(t,n,e),r&&(o=r.type)),this._fieldDefStack.push(r),this._typeStack.push(U(o)?o:void 0);break}case x.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case x.h.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(L(n)?n:void 0);break}case x.h.INLINE_FRAGMENT:case x.h.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?bt(t,n):$(this.getType());this._typeStack.push(U(r)?r:void 0);break}case x.h.VARIABLE_DEFINITION:{const n=bt(t,e.type);this._inputTypeStack.push(q(n)?n:void 0);break}case x.h.ARGUMENT:{var n;let t,r;const o=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();o&&(t=o.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(q(r)?r:void 0);break}case x.h.LIST:{const e=J(this.getInputType()),t=P(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(q(t)?t:void 0);break}case x.h.OBJECT_FIELD:{const t=$(this.getInputType());let n,r;j(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(q(n)?n:void 0);break}case x.h.ENUM:{const t=$(this.getInputType());let n;R(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case x.h.SELECTION_SET:this._parentTypeStack.pop();break;case x.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case x.h.DIRECTIVE:this._directive=null;break;case x.h.OPERATION_DEFINITION:case x.h.INLINE_FRAGMENT:case x.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case x.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case x.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case x.h.LIST:case x.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case x.h.ENUM:this._enumValue=null}}}function Et(e,t,n){const r=n.name.value;return r===Ye.name&&e.getQueryType()===t?Ye:r===$e.name&&e.getQueryType()===t?$e:r===Ke.name&&z(t)?Ke:L(t)||F(t)?t.getFields()[r]:void 0}function Tt(e,t){return{enter(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=r[0];e.enter(i);const s=(0,a.Eu)(t,i.kind).enter;if(s){const n=s.apply(t,r);return void 0!==n&&(e.leave(i),(0,l.UG)(n)&&e.enter(n)),n}},leave(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=r[0],s=(0,a.Eu)(t,i.kind).leave;let l;return s&&(l=s.apply(t,r)),e.leave(i),l}}}function wt(e){return e.kind===x.h.OPERATION_DEFINITION||e.kind===x.h.FRAGMENT_DEFINITION}function kt(e){return e.kind===x.h.SCHEMA_DEFINITION||xt(e)||e.kind===x.h.DIRECTIVE_DEFINITION}function xt(e){return e.kind===x.h.SCALAR_TYPE_DEFINITION||e.kind===x.h.OBJECT_TYPE_DEFINITION||e.kind===x.h.INTERFACE_TYPE_DEFINITION||e.kind===x.h.UNION_TYPE_DEFINITION||e.kind===x.h.ENUM_TYPE_DEFINITION||e.kind===x.h.INPUT_OBJECT_TYPE_DEFINITION}function St(e){return e.kind===x.h.SCHEMA_EXTENSION||Ct(e)}function Ct(e){return e.kind===x.h.SCALAR_TYPE_EXTENSION||e.kind===x.h.OBJECT_TYPE_EXTENSION||e.kind===x.h.INTERFACE_TYPE_EXTENSION||e.kind===x.h.UNION_TYPE_EXTENSION||e.kind===x.h.ENUM_TYPE_EXTENSION||e.kind===x.h.INPUT_OBJECT_TYPE_EXTENSION}function Nt(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Re;for(const i of r)t[i.name]=i.args.map((e=>e.name));const o=e.getDocument().definitions;for(const i of o)if(i.kind===x.h.DIRECTIVE_DEFINITION){var a;const e=null!==(a=i.arguments)&&void 0!==a?a:[];t[i.name.value]=e.map((e=>e.name.value))}return{Directive(n){const r=n.name.value,o=t[r];if(n.arguments&&o)for(const t of n.arguments){const n=t.name.value;if(!o.includes(n)){const a=E(n,o);e.reportError(new i.__('Unknown argument "'.concat(n,'" on directive "@').concat(r,'".')+u(a),{nodes:t}))}}return!1}}}function At(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Re;for(const i of r)t[i.name]=i.locations;const o=e.getDocument().definitions;for(const i of o)i.kind===x.h.DIRECTIVE_DEFINITION&&(t[i.name.value]=i.locations.map((e=>e.value)));return{Directive(n,r,o,a,c){const u=n.name.value,p=t[u];if(!p)return void e.reportError(new i.__('Unknown directive "@'.concat(u,'".'),{nodes:n}));const d=function(e){const t=e[e.length-1];switch("kind"in t||(0,je.k)(!1),t.kind){case x.h.OPERATION_DEFINITION:return function(e){switch(e){case l.ku.QUERY:return _e.B.QUERY;case l.ku.MUTATION:return _e.B.MUTATION;case l.ku.SUBSCRIPTION:return _e.B.SUBSCRIPTION}}(t.operation);case x.h.FIELD:return _e.B.FIELD;case x.h.FRAGMENT_SPREAD:return _e.B.FRAGMENT_SPREAD;case x.h.INLINE_FRAGMENT:return _e.B.INLINE_FRAGMENT;case x.h.FRAGMENT_DEFINITION:return _e.B.FRAGMENT_DEFINITION;case x.h.VARIABLE_DEFINITION:return _e.B.VARIABLE_DEFINITION;case x.h.SCHEMA_DEFINITION:case x.h.SCHEMA_EXTENSION:return _e.B.SCHEMA;case x.h.SCALAR_TYPE_DEFINITION:case x.h.SCALAR_TYPE_EXTENSION:return _e.B.SCALAR;case x.h.OBJECT_TYPE_DEFINITION:case x.h.OBJECT_TYPE_EXTENSION:return _e.B.OBJECT;case x.h.FIELD_DEFINITION:return _e.B.FIELD_DEFINITION;case x.h.INTERFACE_TYPE_DEFINITION:case x.h.INTERFACE_TYPE_EXTENSION:return _e.B.INTERFACE;case x.h.UNION_TYPE_DEFINITION:case x.h.UNION_TYPE_EXTENSION:return _e.B.UNION;case x.h.ENUM_TYPE_DEFINITION:case x.h.ENUM_TYPE_EXTENSION:return _e.B.ENUM;case x.h.ENUM_VALUE_DEFINITION:return _e.B.ENUM_VALUE;case x.h.INPUT_OBJECT_TYPE_DEFINITION:case x.h.INPUT_OBJECT_TYPE_EXTENSION:return _e.B.INPUT_OBJECT;case x.h.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,je.k)(!1),t.kind===x.h.INPUT_OBJECT_TYPE_DEFINITION?_e.B.INPUT_FIELD_DEFINITION:_e.B.ARGUMENT_DEFINITION}default:(0,je.k)(!1,"Unexpected kind: "+(0,s.X)(t.kind))}}(c);d&&!p.includes(d)&&e.reportError(new i.__('Directive "@'.concat(u,'" may not be used on ').concat(d,"."),{nodes:n}))}}}function Ot(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const i of e.getDocument().definitions)xt(i)&&(r[i.name.value]=!0);const o=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,a,s,l,c){const p=t.name.value;if(!n[p]&&!r[p]){var d;const n=null!==(d=c[2])&&void 0!==d?d:s,r=null!=n&&("kind"in(f=n)&&(kt(f)||St(f)));if(r&&It.includes(p))return;const a=E(p,r?It.concat(o):o);e.reportError(new i.__('Unknown type "'.concat(p,'".')+u(a),{nodes:t}))}var f}}}const It=[...Ne,...Ze].map((e=>e.name));function Dt(e){switch(e.kind){case x.h.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:Dt(e.value)}))).sort(((e,t)=>v(e.name.value,t.name.value))))};case x.h.LIST:return{...e,values:e.values.map(Dt)};case x.h.INT:case x.h.FLOAT:case x.h.STRING:case x.h.BOOLEAN:case x.h.NULL:case x.h.ENUM:case x.h.VARIABLE:return e}var t}function Lt(e){return Array.isArray(e)?e.map((e=>{let[t,n]=e;return'subfields "'.concat(t,'" conflict because ')+Lt(n)})).join(" and "):e}function Ft(e,t,n,r,o,i,a){const s=e.getFragment(a);if(!s)return;const[l,c]=Ut(e,n,s);if(i!==l){Rt(e,t,n,r,o,i,l);for(const s of c)r.has(s,a,o)||(r.add(s,a,o),Ft(e,t,n,r,o,i,s))}}function Mt(e,t,n,r,o,i,a){if(i===a)return;if(r.has(i,a,o))return;r.add(i,a,o);const s=e.getFragment(i),l=e.getFragment(a);if(!s||!l)return;const[c,u]=Ut(e,n,s),[p,d]=Ut(e,n,l);Rt(e,t,n,r,o,c,p);for(const f of d)Mt(e,t,n,r,o,i,f);for(const f of u)Mt(e,t,n,r,o,f,a)}function Rt(e,t,n,r,o,i,a){for(const[s,l]of Object.entries(i)){const i=a[s];if(i)for(const a of l)for(const l of i){const i=jt(e,n,r,o,s,a,l);i&&t.push(i)}}}function jt(e,t,n,r,o,i,a){const[l,c,u]=i,[p,d,f]=a,h=r||l!==p&&L(l)&&L(p);if(!h){const e=c.name.value,t=d.name.value;if(e!==t)return[[o,'"'.concat(e,'" and "').concat(t,'" are different fields')],[c],[d]];if(Pt(c)!==Pt(d))return[[o,"they have differing arguments"],[c],[d]]}const m=null===u||void 0===u?void 0:u.type,g=null===f||void 0===f?void 0:f.type;if(m&&g&&Vt(m,g))return[[o,'they return conflicting types "'.concat((0,s.X)(m),'" and "').concat((0,s.X)(g),'"')],[c],[d]];const v=c.selectionSet,y=d.selectionSet;if(v&&y){const r=function(e,t,n,r,o,i,a,s){const l=[],[c,u]=qt(e,t,o,i),[p,d]=qt(e,t,a,s);Rt(e,l,t,n,r,c,p);for(const f of d)Ft(e,l,t,n,r,c,f);for(const f of u)Ft(e,l,t,n,r,p,f);for(const f of u)for(const o of d)Mt(e,l,t,n,r,f,o);return l}(e,t,n,h,$(m),v,$(g),y);return function(e,t,n,r){if(e.length>0)return[[t,e.map((e=>{let[t]=e;return t}))],[n,...e.map((e=>{let[,t]=e;return t})).flat()],[r,...e.map((e=>{let[,,t]=e;return t})).flat()]]}(r,o,c,d)}}function Pt(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[],r={kind:x.h.OBJECT,fields:n.map((e=>({kind:x.h.OBJECT_FIELD,name:e.name,value:e.value})))};return(0,S.print)(Dt(r))}function Vt(e,t){return P(e)?!P(t)||Vt(e.ofType,t.ofType):!!P(t)||(V(e)?!V(t)||Vt(e.ofType,t.ofType):!!V(t)||!(!B(e)&&!B(t))&&e!==t)}function qt(e,t,n,r){const o=t.get(r);if(o)return o;const i=Object.create(null),a=Object.create(null);Bt(e,n,r,i,a);const s=[i,Object.keys(a)];return t.set(r,s),s}function Ut(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const o=bt(e.getSchema(),n.typeCondition);return qt(e,t,o,n.selectionSet)}function Bt(e,t,n,r,o){for(const i of n.selections)switch(i.kind){case x.h.FIELD:{const e=i.name.value;let n;(L(t)||F(t))&&(n=t.getFields()[e]);const o=i.alias?i.alias.value:e;r[o]||(r[o]=[]),r[o].push([t,i,n]);break}case x.h.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case x.h.INLINE_FRAGMENT:{const n=i.typeCondition,a=n?bt(e.getSchema(),n):t;Bt(e,a,i.selectionSet,r,o);break}}}class zt{constructor(){this._data=new Map}has(e,t,n){var r;const[o,i]=e<t?[e,t]:[t,e],a=null===(r=this._data.get(o))||void 0===r?void 0:r.get(i);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,o]=e<t?[e,t]:[t,e],i=this._data.get(r);void 0===i?this._data.set(r,new Map([[o,n]])):i.set(o,n)}}const Ht={[x.h.SCALAR_TYPE_DEFINITION]:x.h.SCALAR_TYPE_EXTENSION,[x.h.OBJECT_TYPE_DEFINITION]:x.h.OBJECT_TYPE_EXTENSION,[x.h.INTERFACE_TYPE_DEFINITION]:x.h.INTERFACE_TYPE_EXTENSION,[x.h.UNION_TYPE_DEFINITION]:x.h.UNION_TYPE_EXTENSION,[x.h.ENUM_TYPE_DEFINITION]:x.h.ENUM_TYPE_EXTENSION,[x.h.INPUT_OBJECT_TYPE_DEFINITION]:x.h.INPUT_OBJECT_TYPE_EXTENSION};function Gt(e){var t;const n=Object.create(null),r=e.getSchema(),o=null!==(t=null===r||void 0===r?void 0:r.getDirectives())&&void 0!==t?t:Re;for(const i of o)n[i.name]=h(i.args.filter(le),(e=>e.name));const a=e.getDocument().definitions;for(const i of a)if(i.kind===x.h.DIRECTIVE_DEFINITION){var l;const e=null!==(l=i.arguments)&&void 0!==l?l:[];n[i.name.value]=h(e.filter(Wt),(e=>e.name.value))}return{Directive:{leave(t){const r=t.name.value,o=n[r];if(o){var a;const n=null!==(a=t.arguments)&&void 0!==a?a:[],l=new Set(n.map((e=>e.name.value)));for(const[a,c]of Object.entries(o))if(!l.has(a)){const n=I(c.type)?(0,s.X)(c.type):(0,S.print)(c.type);e.reportError(new i.__('Directive "@'.concat(r,'" argument "').concat(a,'" of type "').concat(n,'" is required, but it was not provided.'),{nodes:t}))}}}}}}function Wt(e){return e.type.kind===x.h.NON_NULL_TYPE&&null==e.defaultValue}function Qt(e){return e.map((e=>"number"===typeof e?"["+e.toString()+"]":"."+e)).join("")}function Xt(e,t,n){return{prev:e,key:t,typename:n}}function Jt(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Yt(e,t){return Kt(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:$t,void 0)}function $t(e,t,n){let r="Invalid value "+(0,s.X)(t);throw e.length>0&&(r+=' at "value'.concat(Qt(e),'"')),n.message=r+": "+n.message,n}function Kt(e,t,n,r){if(V(t))return null!=e?Kt(e,t.ofType,n,r):void n(Jt(r),e,new i.__('Expected non-nullable type "'.concat((0,s.X)(t),'" not to be null.')));if(null==e)return null;if(P(t)){const o=t.ofType;return Pe(e)?Array.from(e,((e,t)=>{const i=Xt(r,t,void 0);return Kt(e,o,n,i)})):[Kt(e,o,n,r)]}if(j(t)){if(!(0,f.y)(e))return void n(Jt(r),e,new i.__('Expected type "'.concat(t.name,'" to be an object.')));const o={},a=t.getFields();for(const l of Object.values(a)){const a=e[l.name];if(void 0!==a)o[l.name]=Kt(a,l.type,n,Xt(r,l.name,t.name));else if(void 0!==l.defaultValue)o[l.name]=l.defaultValue;else if(V(l.type)){const t=(0,s.X)(l.type);n(Jt(r),e,new i.__('Field "'.concat(l.name,'" of required type "').concat(t,'" was not provided.')))}}for(const s of Object.keys(e))if(!a[s]){const o=E(s,Object.keys(t.getFields()));n(Jt(r),e,new i.__('Field "'.concat(s,'" is not defined by type "').concat(t.name,'".')+u(o)))}return o}if(B(t)){let a;try{a=t.parseValue(e)}catch(o){return void(o instanceof i.__?n(Jt(r),e,o):n(Jt(r),e,new i.__('Expected type "'.concat(t.name,'". ')+o.message,{originalError:o})))}return void 0===a&&n(Jt(r),e,new i.__('Expected type "'.concat(t.name,'".'))),a}(0,je.k)(!1,"Unexpected input type: "+(0,s.X)(t))}function Zt(e,t,n){if(e){if(e.kind===x.h.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const o=n[r];if(null===o&&V(t))return;return o}if(V(t)){if(e.kind===x.h.NULL)return;return Zt(e,t.ofType,n)}if(e.kind===x.h.NULL)return null;if(P(t)){const r=t.ofType;if(e.kind===x.h.LIST){const t=[];for(const o of e.values)if(en(o,n)){if(V(r))return;t.push(null)}else{const e=Zt(o,r,n);if(void 0===e)return;t.push(e)}return t}const o=Zt(e,r,n);if(void 0===o)return;return[o]}if(j(t)){if(e.kind!==x.h.OBJECT)return;const r=Object.create(null),o=h(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=o[e.name];if(!t||en(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(V(e.type))return;continue}const i=Zt(t.value,e.type,n);if(void 0===i)return;r[e.name]=i}return r}if(B(t)){let o;try{o=t.parseLiteral(e,n)}catch(r){return}if(void 0===o)return;return o}(0,je.k)(!1,"Unexpected input type: "+(0,s.X)(t))}}function en(e,t){return e.kind===x.h.VARIABLE&&(null==t||void 0===t[e.name.value])}function tn(e,t,n,r){const o=[],a=null===r||void 0===r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const o={};for(const a of t){const t=a.variable.name.value,l=bt(e,a.type);if(!q(l)){const e=(0,S.print)(a.type);r(new i.__('Variable "$'.concat(t,'" expected value of type "').concat(e,'" which cannot be used as an input type.'),{nodes:a.type}));continue}if(!on(n,t)){if(a.defaultValue)o[t]=Zt(a.defaultValue,l);else if(V(l)){const e=(0,s.X)(l);r(new i.__('Variable "$'.concat(t,'" of required type "').concat(e,'" was not provided.'),{nodes:a}))}continue}const c=n[t];if(null===c&&V(l)){const e=(0,s.X)(l);r(new i.__('Variable "$'.concat(t,'" of non-null type "').concat(e,'" must not be null.'),{nodes:a}))}else o[t]=Yt(c,l,((e,n,o)=>{let l='Variable "$'.concat(t,'" got invalid value ')+(0,s.X)(n);e.length>0&&(l+=' at "'.concat(t).concat(Qt(e),'"')),r(new i.__(l+"; "+o.message,{nodes:a,originalError:o.originalError}))}))}return o}(e,t,n,(e=>{if(null!=a&&o.length>=a)throw new i.__("Too many errors processing variables, error limit reached. Execution aborted.");o.push(e)}));if(0===o.length)return{coerced:r}}catch(l){o.push(l)}return{errors:o}}function nn(e,t,n){var r;const o={},a=h(null!==(r=t.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const l of e.args){const e=l.name,r=l.type,c=a[e];if(!c){if(void 0!==l.defaultValue)o[e]=l.defaultValue;else if(V(r))throw new i.__('Argument "'.concat(e,'" of required type "').concat((0,s.X)(r),'" ')+"was not provided.",{nodes:t});continue}const u=c.value;let p=u.kind===x.h.NULL;if(u.kind===x.h.VARIABLE){const t=u.name.value;if(null==n||!on(n,t)){if(void 0!==l.defaultValue)o[e]=l.defaultValue;else if(V(r))throw new i.__('Argument "'.concat(e,'" of required type "').concat((0,s.X)(r),'" ')+'was provided the variable "$'.concat(t,'" which was not provided a runtime value.'),{nodes:u});continue}p=null==n[t]}if(p&&V(r))throw new i.__('Argument "'.concat(e,'" of non-null type "').concat((0,s.X)(r),'" ')+"must not be null.",{nodes:u});const d=Zt(u,r,n);if(void 0===d)throw new i.__('Argument "'.concat(e,'" has invalid value ').concat((0,S.print)(u),"."),{nodes:u});o[e]=d}return o}function rn(e,t,n){var r;const o=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(o)return nn(e,o,n)}function on(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function an(e,t,n,r,o){const i=new Map;return sn(e,t,n,r,o,i,new Set),i}function sn(e,t,n,r,o,i,a){for(const l of o.selections)switch(l.kind){case x.h.FIELD:{if(!ln(n,l))continue;const e=(s=l).alias?s.alias.value:s.name.value,t=i.get(e);void 0!==t?t.push(l):i.set(e,[l]);break}case x.h.INLINE_FRAGMENT:if(!ln(n,l)||!cn(e,l,r))continue;sn(e,t,n,r,l.selectionSet,i,a);break;case x.h.FRAGMENT_SPREAD:{const o=l.name.value;if(a.has(o)||!ln(n,l))continue;a.add(o);const s=t[o];if(!s||!cn(e,s,r))continue;sn(e,t,n,r,s.selectionSet,i,a);break}}var s}function ln(e,t){const n=rn(Le,t,e);if(!0===(null===n||void 0===n?void 0:n.if))return!1;const r=rn(De,t,e);return!1!==(null===r||void 0===r?void 0:r.if)}function cn(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=bt(e,r);return o===n||!!H(o)&&e.isSubType(o,n)}function un(e,t){const n=new Map;for(const r of e){const e=t(r),o=n.get(e);void 0===o?n.set(e,[r]):o.push(r)}return n}function pn(e){return{Field:t,Directive:t};function t(t){var n;const r=un(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const[o,a]of r)a.length>1&&e.reportError(new i.__('There can be only one argument named "'.concat(o,'".'),{nodes:a.map((e=>e.name))}))}}function dn(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Re;for(const i of r)t[i.name]=!i.isRepeatable;const o=e.getDocument().definitions;for(const i of o)i.kind===x.h.DIRECTIVE_DEFINITION&&(t[i.name.value]=!i.repeatable);const a=Object.create(null),s=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===x.h.SCHEMA_DEFINITION||n.kind===x.h.SCHEMA_EXTENSION)r=a;else if(xt(n)||Ct(n)){const e=n.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const o of n.directives){const n=o.name.value;t[n]&&(r[n]?e.reportError(new i.__('The directive "@'.concat(n,'" can only be used once at this location.'),{nodes:[r[n],o]})):r[n]=o)}}}}function fn(e,t){return!!(L(e)||F(e)||j(e))&&null!=e.getFields()[t]}function hn(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,je.k)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.__('There can be only one input field named "'.concat(r,'".'),{nodes:[n[r],t.name]})):n[r]=t.name}}}function mn(e,t){const n=e.getInputType();if(!n)return;const r=$(n);if(B(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,s.X)(n);e.reportError(new i.__('Expected value of type "'.concat(r,'", found ').concat((0,S.print)(t),"."),{nodes:t}))}}catch(o){const r=(0,s.X)(n);o instanceof i.__?e.reportError(o):e.reportError(new i.__('Expected value of type "'.concat(r,'", found ').concat((0,S.print)(t),"; ")+o.message,{nodes:t,originalError:o}))}else{const r=(0,s.X)(n);e.reportError(new i.__('Expected value of type "'.concat(r,'", found ').concat((0,S.print)(t),"."),{nodes:t}))}}function gn(e,t,n,r,o){if(V(r)&&!V(t)){if(!(null!=n&&n.kind!==x.h.NULL)&&!(void 0!==o))return!1;return ye(e,t,r.ofType)}return ye(e,t,r)}const vn=Object.freeze([function(e){return{Document(t){for(const n of t.definitions)if(!wt(n)){const t=n.kind===x.h.SCHEMA_DEFINITION||n.kind===x.h.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new i.__("The ".concat(t," definition is not executable."),{nodes:n}))}return!1}}},function(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new i.__('There can be only one operation named "'.concat(r.value,'".'),{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}},function(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===x.h.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new i.__("This anonymous operation must be the only defined operation.",{nodes:n}))}}},function(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const o=t.name?t.name.value:null,a=Object.create(null),s=e.getDocument(),l=Object.create(null);for(const e of s.definitions)e.kind===x.h.FRAGMENT_DEFINITION&&(l[e.name.value]=e);const c=an(n,l,a,r,t.selectionSet);if(c.size>1){const t=[...c.values()].slice(1).flat();e.reportError(new i.__(null!=o?'Subscription "'.concat(o,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of c.values()){t[0].name.value.startsWith("__")&&e.reportError(new i.__(null!=o?'Subscription "'.concat(o,'" must not select an introspection top level field.'):"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}},Ot,function(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=bt(e.getSchema(),n);if(t&&!z(t)){const t=(0,S.print)(n);e.reportError(new i.__('Fragment cannot condition on non composite type "'.concat(t,'".'),{nodes:n}))}}},FragmentDefinition(t){const n=bt(e.getSchema(),t.typeCondition);if(n&&!z(n)){const n=(0,S.print)(t.typeCondition);e.reportError(new i.__('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(n,'".'),{nodes:t.typeCondition}))}}}},function(e){return{VariableDefinition(t){const n=bt(e.getSchema(),t.type);if(void 0!==n&&!q(n)){const n=t.variable.name.value,r=(0,S.print)(t.type);e.reportError(new i.__('Variable "$'.concat(n,'" cannot be non-input type "').concat(r,'".'),{nodes:t.type}))}}}},function(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(B($(n))){if(r){const o=t.name.value,a=(0,s.X)(n);e.reportError(new i.__('Field "'.concat(o,'" must not have a selection since type "').concat(a,'" has no subfields.'),{nodes:r}))}}else if(!r){const r=t.name.value,o=(0,s.X)(n);e.reportError(new i.__('Field "'.concat(r,'" of type "').concat(o,'" must have a selection of subfields. Did you mean "').concat(r,' { ... }"?'),{nodes:t}))}}}},function(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const r=e.getSchema(),o=t.name.value;let a=u("to use an inline fragment on",function(e,t,n){if(!H(t))return[];const r=new Set,o=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),o[a.name]=1;for(const e of a.getInterfaces()){var i;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(i=o[e.name])&&void 0!==i?i:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:F(t)&&e.isSubType(t,n)?-1:F(n)&&e.isSubType(n,t)?1:v(t.name,n.name)})).map((e=>e.name))}(r,n,o));""===a&&(a=u(function(e,t){if(L(e)||F(e)){return E(t,Object.keys(e.getFields()))}return[]}(n,o))),e.reportError(new i.__('Cannot query field "'.concat(o,'" on type "').concat(n.name,'".')+a,{nodes:t}))}}}}},function(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new i.__('There can be only one fragment named "'.concat(r,'".'),{nodes:[t[r],n.name]})):t[r]=n.name,!1}}},function(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new i.__('Unknown fragment "'.concat(n,'".'),{nodes:t.name}))}}},function(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new i.__('Fragment "'.concat(n,'" is never used.'),{nodes:t}))}}}}},function(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(z(n)&&z(r)&&!be(e.getSchema(),n,r)){const o=(0,s.X)(r),a=(0,s.X)(n);e.reportError(new i.__('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(a,'".'),{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=bt(e.getSchema(),n.typeCondition);if(z(t))return t}}(e,n),o=e.getParentType();if(r&&o&&!be(e.getSchema(),r,o)){const a=(0,s.X)(o),l=(0,s.X)(r);e.reportError(new i.__('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(a,'" can never be of type "').concat(l,'".'),{nodes:t}))}}}},function(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const l=e.getFragmentSpreads(a.selectionSet);if(0!==l.length){r[s]=n.length;for(const t of l){const a=t.name.value,s=r[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),r=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new i.__('Cannot spread fragment "'.concat(a,'" within itself')+(""!==r?" via ".concat(r,"."):"."),{nodes:t}))}n.pop()}r[s]=void 0}}},function(e){return{OperationDefinition(t){var n;const r=un(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],(e=>e.variable.name.value));for(const[o,a]of r)a.length>1&&e.reportError(new i.__('There can be only one variable named "$'.concat(o,'".'),{nodes:a.map((e=>e.variable.name))}))}}},function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:o}of r){const r=o.name.value;!0!==t[r]&&e.reportError(new i.__(n.name?'Variable "$'.concat(r,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(r,'" is not defined.'),{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}},function(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)r[e.name.value]=!0;for(const a of t){const t=a.variable.name.value;!0!==r[t]&&e.reportError(new i.__(n.name?'Variable "$'.concat(t,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(t,'" is never used.'),{nodes:a}))}}},VariableDefinition(e){t.push(e)}}},At,dn,function(e){return{...Nt(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),o=e.getParentType();if(!n&&r&&o){const n=t.name.value,a=E(n,r.args.map((e=>e.name)));e.reportError(new i.__('Unknown argument "'.concat(n,'" on field "').concat(o.name,".").concat(r.name,'".')+u(a),{nodes:t}))}}}},pn,function(e){return{ListValue(t){if(!P(J(e.getParentInputType())))return mn(e,t),!1},ObjectValue(t){const n=$(e.getInputType());if(!j(n))return mn(e,t),!1;const r=h(t.fields,(e=>e.name.value));for(const o of Object.values(n.getFields())){if(!r[o.name]&&ge(o)){const r=(0,s.X)(o.type);e.reportError(new i.__('Field "'.concat(n.name,".").concat(o.name,'" of required type "').concat(r,'" was not provided.'),{nodes:t}))}}},ObjectField(t){const n=$(e.getParentInputType());if(!e.getInputType()&&j(n)){const r=E(t.name.value,Object.keys(n.getFields()));e.reportError(new i.__('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+u(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();V(n)&&e.reportError(new i.__('Expected value of type "'.concat((0,s.X)(n),'", found ').concat((0,S.print)(t),"."),{nodes:t}))},EnumValue:t=>mn(e,t),IntValue:t=>mn(e,t),FloatValue:t=>mn(e,t),StringValue:t=>mn(e,t),BooleanValue:t=>mn(e,t)}},function(e){return{...Gt(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const o=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const a of r.args)if(!o.has(a.name)&&le(a)){const n=(0,s.X)(a.type);e.reportError(new i.__('Field "'.concat(r.name,'" argument "').concat(a.name,'" of type "').concat(n,'" is required, but it was not provided.'),{nodes:t}))}}}}},function(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:o,type:a,defaultValue:l}of r){const n=o.name.value,r=t[n];if(r&&a){const t=e.getSchema(),c=bt(t,r.type);if(c&&!gn(t,c,r.defaultValue,a,l)){const t=(0,s.X)(c),l=(0,s.X)(a);e.reportError(new i.__('Variable "$'.concat(n,'" of type "').concat(t,'" used in position expecting type "').concat(l,'".'),{nodes:[r,o]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}},function(e){const t=new zt,n=new Map;return{SelectionSet(r){const o=function(e,t,n,r,o){const i=[],[a,s]=qt(e,t,r,o);if(function(e,t,n,r,o){for(const[i,a]of Object.entries(o))if(a.length>1)for(let o=0;o<a.length;o++)for(let s=o+1;s<a.length;s++){const l=jt(e,n,r,!1,i,a[o],a[s]);l&&t.push(l)}}(e,i,t,n,a),0!==s.length)for(let l=0;l<s.length;l++){Ft(e,i,t,n,!1,a,s[l]);for(let r=l+1;r<s.length;r++)Mt(e,i,t,n,!1,s[l],s[r])}return i}(e,n,t,e.getParentType(),r);for(const[[t,n],a,s]of o){const r=Lt(n);e.reportError(new i.__('Fields "'.concat(t,'" conflict because ').concat(r,". Use different aliases on the fields to fetch both if this was intentional."),{nodes:a.concat(s)}))}}}},hn]);Object.freeze([function(e){var t,n,r;const o=e.getSchema(),a=null!==(t=null!==(n=null!==(r=null===o||void 0===o?void 0:o.astNode)&&void 0!==r?r:null===o||void 0===o?void 0:o.getQueryType())&&void 0!==n?n:null===o||void 0===o?void 0:o.getMutationType())&&void 0!==t?t:null===o||void 0===o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(t){a?e.reportError(new i.__("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new i.__("Must provide only one schema definition.",{nodes:t})),++s)}}},function(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const s of a){const t=s.operation,o=n[t];r[t]?e.reportError(new i.__("Type for ".concat(t," already defined in the schema. It cannot be redefined."),{nodes:s})):o?e.reportError(new i.__("There can be only one ".concat(t," type in schema."),{nodes:[o,s]})):n[t]=s}return!1}},function(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const o=r.name.value;if(null===n||void 0===n||!n.getType(o))return t[o]?e.reportError(new i.__('There can be only one type named "'.concat(o,'".'),{nodes:[t[o],r.name]})):t[o]=r.name,!1;e.reportError(new i.__('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),{nodes:r.name}))}},function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(t){var o;const a=t.name.value;r[a]||(r[a]=Object.create(null));const s=null!==(o=t.values)&&void 0!==o?o:[],l=r[a];for(const r of s){const t=r.name.value,o=n[a];R(o)&&o.getValue(t)?e.reportError(new i.__('Enum value "'.concat(a,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:r.name})):l[t]?e.reportError(new i.__('Enum value "'.concat(a,".").concat(t,'" can only be defined once.'),{nodes:[l[t],r.name]})):l[t]=r.name}return!1}},function(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o;const a=t.name.value;r[a]||(r[a]=Object.create(null));const s=null!==(o=t.fields)&&void 0!==o?o:[],l=r[a];for(const r of s){const t=r.name.value;fn(n[a],t)?e.reportError(new i.__('Field "'.concat(a,".").concat(t,'" already exists in the schema. It cannot also be defined in this type extension.'),{nodes:r.name})):l[t]?e.reportError(new i.__('Field "'.concat(a,".").concat(t,'" can only be defined once.'),{nodes:[l[t],r.name]})):l[t]=r.name}return!1}},function(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@".concat(e.name.value),r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,o=null!==(t=e.fields)&&void 0!==t?t:[];for(const a of o){var i;const e=a.name.value,t=null!==(i=a.arguments)&&void 0!==i?i:[];n("".concat(r,".").concat(e),t)}return!1}function n(t,n){const r=un(n,(e=>e.name.value));for(const[o,a]of r)a.length>1&&e.reportError(new i.__('Argument "'.concat(t,"(").concat(o,':)" can only be defined once.'),{nodes:a.map((e=>e.name))}));return!1}},function(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const o=r.name.value;if(null===n||void 0===n||!n.getDirective(o))return t[o]?e.reportError(new i.__('There can be only one directive named "@'.concat(o,'".'),{nodes:[t[o],r.name]})):t[o]=r.name,!1;e.reportError(new i.__('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),{nodes:r.name}))}}},Ot,At,dn,function(e){const t=e.getSchema(),n=Object.create(null);for(const o of e.getDocument().definitions)xt(o)&&(n[o.name.value]=o);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const o=r.name.value,a=n[o],l=null===t||void 0===t?void 0:t.getType(o);let c;if(a?c=Ht[a.kind]:l&&(c=function(e){if(D(e))return x.h.SCALAR_TYPE_EXTENSION;if(L(e))return x.h.OBJECT_TYPE_EXTENSION;if(F(e))return x.h.INTERFACE_TYPE_EXTENSION;if(M(e))return x.h.UNION_TYPE_EXTENSION;if(R(e))return x.h.ENUM_TYPE_EXTENSION;if(j(e))return x.h.INPUT_OBJECT_TYPE_EXTENSION;(0,je.k)(!1,"Unexpected type: "+(0,s.X)(e))}(l)),c){if(c!==r.kind){const t=function(e){switch(e){case x.h.SCALAR_TYPE_EXTENSION:return"scalar";case x.h.OBJECT_TYPE_EXTENSION:return"object";case x.h.INTERFACE_TYPE_EXTENSION:return"interface";case x.h.UNION_TYPE_EXTENSION:return"union";case x.h.ENUM_TYPE_EXTENSION:return"enum";case x.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,je.k)(!1,"Unexpected kind: "+(0,s.X)(e))}}(r.kind);e.reportError(new i.__("Cannot extend non-".concat(t,' type "').concat(o,'".'),{nodes:a?[a,r]:r}))}}else{const a=E(o,Object.keys({...n,...null===t||void 0===t?void 0:t.getTypeMap()}));e.reportError(new i.__('Cannot extend type "'.concat(o,'" because it is not defined.')+u(a),{nodes:r.name}))}}},Nt,pn,hn,Gt]);class yn{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===x.h.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===x.h.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==n[o]){n[o]=!0;const e=this.getFragment(o);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class bn extends(null){constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class _n extends yn{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new _t(this._schema);(0,a.Vn)(e,Tt(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function En(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vn,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new _t(e);var l;const c=null!==(l=null===r||void 0===r?void 0:r.maxErrors)&&void 0!==l?l:100;t||(0,o.a)(!1,"Must provide document."),it(e);const u=Object.freeze({}),p=[],d=new _n(e,t,s,(e=>{if(p.length>=c)throw p.push(new i.__("Too many validation errors, error limit reached. Validation aborted.")),u;p.push(e)})),f=(0,a.j1)(n.map((e=>e(d))));try{(0,a.Vn)(t,Tt(s,f))}catch(h){if(h!==u)throw h}return p}function Tn(e){return"function"===typeof(null===e||void 0===e?void 0:e[Symbol.asyncIterator])}class wn extends Error{constructor(e){super("Unexpected error value: "+(0,s.X)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function kn(e,t,n){var r;const o=(a=e)instanceof Error?a:new wn(a);var a,s;return s=o,Array.isArray(s.path)?o:new i.__(o.message,{nodes:null!==(r=o.nodes)&&void 0!==r?r:t,source:o.source,positions:o.positions,path:n,originalError:o})}function xn(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}const Sn=function(e){let t;return function(n,r,o){void 0===t&&(t=new WeakMap);let i=t.get(n);void 0===i&&(i=new WeakMap,t.set(n,i));let a=i.get(r);void 0===a&&(a=new WeakMap,i.set(r,a));let s=a.get(o);return void 0===s&&(s=e(n,r,o),a.set(o,s)),s}}(((e,t,n)=>function(e,t,n,r,o){const i=new Map,a=new Set;for(const s of o)s.selectionSet&&sn(e,t,n,r,s.selectionSet,i,a);return i}(e.schema,e.fragments,e.variableValues,t,n)));function Cn(e){arguments.length<2||(0,o.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:a}=e;An(t,n,r);const s=On(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new i.__("Schema is not configured to execute ".concat(t.operation," operation."),{nodes:t});const o=an(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case l.ku.QUERY:return In(e,r,n,a,o);case l.ku.MUTATION:return function(e,t,n,r,o){return function(e,t,n){let r=n;for(const o of e)r=xn(r)?r.then((e=>t(e,o))):t(r,o);return r}(o.entries(),((o,i)=>{let[a,s]=i;const l=Xt(r,a,t.name),c=Dn(e,t,n,s,l);return void 0===c?o:xn(c)?c.then((e=>(o[a]=e,o))):(o[a]=c,o)}),Object.create(null))}(e,r,n,a,o);case l.ku.SUBSCRIPTION:return In(e,r,n,a,o)}}(s,e,a);return xn(t)?t.then((e=>Nn(e,s.errors)),(e=>(s.errors.push(e),Nn(null,s.errors)))):Nn(t,s.errors)}catch(c){return s.errors.push(c),Nn(null,s.errors)}}function Nn(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function An(e,t,n){t||(0,o.a)(!1,"Must provide document."),it(e),null==n||(0,f.y)(n)||(0,o.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function On(e){var t,n;const{schema:r,document:o,rootValue:a,contextValue:s,variableValues:l,operationName:c,fieldResolver:u,typeResolver:p,subscribeFieldResolver:d}=e;let f;const h=Object.create(null);for(const g of o.definitions)switch(g.kind){case x.h.OPERATION_DEFINITION:if(null==c){if(void 0!==f)return[new i.__("Must provide operation name if query contains multiple operations.")];f=g}else(null===(t=g.name)||void 0===t?void 0:t.value)===c&&(f=g);break;case x.h.FRAGMENT_DEFINITION:h[g.name.value]=g}if(!f)return null!=c?[new i.__('Unknown operation named "'.concat(c,'".'))]:[new i.__("Must provide an operation.")];const m=tn(r,null!==(n=f.variableDefinitions)&&void 0!==n?n:[],null!==l&&void 0!==l?l:{},{maxErrors:50});return m.errors?m.errors:{schema:r,fragments:h,rootValue:a,contextValue:s,operation:f,variableValues:m.coerced,fieldResolver:null!==u&&void 0!==u?u:qn,typeResolver:null!==p&&void 0!==p?p:Vn,subscribeFieldResolver:null!==d&&void 0!==d?d:qn,errors:[]}}function In(e,t,n,r,o){const i=Object.create(null);let a=!1;for(const[l,c]of o.entries()){const o=Dn(e,t,n,c,Xt(r,l,t.name));void 0!==o&&(i[l]=o,xn(o)&&(a=!0))}return a?(s=i,Promise.all(Object.values(s)).then((e=>{const t=Object.create(null);for(const[n,r]of Object.keys(s).entries())t[r]=e[n];return t}))):i;var s}function Dn(e,t,n,r,o){var i;const a=Un(e.schema,t,r[0]);if(!a)return;const s=a.type,l=null!==(i=a.resolve)&&void 0!==i?i:e.fieldResolver,c=Ln(e,a,r,t,o);try{const t=nn(a,r[0],e.variableValues),i=l(n,t,e.contextValue,c);let u;return u=xn(i)?i.then((t=>Mn(e,s,r,c,o,t))):Mn(e,s,r,c,o,i),xn(u)?u.then(void 0,(t=>Fn(kn(t,r,Jt(o)),s,e))):u}catch(u){return Fn(kn(u,r,Jt(o)),s,e)}}function Ln(e,t,n,r,o){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Fn(e,t,n){if(V(t))throw e;return n.errors.push(e),null}function Mn(e,t,n,r,o,a){if(a instanceof Error)throw a;if(V(t)){const i=Mn(e,t.ofType,n,r,o,a);if(null===i)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return i}return null==a?null:P(t)?function(e,t,n,r,o,a){if(!Pe(a))throw new i.__('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));const s=t.ofType;let l=!1;const c=Array.from(a,((t,i)=>{const a=Xt(o,i,void 0);try{let o;return o=xn(t)?t.then((t=>Mn(e,s,n,r,a,t))):Mn(e,s,n,r,a,t),xn(o)?(l=!0,o.then(void 0,(t=>Fn(kn(t,n,Jt(a)),s,e)))):o}catch(c){return Fn(kn(c,n,Jt(a)),s,e)}}));return l?Promise.all(c):c}(e,t,n,r,o,a):B(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error("Expected `".concat((0,s.X)(e),".serialize(").concat((0,s.X)(t),")` to ")+"return non-nullable value, returned: ".concat((0,s.X)(n)));return n}(t,a):H(t)?function(e,t,n,r,o,i){var a;const s=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,c=s(i,l,r,t);if(xn(c))return c.then((a=>jn(e,Rn(a,e,t,n,r,i),n,r,o,i)));return jn(e,Rn(c,e,t,n,r,i),n,r,o,i)}(e,t,n,r,o,a):L(t)?jn(e,t,n,r,o,a):void(0,je.k)(!1,"Cannot complete value of unexpected output type: "+(0,s.X)(t))}function Rn(e,t,n,r,o,a){if(null==e)throw new i.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(o.parentType.name,".").concat(o.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);if(L(e))throw new i.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!==typeof e)throw new i.__('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(o.parentType.name,".").concat(o.fieldName,'" with ')+"value ".concat((0,s.X)(a),', received "').concat((0,s.X)(e),'".'));const l=t.schema.getType(e);if(null==l)throw new i.__('Abstract type "'.concat(n.name,'" was resolved to a type "').concat(e,'" that does not exist inside the schema.'),{nodes:r});if(!L(l))throw new i.__('Abstract type "'.concat(n.name,'" was resolved to a non-object type "').concat(e,'".'),{nodes:r});if(!t.schema.isSubType(n,l))throw new i.__('Runtime Object type "'.concat(l.name,'" is not a possible type for "').concat(n.name,'".'),{nodes:r});return l}function jn(e,t,n,r,o,i){const a=Sn(e,t,n);if(t.isTypeOf){const s=t.isTypeOf(i,e.contextValue,r);if(xn(s))return s.then((r=>{if(!r)throw Pn(t,i,n);return In(e,t,i,o,a)}));if(!s)throw Pn(t,i,n)}return In(e,t,i,o,a)}function Pn(e,t,n){return new i.__('Expected value of type "'.concat(e.name,'" but got: ').concat((0,s.X)(t),"."),{nodes:n})}const Vn=function(e,t,n,r){if((0,f.y)(e)&&"string"===typeof e.__typename)return e.__typename;const o=n.schema.getPossibleTypes(r),i=[];for(let a=0;a<o.length;a++){const r=o[a];if(r.isTypeOf){const o=r.isTypeOf(e,t,n);if(xn(o))i[a]=o;else if(o)return r.name}}return i.length?Promise.all(i).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return o[t].name})):void 0},qn=function(e,t,n,r){if((0,f.y)(e)||"function"===typeof e){const o=e[r.fieldName];return"function"===typeof o?e[r.fieldName](t,n,r):o}};function Un(e,t,n){const r=n.name.value;return r===Ye.name&&e.getQueryType()===t?Ye:r===$e.name&&e.getQueryType()===t?$e:r===Ke.name?Ke:t.getFields()[r]}async function Bn(e){arguments.length<2||(0,o.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,rootValue:r,contextValue:a,variableValues:l,operationName:c,fieldResolver:u,subscribeFieldResolver:p}=e,d=await async function(e,t,n,r,o,a,l){An(e,t,o);const c=On({schema:e,document:t,rootValue:n,contextValue:r,variableValues:o,operationName:a,subscribeFieldResolver:l});if(!("schema"in c))return{errors:c};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:o,rootValue:a}=e,s=t.getSubscriptionType();if(null==s)throw new i.__("Schema is not configured to execute subscription operation.",{nodes:r});const l=an(t,n,o,s,r.selectionSet),[c,u]=[...l.entries()][0],p=Un(t,s,u[0]);if(!p){const e=u[0].name.value;throw new i.__('The subscription field "'.concat(e,'" is not defined.'),{nodes:u})}const d=Xt(void 0,c,s.name),f=Ln(e,p,u,s,d);try{var h;const t=nn(p,u[0],o),n=e.contextValue,r=null!==(h=p.subscribe)&&void 0!==h?h:e.subscribeFieldResolver,i=await r(a,t,n,f);if(i instanceof Error)throw i;return i}catch(m){throw kn(m,u,Jt(d))}}(c);if(!Tn(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,s.X)(e),"."));return e}catch(u){if(u instanceof i.__)return{errors:[u]};throw u}}(t,n,r,a,l,c,p);if(!Tn(d))return d;return function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(r){if("function"===typeof n.return)try{await n.return()}catch(o){}throw r}}return{next:async()=>r(await n.next()),return:async()=>"function"===typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"===typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(d,(e=>Cn({schema:t,document:n,rootValue:e,contextValue:a,variableValues:l,operationName:c,fieldResolver:u})))}var zn=n(15242),Hn=n(3403),Gn=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}};function Wn(e){const{schema:t,context:n,roots:o,validate:a,execute:s,subscribe:l,connectionInitWaitTimeout:c=3e3,onConnect:u,onDisconnect:p,onClose:d,onSubscribe:f,onOperation:h,onNext:m,onError:g,onComplete:v,jsonMessageReviver:y,jsonMessageReplacer:b}=e;return{opened(e,_){const E={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:_};if(e.protocol!==zn.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(zn.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null===d||void 0===d?void 0:d(E,e,t))};const T=c>0&&isFinite(c)?setTimeout((()=>{E.connectionInitReceived||e.close(zn.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),c):null;return e.onMessage((async function(c){var p,d,_,T,w;let k;try{k=(0,zn.parseMessage)(c,y)}catch(A){return e.close(zn.CloseCode.BadRequest,"Invalid message received")}switch(k.type){case zn.MessageType.ConnectionInit:{if(E.connectionInitReceived)return e.close(zn.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");E.connectionInitReceived=!0,(0,Hn.Kn)(k.payload)&&(E.connectionParams=k.payload);const t=await(null===u||void 0===u?void 0:u(E));return!1===t?e.close(zn.CloseCode.Forbidden,"Forbidden"):(await e.send((0,zn.stringifyMessage)((0,Hn.Kn)(t)?{type:zn.MessageType.ConnectionAck,payload:t}:{type:zn.MessageType.ConnectionAck},b)),void(E.acknowledged=!0))}case zn.MessageType.Ping:return e.onPing?await e.onPing(k.payload):void await e.send((0,zn.stringifyMessage)(k.payload?{type:zn.MessageType.Pong,payload:k.payload}:{type:zn.MessageType.Pong}));case zn.MessageType.Pong:return await(null===(w=e.onPong)||void 0===w?void 0:w.call(e,k.payload));case zn.MessageType.Subscribe:{if(!E.acknowledged)return e.close(zn.CloseCode.Unauthorized,"Unauthorized");const{id:c,payload:u}=k;if(c in E.subscriptions)return e.close(zn.CloseCode.SubscriberAlreadyExists,"Subscriber for ".concat(c," already exists"));E.subscriptions[c]=null;const y={next:async(t,n)=>{let r={id:c,type:zn.MessageType.Next,payload:t};const o=await(null===m||void 0===m?void 0:m(E,r,n,t));o&&(r=Object.assign(Object.assign({},r),{payload:o})),await e.send((0,zn.stringifyMessage)(r,b))},error:async t=>{let n={id:c,type:zn.MessageType.Error,payload:t};const r=await(null===g||void 0===g?void 0:g(E,n,t));r&&(n=Object.assign(Object.assign({},n),{payload:r})),await e.send((0,zn.stringifyMessage)(n,b))},complete:async t=>{const n={id:c,type:zn.MessageType.Complete};await(null===v||void 0===v?void 0:v(E,n)),t&&await e.send((0,zn.stringifyMessage)(n,b))}};try{let e;const m=await(null===f||void 0===f?void 0:f(E,k));if(m){if((0,Hn.Ox)(m))return await y.error(m);if(Array.isArray(m))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=m}else{if(!t)throw new Error("The GraphQL schema is not provided");const n={operationName:u.operationName,document:(0,r.parse)(u.query),variableValues:u.variables};e=Object.assign(Object.assign({},n),{schema:"function"===typeof t?await t(E,k,n):t});const o=(null!==a&&void 0!==a?a:En)(e.schema,e.document);if(o.length>0)return await y.error(o)}const g=function(e,t){let n=null;for(const o of e.definitions){var r;if(o.kind===x.h.OPERATION_DEFINITION)if(null==t){if(n)return null;n=o}else if((null===(r=o.name)||void 0===r?void 0:r.value)===t)return o}return n}(e.document,e.operationName);if(!g)return await y.error([new i.__("Unable to identify operation")]);let v;"rootValue"in e||(e.rootValue=null===o||void 0===o?void 0:o[g.operation]),"contextValue"in e||(e.contextValue="function"===typeof n?await n(E,k,e):n),v="subscription"===g.operation?await(null!==l&&void 0!==l?l:Bn)(e):await(null!==s&&void 0!==s?s:Cn)(e);const b=await(null===h||void 0===h?void 0:h(E,k,e,v));if(b&&(v=b),(0,Hn.D0)(v))if(c in E.subscriptions){E.subscriptions[c]=v;try{for(var S,C=!0,N=Gn(v);!(p=(S=await N.next()).done);){T=S.value,C=!1;try{const t=T;await y.next(t,e)}finally{C=!0}}}catch(O){d={error:O}}finally{try{C||p||!(_=N.return)||await _.call(N)}finally{if(d)throw d.error}}}else(0,Hn.Jy)(v)&&v.return(void 0);else c in E.subscriptions&&await y.next(v,e);await y.complete(c in E.subscriptions)}finally{delete E.subscriptions[c]}return}case zn.MessageType.Complete:{const e=E.subscriptions[k.id];return delete E.subscriptions[k.id],void((0,Hn.Jy)(e)&&await e.return(void 0))}default:throw new Error("Unexpected message of type ".concat(k.type," received"))}})),async(e,t)=>{T&&clearTimeout(T);for(const n of Object.values(E.subscriptions))(0,Hn.Jy)(n)&&await n.return(void 0);E.acknowledged&&await(null===p||void 0===p?void 0:p(E,e,t)),await(null===d||void 0===d?void 0:d(E,e,t))}}}}function Qn(e){switch(!0){case e instanceof Set&&e.has(zn.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(zn.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"===typeof e&&e.split(",").map((e=>e.trim())).includes(zn.GRAPHQL_TRANSPORT_WS_PROTOCOL):return zn.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}},3403:(e,t,n)=>{"use strict";function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function o(e){return"object"===r(e)}function i(e){return"function"===typeof Object(e)[Symbol.asyncIterator]}function a(e){return o(e)&&"function"===typeof Object(e)[Symbol.asyncIterator]&&"function"===typeof e.return}function s(e){return Array.isArray(e)&&e.length>0&&e.every((e=>"message"in e))}function l(e,t){return e.length<124?e:t}n.d(t,{D0:()=>i,IR:()=>r,Jy:()=>a,Kn:()=>o,Ox:()=>s,qj:()=>l})},50549:e=>{"use strict";e.exports=JSON.parse('{"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":"\ud835\udd04","afr":"\ud835\udd1e","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":"\ud835\udd38","aopf":"\ud835\udd52","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\ud835\udc9c","ascr":"\ud835\udcb6","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":"\ud835\udd05","bfr":"\ud835\udd1f","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":"\ud835\udd39","bopf":"\ud835\udd53","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":"\ud835\udcb7","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":"\ud835\udd20","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":"\ud835\udd54","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\ud835\udc9e","cscr":"\ud835\udcb8","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":"\ud835\udd07","dfr":"\ud835\udd21","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":"\ud835\udd3b","dopf":"\ud835\udd55","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":"\ud835\udc9f","dscr":"\ud835\udcb9","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":"\ud835\udd08","efr":"\ud835\udd22","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":"\ud835\udd3c","eopf":"\ud835\udd56","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":"\ud835\udd09","ffr":"\ud835\udd23","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\ud835\udd3d","fopf":"\ud835\udd57","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":"\ud835\udcbb","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":"\ud835\udd0a","gfr":"\ud835\udd24","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":"\ud835\udd3e","gopf":"\ud835\udd58","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\ud835\udca2","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":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","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":"\ud835\udd26","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":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","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":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","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":"\ud835\udd0f","lfr":"\ud835\udd29","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":"\ud835\udd43","lopf":"\ud835\udd5d","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":"\ud835\udcc1","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":"\ud835\udd10","mfr":"\ud835\udd2a","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":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","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":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","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":"\ud835\udd5f","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":"\ud835\udca9","nscr":"\ud835\udcc3","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":"\ud835\udd12","ofr":"\ud835\udd2c","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":"\ud835\udd46","oopf":"\ud835\udd60","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":"\ud835\udcaa","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":"\ud835\udd13","pfr":"\ud835\udd2d","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":"\ud835\udd61","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":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","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":"\ud835\udd2f","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":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","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":"\ud835\udd16","sfr":"\ud835\udd30","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":"\ud835\udd4a","sopf":"\ud835\udd64","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":"\ud835\udcae","sscr":"\ud835\udcc8","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":"\\t","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":"\ud835\udd17","tfr":"\ud835\udd31","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":"\ud835\udd4b","topf":"\ud835\udd65","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":"\ud835\udcaf","tscr":"\ud835\udcc9","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":"\ud835\udd18","ufr":"\ud835\udd32","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":"\ud835\udd4c","uopf":"\ud835\udd66","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":"\ud835\udcb0","uscr":"\ud835\udcca","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":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","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":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","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":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","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":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')}}]);