From 4d9303b9af3224a71a3a54eed1b29a994cd87eb8 Mon Sep 17 00:00:00 2001 From: Katie Stahl Date: Thu, 4 Apr 2024 10:29:06 -0400 Subject: [PATCH] Staging (#488) * Dev (#483) * switch multiple drug matching to use left anchored, case insensitive search * Update citations with V5 citation (#477) * update citations for v5 * fixed link * prettier * rudimentary support for querying current data_version * implement ga4gh service service info spec * update griffith lab affiliation * run prettier * fix: categories.tsv was downloading interactions (#475) * fix: categories.tsv was downloading interactions * feat: change top row of data downloads to latest * feat: change top row of data downloads to latest --------- Co-authored-by: Adam Coffman Co-authored-by: Matthew Cannon <87494086+mcannon068nw@users.noreply.github.com> Co-authored-by: Adam Coffman * Automated frontend build * Automated frontend build * Dev (#487) * switch multiple drug matching to use left anchored, case insensitive search * Update citations with V5 citation (#477) * update citations for v5 * fixed link * prettier * rudimentary support for querying current data_version * implement ga4gh service service info spec * update griffith lab affiliation * run prettier * fix: categories.tsv was downloading interactions (#475) * fix: categories.tsv was downloading interactions * feat: change top row of data downloads to latest * feat: change top row of data downloads to latest * feat: add support for pasting terms into the search bar (#486) * feat: add support for pasting terms into the search bar * feat: allow user to paste searches * refactor: moving demo lists to use function for prettier code * feat: add option for users to paste searches * feat: add option for users to paste searches * feat: persist previous search terms when a user pastes + remove any duplicate terms * feat: update naming for delimiter options * feat: let user paste search terms without selecting bulk search (default to csv), update warning message * feat: add tooltip for bulk search option * update styling * feat: remove paste alert if user clears search terms * feat: make tooltip arrow for better accessibility * feat: justify bulk search option to right (below search buttons) --------- Co-authored-by: Adam Coffman Co-authored-by: Matthew Cannon <87494086+mcannon068nw@users.noreply.github.com> Co-authored-by: Adam Coffman * Automated frontend build * Automated frontend build --------- Co-authored-by: Adam Coffman Co-authored-by: Matthew Cannon <87494086+mcannon068nw@users.noreply.github.com> Co-authored-by: Adam Coffman Co-authored-by: katiestahl --- .../components/Shared/SearchBar/SearchBar.tsx | 193 +++++++++++++++--- server/public/asset-manifest.json | 6 +- server/public/index.html | 2 +- .../js/{main.f12ce273.js => main.c80660af.js} | 6 +- ...CENSE.txt => main.c80660af.js.LICENSE.txt} | 0 ...n.f12ce273.js.map => main.c80660af.js.map} | 2 +- 6 files changed, 175 insertions(+), 34 deletions(-) rename server/public/static/js/{main.f12ce273.js => main.c80660af.js} (57%) rename server/public/static/js/{main.f12ce273.js.LICENSE.txt => main.c80660af.js.LICENSE.txt} (100%) rename server/public/static/js/{main.f12ce273.js.map => main.c80660af.js.map} (52%) diff --git a/client/src/components/Shared/SearchBar/SearchBar.tsx b/client/src/components/Shared/SearchBar/SearchBar.tsx index 375d4d6a..62a084fd 100644 --- a/client/src/components/Shared/SearchBar/SearchBar.tsx +++ b/client/src/components/Shared/SearchBar/SearchBar.tsx @@ -1,12 +1,19 @@ import './SearchBar.scss'; import Autocomplete from '@mui/material/Autocomplete'; import { + Alert, + AlertTitle, Box, Button, + Checkbox, + FormControl, + FormControlLabel, + InputLabel, MenuItem, Select, SelectChangeEvent, TextField, + Tooltip, } from '@mui/material'; import { useContext, useEffect } from 'react'; import React from 'react'; @@ -15,6 +22,13 @@ import { ActionTypes } from 'stores/Global/reducers'; import { useGetNameSuggestions } from 'hooks/queries/useGetNameSuggestions'; import { SearchTypes } from 'types/types'; import { useGetIsMobile } from 'hooks/shared/useGetIsMobile'; +import HelpIcon from '@mui/icons-material/Help'; + +enum DelimiterTypes { + Comma = 'Comma', + CommaSpace = 'Comma With Space', + TabNewline = 'Tab or Newline', +} type SearchBarProps = { handleSubmit: () => void; @@ -27,6 +41,10 @@ const SearchBar: React.FC = ({ handleSubmit }) => { state.interactionMode ); const [typedSearchTerm, setTypedSearchTerm] = React.useState(''); + const [pastingFromDocument, setPastingFromDocument] = React.useState(false); + const [pastedSearchDelimiter, setPastedSearchDelimiter] = React.useState(''); + const [searchWasPasted, setSearchWasPasted] = React.useState(false); + const typeAheadQuery = useGetNameSuggestions(typedSearchTerm, searchType); let autocompleteOptions = typeAheadQuery?.data?.geneSuggestions || []; const drugAutocompleteOptions = typeAheadQuery?.data?.drugSuggestions || []; @@ -37,9 +55,11 @@ const SearchBar: React.FC = ({ handleSubmit }) => { // support searching for terms that the API may not return (add user's typed term to options if it's not already there) if ( + typedSearchTerm && autocompleteOptions.filter( (option: { suggestion: string }) => option.suggestion === typedSearchTerm - ).length === 0 + ).length === 0 && + typedSearchTerm.trim() !== '' ) { autocompleteOptions = [ { suggestion: typedSearchTerm }, @@ -52,6 +72,8 @@ const SearchBar: React.FC = ({ handleSubmit }) => { const handleAutocompleteChange = (event: any, value: any) => { if (value.length === 0) { setSelectedOptions([]); + // for clearing the paste warning, if applicable + setSearchWasPasted(false); dispatch({ type: ActionTypes.DeleteAllTerms }); } else { setSelectedOptions(value); @@ -76,33 +98,36 @@ const SearchBar: React.FC = ({ handleSubmit }) => { const handleDemoClick = () => { if (searchType === SearchTypes.Gene) { - setSelectedOptions([ - { suggestion: 'FLT1' }, - { suggestion: 'FLT2' }, - { suggestion: 'FLT3' }, - { suggestion: 'STK1' }, - { suggestion: 'MM1' }, - { suggestion: 'AQP1' }, - { suggestion: 'LOC100508755' }, - { suggestion: 'FAKE1' }, - ]); + const geneDemoList = [ + 'FLT1', + 'FLT2', + 'FLT3', + 'STK1', + 'MM1', + 'AQP1', + 'LOC100508755', + 'FAKE1', + ]; + setSelectedOptions(convertToDropdownOptions(geneDemoList)); } else if (searchType === SearchTypes.Drug) { - setSelectedOptions([ - { suggestion: 'SUNITINIB' }, - { suggestion: 'ZALCITABINE' }, - { suggestion: 'TRASTUZUMAB' }, - { suggestion: 'NOTREAL' }, - ]); + const drugDemoList = [ + 'SUNITINIB', + 'ZALCITABINE', + 'TRASTUZUMAB', + 'NOTREAL', + ]; + setSelectedOptions(convertToDropdownOptions(drugDemoList)); } else if (searchType === SearchTypes.Categories) { - setSelectedOptions([ - { suggestion: 'HER2' }, - { suggestion: 'ERBB2' }, - { suggestion: 'PTGDR' }, - { suggestion: 'EGFR' }, - { suggestion: 'RECK' }, - { suggestion: 'KCNMA1' }, - { suggestion: 'MM1' }, - ]); + const categoriesDemoList = [ + 'HER2', + 'ERBB2', + 'PTGDR', + 'EGFR', + 'RECK', + 'KCNMA1', + 'MM1', + ]; + setSelectedOptions(convertToDropdownOptions(categoriesDemoList)); } }; const handleSearchClick = () => { @@ -125,9 +150,77 @@ const SearchBar: React.FC = ({ handleSubmit }) => { } }, [selectedOptions]); + const convertToDropdownOptions = (options: string[]) => { + return options.map((item: string) => { + return { suggestion: item.trim() }; + }); + }; + + const handlePaste = (event: any) => { + let pastedText = event.clipboardData.getData('text'); + let pastedOptions: any[] = convertToDropdownOptions([pastedText]); + + const commaSepOptions = pastedText.split(','); + + if (pastedSearchDelimiter === DelimiterTypes.Comma) { + pastedOptions = convertToDropdownOptions(commaSepOptions); + } else if (pastedSearchDelimiter === DelimiterTypes.CommaSpace) { + const commaSpaceSepOptions = pastedText.split(', '); + pastedOptions = convertToDropdownOptions(commaSpaceSepOptions); + } else if (pastedSearchDelimiter === DelimiterTypes.TabNewline) { + const whitespaceRegex = /[\t\n\r\f\v]/; + const whitespaceSepOptions = pastedText.split(whitespaceRegex); + pastedOptions = convertToDropdownOptions(whitespaceSepOptions); + } else { + pastedOptions = convertToDropdownOptions(commaSepOptions); + } + setSearchWasPasted(true); + // make sure we persist the search terms already entered, combine any pre-existing search terms with the new pasted options + const newSearchOptions = selectedOptions.concat(pastedOptions); + // remove any duplicated terms (need to iterate through only the terms since objects are never equivalent in js, even if the contents are the same) + const uniqueSearchTerms = [ + ...new Set(newSearchOptions.map((option) => option.suggestion)), + ]; + setSelectedOptions(convertToDropdownOptions(uniqueSearchTerms)); + // we don't want the code to also run what's in onInputChange for the Autocomplete since everything is handled here + event.preventDefault(); + }; + + const handleCheckboxSelect = (event: any) => { + setPastingFromDocument(event.target.checked); + // reset the selected delimiter and searchWasPasted, to avoid potential weird behaviors if a user deselects the checkbox + setPastedSearchDelimiter(''); + setSearchWasPasted(false); + }; + + const handleDelimiterChange = (event: any) => { + setPastedSearchDelimiter(event.target.value as string); + }; + + const pasteAlert = + searchWasPasted && pastedSearchDelimiter === '' ? ( + + + Verify your search terms +

+ It looks like you pasted search terms. We have defaulted the + delimiter to comma-separated terms. +

+

+ If this is incorrect or you would like to use a different delimiter, + make sure to check the “Bulk search” option below and select a + delimiter from the drop down. +

+
+
+ ) : ( + <> + ); + return ( <> + {pasteAlert} + + {DelimiterTypes.Comma} + + + {DelimiterTypes.CommaSpace} + + + {DelimiterTypes.TabNewline} + + + + + ); diff --git a/server/public/asset-manifest.json b/server/public/asset-manifest.json index f2357d9f..c903d8ab 100644 --- a/server/public/asset-manifest.json +++ b/server/public/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.090445a8.css", - "main.js": "/static/js/main.f12ce273.js", + "main.js": "/static/js/main.c80660af.js", "static/js/461.86214142.chunk.js": "/static/js/461.86214142.chunk.js", "static/js/80.a852d8b5.chunk.js": "/static/js/80.a852d8b5.chunk.js", "static/js/990.d59bee53.chunk.js": "/static/js/990.d59bee53.chunk.js", @@ -28,7 +28,7 @@ "static/js/925.a41f4405.chunk.js": "/static/js/925.a41f4405.chunk.js", "index.html": "/index.html", "main.090445a8.css.map": "/static/css/main.090445a8.css.map", - "main.f12ce273.js.map": "/static/js/main.f12ce273.js.map", + "main.c80660af.js.map": "/static/js/main.c80660af.js.map", "461.86214142.chunk.js.map": "/static/js/461.86214142.chunk.js.map", "80.a852d8b5.chunk.js.map": "/static/js/80.a852d8b5.chunk.js.map", "990.d59bee53.chunk.js.map": "/static/js/990.d59bee53.chunk.js.map", @@ -56,6 +56,6 @@ }, "entrypoints": [ "static/css/main.090445a8.css", - "static/js/main.f12ce273.js" + "static/js/main.c80660af.js" ] } \ No newline at end of file diff --git a/server/public/index.html b/server/public/index.html index 4886e966..b993d457 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -1 +1 @@ -DGIdb
\ No newline at end of file +DGIdb
\ No newline at end of file diff --git a/server/public/static/js/main.f12ce273.js b/server/public/static/js/main.c80660af.js similarity index 57% rename from server/public/static/js/main.f12ce273.js rename to server/public/static/js/main.c80660af.js index 9641e6c5..5c718781 100644 --- a/server/public/static/js/main.f12ce273.js +++ b/server/public/static/js/main.c80660af.js @@ -1,3 +1,3 @@ -/*! For license information please see main.f12ce273.js.LICENSE.txt */ -!function(){var e={4322:function(e,t,n){e.exports=n(6652)},9299:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?c(x,--b):0,m--,10===y&&(m=1,v--),y}function S(){return y=b2||I(y)>3?"":" "}function P(e,t){for(;--t&&S()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return _(e,T()+(t<6&&32==E()&&32==S()))}function D(e){for(;S();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&D(y);break;case 40:41===e&&D(e);break;case 92:S()}return b}function A(e,t){for(;S()&&e+y!==57&&(e+y!==84||47!==E()););return"/*"+_(t,b-1)+"*"+o(47===e?e:S())}function Z(e){for(;!I(E());)S();return _(e,b)}var j="-ms-",L="-moz-",F="-webkit-",z="comm",B="rule",V="decl",H="@keyframes";function U(e,t){for(var n="",r=p(e),i=0;i0&&f(L)-g&&h(y>32?Q(L+";",r,n,g-1):Q(s(L," ","")+";",r,n,g-2),p);break;case 59:L+=";";default:if(h(j=K(L,t,n,v,m,i,d,R,N=[],D=[],g),a),123===I)if(0===m)G(L,t,j,j,N,a,g,d,D);else switch(99===b&&110===c(L,3)?100:b){case 100:case 109:case 115:G(e,j,j,r&&h(K(e,j,j,0,0,i,d,R,i,N=[],g),D),i,D,g,d,r?N:D);break;default:G(L,j,j,j,[""],D,0,d,D)}}v=m=y=0,w=_=1,R=L="",g=l;break;case 58:g=1+f(L),y=x;default:if(w<1)if(123==I)--w;else if(125==I&&0==w++&&125==k())continue;switch(L+=o(I),I*w){case 38:_=m>0?1:(L+="\f",-1);break;case 44:d[v++]=(f(L)-1)*_,_=1;break;case 64:45===E()&&(L+=O(S())),b=E(),m=g=f(R=L+=Z(T())),I++;break;case 45:45===x&&2==f(L)&&(w=0)}}return a}function K(e,t,n,r,o,a,u,c,f,h,v){for(var m=o-1,g=0===o?a:[""],b=p(g),y=0,x=0,C=0;y0?g[k]+" "+S:s(S,/&\f/g,g[k])))&&(f[C++]=E);return w(e,t,n,0===o?B:c,f,h,v)}function $(e,t,n){return w(e,t,n,z,o(y),d(e,2,-2),0)}function Q(e,t,n,r){return w(e,t,n,V,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,i=0;r=i,i=E(),38===r&&12===i&&(t[n]=1),!I(i);)S();return _(e,b)},J=function(e,t){return N(function(e,t){var n=-1,r=44;do{switch(I(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Y(b-1,t,n);break;case 2:e[n]+=O(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=S());return e}(R(e),t))},X=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var i=[],o=J(t,i),a=n.props,l=0,s=0;l6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?ne(s(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~u(e,"!important")&&10))){case 107:return s(e,":",":-webkit-")+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===c(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return F+e+j+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+j+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=ne(e.value,e.length);break;case H:return U([C(e,{value:s(e.value,"@","@-webkit-")})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([C(e,{props:[s(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([C(e,{props:[s(t,/:(plac\w+)/,":-webkit-input-$1")]}),C(e,{props:[s(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[s(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,a,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(1827),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!==typeof e},c=(0,o.Z)((function(e){return s(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(l,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===i[e]||s(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:null;(0,c.Z)(this,e),this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}return(0,d.Z)(e,[{key:"length",get:function(){return this.items.length}},{key:"contains",value:function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}))}},{key:"edit",value:function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1,e),this.save())}},{key:"delete",value:function(e){var t=this.items.findIndex((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}));-1!==t&&(this.items.splice(t,1),this.save())}},{key:"fetchRecent",value:function(){return this.items.at(-1)}},{key:"fetchAll",value:function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}},{key:"push",value:function(e){var t=[].concat((0,f.Z)(this.items),[e]);this.maxSize&&t.length>this.maxSize&&t.shift();for(var n=0;n<5;n++){var r=this.storage.set(this.key,JSON.stringify((0,u.Z)({},this.key,t)));if(null===r||void 0===r?void 0:r.error){if(!r.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}},{key:"save",value:function(){this.storage.set(this.key,JSON.stringify((0,u.Z)({},this.key,this.items)))}}]),e}();ie(Pe,"QueryStore");var De=function(){function e(t,n){var r=this;(0,c.Z)(this,e),this.storage=t,this.maxHistoryLength=n,this.updateHistory=function(e,t,n,i){if(r.shouldSaveQuery(e,t,n,r.history.fetchRecent())){r.history.push({query:e,variables:t,headers:n,operationName:i});var o=r.history.items,a=r.favorite.items;r.queries=o.concat(a)}},this.history=new Pe("queries",this.storage,this.maxHistoryLength),this.favorite=new Pe("favorites",this.storage,null),this.queries=[].concat((0,f.Z)(this.history.fetchAll()),(0,f.Z)(this.favorite.fetchAll()))}return(0,d.Z)(e,[{key:"shouldSaveQuery",value:function(e,t,n,r){if(!e)return!1;try{(0,k.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}},{key:"toggleFavorite",value:function(e,t,n,r,i,o){var a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[].concat((0,f.Z)(this.history.items),(0,f.Z)(this.favorite.items))}},{key:"editLabel",value:function(e,t,n,r,i,o){var a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(Object.assign(Object.assign({},a),{favorite:o})):this.history.edit(a),this.queries=[].concat((0,f.Z)(this.history.items),(0,f.Z)(this.favorite.items))}}]),e}();ie(De,"HistoryStore");var Ae=Object.defineProperty,Ze=ie((function(e,t){return Ae(e,"name",{value:t,configurable:!0})}),"__name$G");function je(e){var t=(0,g.createContext)(null);return t.displayName=e,t}function Le(e){function t(n){var r,i=(0,g.useContext)(e);if(null===i&&(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 i}return ie(t,"useGivenContext"),Ze(t,"useGivenContext"),Object.defineProperty(t,"name",{value:"use".concat(e.displayName)}),t}ie(je,"createNullableContext"),Ze(je,"createNullableContext"),ie(Le,"createContextHook"),Ze(Le,"createContextHook");var Fe="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Be(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}ie(ze,"getDefaultExportFromCjs"),ie(Be,"getAugmentedNamespace");var Ve={exports:{}},He={};Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Ue(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qe(){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(i){return!1}}ie(Ue,"toObject"),ie(qe,"shouldUseNative"),qe()&&Object.assign;var We=g,Ge=60103;if(He.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var Ke=Symbol.for;Ge=Ke("react.element"),He.Fragment=Ke("react.fragment")}var $e=We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,Ye={key:!0,ref:!0,__self:!0,__source:!0};function Je(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)Qe.call(t,r)&&!Ye.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:Ge,type:e,key:o,ref:a,props:i,_owner:$e.current}}ie(Je,"q$1"),He.jsx=Je,He.jsxs=Je,Ve.exports=He;var Xe=Ve.exports.jsx,et=Ve.exports.jsxs,tt=Ve.exports.Fragment,nt=Object.defineProperty,rt=ie((function(e,t){return nt(e,"name",{value:t,configurable:!0})}),"__name$F"),it=je("StorageContext");function ot(e){var t=(0,g.useRef)(!0),n=(0,g.useState)(new Oe(e.storage)),r=(0,s.Z)(n,2),i=r[0],o=r[1];return(0,g.useEffect)((function(){t.current?t.current=!1:o(new Oe(e.storage))}),[e.storage]),Xe(it.Provider,{value:i,children:e.children})}ie(ot,"StorageContextProvider"),rt(ot,"StorageContextProvider");var at,lt,st=Le(it);function ut(e){return ct(e,[])}function ct(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return dt(e,t);default:return String(e)}}function dt(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";var n=[].concat((0,f.Z)(t),[e]);if(ft(e)){var r=e.toJSON();if(r!==e)return"string"===typeof r?r:ct(r,n)}else if(Array.isArray(e))return ht(e,n);return pt(e,n)}function ft(e){return"function"===typeof e.toJSON}function pt(e,t){var n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+vt(e)+"]":"{ "+n.map((function(e){var n=(0,s.Z)(e,2);return n[0]+": "+ct(n[1],t)})).join(", ")+" }"}function ht(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function vt(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}function mt(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}function gt(e){return 9===e||32===e}function bt(e){return e>=48&&e<=57}function yt(e){return e>=97&&e<=122||e>=65&&e<=90}function xt(e){return yt(e)||95===e}function wt(e){return yt(e)||bt(e)||95===e}function Ct(e,t){var n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((function(e){return 0===e.length||gt(e.charCodeAt(0))})),a=n.endsWith('\\"""'),l=e.endsWith('"')&&!a,s=e.endsWith("\\"),u=l||s,c=!(null!==t&&void 0!==t&&t.minimize)&&(!i||e.length>70||u||o||a),d="",f=i&>(e.charCodeAt(0));return(c&&!f||o)&&(d+="\n"),d+=n,(c||u)&&(d+="\n"),'"""'+d+'"""'}function kt(e){return'"'.concat(e.replace(St,Et),'"')}ie(ut,"inspect"),ie(ct,"formatValue"),ie(dt,"formatObjectValue"),ie(ft,"isJSONable"),ie(pt,"formatObject"),ie(ht,"formatArray"),ie(vt,"getObjectTag"),ie(mt,"invariant"),(lt=at||(at={})).QUERY="QUERY",lt.MUTATION="MUTATION",lt.SUBSCRIPTION="SUBSCRIPTION",lt.FIELD="FIELD",lt.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",lt.FRAGMENT_SPREAD="FRAGMENT_SPREAD",lt.INLINE_FRAGMENT="INLINE_FRAGMENT",lt.VARIABLE_DEFINITION="VARIABLE_DEFINITION",lt.SCHEMA="SCHEMA",lt.SCALAR="SCALAR",lt.OBJECT="OBJECT",lt.FIELD_DEFINITION="FIELD_DEFINITION",lt.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",lt.INTERFACE="INTERFACE",lt.UNION="UNION",lt.ENUM="ENUM",lt.ENUM_VALUE="ENUM_VALUE",lt.INPUT_OBJECT="INPUT_OBJECT",lt.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",ie(gt,"isWhiteSpace$2"),ie(bt,"isDigit$1"),ie(yt,"isLetter$1"),ie(xt,"isNameStart"),ie(wt,"isNameContinue"),ie(Ct,"printBlockString"),ie(kt,"printString");var St=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Et(e){return Tt[e.charCodeAt(0)]}ie(Et,"escapedReplacer");var Tt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function _t(e,t){if(!Boolean(e))throw new Error(t)}ie(_t,"devAssert");var It,Rt,Nt,Ot,Mt={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"]},Pt=new Set(Object.keys(Mt));function Dt(e){var t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&Pt.has(t)}ie(Dt,"isNode"),(Rt=It||(It={})).QUERY="query",Rt.MUTATION="mutation",Rt.SUBSCRIPTION="subscription",(Ot=Nt||(Nt={})).NAME="Name",Ot.DOCUMENT="Document",Ot.OPERATION_DEFINITION="OperationDefinition",Ot.VARIABLE_DEFINITION="VariableDefinition",Ot.SELECTION_SET="SelectionSet",Ot.FIELD="Field",Ot.ARGUMENT="Argument",Ot.FRAGMENT_SPREAD="FragmentSpread",Ot.INLINE_FRAGMENT="InlineFragment",Ot.FRAGMENT_DEFINITION="FragmentDefinition",Ot.VARIABLE="Variable",Ot.INT="IntValue",Ot.FLOAT="FloatValue",Ot.STRING="StringValue",Ot.BOOLEAN="BooleanValue",Ot.NULL="NullValue",Ot.ENUM="EnumValue",Ot.LIST="ListValue",Ot.OBJECT="ObjectValue",Ot.OBJECT_FIELD="ObjectField",Ot.DIRECTIVE="Directive",Ot.NAMED_TYPE="NamedType",Ot.LIST_TYPE="ListType",Ot.NON_NULL_TYPE="NonNullType",Ot.SCHEMA_DEFINITION="SchemaDefinition",Ot.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",Ot.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",Ot.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",Ot.FIELD_DEFINITION="FieldDefinition",Ot.INPUT_VALUE_DEFINITION="InputValueDefinition",Ot.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",Ot.UNION_TYPE_DEFINITION="UnionTypeDefinition",Ot.ENUM_TYPE_DEFINITION="EnumTypeDefinition",Ot.ENUM_VALUE_DEFINITION="EnumValueDefinition",Ot.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",Ot.DIRECTIVE_DEFINITION="DirectiveDefinition",Ot.SCHEMA_EXTENSION="SchemaExtension",Ot.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",Ot.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",Ot.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",Ot.UNION_TYPE_EXTENSION="UnionTypeExtension",Ot.ENUM_TYPE_EXTENSION="EnumTypeExtension",Ot.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";var At=Object.freeze({});function Zt(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Mt,r=new Map,i=0,o=Object.values(Nt);i80&&(l=a+Vt("(\n",Ht(zt(r,"\n")),"\n)")),zt([l,zt(i," "),o]," ")}},Argument:{leave:function(e){return e.name+": "+e.value}},FragmentSpread:{leave:function(e){return"..."+e.name+Vt(" ",zt(e.directives," "))}},InlineFragment:{leave:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return zt(["...",Vt("on ",t),zt(n," "),r]," ")}},FragmentDefinition:{leave:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(Vt("(",zt(r,", "),")")," on ").concat(n," ").concat(Vt("",zt(i," ")," "))+o}},IntValue:{leave:function(e){return e.value}},FloatValue:{leave:function(e){return e.value}},StringValue:{leave:function(e){var t=e.value;return e.block?Ct(t):kt(t)}},BooleanValue:{leave:function(e){return e.value?"true":"false"}},NullValue:{leave:function(){return"null"}},EnumValue:{leave:function(e){return e.value}},ListValue:{leave:function(e){return"["+zt(e.values,", ")+"]"}},ObjectValue:{leave:function(e){return"{"+zt(e.fields,", ")+"}"}},ObjectField:{leave:function(e){return e.name+": "+e.value}},Directive:{leave:function(e){return"@"+e.name+Vt("(",zt(e.arguments,", "),")")}},NamedType:{leave:function(e){return e.name}},ListType:{leave:function(e){return"["+e.type+"]"}},NonNullType:{leave:function(e){return e.type+"!"}},SchemaDefinition:{leave:function(e){var t=e.description,n=e.directives,r=e.operationTypes;return Vt("",t,"\n")+zt(["schema",zt(n," "),Bt(r)]," ")}},OperationTypeDefinition:{leave:function(e){return e.operation+": "+e.type}},ScalarTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Vt("",t,"\n")+zt(["scalar",n,zt(r," ")]," ")}},ObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return Vt("",t,"\n")+zt(["type",n,Vt("implements ",zt(r," & ")),zt(i," "),Bt(o)]," ")}},FieldDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.type,o=e.directives;return Vt("",t,"\n")+n+(Ut(r)?Vt("(\n",Ht(zt(r,"\n")),"\n)"):Vt("(",zt(r,", "),")"))+": "+i+Vt(" ",zt(o," "))}},InputValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.type,i=e.defaultValue,o=e.directives;return Vt("",t,"\n")+zt([n+": "+r,Vt("= ",i),zt(o," ")]," ")}},InterfaceTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return Vt("",t,"\n")+zt(["interface",n,Vt("implements ",zt(r," & ")),zt(i," "),Bt(o)]," ")}},UnionTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.types;return Vt("",t,"\n")+zt(["union",n,zt(r," "),Vt("= ",zt(i," | "))]," ")}},EnumTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.values;return Vt("",t,"\n")+zt(["enum",n,zt(r," "),Bt(i)]," ")}},EnumValueDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives;return Vt("",t,"\n")+zt([n,zt(r," ")]," ")}},InputObjectTypeDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.directives,i=e.fields;return Vt("",t,"\n")+zt(["input",n,zt(r," "),Bt(i)]," ")}},DirectiveDefinition:{leave:function(e){var t=e.description,n=e.name,r=e.arguments,i=e.repeatable,o=e.locations;return Vt("",t,"\n")+"directive @"+n+(Ut(r)?Vt("(\n",Ht(zt(r,"\n")),"\n)"):Vt("(",zt(r,", "),")"))+(i?" repeatable":"")+" on "+zt(o," | ")}},SchemaExtension:{leave:function(e){var t=e.directives,n=e.operationTypes;return zt(["extend schema",zt(t," "),Bt(n)]," ")}},ScalarTypeExtension:{leave:function(e){return zt(["extend scalar",e.name,zt(e.directives," ")]," ")}},ObjectTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return zt(["extend type",t,Vt("implements ",zt(n," & ")),zt(r," "),Bt(i)]," ")}},InterfaceTypeExtension:{leave:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return zt(["extend interface",t,Vt("implements ",zt(n," & ")),zt(r," "),Bt(i)]," ")}},UnionTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.types;return zt(["extend union",t,zt(n," "),Vt("= ",zt(r," | "))]," ")}},EnumTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.values;return zt(["extend enum",t,zt(n," "),Bt(r)]," ")}},InputObjectTypeExtension:{leave:function(e){var t=e.name,n=e.directives,r=e.fields;return zt(["extend input",t,zt(n," "),Bt(r)]," ")}}};function zt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Bt(e){return Vt("{\n",Ht(zt(e,"\n")),"\n}")}function Vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Ht(e){return Vt(" ",e.replace(/\n/g,"\n "))}function Ut(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((function(e){return e.includes("\n")})))&&void 0!==t&&t}function qt(e){return"object"===typeof e&&"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}function Wt(e){return"object"==typeof e&&null!==e}ie(zt,"join"),ie(Bt,"block$2"),ie(Vt,"wrap"),ie(Ht,"indent"),ie(Ut,"hasMultilineItems"),ie(qt,"isIterableObject"),ie(Wt,"isObjectLike");function Gt(e,t){var n=t?[e,t]:[void 0,e],r=(0,s.Z)(n,2),i=r[0],o=" Did you mean ";i&&(o+=i+" ");var a=r[1].map((function(e){return'"'.concat(e,'"')}));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}var l=a.slice(0,5),u=l.pop();return o+l.join(", ")+", or "+u+"?"}function Kt(e){return e}ie(Gt,"didYouMean"),ie(Kt,"identityFunc");var $t=ie((function(e,t){return e instanceof t}),"instanceOf");function Qt(e,t){var n,r=Object.create(null),i=(0,p.Z)(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;r[t(o)]=o}}catch(a){i.e(a)}finally{i.f()}return r}function Yt(e,t,n){var r,i=Object.create(null),o=(0,p.Z)(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;i[t(a)]=n(a)}}catch(l){o.e(l)}finally{o.f()}return i}function Jt(e,t){for(var n=Object.create(null),r=0,i=Object.keys(e);r0);var l=0;do{++r,l=10*l+o-en,o=t.charCodeAt(r)}while(tn(o)&&l>0);if(al)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}ie(Qt,"keyMap"),ie(Yt,"keyValMap"),ie(Jt,"mapValue"),ie(Xt,"naturalCompare");var en=48;function tn(e){return!isNaN(e)&&en<=e&&e<=57}function nn(e,t){var n,r=Object.create(null),i=new rn(e),o=Math.floor(.4*e.length)+1,a=(0,p.Z)(t);try{for(a.s();!(n=a.n()).done;){var l=n.value,s=i.measure(l,o);void 0!==s&&(r[l]=s)}}catch(u){a.e(u)}finally{a.f()}return Object.keys(r).sort((function(e,t){var n=r[e]-r[t];return 0!==n?n:Xt(e,t)}))}ie(tn,"isDigit"),ie(nn,"suggestionList");var rn=function(){function e(t){(0,c.Z)(this,e),this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=on(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}return(0,d.Z)(e,[{key:"measure",value:function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=on(n),i=this._inputArray;if(r.lengtht)){for(var s=this._rows,u=0;u<=l;u++)s[0][u]=u;for(var c=1;c<=a;c++){for(var d=s[(c-1)%3],f=s[c%3],p=f[0]=c,h=1;h<=l;h++){var v=r[c-1]===i[h-1]?0:1,m=Math.min(d[h]+1,f[h-1]+1,d[h-1]+v);if(c>1&&h>1&&r[c-1]===i[h-2]&&r[c-2]===i[h-1]){var g=s[(c-2)%3][h-2];m=Math.min(m,g+1)}mt)return}var b=s[a%3][l];return b<=t?b:void 0}}}]),e}();function on(e){for(var t=e.length,n=new Array(t),r=0;r=t)break;r=a.index+a[0].length,i+=1}}catch(l){o.e(l)}finally{o.f()}return{line:i,column:t+1-r}}function un(e){return cn(e.source,sn(e.source,e.start))}function cn(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,l=1===t.line?n:0,s=t.column+l,u="".concat(e.name,":").concat(a,":").concat(s,"\n"),c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){for(var p=Math.floor(s/80),h=s%80,v=[],m=0;m1?s-1:0),d=1;d0&&(e.extensions=this.extensions),e}}]),r}((0,l.Z)(Error),Symbol.toStringTag);function hn(e){return void 0===e||0===e.length?void 0:e}function vn(e,t){switch(e.kind){case Nt.NULL:return null;case Nt.INT:return parseInt(e.value,10);case Nt.FLOAT:return parseFloat(e.value);case Nt.STRING:case Nt.ENUM:case Nt.BOOLEAN:return e.value;case Nt.LIST:return e.values.map((function(e){return vn(e,t)}));case Nt.OBJECT:return Yt(e.fields,(function(e){return e.name.value}),(function(e){return vn(e.value,t)}));case Nt.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}}function mn(e){if(null!=e||_t(!1,"Must provide name."),"string"===typeof e||_t(!1,"Expected name to be a string."),0===e.length)throw new pn("Expected name to be a non-empty string.");for(var t=1;tQn||nQn||eQn||t=0;i--)t(n[i])}function Xr(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;it.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function oi(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var l=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+l),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[o][a]}Object.freeze([sr,ur,cr,dr,fr,pr,hr,Wr]),ie(Qr,"getDefinitionState"),ie(Yr,"getFieldDef"),ie(Jr,"forEachState"),ie(Xr,"objectValues"),ie(ei,"hintList"),ie(ti,"filterAndSortList"),ie(ni,"filterNonEmpty"),ie(ri,"normalizeText"),ie(ii,"getProximity"),ie(oi,"lexicalDistance"),function(e){function t(e){return"string"===typeof e}ie(t,"is"),e.is=t}(vr||(vr={})),function(e){function t(e){return"string"===typeof e}ie(t,"is"),e.is=t}(mr||(mr={})),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,ie(t,"is"),e.is=t}(gr||(gr={})),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,ie(t,"is"),e.is=t}(br||(br={})),function(e){function t(e,t){return e===Number.MAX_VALUE&&(e=br.MAX_VALUE),t===Number.MAX_VALUE&&(t=br.MAX_VALUE),{line:e,character:t}}function n(e){var t=e;return so.objectLiteral(t)&&so.uinteger(t.line)&&so.uinteger(t.character)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(yr||(yr={})),function(e){function t(e,t,n,r){if(so.uinteger(e)&&so.uinteger(t)&&so.uinteger(n)&&so.uinteger(r))return{start:yr.create(e,t),end:yr.create(n,r)};if(yr.is(e)&&yr.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 so.objectLiteral(t)&&yr.is(t.start)&&yr.is(t.end)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(xr||(xr={})),function(e){function t(e,t){return{uri:e,range:t}}function n(e){var t=e;return so.defined(t)&&xr.is(t.range)&&(so.string(t.uri)||so.undefined(t.uri))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(wr||(wr={})),function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}function n(e){var t=e;return so.defined(t)&&xr.is(t.targetRange)&&so.string(t.targetUri)&&xr.is(t.targetSelectionRange)&&(xr.is(t.originSelectionRange)||so.undefined(t.originSelectionRange))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Cr||(Cr={})),function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}function n(e){var t=e;return so.objectLiteral(t)&&so.numberRange(t.red,0,1)&&so.numberRange(t.green,0,1)&&so.numberRange(t.blue,0,1)&&so.numberRange(t.alpha,0,1)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(kr||(kr={})),function(e){function t(e,t){return{range:e,color:t}}function n(e){var t=e;return so.objectLiteral(t)&&xr.is(t.range)&&kr.is(t.color)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Sr||(Sr={})),function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}function n(e){var t=e;return so.objectLiteral(t)&&so.string(t.label)&&(so.undefined(t.textEdit)||jr.is(t))&&(so.undefined(t.additionalTextEdits)||so.typedArray(t.additionalTextEdits,jr.is))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Er||(Er={})),(_r=Tr||(Tr={})).Comment="comment",_r.Imports="imports",_r.Region="region",function(e){function t(e,t,n,r,i,o){var a={startLine:e,endLine:t};return so.defined(n)&&(a.startCharacter=n),so.defined(r)&&(a.endCharacter=r),so.defined(i)&&(a.kind=i),so.defined(o)&&(a.collapsedText=o),a}function n(e){var t=e;return so.objectLiteral(t)&&so.uinteger(t.startLine)&&so.uinteger(t.startLine)&&(so.undefined(t.startCharacter)||so.uinteger(t.startCharacter))&&(so.undefined(t.endCharacter)||so.uinteger(t.endCharacter))&&(so.undefined(t.kind)||so.string(t.kind))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Ir||(Ir={})),function(e){function t(e,t){return{location:e,message:t}}function n(e){var t=e;return so.defined(t)&&wr.is(t.location)&&so.string(t.message)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Rr||(Rr={})),(Or=Nr||(Nr={})).Error=1,Or.Warning=2,Or.Information=3,Or.Hint=4,(Pr=Mr||(Mr={})).Unnecessary=1,Pr.Deprecated=2,function(e){function t(e){var t=e;return so.objectLiteral(t)&&so.string(t.href)}ie(t,"is"),e.is=t}(Dr||(Dr={})),function(e){function t(e,t,n,r,i,o){var a={range:e,message:t};return so.defined(n)&&(a.severity=n),so.defined(r)&&(a.code=r),so.defined(i)&&(a.source=i),so.defined(o)&&(a.relatedInformation=o),a}function n(e){var t,n=e;return so.defined(n)&&xr.is(n.range)&&so.string(n.message)&&(so.number(n.severity)||so.undefined(n.severity))&&(so.integer(n.code)||so.string(n.code)||so.undefined(n.code))&&(so.undefined(n.codeDescription)||so.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(so.string(n.source)||so.undefined(n.source))&&(so.undefined(n.relatedInformation)||so.typedArray(n.relatedInformation,Rr.is))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Ar||(Ar={})),function(e){function t(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i}function n(e){var t=e;return so.defined(t)&&so.string(t.title)&&so.string(t.command)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Zr||(Zr={})),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 i(e){var t=e;return so.objectLiteral(t)&&so.string(t.newText)&&xr.is(t.range)}ie(t,"replace"),e.replace=t,ie(n,"insert"),e.insert=n,ie(r,"del"),e.del=r,ie(i,"is"),e.is=i}(jr||(jr={})),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 so.objectLiteral(t)&&so.string(t.label)&&(so.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(so.string(t.description)||void 0===t.description)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Lr||(Lr={})),function(e){function t(e){var t=e;return so.string(t)}ie(t,"is"),e.is=t}(Fr||(Fr={})),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 i(e){var t=e;return jr.is(t)&&(Lr.is(t.annotationId)||Fr.is(t.annotationId))}ie(t,"replace"),e.replace=t,ie(n,"insert"),e.insert=n,ie(r,"del"),e.del=r,ie(i,"is"),e.is=i}(zr||(zr={})),function(e){function t(e,t){return{textDocument:e,edits:t}}function n(e){var t=e;return so.defined(t)&&si.is(t.textDocument)&&Array.isArray(t.edits)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Br||(Br={})),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&&so.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||so.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||so.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Fr.is(t.annotationId))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Vr||(Vr={})),function(e){function t(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i}function n(e){var t=e;return t&&"rename"===t.kind&&so.string(t.oldUri)&&so.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||so.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||so.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Fr.is(t.annotationId))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Hr||(Hr={})),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&&so.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||so.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||so.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Fr.is(t.annotationId))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(Ur||(Ur={})),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 so.string(e.kind)?Vr.is(e)||Hr.is(e)||Ur.is(e):Br.is(e)})))}ie(t,"is"),e.is=t}(qr||(qr={}));var ai,li,si,ui,ci,di,fi,pi,hi,vi,mi,gi,bi,yi,xi,wi,Ci,ki,Si,Ei,Ti,_i,Ii,Ri,Ni,Oi,Mi,Pi,Di,Ai,Zi,ji,Li,Fi,zi,Bi,Vi,Hi,Ui,qi,Wi,Gi,Ki,$i,Qi,Yi,Ji,Xi,eo,to,no,ro,io,oo,ao=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return ie(e,"TextEditChangeImpl"),e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=jr.insert(e,t):Fr.is(n)?(i=n,r=zr.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=zr.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=jr.replace(e,t):Fr.is(n)?(i=n,r=zr.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=zr.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=jr.del(e):Fr.is(t)?(r=t,n=zr.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=zr.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}(),lo=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return ie(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(Fr.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 lo(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Br.is(e)){var n=new ao(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ao(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}ie(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(si.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:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ao(i,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 i=[];this._workspaceEdit.changes[e]=i,r=new ao(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new lo,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,i,o;if(Lr.is(t)||Fr.is(t)?r=t:n=t,void 0===r?i=Vr.create(e,n):(o=Fr.is(r)?r:this._changeAnnotations.manage(r),i=Vr.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},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 i,o,a;if(Lr.is(n)||Fr.is(n)?i=n:r=n,void 0===i?o=Hr.create(e,t,r):(a=Fr.is(i)?i:this._changeAnnotations.manage(i),o=Hr.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),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,i,o;if(Lr.is(t)||Fr.is(t)?r=t:n=t,void 0===r?i=Ur.create(e,n):(o=Fr.is(r)?r:this._changeAnnotations.manage(r),i=Ur.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){function t(e){return{uri:e}}function n(e){var t=e;return so.defined(t)&&so.string(t.uri)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(ai||(ai={})),function(e){function t(e,t){return{uri:e,version:t}}function n(e){var t=e;return so.defined(t)&&so.string(t.uri)&&so.integer(t.version)}ie(t,"create"),e.create=t,ie(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 so.defined(t)&&so.string(t.uri)&&(null===t.version||so.integer(t.version))}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(si||(si={})),function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}function n(e){var t=e;return so.defined(t)&&so.string(t.uri)&&so.string(t.languageId)&&so.integer(t.version)&&so.string(t.text)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(ui||(ui={})),function(e){function t(t){var n=t;return n===e.PlainText||n===e.Markdown}e.PlainText="plaintext",e.Markdown="markdown",ie(t,"is"),e.is=t}(ci||(ci={})),function(e){function t(e){var t=e;return so.objectLiteral(e)&&ci.is(t.kind)&&so.string(t.value)}ie(t,"is"),e.is=t}(di||(di={})),(pi=fi||(fi={})).Text=1,pi.Method=2,pi.Function=3,pi.Constructor=4,pi.Field=5,pi.Variable=6,pi.Class=7,pi.Interface=8,pi.Module=9,pi.Property=10,pi.Unit=11,pi.Value=12,pi.Enum=13,pi.Keyword=14,pi.Snippet=15,pi.Color=16,pi.File=17,pi.Reference=18,pi.Folder=19,pi.EnumMember=20,pi.Constant=21,pi.Struct=22,pi.Event=23,pi.Operator=24,pi.TypeParameter=25,(vi=hi||(hi={})).PlainText=1,vi.Snippet=2,(mi||(mi={})).Deprecated=1,function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}function n(e){var t=e;return t&&so.string(t.newText)&&xr.is(t.insert)&&xr.is(t.replace)}ie(t,"create"),e.create=t,ie(n,"is"),e.is=n}(gi||(gi={})),(yi=bi||(bi={})).asIs=1,yi.adjustIndentation=2,function(e){function t(e){var t=e;return t&&(so.string(t.detail)||void 0===t.detail)&&(so.string(t.description)||void 0===t.description)}ie(t,"is"),e.is=t}(xi||(xi={})),function(e){function t(e){return{label:e}}ie(t,"create"),e.create=t}(wi||(wi={})),function(e){function t(e,t){return{items:e||[],isIncomplete:!!t}}ie(t,"create"),e.create=t}(Ci||(Ci={})),function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function n(e){var t=e;return so.string(t)||so.objectLiteral(t)&&so.string(t.language)&&so.string(t.value)}ie(t,"fromPlainText"),e.fromPlainText=t,ie(n,"is"),e.is=n}(ki||(ki={})),function(e){function t(e){var t=e;return!!t&&so.objectLiteral(t)&&(di.is(t.contents)||ki.is(t.contents)||so.typedArray(t.contents,ki.is))&&(void 0===e.range||xr.is(e.range))}ie(t,"is"),e.is=t}(Si||(Si={})),function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}ie(t,"create"),e.create=t}(Ei||(Ei={})),function(e){function t(e,t){for(var n=[],r=2;r=0;a--){var l=r[a],s=e.offsetAt(l.range.start),u=e.offsetAt(l.range.end);if(!(u<=o))throw new Error("Overlapping edit");n=n.substring(0,s)+l.newText+n.substring(u,n.length),o=s}return n}function i(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);for(var a=0,l=0,s=0;a0&&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 yr.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return yr.create(o,e-t[o])},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+11&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;if("string"===typeof e){var a=new RegExp(e,r?"i":"g");o=a.test(n._sourceText.slice(n._pos,n._pos+e.length)),i=e}else e instanceof RegExp&&(i=null===(o=n._sourceText.slice(n._pos).match(e))||void 0===o?void 0:o[0]);return!(null==o||!("string"===typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0!==e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return(0,d.Z)(e,[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}]),e}();function po(e){return{ofRule:e}}function ho(e,t){return{ofRule:e,isList:!0,separator:t}}function vo(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every((function(t){return t.match&&!t.match(e)}))},e}function mo(e,t){return{style:t,match:function(t){return t.kind===e}}}function go(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}ie(fo,"CharacterStream"),ie(po,"opt"),ie(ho,"list$1"),ie(vo,"butNot"),ie(mo,"t$2"),ie(go,"p$1");var bo=ie((function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e}),"isIgnored"),yo={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:/^#.*/},xo=(L={Document:[ho("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return O.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:[wo("query"),po(Co("def")),po("VariableDefinitions"),ho("Directive"),"SelectionSet"],Mutation:[wo("mutation"),po(Co("def")),po("VariableDefinitions"),ho("Directive"),"SelectionSet"],Subscription:[wo("subscription"),po(Co("def")),po("VariableDefinitions"),ho("Directive"),"SelectionSet"],VariableDefinitions:[go("("),ho("VariableDefinition"),go(")")],VariableDefinition:["Variable",go(":"),"Type",po("DefaultValue")],Variable:[go("$","variable"),Co("variable")],DefaultValue:[go("="),"Value"],SelectionSet:[go("{"),ho("Selection"),go("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Co("property"),go(":"),Co("qualifier"),po("Arguments"),ho("Directive"),po("SelectionSet")],Field:[Co("property"),po("Arguments"),ho("Directive"),po("SelectionSet")],Arguments:[go("("),ho("Argument"),go(")")],Argument:[Co("attribute"),go(":"),"Value"],FragmentSpread:[go("..."),Co("def"),ho("Directive")],InlineFragment:[go("..."),po("TypeCondition"),ho("Directive"),"SelectionSet"],FragmentDefinition:[wo("fragment"),po(vo(Co("def"),[wo("on")])),"TypeCondition",ho("Directive"),"SelectionSet"],TypeCondition:[wo("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[mo("Number","number")],StringValue:[{style:"string",match:function(e){return"String"===e.kind},update:function(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[mo("Name","builtin")],NullValue:[mo("Name","keyword")],EnumValue:[Co("string-2")],ListValue:[go("["),ho("Value"),go("]")],ObjectValue:[go("{"),ho("ObjectField"),go("}")],ObjectField:[Co("attribute"),go(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[go("["),"Type",go("]"),po(go("!"))],NonNullType:["NamedType",po(go("!"))],NamedType:[ko("atom")],Directive:[go("@","meta"),Co("meta"),po("Arguments")],DirectiveDef:[wo("directive"),go("@","meta"),Co("meta"),po("ArgumentsDef"),wo("on"),ho("DirectiveLocation",go("|"))],InterfaceDef:[wo("interface"),Co("atom"),po("Implements"),ho("Directive"),go("{"),ho("FieldDef"),go("}")],Implements:[wo("implements"),ho("NamedType",go("&"))],DirectiveLocation:[Co("string-2")],SchemaDef:[wo("schema"),ho("Directive"),go("{"),ho("OperationTypeDef"),go("}")],OperationTypeDef:[Co("keyword"),go(":"),Co("atom")],ScalarDef:[wo("scalar"),Co("atom"),ho("Directive")],ObjectTypeDef:[wo("type"),Co("atom"),po("Implements"),ho("Directive"),go("{"),ho("FieldDef"),go("}")],FieldDef:[Co("property"),po("ArgumentsDef"),go(":"),"Type",ho("Directive")],ArgumentsDef:[go("("),ho("InputValueDef"),go(")")],InputValueDef:[Co("attribute"),go(":"),"Type",po("DefaultValue"),ho("Directive")],UnionDef:[wo("union"),Co("atom"),ho("Directive"),go("="),ho("UnionMember",go("|"))],UnionMember:["NamedType"],EnumDef:[wo("enum"),Co("atom"),ho("Directive"),go("{"),ho("EnumValueDef"),go("}")],EnumValueDef:[Co("string-2"),ho("Directive")],InputDef:[wo("input"),Co("atom"),ho("Directive"),go("{"),ho("InputValueDef"),go("}")],ExtendDef:[wo("extend"),"ExtensionDefinition"],ExtensionDefinition:function(e){switch(e.value){case"schema":return O.h.SCHEMA_EXTENSION;case"scalar":return O.h.SCALAR_TYPE_EXTENSION;case"type":return O.h.OBJECT_TYPE_EXTENSION;case"interface":return O.h.INTERFACE_TYPE_EXTENSION;case"union":return O.h.UNION_TYPE_EXTENSION;case"enum":return O.h.ENUM_TYPE_EXTENSION;case"input":return O.h.INPUT_OBJECT_TYPE_EXTENSION}}},(0,u.Z)(L,O.h.SCHEMA_EXTENSION,["SchemaDef"]),(0,u.Z)(L,O.h.SCALAR_TYPE_EXTENSION,["ScalarDef"]),(0,u.Z)(L,O.h.OBJECT_TYPE_EXTENSION,["ObjectTypeDef"]),(0,u.Z)(L,O.h.INTERFACE_TYPE_EXTENSION,["InterfaceDef"]),(0,u.Z)(L,O.h.UNION_TYPE_EXTENSION,["UnionDef"]),(0,u.Z)(L,O.h.ENUM_TYPE_EXTENSION,["EnumDef"]),(0,u.Z)(L,O.h.INPUT_OBJECT_TYPE_EXTENSION,["InputDef"]),L);function wo(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function Co(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function ko(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(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)}}}function So(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(bo)},lexRules:yo,parseRules:xo,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Io(e.parseRules,t,O.h.DOCUMENT),t},token:function(t,n){return Eo(t,n,e)}}}function Eo(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");var i=n.lexRules,o=n.parseRules,a=n.eatWhitespace,l=n.editorConfig;if(t.rule&&0===t.rule.length?Ro(t):t.needsAdvance&&(t.needsAdvance=!1,No(t,!0)),e.sol()){var s=(null===l||void 0===l?void 0:l.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/s)}if(a(e))return"ws";var u=Po(i,e);if(!u)return e.match(/\S+/)||e.match(/\s/),Io(_o,t,"Invalid"),"invalidchar";if("Comment"===u.kind)return Io(_o,t,"Comment"),"comment";var c=To({},t);if("Punctuation"===u.kind)if(/^[{([]/.test(u.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(u.value)){var d=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&d.length>0&&d.at(-1)0&&l.push.apply(l,(0,f.Z)(i)),ei(e,l.filter((function(e){return o[e.typeCondition.name.value]&&!(a&&a.kind===Do.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,I.Gv)(t.parentType)&&(0,I.Gv)(o[e.typeCondition.name.value])&&(0,H.zR)(n,t.parentType,o[e.typeCondition.name.value])})).map((function(e){return{label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:"fragment ".concat(e.name.value," on ").concat(e.typeCondition.name.value),kind:uo.Field,type:o[e.typeCondition.name.value]}})))}ie(Vo,"getSuggestionsForTypeSystemDefinitions"),ie(Ho,"getSuggestionsForExecutableDefinitions"),ie(Uo,"getSuggestionsForExtensionDefinitions"),ie(qo,"getSuggestionsForFieldNames"),ie(Wo,"getSuggestionsForInputValues"),ie(Go,"getSuggestionsForImplements"),ie(Ko,"getSuggestionsForFragmentTypeConditions"),ie($o,"getSuggestionsForFragmentSpread");var Qo,Yo,Jo=ie((function(e,t){var n,r,i,o,a,l,s,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(l=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===l?void 0:l.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(s=e.prevState)||void 0===s?void 0:s.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0}),"getParentDefinition");function Xo(e,t,n){var r,i=null,o=Object.create({});return ia(e,(function(e,a){if((null===a||void 0===a?void 0:a.kind)===Do.VARIABLE&&a.name&&(i=a.name),(null===a||void 0===a?void 0:a.kind)===Do.NAMED_TYPE&&i){var l=Jo(a,Do.TYPE);(null===l||void 0===l?void 0:l.type)&&(r=t.getType(null===l||void 0===l?void 0:l.type))}i&&r&&!o[i]&&(o[i]={detail:r.toString(),insertText:"$"===n.string?i:"$"+i,label:i,type:r,kind:uo.Variable},i=null,r=null)})),Xr(o)}function ea(e){var t=[];return ia(e,(function(e,n){n.kind===Do.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Do.FRAGMENT_DEFINITION,name:{kind:O.h.NAME,value:n.name},selectionSet:{kind:Do.SELECTION_SET,selections:[]},typeCondition:{kind:Do.NAMED_TYPE,name:{kind:O.h.NAME,value:n.type}}})})),t}function ta(e,t,n){return ei(e,Xr(t.getTypeMap()).filter(I.j$).map((function(e){return{label:e.name,documentation:e.description,kind:uo.Variable}})))}function na(e,t,n,r){var i;return(null===(i=t.prevState)||void 0===i?void 0:i.kind)?ei(e,n.getDirectives().filter((function(e){return oa(t.prevState,e)})).map((function(e){return{label:e.name,documentation:e.description||"",kind:uo.Function}}))):[]}function ra(e,t){var n=null,r=null,i=null,o=ia(e,(function(e,o,a,l){if(l===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function ia(e,t){for(var n=e.split("\n"),r=So(),i=r.startState(),o="",a=new fo(""),l=0;l1&&void 0!==arguments[1]?arguments[1]:{},n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"===typeof e&&!1!==r&&/\//.test(e))return[e];for(var i=[],o="",a=ie((function(e){var t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)}),"push"),l=0;l=0||(i[n]=e[n]);return i}ie(Kl,"useForceUpdate"),ie($l,"_objectWithoutPropertiesLoose$b");var Ql=["unstable_skipInitialRender"],Yl=ie((function(e){var t=e.children,n=e.type,r=void 0===n?"reach-portal":n,i=e.containerRef,o=(0,g.useRef)(null),a=(0,g.useRef)(null),l=Kl();return Gl((function(){if(o.current){var e=o.current.ownerDocument,t=(null==i?void 0:i.current)||e.body;return a.current=null==e?void 0:e.createElement(r),t.appendChild(a.current),l(),function(){a.current&&t&&t.removeChild(a.current)}}}),[r,l,i]),a.current?(0,K.createPortal)(t,a.current):(0,g.createElement)("span",{ref:o})}),"PortalImpl"),Jl=ie((function(e){var t=e.unstable_skipInitialRender,n=$l(e,Ql),r=(0,g.useState)(!1),i=r[0],o=r[1];return(0,g.useEffect)((function(){t&&o(!0)}),[t]),t&&!i?null:(0,g.createElement)(Yl,n)}),"Portal");function Xl(e){return Wl()?e?e.ownerDocument:document:null}function es(e){return"boolean"===typeof e}function ts(e){return!(!e||"[object Function]"!={}.toString.call(e))}function ns(e){return"string"===typeof e}function rs(){}function is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function ls(e,t){if(null!=e)if(ts(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function ss(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(i[n]=e[n]);return i}function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0})).sort(iu)}),"orderByTabIndex"),au=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),lu="".concat(au,", [data-focus-guard]"),su=ie((function(e,t){var n;return zs((null===(n=e.shadowRoot)||void 0===n?void 0:n.children)||e.children).reduce((function(e,n){return e.concat(n.matches(t?lu:au)?[n]:[],su(n))}),[])}),"getFocusablesWithShadowDom"),uu=ie((function(e,t){return e.reduce((function(e,n){return e.concat(su(n,t),n.parentNode?zs(n.parentNode.querySelectorAll(au)).filter((function(e){return e===n})):[])}),[])}),"getFocusables"),cu=ie((function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return zs(t).map((function(e){return uu([e])})).reduce((function(e,t){return e.concat(t)}),[])}),"getParentAutofocusables"),du=ie((function(e,t){return zs(e).filter((function(e){return Ws(t,e)})).filter((function(e){return Xs(e)}))}),"filterFocusable"),fu=ie((function(e,t){return void 0===t&&(t=new Map),zs(e).filter((function(e){return Ks(t,e)}))}),"filterAutoFocusable"),pu=ie((function(e,t,n){return ou(du(uu(e,n),t),!0,n)}),"getTabbableNodes"),hu=ie((function(e,t){return ou(du(uu(e),t),!1)}),"getAllTabbableNodes"),vu=ie((function(e,t){return du(cu(e),t)}),"parentAutofocusables"),mu=ie((function(e,t){return(e.shadowRoot?mu(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||zs(e.children).some((function(e){return mu(e,t)}))}),"contains"),gu=ie((function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}),"filterNested"),bu=ie((function(e){return e.parentNode?bu(e.parentNode):e}),"getTopParent"),yu=ie((function(e){return Bs(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(hs);return e.push.apply(e,n?gu(zs(bu(t).querySelectorAll("[".concat(hs,'="').concat(n,'"]:not([').concat(vs,'="disabled"])')))):[t]),e}),[])}),"getAllAffectedNodes"),xu=ie((function(e){return e.activeElement?e.activeElement.shadowRoot?xu(e.activeElement.shadowRoot):e.activeElement:void 0}),"getNestedShadowActiveElement"),wu=ie((function(){return document.activeElement?document.activeElement.shadowRoot?xu(document.activeElement.shadowRoot):document.activeElement:void 0}),"getActiveElement"),Cu=ie((function(e){return e===document.activeElement}),"focusInFrame"),ku=ie((function(e){return Boolean(zs(e.querySelectorAll("iframe")).some((function(e){return Cu(e)})))}),"focusInsideIframe"),Su=ie((function(e){var t=document&&wu();return!(!t||t.dataset&&t.dataset.focusGuard)&&yu(e).some((function(e){return mu(e,t)||ku(e)}))}),"focusInside"),Eu=ie((function(){var e=document&&wu();return!!e&&zs(document.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(t){return mu(t,e)}))}),"focusIsHidden"),Tu=ie((function(e,t){return t.filter(Js).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}),"findSelectedRadio"),_u=ie((function(e,t){return Js(e)&&e.name?Tu(e,t):e}),"correctNode"),Iu=ie((function(e){var t=new Set;return e.forEach((function(n){return t.add(_u(n,e))})),e.filter((function(e){return t.has(e)}))}),"correctNodes"),Ru=ie((function(e){return e[0]&&e.length>1?_u(e[0],e):e[0]}),"pickFirstFocus"),Nu=ie((function(e,t){return e.length>1?e.indexOf(_u(e[t],e)):t}),"pickFocusable"),Ou="NEW_FOCUS",Mu=ie((function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],l=tu(n);if(!(n&&e.indexOf(n)>=0)){var s=void 0!==n?t.indexOf(n):-1,u=r?t.indexOf(r):s,c=r?e.indexOf(r):-1,d=s-u,f=t.indexOf(o),p=t.indexOf(a),h=Iu(t),v=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):s),m=Nu(e,0),g=Nu(e,i-1);return-1===s||-1===c?Ou:!d&&c>=0?c:s<=f&&l&&Math.abs(d)>1?g:s>=p&&l&&Math.abs(d)>1?m:d&&Math.abs(v)>1?c:s<=f?g:s>p?m:d?Math.abs(d)>1?c:(i+c+d)%i:void 0}}),"newFocus"),Pu=ie((function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Pu(e.parentNode.host||e.parentNode,t),t}),"getParents"),Du=ie((function(e,t){for(var n=Pu(e),r=Pu(t),i=0;i=0)return o}return!1}),"getCommonParent"),Au=ie((function(e,t,n){var r=Bs(e),i=Bs(t),o=r[0],a=!1;return i.filter(Boolean).forEach((function(e){a=Du(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Du(o,e);t&&(a=!a||mu(t,a)?t:Du(t,a))}))})),a}),"getTopCommonParent"),Zu=ie((function(e,t){return e.reduce((function(e,n){return e.concat(vu(n,t))}),[])}),"allParentAutofocusables"),ju=ie((function(e){return function(t){var n;return t.autofocus||!!(null===(n=$s(t))||void 0===n?void 0:n.autofocus)||e.indexOf(t)>=0}}),"findAutoFocused"),Lu=ie((function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(ru)}),"reorderNodes"),Fu=ie((function(e,t){var n=document&&wu(),r=yu(e).filter(nu),i=Au(n||e,e,r),o=new Map,a=hu(r,o),l=pu(r,o).filter((function(e){var t=e.node;return nu(t)}));if(l[0]||(l=a)[0]){var s=hu([i],o).map((function(e){return e.node})),u=Lu(s,l),c=u.map((function(e){return e.node})),d=Mu(c,s,n,t);if(d===Ou){var f=fu(a.map((function(e){return e.node}))).filter(ju(Zu(r,o)));return{node:f&&f.length?Ru(f):Ru(fu(c))}}return void 0===d?d:u[d]}}),"getFocusMerge"),zu=ie((function(e){var t=yu(e).filter(nu),n=Au(e,e,t),r=new Map,i=pu([n],r,!0),o=pu(t,r).filter((function(e){var t=e.node;return nu(t)})).map((function(e){return e.node}));return i.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:tu(t)}}))}),"getFocusabledIn"),Bu=ie((function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()}),"focusOn"),Vu=0,Hu=!1,Uu=ie((function(e,t,n){void 0===n&&(n={});var r=Fu(e,t);if(!Hu&&r){if(Vu>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Hu=!0,void setTimeout((function(){Hu=!1}),1);Vu++,Bu(r.node,n.focusOptions),Vu--}}),"setFocus"),qu=Uu;function Wu(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}ie(Wu,"deferAction");var Gu=ie((function(){return document&&document.activeElement===document.body}),"focusOnBody"),Ku=ie((function(){return Gu()||Eu()}),"isFreeFocus"),$u=null,Qu=null,Yu=null,Ju=!1,Xu=ie((function(){return!0}),"defaultWhitelist"),ec=ie((function(e){return($u.whiteList||Xu)(e)}),"focusWhitelisted"),tc=ie((function(e,t){Yu={observerNode:e,portaledElement:t}}),"recordPortal"),nc=ie((function(e){return Yu&&Yu.portaledElement===e}),"focusIsPortaledPair");function rc(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else{if(!a.lockItem)break;if(o!==e)return;i=null}}while((o+=n)!==t);i&&(i.node.tabIndex=0)}ie(rc,"autoGuard");var ic=ie((function(e){return e&&"current"in e?e.current:e}),"extractRef"),oc=ie((function(e){return e?Boolean(Ju):"meanwhile"===Ju}),"focusWasOutside"),ac=ie((function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}),"checkInHost"),lc=ie((function(e,t){return t.some((function(t){return ac(e,t,t)}))}),"withinHost"),sc=ie((function(){var e=!1;if($u){var t=$u,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,l=t.focusOptions,s=n||Yu&&Yu.portaledElement,u=document&&document.activeElement;if(s){var c=[s].concat(o.map(ic).filter(Boolean));if(u&&!ec(u)||(r||oc(a)||!Ku()||!Qu&&i)&&(s&&!(Su(c)||u&&lc(u,c)||nc(u))&&(document&&!Qu&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=qu(c,Qu,{focusOptions:l}),Yu={})),Ju=!1,Qu=document&&document.activeElement),document){var d=document&&document.activeElement,f=zu(c),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),rc(p,f.length,1,f),rc(p,-1,-1,f))}}}return e}),"activateTrap"),uc=ie((function(e){sc()&&e&&(e.stopPropagation(),e.preventDefault())}),"onTrap"),cc=ie((function(){return Wu(sc)}),"onBlur"),dc=ie((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||tc(n,t)}),"onFocus"),fc=ie((function(){return null}),"FocusWatcher"),pc=ie((function(){Ju="just",setTimeout((function(){Ju="meanwhile"}),0)}),"onWindowBlur"),hc=ie((function(){document.addEventListener("focusin",uc),document.addEventListener("focusout",cc),window.addEventListener("blur",pc)}),"attachHandler"),vc=ie((function(){document.removeEventListener("focusin",uc),document.removeEventListener("focusout",cc),window.removeEventListener("blur",pc)}),"detachHandler");function mc(e){return e.filter((function(e){return!e.disabled}))}function gc(e){var t=e.slice(-1)[0];t&&!$u&&hc();var n=$u,r=n&&t&&t.id===n.id;$u=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Qu=null,r&&n.observed===t.observed||t.onActivation(),sc(),Wu(sc)):(vc(),Qu=null)}ie(mc,"reducePropsToState"),ie(gc,"handleStateChangeOnClient"),Rs.assignSyncMedium(dc),Ns.assignMedium(cc),Os.assignMedium((function(e){return e({moveFocusInside:qu,focusInside:Su})}));var bc=Fs(mc,gc)(fc),yc=g.forwardRef(ie((function(e,t){return g.createElement(As,ds({sideCar:bc,ref:t},e))}),"FocusLockUICombination")),xc=As.propTypes||{};xc.sideCar,cs(xc,["sideCar"]),yc.propTypes={};var wc=yc,Cc="right-scroll-bar-position",kc="width-before-scroll-bar",Sc=Ts(),Ec=ie((function(){}),"nothing"),Tc=g.forwardRef((function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Ec,onWheelCapture:Ec,onTouchMoveCapture:Ec}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,v=e.allowPinchZoom,m=e.as,b=void 0===m?"div":m,y=ws(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=f,w=bs([n,t]),C=xs(xs({},y),i);return g.createElement(g.Fragment,null,c&&g.createElement(x,{sideCar:Sc,removeScrollBar:u,shards:d,noIsolation:p,inert:h,setCallbacks:o,allowPinchZoom:!!v,lockRef:n}),a?g.cloneElement(g.Children.only(l),xs(xs({},C),{ref:w})):g.createElement(b,xs({},C,{className:s,ref:w}),l))}));Tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Tc.classNames={fullWidth:kc,zeroRight:Cc};var _c=ie((function(){return n.nc}),"getNonce");function Ic(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_c();return t&&e.setAttribute("nonce",t),e}function Rc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nc(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}ie(Ic,"makeStyleTag"),ie(Rc,"injectStyles"),ie(Nc,"insertStyleTag");var Oc=ie((function(){var e=0,t=null;return{add:function(n){0==e&&(t=Ic())&&(Rc(t,n),Nc(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}),"stylesheetSingleton"),Mc=ie((function(){var e=Oc();return function(t,n){g.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}),"styleHookSingleton"),Pc=ie((function(){var e=Mc();return ie((function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}),"Sheet")}),"styleSingleton"),Dc={left:0,top:0,right:0,gap:0},Ac=ie((function(e){return parseInt(e||"",10)||0}),"parse$1"),Zc=ie((function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[Ac(n),Ac(r),Ac(i)]}),"getOffset"),jc=ie((function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Dc;var t=Zc(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}),"getGapWidth"),Lc=Pc(),Fc=ie((function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Cc," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(kc," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(Cc," .").concat(Cc," {\n right: 0 ").concat(r,";\n }\n \n .").concat(kc," .").concat(kc," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")}),"getStyles$2"),zc=ie((function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=g.useMemo((function(){return jc(i)}),[i]);return g.createElement(Lc,{styles:Fc(o,!t,i,n?"":"!important")})}),"RemoveScrollBar"),Bc=!1;if("undefined"!==typeof window)try{var Vc=Object.defineProperty({},"passive",{get:function(){return Bc=!0,!0}});window.addEventListener("test",Vc,Vc),window.removeEventListener("test",Vc,Vc)}catch(TE){Bc=!1}var Hc=!!Bc&&{passive:!1},Uc=ie((function(e){return"TEXTAREA"===e.tagName}),"alwaysContainsScroll"),qc=ie((function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!Uc(e)&&"visible"===n[t])}),"elementCanBeScrolled"),Wc=ie((function(e){return qc(e,"overflowY")}),"elementCouldBeVScrolled"),Gc=ie((function(e){return qc(e,"overflowX")}),"elementCouldBeHScrolled"),Kc=ie((function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Yc(e,n)){var r=Jc(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1}),"locationCouldBeScrolled"),$c=ie((function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}),"getVScrollVariables"),Qc=ie((function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}),"getHScrollVariables"),Yc=ie((function(e,t){return"v"===e?Wc(t):Gc(t)}),"elementCouldBeScrolled"),Jc=ie((function(e,t){return"v"===e?$c(t):Qc(t)}),"getScrollVariables"),Xc=ie((function(e,t){return"h"===e&&"rtl"===t?-1:1}),"getDirectionFactor"),ed=ie((function(e,t,n,r,i){var o=Xc(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,s=t.contains(l),u=!1,c=a>0,d=0,f=0;do{var p=Jc(e,l),h=p[0],v=p[1]-p[2]-o*h;(h||v)&&Yc(e,l)&&(d+=v,f+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&(i&&0===d||!i&&a>d)||!c&&(i&&0===f||!i&&-a>f))&&(u=!0),u}),"handleScroll"),td=ie((function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]}),"getTouchXY"),nd=ie((function(e){return[e.deltaX,e.deltaY]}),"getDeltaXY"),rd=ie((function(e){return e&&"current"in e?e.current:e}),"extractRef"),id=ie((function(e,t){return e[0]===t[0]&&e[1]===t[1]}),"deltaCompare"),od=ie((function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")}),"generateStyle"),ad=0,ld=[];function sd(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),i=g.useState(ad++)[0],o=g.useState((function(){return Pc()}))[0],a=g.useRef(e);g.useEffect((function(){a.current=e}),[e]),g.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=Cs([e.lockRef.current],(e.shards||[]).map(rd),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=g.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=td(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-o[0],u="deltaY"in e?e.deltaY:l[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Kc(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=Kc(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=i),!i)return!0;var p=r.current||i;return ed(p,t,e,"h"===p?s:u,!0)}),[]),s=g.useCallback((function(e){var n=e;if(ld.length&&ld[ld.length-1]===o){var r="deltaY"in n?nd(n):td(n),i=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&id(e.delta,r)}))[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var s=(a.current.shards||[]).map(rd).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=g.useCallback((function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout((function(){t.current=t.current.filter((function(e){return e!==o}))}),1)}),[]),c=g.useCallback((function(e){n.current=td(e),r.current=void 0}),[]),d=g.useCallback((function(t){u(t.type,nd(t),t.target,l(t,e.lockRef.current))}),[]),f=g.useCallback((function(t){u(t.type,td(t),t.target,l(t,e.lockRef.current))}),[]);g.useEffect((function(){return ld.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,Hc),document.addEventListener("touchmove",s,Hc),document.addEventListener("touchstart",c,Hc),function(){ld=ld.filter((function(e){return e!==o})),document.removeEventListener("wheel",s,Hc),document.removeEventListener("touchmove",s,Hc),document.removeEventListener("touchstart",c,Hc)}}),[]);var p=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(o,{styles:od(i)}):null,p?g.createElement(zc,{gapMode:"margin"}):null)}ie(sd,"RemoveScrollSideCar");var ud=Is(Sc,sd),cd=g.forwardRef((function(e,t){return g.createElement(Tc,xs({},e,{ref:t,sideCar:ud}))}));cd.classNames=Tc.classNames;var dd=cd,fd={exports:{}};function pd(){}function hd(){}ie(pd,"emptyFunction"),ie(hd,"emptyFunctionWithReset"),hd.resetWarningCache=pd;var vd=ie((function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}ie(e,"shim"),e.isRequired=e,ie(t,"getShim");var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hd,resetWarningCache:pd};return n.PropTypes=n,n}),"factoryWithThrowingShims");fd.exports=vd();var md=fd.exports;function gd(){return gd=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(gd,"_extends$9"),ie(bd,"_objectWithoutPropertiesLoose$9");var yd=["as","isOpen"],xd=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],wd=["as","onClick","onKeyDown"],Cd=["allowPinchZoom","initialFocusRef","isOpen","onDismiss"];md.bool,md.bool,md.bool,md.func;var kd=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.isOpen,o=void 0===i||i,a=bd(e,yd);return(0,g.useEffect)((function(){o?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[o]),o?(0,g.createElement)(Jl,{"data-reach-dialog-wrapper":""},(0,g.createElement)(Sd,gd({ref:t,as:r},a))):null}),"DialogOverlay")),Sd=(0,g.forwardRef)(ie((function(e,t){var n=e.allowPinchZoom,r=e.as,i=void 0===r?"div":r,o=e.dangerouslyBypassFocusLock,a=void 0!==o&&o,l=e.dangerouslyBypassScrollLock,s=void 0!==l&&l,u=e.initialFocusRef,c=e.onClick,d=e.onDismiss,f=void 0===d?rs:d,p=e.onKeyDown,h=e.onMouseDown,v=e.unstable_lockFocusAcrossFrames,m=bd(e,xd),b=(0,g.useRef)(null),y=(0,g.useRef)(null),x=ss(y,t),w=(0,g.useCallback)((function(){u&&u.current&&u.current.focus()}),[u]);function C(e){b.current===e.target&&(e.stopPropagation(),f(e))}function k(e){"Escape"===e.key&&(e.stopPropagation(),f(e))}function S(e){b.current=e.target}return ie(C,"handleClick"),ie(k,"handleKeyDown"),ie(S,"handleMouseDown"),(0,g.useEffect)((function(){return y.current?_d(y.current):void 0}),[]),(0,g.createElement)(wc,{autoFocus:!0,returnFocus:!0,onActivation:w,disabled:a,crossFrame:null==v||v},(0,g.createElement)(dd,{allowPinchZoom:n,enabled:!s},(0,g.createElement)(i,gd({},m,{ref:x,"data-reach-dialog-overlay":"",onClick:us(c,C),onKeyDown:us(p,k),onMouseDown:us(h,S)}))))}),"DialogInner")),Ed=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.onClick;e.onKeyDown;var o=bd(e,wd);return(0,g.createElement)(r,gd({"aria-modal":"true",role:"dialog",tabIndex:-1},o,{ref:t,"data-reach-dialog-content":"",onClick:us(i,(function(e){e.stopPropagation()}))}))}),"DialogContent")),Td=(0,g.forwardRef)(ie((function(e,t){var n=e.allowPinchZoom,r=void 0!==n&&n,i=e.initialFocusRef,o=e.isOpen,a=e.onDismiss,l=void 0===a?rs:a,s=bd(e,Cd);return(0,g.createElement)(kd,{allowPinchZoom:r,initialFocusRef:i,isOpen:o,onDismiss:l},(0,g.createElement)(Ed,gd({ref:t},s)))}),"Dialog"));function _d(e){var t=[],n=[],r=Xl(e);return e?(Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var i,o;if(r!==(null==(i=e.parentNode)||null==(o=i.parentNode)?void 0:o.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(t.push(a),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}):rs}function Id(){return Id=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(_d,"createAriaHider"),ie(Id,"_extends$8"),ie(Rd,"_objectWithoutPropertiesLoose$8");var Nd=["as","style"],Od=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"span":n,i=e.style,o=void 0===i?{}:i,a=Rd(e,Nd);return(0,g.createElement)(r,Id({ref:t,style:Id({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},o)},a))}),"VisuallyHidden")),Md=Object.defineProperty,Pd=ie((function(e,t){return Md(e,"name",{value:t,configurable:!0})}),"__name$D")((function(e,t){return Object.entries(t).reduce((function(e,t){var n=(0,s.Z)(t,2),r=n[0],i=n[1];return e[r]=i,e}),e)}),"createComponentGroup"),Dd=(0,g.forwardRef)((function(e,t){return Xe(Td,re(ne({},e),{ref:t}))}));Dd.displayName="Dialog";var Ad=(0,g.forwardRef)((function(e,t){return et(Hl,re(ne({},e),{ref:t,type:"button",className:le("graphiql-dialog-close",e.className),children:[Xe(Od,{children:"Close dialog"}),Xe(ml,{})]}))}));Ad.displayName="Dialog.Close";var Zd=Pd(Dd,{Close:Ad}),jd=!1,Ld=0;function Fd(){return++Ld}function zd(e){var t;if("function"===typeof g.useId){var n=(0,g.useId)(e);return null!=e?e:n}var r=null!=e?e:jd?Fd():null,i=(0,g.useState)(r),o=i[0],a=i[1];return Gl((function(){null===o&&a(Fd())}),[]),(0,g.useEffect)((function(){!1===jd&&(jd=!0)}),[]),null!=(t=null!=e?e:o)?t:void 0}ie(Fd,"genId"),ie(zd,"useId");var Bd,Vd=["bottom","height","left","right","top","width"],Hd=ie((function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),Vd.some((function(n){return e[n]!==t[n]}))}),"rectChanged"),Ud=new Map,qd=ie((function e(){var t=[];Ud.forEach((function(e,n){var r=n.getBoundingClientRect();Hd(r,e.rect)&&(e.rect=r,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),Bd=window.requestAnimationFrame(e)}),"run");function Wd(e,t){return{observe:ie((function(){var n=0===Ud.size;Ud.has(e)?Ud.get(e).callbacks.push(t):Ud.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),n&&qd()}),"observe"),unobserve:ie((function(){var n=Ud.get(e);if(n){var r=n.callbacks.indexOf(t);r>=0&&n.callbacks.splice(r,1),n.callbacks.length||Ud.delete(e),Ud.size||cancelAnimationFrame(Bd)}}),"unobserve")}}function Gd(e,t,n){var r,i,o;es(t)?r=t:(r=null==(o=null==t?void 0:t.observe)||o,i=null==t?void 0:t.onChange);ts(n)&&(i=n);var a=(0,g.useState)(e.current),l=a[0],s=a[1],u=(0,g.useRef)(!1),c=(0,g.useRef)(!1),d=(0,g.useState)(null),f=d[0],p=d[1],h=(0,g.useRef)(i);return Gl((function(){h.current=i,e.current!==l&&s(e.current)})),Gl((function(){l&&!u.current&&(u.current=!0,p(l.getBoundingClientRect()))}),[l]),Gl((function(){if(r){var t=l;if(c.current||(c.current=!0,t=e.current),t){var n=Wd(t,(function(e){null==h.current||h.current(e),p(e)}));return n.observe(),function(){n.unobserve()}}}}),[r,l,e]),f}ie(Wd,"observeRect"),ie(Gd,"useRect");var Kd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],$d=Kd.join(","),Qd="undefined"===typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function Yd(e,t){t=t||{};var n,r,i,o=[],a=[],l=e.querySelectorAll($d);for(t.includeContainer&&Qd.call(e,$d)&&(l=Array.prototype.slice.apply(l)).unshift(e),n=0;n=0||(i[n]=e[n]);return i}ie(vf,"_extends$7"),ie(mf,"_objectWithoutPropertiesLoose$7");var gf=["unstable_skipInitialPortalRender"],bf=["as","targetRef","position","unstable_observableRefs"],yf=(0,g.forwardRef)(ie((function(e,t){var n=e.unstable_skipInitialPortalRender,r=mf(e,gf);return(0,g.createElement)(Jl,{unstable_skipInitialRender:n},(0,g.createElement)(xf,vf({ref:t},r)))}),"Popover")),xf=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.targetRef,o=e.position,a=void 0===o?kf:o,l=e.unstable_observableRefs,s=void 0===l?[]:l,u=mf(e,bf),c=(0,g.useRef)(null),d=Gd(c,{observe:!u.hidden}),f=Gd(i,{observe:!u.hidden}),p=ss(c,t);return Tf(i,c),(0,g.createElement)(r,vf({"data-reach-popover":"",ref:p},u,{style:vf({position:"absolute"},wf.apply(void 0,[a,f,d].concat(s)),u.style)}))}),"PopoverImpl"));function wf(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o=0||(i[n]=e[n]);return i}function If(){return If=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(Nf,"createDescendantContext"),ie(Of,"useDescendant"),ie(Mf,"useDescendantsInit"),ie(Pf,"useDescendants"),ie(Df,"DescendantProvider"),ie(Af,"useDescendantKeyDown"),ie(Zf,"isRightClick"),ie(jf,"createStableCallbackHook"),ie(Lf,"useStableCallback"),ie(Ff,"_objectWithoutPropertiesLoose$5");var zf,Bf,Vf=["children"];function Hf(e,t){return(0,g.createContext)(t)}function Uf(e,t){var n=(0,g.createContext)(t);function r(e){var t=e.children,r=Ff(e,Vf),i=(0,g.useMemo)((function(){return r}),Object.values(r));return(0,g.createElement)(n.Provider,{value:i},t)}function i(r){var i=(0,g.useContext)(n);if(i)return i;if(t)return t;throw Error(r+" must be rendered inside of a "+e+" component.")}return ie(r,"Provider"),ie(i,"useContext$1"),[r,i]}function qf(){for(var e=arguments.length,t=new Array(e),n=0;n0||v,matches:Yf(o)}}}}),"x");try{for(var p=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(d),h=p.next();!h.done;h=p.next()){var v=f(h.value);if("object"==typeof v)return v.value}}catch(m){i={error:m}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}return Xf(l,s)}};return n}ie(Kf,"e$1"),ie($f,"r$1"),ie(Qf,"i$1"),ie(Yf,"o"),ie(Jf,"a"),ie(Xf,"u"),ie(ep,"c$1");var tp=ie((function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))}),"s");function np(e){var t=e.initialState,n=zf.NotStarted,r=new Set,i={_machine:e,send:function(i){n===zf.Running&&(t=e.transition(t,i),tp(t,Jf(i)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(){return n=zf.Running,tp(t,Gf),i},stop:function(){return n=zf.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function rp(e){var t=(0,g.useRef)();return t.current||(t.current={v:e()}),t.current.v}function ip(){return ip=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(dp,"useMachine"),ie(fp,"unwrapRefs"),ie(pp,"useCreateMachine"),ie(hp,"_extends$4"),ie(vp,"_objectWithoutPropertiesLoose$4"),(lp=ap||(ap={})).Idle="IDLE",lp.Open="OPEN",lp.Navigating="NAVIGATING",lp.Dragging="DRAGGING",lp.Interacting="INTERACTING",(up=sp||(sp={})).ButtonMouseDown="BUTTON_MOUSE_DOWN",up.ButtonMouseUp="BUTTON_MOUSE_UP",up.Blur="BLUR",up.ClearNavSelection="CLEAR_NAV_SELECTION",up.ClearTypeahead="CLEAR_TYPEAHEAD",up.GetDerivedData="GET_DERIVED_DATA",up.KeyDownEscape="KEY_DOWN_ESCAPE",up.KeyDownEnter="KEY_DOWN_ENTER",up.KeyDownSpace="KEY_DOWN_SPACE",up.KeyDownNavigate="KEY_DOWN_NAVIGATE",up.KeyDownSearch="KEY_DOWN_SEARCH",up.KeyDownTab="KEY_DOWN_TAB",up.KeyDownShiftTab="KEY_DOWN_SHIFT_TAB",up.OptionTouchStart="OPTION_TOUCH_START",up.OptionMouseMove="OPTION_MOUSE_MOVE",up.OptionMouseEnter="OPTION_MOUSE_ENTER",up.OptionMouseDown="OPTION_MOUSE_DOWN",up.OptionMouseUp="OPTION_MOUSE_UP",up.OptionClick="OPTION_CLICK",up.ListMouseUp="LIST_MOUSE_UP",up.OptionPress="OPTION_PRESS",up.OutsideMouseDown="OUTSIDE_MOUSE_DOWN",up.OutsideMouseUp="OUTSIDE_MOUSE_UP",up.ValueChange="VALUE_CHANGE",up.PopoverPointerDown="POPOVER_POINTER_DOWN",up.PopoverPointerUp="POPOVER_POINTER_UP",up.UpdateAfterTypeahead="UPDATE_AFTER_TYPEAHEAD";var mp=$f({navigationValue:null}),gp=$f({typeaheadQuery:null}),bp=$f({value:ie((function(e,t){return t.value}),"value")}),yp=$f({navigationValue:ie((function(e,t){return t.value}),"navigationValue")}),xp=$f({navigationValue:ie((function(e){var t,n=Lp(e.value,e.options);return n&&!n.disabled?e.value:(null==(t=e.options.find((function(e){return!e.disabled})))?void 0:t.value)||null}),"navigationValue")});function wp(e,t){if(t.type===sp.Blur){var n=t.refs,r=n.list,i=n.popover,o=t.relatedTarget,a=Xl(i);return!((null==a?void 0:a.activeElement)===r||!i||i.contains(o||(null==a?void 0:a.activeElement)))}return!1}function Cp(e,t){if(t.type===sp.OutsideMouseDown||t.type===sp.OutsideMouseUp){var n=t.refs,r=n.button,i=n.popover,o=t.relatedTarget;return!(o===r||!r||r.contains(o)||!i||i.contains(o))}return!1}function kp(e,t){return!!e.options.find((function(t){return t.value===e.navigationValue}))}function Sp(e,t){var n=t.refs,r=n.popover,i=n.list,o=t.relatedTarget;return!(r&&o&&r.contains(o)&&o!==i)&&kp(e)}function Ep(e,t){requestAnimationFrame((function(){t.refs.list&&t.refs.list.focus()}))}function Tp(e,t){t.refs.button&&t.refs.button.focus()}function _p(e,t){return!t.disabled}function Ip(e,t){return t.type!==sp.OptionTouchStart||!t||!t.disabled}function Rp(e,t){return(!("disabled"in t)||!t.disabled)&&("value"in t?null!=t.value:null!=e.navigationValue)}function Np(e,t){t.callback&&t.callback(t.value)}function Op(e,t){if(t.type===sp.KeyDownEnter){var n=t.refs.hiddenInput;if(n&&n.form){var r=n.form.querySelector("button:not([type]),[type='submit']");r&&r.click()}}}ie(wp,"listboxLostFocus"),ie(Cp,"clickedOutsideOfListbox"),ie(kp,"optionIsActive"),ie(Sp,"shouldNavigate"),ie(Ep,"focusList"),ie(Tp,"focusButton"),ie(_p,"listboxIsNotDisabled"),ie(Ip,"optionIsNavigable"),ie(Rp,"optionIsSelectable"),ie(Np,"selectOption"),ie(Op,"submitForm");var Mp=$f({typeaheadQuery:ie((function(e,t){return(e.typeaheadQuery||"")+t.query}),"typeaheadQuery")}),Pp=$f({value:ie((function(e,t){if(t.type===sp.UpdateAfterTypeahead&&t.query){var n=jp(e.options,t.query);if(n&&!n.disabled)return t.callback&&t.callback(n.value),n.value}return e.value}),"value")}),Dp=$f({navigationValue:ie((function(e,t){if(t.type===sp.UpdateAfterTypeahead&&t.query){var n=jp(e.options,t.query);if(n&&!n.disabled)return n.value}return e.navigationValue}),"navigationValue")}),Ap=((op={})[sp.GetDerivedData]={actions:$f((function(e,t){return hp({},e,t.data)}))},op[sp.ValueChange]={actions:[bp,Np]},op),Zp=ie((function(e){var t,n,r,i,o,a,l=e.value;return{id:"listbox",initial:ap.Idle,context:{value:l,options:[],navigationValue:null,typeaheadQuery:null},states:(a={},a[ap.Idle]={on:hp({},Ap,(t={},t[sp.ButtonMouseDown]={target:ap.Open,actions:[xp],cond:_p},t[sp.KeyDownSpace]={target:ap.Navigating,actions:[xp,Ep],cond:_p},t[sp.KeyDownSearch]={target:ap.Idle,actions:Mp,cond:_p},t[sp.UpdateAfterTypeahead]={target:ap.Idle,actions:[Pp],cond:_p},t[sp.ClearTypeahead]={target:ap.Idle,actions:gp},t[sp.KeyDownNavigate]={target:ap.Navigating,actions:[xp,gp,Ep],cond:_p},t[sp.KeyDownEnter]={actions:[Op],cond:_p},t))},a[ap.Interacting]={entry:[mp],on:hp({},Ap,(n={},n[sp.ClearNavSelection]={actions:[mp,Ep]},n[sp.KeyDownEnter]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},n[sp.KeyDownSpace]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},n[sp.ButtonMouseDown]={target:ap.Idle,actions:[Tp]},n[sp.KeyDownEscape]={target:ap.Idle,actions:[Tp]},n[sp.OptionMouseDown]={target:ap.Dragging},n[sp.OutsideMouseDown]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Dragging,actions:gp,cond:kp}],n[sp.OutsideMouseUp]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Navigating,cond:kp},{target:ap.Interacting,actions:gp}],n[sp.KeyDownEnter]=ap.Interacting,n[sp.Blur]=[{target:ap.Idle,cond:wp,actions:gp},{target:ap.Navigating,cond:Sp},{target:ap.Interacting,actions:gp}],n[sp.OptionTouchStart]={target:ap.Navigating,actions:[yp,gp],cond:Ip},n[sp.OptionClick]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},n[sp.OptionPress]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},n[sp.OptionMouseEnter]={target:ap.Navigating,actions:[yp,gp],cond:Ip},n[sp.KeyDownNavigate]={target:ap.Navigating,actions:[yp,gp,Ep]},n))},a[ap.Open]={on:hp({},Ap,(r={},r[sp.ClearNavSelection]={actions:[mp]},r[sp.KeyDownEnter]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},r[sp.KeyDownSpace]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},r[sp.ButtonMouseDown]={target:ap.Idle,actions:[Tp]},r[sp.KeyDownEscape]={target:ap.Idle,actions:[Tp]},r[sp.OptionMouseDown]={target:ap.Dragging},r[sp.OutsideMouseDown]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Dragging,cond:kp},{target:ap.Interacting,actions:gp}],r[sp.OutsideMouseUp]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Navigating,cond:kp},{target:ap.Interacting,actions:gp}],r[sp.Blur]=[{target:ap.Idle,cond:wp,actions:gp},{target:ap.Navigating,cond:Sp},{target:ap.Interacting,actions:gp}],r[sp.ButtonMouseUp]={target:ap.Navigating,actions:[xp,Ep]},r[sp.ListMouseUp]={target:ap.Navigating,actions:[xp,Ep]},r[sp.OptionTouchStart]={target:ap.Navigating,actions:[yp,gp],cond:Ip},r[sp.OptionClick]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},r[sp.OptionPress]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},r[sp.KeyDownNavigate]={target:ap.Navigating,actions:[yp,gp,Ep]},r[sp.KeyDownSearch]={target:ap.Navigating,actions:Mp},r[sp.UpdateAfterTypeahead]={actions:[Dp]},r[sp.ClearTypeahead]={actions:gp},r[sp.OptionMouseMove]=[{target:ap.Dragging,actions:[yp],cond:Ip},{target:ap.Dragging}],r))},a[ap.Dragging]={on:hp({},Ap,(i={},i[sp.ClearNavSelection]={actions:[mp]},i[sp.KeyDownEnter]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},i[sp.KeyDownSpace]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},i[sp.ButtonMouseDown]={target:ap.Idle,actions:[Tp]},i[sp.KeyDownEscape]={target:ap.Idle,actions:[Tp]},i[sp.OptionMouseDown]={target:ap.Dragging},i[sp.OutsideMouseDown]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Navigating,cond:kp},{target:ap.Interacting,actions:gp}],i[sp.OutsideMouseUp]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Navigating,cond:kp,actions:Ep},{target:ap.Interacting,actions:[gp,Ep]}],i[sp.Blur]=[{target:ap.Idle,cond:wp,actions:gp},{target:ap.Navigating,cond:Sp},{target:ap.Interacting,actions:gp}],i[sp.ButtonMouseUp]={target:ap.Navigating,actions:[xp,Ep]},i[sp.OptionTouchStart]={target:ap.Navigating,actions:[yp,gp],cond:Ip},i[sp.OptionClick]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},i[sp.OptionPress]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},i[sp.OptionMouseEnter]={target:ap.Dragging,actions:[yp,gp],cond:Ip},i[sp.KeyDownNavigate]={target:ap.Navigating,actions:[yp,gp,Ep]},i[sp.KeyDownSearch]={target:ap.Navigating,actions:Mp},i[sp.UpdateAfterTypeahead]={actions:[Dp]},i[sp.ClearTypeahead]={actions:gp},i[sp.OptionMouseMove]=[{target:ap.Navigating,actions:[yp],cond:Ip},{target:ap.Navigating}],i[sp.OptionMouseUp]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},i))},a[ap.Navigating]={on:hp({},Ap,(o={},o[sp.ClearNavSelection]={actions:[mp,Ep]},o[sp.KeyDownEnter]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},o[sp.KeyDownSpace]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},o[sp.ButtonMouseDown]={target:ap.Idle,actions:[Tp]},o[sp.KeyDownEscape]={target:ap.Idle,actions:[Tp]},o[sp.OptionMouseDown]={target:ap.Dragging},o[sp.OutsideMouseDown]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Navigating,cond:kp},{target:ap.Interacting,actions:gp}],o[sp.OutsideMouseUp]=[{target:ap.Idle,cond:Cp,actions:gp},{target:ap.Navigating,cond:kp},{target:ap.Interacting,actions:gp}],o[sp.Blur]=[{target:ap.Idle,cond:wp,actions:gp},{target:ap.Navigating,cond:Sp},{target:ap.Interacting,actions:gp}],o[sp.ButtonMouseUp]={target:ap.Navigating,actions:[xp,Ep]},o[sp.OptionTouchStart]={target:ap.Navigating,actions:[yp,gp],cond:Ip},o[sp.OptionClick]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},o[sp.OptionPress]={target:ap.Idle,actions:[bp,gp,Tp,Np],cond:Rp},o[sp.OptionMouseEnter]={target:ap.Navigating,actions:[yp,gp],cond:Ip},o[sp.KeyDownNavigate]={target:ap.Navigating,actions:[yp,gp,Ep]},o[sp.KeyDownSearch]={target:ap.Navigating,actions:Mp},o[sp.UpdateAfterTypeahead]={actions:[Dp]},o[sp.ClearTypeahead]={actions:gp},o[sp.OptionMouseMove]=[{target:ap.Navigating,actions:[yp],cond:Ip},{target:ap.Navigating}],o))},a)}}),"createMachineDefinition");function jp(e,t){return void 0===t&&(t=""),t&&e.find((function(e){return!e.disabled&&e.label&&e.label.toLowerCase().startsWith(t.toLowerCase())}))||null}function Lp(e,t){return e?t.find((function(t){return t.value===e})):void 0}ie(jp,"findOptionFromTypeahead"),ie(Lp,"findOptionFromValue");var Fp=["as","aria-labelledby","aria-label","children","defaultValue","disabled","form","name","onChange","required","value","__componentName"],zp=["arrow","button","children","portal"],Bp=["aria-label","arrow","as","children","onKeyDown","onMouseDown","onMouseUp"],Vp=["as","children"],Hp=["as","position","onBlur","onKeyDown","onMouseUp","portal","unstable_observableRefs"],Up=["as"],qp=["as","children","disabled","index","label","onClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseUp","onTouchStart","value"],Wp=Nf(),Gp=Hf(0,{}),Kp=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e["aria-labelledby"],o=e["aria-label"],a=e.children,l=e.defaultValue,s=e.disabled,u=void 0!==s&&s,c=e.form,d=e.name,f=e.onChange,p=e.required,h=e.value;e.__componentName;var v=vp(e,Fp),m=(0,g.useRef)(null!=h),b=Mf(),y=b[0],x=b[1],w=(0,g.useRef)(null),C=(0,g.useRef)(null),k=(0,g.useRef)(null),S=(0,g.useRef)(null),E=(0,g.useRef)(null),T=(0,g.useRef)(null),_=(0,g.useRef)(null),I=dp(pp(Zp({value:(m.current?h:l)||null})),{button:w,hiddenInput:C,highlightedOption:k,input:S,list:E,popover:T,selectedOption:_},false),R=I[0],N=I[1];function O(e){e!==R.context.value&&(null==f||f(e))}ie(O,"handleValueChange");var M=zd(v.id),P=v.id||qf("listbox-input",M),D=ss(S,t),A=(0,g.useMemo)((function(){var e=y.find((function(e){return e.value===R.context.value}));return e?e.label:null}),[y,R.context.value]),Z=ih(R.value),j={ariaLabel:o,ariaLabelledBy:i,buttonRef:w,disabled:u,highlightedOptionRef:k,isExpanded:Z,listboxId:P,listboxValueLabel:A,listRef:E,onValueChange:O,popoverRef:T,selectedOptionRef:_,send:N,state:R.value,stateData:R.context},L=(0,g.useRef)(!1);if(!m.current&&null==l&&!L.current&&y.length){L.current=!0;var F=y.find((function(e){return!e.disabled}));F&&F.value&&N({type:sp.ValueChange,value:F.value})}return sh(h,R.context.value,(function(){N({type:sp.ValueChange,value:h})})),Gl((function(){N({type:sp.GetDerivedData,data:{options:y}})}),[y,N]),(0,g.useEffect)((function(){function e(e){var t=e.target,n=e.relatedTarget;lh(T.current,t)||N({type:sp.OutsideMouseDown,relatedTarget:n||t})}return ie(e,"handleMouseDown"),Z&&window.addEventListener("mousedown",e),function(){window.removeEventListener("mousedown",e)}}),[N,Z]),(0,g.useEffect)((function(){function e(e){var t=e.target,n=e.relatedTarget;lh(T.current,t)||N({type:sp.OutsideMouseUp,relatedTarget:n||t})}return ie(e,"handleMouseUp"),Z&&window.addEventListener("mouseup",e),function(){window.removeEventListener("mouseup",e)}}),[N,Z]),(0,g.createElement)(r,hp({},v,{ref:D,"data-reach-listbox-input":"","data-state":Z?"expanded":"closed","data-value":R.context.value,id:P}),(0,g.createElement)(Gp.Provider,{value:j},(0,g.createElement)(Df,{context:Wp,items:y,set:x},ts(a)?a({id:P,isExpanded:Z,value:R.context.value,selectedOptionRef:_,highlightedOptionRef:k,valueLabel:A,expanded:Z}):a,(c||d||p)&&(0,g.createElement)("input",{ref:C,"data-reach-listbox-hidden-input":"",disabled:u,form:c,name:d,readOnly:!0,required:p,tabIndex:-1,type:"hidden",value:R.context.value||""}))))}),"ListboxInput")),$p=(0,g.forwardRef)(ie((function(e,t){var n=e.arrow,r=void 0===n?"\u25bc":n,i=e.button,o=e.children,a=e.portal,l=void 0===a||a,s=vp(e,zp);return(0,g.createElement)(Kp,hp({},s,{__componentName:"Listbox",ref:t}),(function(e){var t=e.value,n=e.valueLabel;return(0,g.createElement)(g.Fragment,null,(0,g.createElement)(Yp,{arrow:r,children:i?ts(i)?i({value:t,label:n}):i:void 0}),(0,g.createElement)(th,{portal:l},(0,g.createElement)(nh,null,o)))}))}),"Listbox")),Qp=(0,g.forwardRef)(ie((function(e,t){var n=e["aria-label"],r=e.arrow,i=void 0!==r&&r,o=e.as,a=void 0===o?"span":o,l=e.children,s=e.onKeyDown,u=e.onMouseDown,c=e.onMouseUp,d=vp(e,Bp),f=(0,g.useContext)(Gp),p=f.buttonRef,h=f.send,v=f.ariaLabelledBy,m=f.disabled,b=f.isExpanded,y=f.listboxId,x=f.stateData,w=f.listboxValueLabel,C=x.value,k=ss(p,t),S=oh();function E(e){Zf(e.nativeEvent)||(e.preventDefault(),e.stopPropagation(),h({type:sp.ButtonMouseDown,disabled:m}))}function T(e){Zf(e.nativeEvent)||(e.preventDefault(),e.stopPropagation(),h({type:sp.ButtonMouseUp}))}ie(E,"handleMouseDown"),ie(T,"handleMouseUp");var _=qf("button",y),I=(0,g.useMemo)((function(){return l?ts(l)?l({isExpanded:b,label:w,value:C,expanded:b}):l:w}),[l,w,b,C]);return(0,g.createElement)(a,hp({"aria-disabled":m||void 0,"aria-expanded":b||void 0,"aria-haspopup":"listbox","aria-labelledby":n?void 0:[v,_].filter(Boolean).join(" "),"aria-label":n,role:"button",tabIndex:m?-1:0},d,{ref:k,"data-reach-listbox-button":"",id:_,onKeyDown:us(s,S),onMouseDown:us(u,E),onMouseUp:us(c,T)}),I,i&&(0,g.createElement)(Xp,null,es(i)?null:i))}),"ListboxButton")),Yp=(0,g.memo)(Qp),Jp=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"span":n,i=e.children,o=vp(e,Vp),a=(0,g.useContext)(Gp).isExpanded;return(0,g.createElement)(r,hp({"aria-hidden":!0},o,{ref:t,"data-reach-listbox-arrow":"","data-expanded":a?"":void 0}),ts(i)?i({isExpanded:a,expanded:a}):i||"\u25bc")}),"ListboxArrow")),Xp=(0,g.memo)(Jp),eh=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.position,o=void 0===i?Sf:i,a=e.onBlur,l=e.onKeyDown,s=e.onMouseUp,u=e.portal,c=void 0===u||u,d=e.unstable_observableRefs,f=vp(e,Hp),p=(0,g.useContext)(Gp),h=p.isExpanded,v=p.buttonRef,m=p.popoverRef,b=p.send,y=ss(m,t),x=oh();function w(){b({type:sp.ListMouseUp})}ie(w,"handleMouseUp");var C=hp({hidden:!h,tabIndex:-1},f,{ref:y,"data-reach-listbox-popover":"",onMouseUp:us(s,w),onBlur:us(a,k),onKeyDown:us(l,x)});function k(e){var t=e.nativeEvent;requestAnimationFrame((function(){b({type:sp.Blur,relatedTarget:t.relatedTarget||t.target})}))}return ie(k,"handleBlur"),c?(0,g.createElement)(yf,hp({},C,{as:r,targetRef:v,position:o,unstable_observableRefs:d,unstable_skipInitialPortalRender:!0})):(0,g.createElement)(r,C)}),"ListboxPopover")),th=(0,g.memo)(eh),nh=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"ul":n,i=vp(e,Up),o=(0,g.useContext)(Gp),a=o.listRef,l=o.ariaLabel,s=o.ariaLabelledBy,u=o.isExpanded,c=o.listboxId,d=o.stateData,f=d.value,p=d.navigationValue,h=ss(t,a);return(0,g.createElement)(r,hp({"aria-activedescendant":ah(u?p:f),"aria-labelledby":l?void 0:s,"aria-label":l,role:"listbox",tabIndex:-1},i,{ref:h,"data-reach-listbox-list":"",id:qf("listbox",c)}))}),"ListboxList")),rh=(0,g.forwardRef)(ie((function(e,t){var n=e.as,r=void 0===n?"li":n,i=e.children,o=e.disabled,a=e.index,l=e.label,s=e.onClick,u=e.onMouseDown,c=e.onMouseEnter,d=e.onMouseLeave,f=e.onMouseMove,p=e.onMouseUp,h=e.onTouchStart,v=e.value,m=vp(e,qp),b=(0,g.useContext)(Gp),y=b.highlightedOptionRef,x=b.selectedOptionRef,w=b.send,C=b.isExpanded,k=b.onValueChange,S=b.state,E=b.stateData,T=E.value,_=E.navigationValue,I=(0,g.useState)(l),R=I[0],N=I[1],O=l||R||"",M=Wf((0,g.useRef)(null),null),P=M[0],D=M[1];Of((0,g.useMemo)((function(){return{element:P,value:v,label:O,disabled:!!o}}),[o,P,O,v]),Wp,a);var A=(0,g.useCallback)((function(e){!l&&e&&N((function(t){return e.textContent&&t!==e.textContent?e.textContent:t||""}))}),[l]),Z=!!_&&_===v,j=T===v,L=ss(A,t,D,j?x:null,Z?y:null);function F(){w({type:sp.OptionMouseEnter,value:v,disabled:!!o})}function z(){w({type:sp.OptionTouchStart,value:v,disabled:!!o})}function B(){w({type:sp.ClearNavSelection})}function V(e){Zf(e.nativeEvent)||(e.preventDefault(),w({type:sp.OptionMouseDown}))}function H(e){Zf(e.nativeEvent)||w({type:sp.OptionMouseUp,value:v,callback:k,disabled:!!o})}function U(e){Zf(e.nativeEvent)||w({type:sp.OptionClick,value:v,callback:k,disabled:!!o})}function q(){S!==ap.Open&&_===v||w({type:sp.OptionMouseMove,value:v,disabled:!!o})}return ie(F,"handleMouseEnter"),ie(z,"handleTouchStart"),ie(B,"handleMouseLeave"),ie(V,"handleMouseDown"),ie(H,"handleMouseUp"),ie(U,"handleClick"),ie(q,"handleMouseMove"),(0,g.createElement)(r,hp({"aria-selected":(C?Z:j)||void 0,"aria-disabled":o||void 0,role:"option"},m,{ref:L,id:ah(v),"data-reach-listbox-option":"","data-current-nav":Z?"":void 0,"data-current-selected":j?"":void 0,"data-label":O,"data-value":v,onClick:us(s,U),onMouseDown:us(u,V),onMouseEnter:us(c,F),onMouseLeave:us(d,B),onMouseMove:us(f,q),onMouseUp:us(p,H),onTouchStart:us(h,z)}),i)}),"ListboxOption"));function ih(e){return[ap.Navigating,ap.Open,ap.Dragging,ap.Interacting].includes(e)}function oh(){var e=(0,g.useContext)(Gp),t=e.send,n=e.disabled,r=e.onValueChange,i=e.stateData,o=i.navigationValue,a=i.typeaheadQuery,l=Pf(Wp),s=Lf(r);(0,g.useEffect)((function(){a&&t({type:sp.UpdateAfterTypeahead,query:a,callback:s});var e=window.setTimeout((function(){null!=a&&t({type:sp.ClearTypeahead})}),1e3);return function(){window.clearTimeout(e)}}),[s,t,a]);var u=l.findIndex((function(e){return e.value===o}));return us((function(e){var i=e.key,a=ns(i)&&1===i.length,s=l.find((function(e){return e.value===o}));switch(i){case"Enter":return void t({type:sp.KeyDownEnter,value:o,callback:r,disabled:!!(null!=s&&s.disabled||n)});case" ":return e.preventDefault(),void t({type:sp.KeyDownSpace,value:o,callback:r,disabled:!!(null!=s&&s.disabled||n)});case"Escape":return void t({type:sp.KeyDownEscape});case"Tab":var u=e.shiftKey?sp.KeyDownShiftTab:sp.KeyDownTab;return void t({type:u});default:return void(a&&t({type:sp.KeyDownSearch,query:i,disabled:n}))}}),Af(Wp,{currentIndex:u,orientation:"vertical",key:"index",rotate:!0,filter:ie((function(e){return!e.disabled}),"filter"),callback:ie((function(e){t({type:sp.KeyDownNavigate,value:l[e].value,disabled:n})}),"callback")}))}function ah(e){var t=(0,g.useContext)(Gp).listboxId;return e?qf("option-"+e,t):void 0}function lh(e,t){return!(!e||!e.contains(t))}function sh(e,t,n){(0,g.useRef)(null!=e).current&&e!==t&&n()}function uh(e){var t=(0,g.useRef)(null);return(0,g.useEffect)((function(){t.current=e}),[e]),t.current}function ch(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function dh(){return dh=Object.assign||function(e){for(var t=1;t8||n>8)&&(C.current=!0)}L||null==j||f||y({type:Ch,payload:{index:j,dropdownRef:x}})}function G(){C.current=!0,L||null==j||f||y({type:Ch,payload:{index:j}})}function K(e){Zf(e.nativeEvent)||(C.current?r?P.current?P.current=!1:I.current&&I.current.click():f||z():C.current=!0)}return k.current[j]=d,ie(z,"select"),ie(B,"handleClick"),ie(V,"handleDragStart"),ie(H,"handleMouseDown"),ie(U,"handleMouseEnter"),ie(q,"handleMouseLeave"),ie(W,"handleMouseMove"),ie(G,"handleFocus"),ie(K,"handleMouseUp"),(0,g.useEffect)((function(){if(_){var e=window.setTimeout((function(){C.current=!0}),400);return function(){window.clearTimeout(e)}}C.current=!1}),[_,C]),(0,g.useEffect)((function(){var e=Xl(I.current);return e.addEventListener("mouseup",t),function(){e.removeEventListener("mouseup",t)};function t(){P.current=!1}}),[]),{data:{disabled:f},props:dh({id:Ah(j),tabIndex:-1},m,{ref:F,"data-disabled":f?"":void 0,"data-selected":L?"":void 0,"data-valuetext":N,onClick:us(i,B),onDragStart:us(o,V),onMouseDown:us(a,H),onMouseEnter:us(l,U),onMouseLeave:us(s,q),onMouseMove:us(u,W),onFocus:us(p,G),onMouseUp:us(c,K)})}}function Mh(e){e.id;var t=e.onKeyDown,n=e.ref,r=ch(e,hh),i=_h("useDropdownItems"),o=i.dispatch,a=i.triggerRef,l=i.dropdownRef,s=i.selectCallbacks,u=i.dropdownId,c=i.state,d=c.isExpanded,f=c.triggerId,p=c.selectionIndex,h=c.typeaheadQuery,v=Fh(),m=ss(l,n);(0,g.useEffect)((function(){var e=Dh(v,h);h&&null!=e&&o({type:Ch,payload:{index:e,dropdownRef:l}});var t=window.setTimeout((function(){return h&&o({type:wh,payload:""})}),1e3);return function(){return window.clearTimeout(t)}}),[o,v,h,l]);var b=uh(v.length),y=uh(v[p]),x=uh(p);(0,g.useEffect)((function(){p>v.length-1?o({type:Ch,payload:{index:v.length-1,dropdownRef:l}}):b!==v.length&&p>-1&&y&&x===p&&v[p]!==y&&o({type:Ch,payload:{index:v.findIndex((function(e){return e.key===(null==y?void 0:y.key)})),dropdownRef:l}})}),[l,o,v,b,y,x,p]);var w=us(ie((function(e){var t=e.key;if(d)switch(t){case"Enter":case" ":var n=v.find((function(e){return e.index===p}));n&&!n.disabled&&(e.preventDefault(),n.isLink&&n.element?n.element.click():(Zh(a.current),s.current[n.index]&&s.current[n.index](),o({type:gh})));break;case"Escape":Zh(a.current),o({type:bh});break;case"Tab":e.preventDefault();break;default:if(ns(t)&&1===t.length){var r=h+t.toLowerCase();o({type:wh,payload:r})}}}),"handleKeyDown"),Af(Sh,{currentIndex:p,orientation:"vertical",rotate:!1,filter:ie((function(e){return!e.disabled}),"filter"),callback:ie((function(e){o({type:Ch,payload:{index:e,dropdownRef:l}})}),"callback"),key:"index"}));return{data:{activeDescendant:Ah(p)||void 0,triggerId:f},props:dh({tabIndex:-1},r,{ref:m,id:u,onKeyDown:us(t,w)})}}function Ph(e){var t=e.onBlur,n=e.portal,r=void 0===n||n,i=e.position,o=e.ref,a=ch(e,vh),l=_h("useDropdownPopover"),s=l.triggerRef,u=l.triggerClickedRef,c=l.dispatch,d=l.dropdownRef,f=l.popoverRef,p=l.state.isExpanded,h=ss(f,o);return(0,g.useEffect)((function(){if(p){var e=Xl(f.current);return ie(t,"listener"),e.addEventListener("mousedown",t),function(){e.removeEventListener("mousedown",t)}}function t(e){u.current?u.current=!1:jh(f.current,e.target)||c({type:bh})}}),[u,s,c,d,f,p]),{data:{portal:r,position:i,targetRef:s,isExpanded:p},props:dh({ref:h,hidden:!p,onBlur:us(t,(function(e){e.currentTarget.contains(e.relatedTarget)||c({type:bh})}))},a)}}function Dh(e,t){if(void 0===t&&(t=""),!t)return null;var n=e.find((function(e){var n,r,i;return!e.disabled&&(null==(n=e.element)||null==(r=n.dataset)||null==(i=r.valuetext)?void 0:i.toLowerCase().startsWith(t))}));return n?e.indexOf(n):null}function Ah(e){var t=_h("useItemId").dropdownId;return null!=e&&e>-1?qf("option-"+e,t):void 0}function Zh(e){e&&e.focus()}function jh(e,t){return!(!e||!e.contains(t))}function Lh(e,t){switch(void 0===t&&(t={}),t.type){case gh:case bh:return dh({},e,{isExpanded:!1,selectionIndex:-1});case"OPEN_MENU_AT_FIRST_ITEM":return dh({},e,{isExpanded:!0,selectionIndex:0});case yh:return dh({},e,{isExpanded:!0,selectionIndex:t.payload.index});case xh:return dh({},e,{isExpanded:!0,selectionIndex:-1});case Ch:var n=t.payload.dropdownRef,r=void 0===n?{current:null}:n;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){var i=Xl(r.current);r.current!==(null==i?void 0:i.activeElement)&&r.current.focus()}return dh({},e,{selectionIndex:null!=t.payload.max?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)})}return e;case mh:return dh({},e,{selectionIndex:-1});case kh:return dh({},e,{triggerId:t.payload});case wh:return"undefined"!==typeof t.payload?dh({},e,{typeaheadQuery:t.payload}):e;default:return e}}function Fh(){return Pf(Sh)}ie(Nh,"useDropdownTrigger"),ie(Oh,"useDropdownItem"),ie(Mh,"useDropdownItems"),ie(Ph,"useDropdownPopover"),ie(Dh,"findItemFromTypeahead"),ie(Ah,"useItemId"),ie(Zh,"focus"),ie(jh,"popoverContainsEventTarget"),ie(Lh,"reducer$1"),ie(Fh,"useDropdownDescendants");var zh={exports:{}},Bh={},Vh="function"===typeof Symbol&&Symbol.for,Hh=Vh?Symbol.for("react.element"):60103,Uh=Vh?Symbol.for("react.portal"):60106,qh=Vh?Symbol.for("react.fragment"):60107,Wh=Vh?Symbol.for("react.strict_mode"):60108,Gh=Vh?Symbol.for("react.profiler"):60114,Kh=Vh?Symbol.for("react.provider"):60109,$h=Vh?Symbol.for("react.context"):60110,Qh=Vh?Symbol.for("react.async_mode"):60111,Yh=Vh?Symbol.for("react.concurrent_mode"):60111,Jh=Vh?Symbol.for("react.forward_ref"):60112,Xh=Vh?Symbol.for("react.suspense"):60113,ev=Vh?Symbol.for("react.suspense_list"):60120,tv=Vh?Symbol.for("react.memo"):60115,nv=Vh?Symbol.for("react.lazy"):60116,rv=Vh?Symbol.for("react.block"):60121,iv=Vh?Symbol.for("react.fundamental"):60117,ov=Vh?Symbol.for("react.responder"):60118,av=Vh?Symbol.for("react.scope"):60119;function lv(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hh:switch(e=e.type){case Qh:case Yh:case qh:case Gh:case Wh:case Xh:return e;default:switch(e=e&&e.$$typeof){case $h:case Jh:case nv:case tv:case Kh:return e;default:return t}}case Uh:return t}}}function sv(e){return lv(e)===Yh}function uv(){return uv=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(lv,"z"),ie(sv,"A"),Bh.AsyncMode=Qh,Bh.ConcurrentMode=Yh,Bh.ContextConsumer=$h,Bh.ContextProvider=Kh,Bh.Element=Hh,Bh.ForwardRef=Jh,Bh.Fragment=qh,Bh.Lazy=nv,Bh.Memo=tv,Bh.Portal=Uh,Bh.Profiler=Gh,Bh.StrictMode=Wh,Bh.Suspense=Xh,Bh.isAsyncMode=function(e){return sv(e)||lv(e)===Qh},Bh.isConcurrentMode=sv,Bh.isContextConsumer=function(e){return lv(e)===$h},Bh.isContextProvider=function(e){return lv(e)===Kh},Bh.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===Hh},Bh.isForwardRef=function(e){return lv(e)===Jh},Bh.isFragment=function(e){return lv(e)===qh},Bh.isLazy=function(e){return lv(e)===nv},Bh.isMemo=function(e){return lv(e)===tv},Bh.isPortal=function(e){return lv(e)===Uh},Bh.isProfiler=function(e){return lv(e)===Gh},Bh.isStrictMode=function(e){return lv(e)===Wh},Bh.isSuspense=function(e){return lv(e)===Xh},Bh.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===qh||e===Yh||e===Gh||e===Wh||e===Xh||e===ev||"object"===typeof e&&null!==e&&(e.$$typeof===nv||e.$$typeof===tv||e.$$typeof===Kh||e.$$typeof===$h||e.$$typeof===Jh||e.$$typeof===iv||e.$$typeof===ov||e.$$typeof===av||e.$$typeof===rv)},Bh.typeOf=lv,zh.exports=Bh,ie(uv,"_extends$2"),ie(cv,"_objectWithoutPropertiesLoose$2");var dv=["as","id","children"],fv=["as"],pv=["as"],hv=["as"],vv=["as"],mv=["portal"],gv=["as"],bv=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?g.Fragment:n,i=e.id,o=e.children,a=cv(e,dv),l=(0,g.useMemo)((function(){try{return zh.exports.isFragment((0,g.createElement)(r,null))}catch(TE){return!1}}),[r])?{}:uv({ref:t,id:i,"data-reach-menu":""},a);return(0,g.createElement)(r,l,(0,g.createElement)(Rh,{id:i,children:o}))})),yv=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"button":n,i=Nh(uv({},cv(e,fv),{ref:t})),o=i.data,a=o.isExpanded,l=o.controls,s=i.props;return(0,g.createElement)(r,uv({"aria-expanded":!!a||void 0,"aria-haspopup":!0,"aria-controls":l},s,{"data-reach-menu-button":""}))})),xv=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=Oh(uv({},cv(e,pv),{ref:t})),o=i.data.disabled,a=i.props;return(0,g.createElement)(r,uv({role:"menuitem"},a,{"aria-disabled":o||void 0,"data-reach-menu-item":""}))})),wv=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=cv(e,hv);return(0,g.createElement)(xv,uv({},i,{ref:t,as:r}))})),Cv=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=Mh(uv({},cv(e,vv),{ref:t})),o=i.data,a=o.activeDescendant,l=o.triggerId,s=i.props;return(0,g.createElement)(r,uv({"aria-activedescendant":a,"aria-labelledby":l||void 0,role:"menu"},s,{"data-reach-menu-items":""}))})),kv=(0,g.forwardRef)((function(e,t){var n=e.portal,r=void 0===n||n,i=cv(e,mv);return(0,g.createElement)(Sv,{portal:r},(0,g.createElement)(Cv,uv({},i,{ref:t,"data-reach-menu-list":""})))})),Sv=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=Ph(uv({},cv(e,gv),{ref:t})),o=i.data,a=o.portal,l=o.targetRef,s=o.position,u=i.props,c={"data-reach-menu-popover":""};return a?(0,g.createElement)(yf,uv({},u,c,{as:r,targetRef:l,position:s,unstable_skipInitialPortalRender:!0})):(0,g.createElement)(r,uv({},u,c))})),Ev=(0,g.forwardRef)((function(e,t){return Xe(yv,re(ne({},e),{ref:t,className:le("graphiql-un-styled",e.className)}))}));Ev.displayName="MenuButton";var Tv=Pd(bv,{Button:Ev,Item:wv,List:kv}),_v=(0,g.forwardRef)((function(e,t){return Xe(Yp,re(ne({},e),{ref:t,className:le("graphiql-un-styled",e.className)}))}));_v.displayName="ListboxButton";var Iv=Pd($p,{Button:_v,Input:Kp,Option:rh,Popover:th}),Rv={},Nv={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"},Ov=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Mv={},Pv={};function Dv(e){var t,n,r=Pv[e];if(r)return r;for(r=Pv[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=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1=56320&&a<=57343){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD"}else s+=encodeURIComponent(e[r]);return s}ie(Dv,"getEncodeCache"),ie(Av,"encode$1"),Av.defaultChars=";/?:@&=+$,-_.!~*'()#",Av.componentChars="-_.!~*'()";var Zv=Av,jv={};function Lv(e){var t,n,r=jv[e];if(r)return r;for(r=jv[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&s<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(s),t+=6):240===(248&i)&&t+91114111?u+="\ufffd\ufffd\ufffd\ufffd":(s-=65536,u+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):u+="\ufffd";return u}))}ie(Lv,"getDecodeCache"),ie(Fv,"decode$1"),Fv.defaultChars=";/?:@&=+$,#",Fv.componentChars="";var zv=Fv,Bv=ie((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 Vv(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}ie(Vv,"Url");var Hv=/^([a-z0-9.+-]+:)/i,Uv=/:[0-9]*$/,qv=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Wv=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Gv=["'"].concat(Wv),Kv=["%","/","?",";","#"].concat(Gv),$v=["/","?","#"],Qv=/^[+a-z0-9A-Z_-]{0,63}$/,Yv=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jv={javascript:!0,"javascript:":!0},Xv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function em(e,t){if(e&&e instanceof Vv)return e;var n=new Vv;return n.parse(e,t),n}ie(em,"urlParse"),Vv.prototype.parse=function(e,t){var n,r,i,o,a,l=e;if(l=l.trim(),!t&&1===e.split("#").length){var s=qv.exec(l);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var u=Hv.exec(l);if(u&&(i=(u=u[0]).toLowerCase(),this.protocol=u,l=l.substr(u.length)),(t||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===l.substr(0,2))||u&&Jv[u]||(l=l.substr(2),this.slashes=!0)),!Jv[u]&&(a||u&&!Xv[u])){var c,d,f=-1;for(n=0;n<$v.length;n++)-1!==(o=l.indexOf($v[n]))&&(-1===f||o127?g+="x":g+=m[b];if(!g.match(Qv)){var x=v.slice(0,n),w=v.slice(n+1),C=m.match(Yv);C&&(x.push(C[1]),w.unshift(C[2])),w.length&&(l=w.join(".")+l),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=l.indexOf("#");-1!==k&&(this.hash=l.substr(k),l=l.slice(0,k));var S=l.indexOf("?");return-1!==S&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),Xv[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Vv.prototype.parseHost=function(e){var t=Uv.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var tm=em;Mv.encode=Zv,Mv.decode=zv,Mv.format=Bv,Mv.parse=tm;var nm={},rm=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,im=/[\0-\x1F\x7F-\x9F]/,om=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;nm.Any=rm,nm.Cc=im,nm.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]/,nm.P=Ov,nm.Z=om,function(e){function t(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===t(e)}ie(t,"_class"),ie(n,"isString");var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){var t=Array.prototype.slice.call(arguments,1);return t.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 l(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 s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}ie(i,"has"),ie(o,"assign"),ie(a,"arrayReplaceAt"),ie(l,"isValidEntityCode"),ie(s,"fromCodePoint");var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(u.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,f=Nv;function p(e,t){var n=0;return i(f,t)?f[t]:35===t.charCodeAt(0)&&d.test(t)&&l(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(n):e}function h(e){return e.indexOf("\\")<0?e:e.replace(u,"$1")}function v(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,n){return t||p(e,n)}))}ie(p,"replaceEntityPattern"),ie(h,"unescapeMd"),ie(v,"unescapeAll");var m=/[&<>"]/,g=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function y(e){return b[e]}function x(e){return m.test(e)?e.replace(g,y):e}ie(y,"replaceUnsafeChar"),ie(x,"escapeHtml");var w=/[.?*+^$[\]\\(){}|-]/g;function C(e){return e.replace(w,"\\$&")}function k(e){switch(e){case 9:case 32:return!0}return!1}function S(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}ie(C,"escapeRE"),ie(k,"isSpace"),ie(S,"isWhiteSpace");var E=Ov;function T(e){return E.test(e)}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}}function I(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}ie(T,"isPunctChar"),ie(_,"isMdAsciiPunct"),ie(I,"normalizeReference"),e.lib={},e.lib.mdurl=Mv,e.lib.ucmicro=nm,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=h,e.unescapeAll=v,e.isValidEntityCode=l,e.fromCodePoint=s,e.escapeHtml=x,e.arrayReplaceAt=a,e.isSpace=k,e.isWhiteSpace=S,e.isMdAsciiPunct=_,e.isPunctChar=T,e.escapeRE=C,e.normalizeReference=I}(Rv);var am={},lm=ie((function(e,t,n){var r,i,o,a,l=-1,s=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=sm(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a}),"parseLinkDestination"),cm=Rv.unescapeAll,dm=ie((function(e,t,n){var r,i,o=0,a=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"+hm(e[t].content)+""},vm.code_block=function(e,t,n,r,i){var o=e[t];return""+hm(e[t].content)+"\n"},vm.fence=function(e,t,n,r,i){var o,a,l,s,u,c=e[t],d=c.info?pm(c.info).trim():"",f="",p="";return d&&(f=(l=d.split(/(\s+)/g))[0],p=l.slice(2).join("")),0===(o=n.highlight&&n.highlight(c.content,f,p)||hm(c.content)).indexOf(""+o+"\n"):"
"+o+"
\n"},vm.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},vm.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},vm.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},vm.text=function(e,t){return hm(e[t].content)},vm.html_block=function(e,t){return e[t].content},vm.html_inline=function(e,t){return e[t].content},ie(mm,"Renderer$1"),mm.prototype.renderAttrs=ie((function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">")}),"renderToken"),mm.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,l=e.length;a\s]/i.test(e)}function _m(e){return/^<\/a\s*>/i.test(e)}ie(Tm,"isLinkOpen"),ie(_m,"isLinkClose");var Im=ie((function(e){var t,n,r,i,o,a,l,s,u,c,d,f,p,h,v,m,g,b=e.tokens;if(e.md.options.linkify)for(n=0,r=b.length;n=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(Tm(a.content)&&p>0&&p--,_m(a.content)&&p++),!(p>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(u=a.content,g=e.md.linkify.match(u),l=[],f=a.level,d=0,s=0;sd&&((o=new e.Token("text","",0)).content=u.slice(d,c),o.level=f,l.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",v]],o.level=f++,o.markup="linkify",o.info="auto",l.push(o),(o=new e.Token("text","",0)).content=m,o.level=f,l.push(o),(o=new e.Token("link_close","a",-1)).level=--f,o.markup="linkify",o.info="auto",l.push(o),d=g[s].lastIndex);d=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(Om,Pm)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function Am(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||Rm.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++}ie(Pm,"replaceFn"),ie(Dm,"replace_scoped"),ie(Am,"replace_rare");var Zm=ie((function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Nm.test(e.tokens[t].content)&&Dm(e.tokens[t].children),Rm.test(e.tokens[t].content)&&Am(e.tokens[t].children))}),"replace"),jm=Rv.isWhiteSpace,Lm=Rv.isPunctChar,Fm=Rv.isMdAsciiPunct,zm=/['"]/,Bm=/['"]/g;function Vm(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function Hm(e,t){var n,r,i,o,a,l,s,u,c,d,f,p,h,v,m,g,b,y,x,w,C;for(x=[],n=0;n=0&&!(x[b].level<=s);b--);if(x.length=b+1,"text"===r.type){a=0,l=(i=r.content).length;e:for(;a=0)c=i.charCodeAt(o.index-1);else for(b=n-1;b>=0&&("softbreak"!==e[b].type&&"hardbreak"!==e[b].type);b--)if(e[b].content){c=e[b].content.charCodeAt(e[b].content.length-1);break}if(d=32,a=48&&c<=57&&(g=m=!1),m&&g&&(m=f,g=p),m||g){if(g)for(b=x.length-1;b>=0&&(u=x[b],!(x[b].level=0;t--)"inline"===e.tokens[t].type&&zm.test(e.tokens[t].content)&&Hm(e.tokens[t].children,e)}),"smartquotes");function qm(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}ie(qm,"Token$3"),qm.prototype.attrIndex=ie((function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n}),"attrGet"),qm.prototype.attrJoin=ie((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 Wm=qm,Gm=Wm;function Km(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ie(Km,"StateCore"),Km.prototype.Token=Gm;var $m=Km,Qm=ym,Ym=[["normalize",Cm],["block",km],["inline",Sm],["linkify",Im],["replacements",Zm],["smartquotes",Um]];function Jm(){this.ruler=new Qm;for(var e=0;en)return!1;if(u=t+1,e.sCount[u]=4)return!1;if((a=e.bMarks[u]+e.tShift[u])>=e.eMarks[u])return!1;if(124!==(x=e.src.charCodeAt(a++))&&45!==x&&58!==x)return!1;if(a>=e.eMarks[u])return!1;if(124!==(w=e.src.charCodeAt(a++))&&45!==w&&58!==w&&!eg(w))return!1;if(45===x&&eg(w))return!1;for(;a=4)return!1;if((c=ng(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),0===(d=c.length)||d!==p.length)return!1;if(r)return!0;for(g=e.parentType,e.parentType="table",y=e.md.block.ruler.getRules("blockquote"),(f=e.push("table_open","table",1)).map=v=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],l=0;l=4)break;for((c=ng(o)).length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),u===t+2&&((f=e.push("tbody_open","tbody",1)).map=m=[t+2,0]),(f=e.push("tr_open","tr",1)).map=[u,u+1],l=0;l=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}),"code"),og=ie((function(e,t,n,r){var i,o,a,l,s,u,c,d=!1,f=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>p)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(s=f,(o=(f=e.skipChars(f,i))-s)<3)return!1;if(c=e.src.slice(s,f),a=e.src.slice(f,p),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(l=t;!(++l>=n)&&!((f=s=e.bMarks[l]+e.tShift[l])<(p=e.eMarks[l])&&e.sCount[l]=4)&&!((f=e.skipChars(f,i))-s=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(r)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(E)?(E++,l++,f++,i=!1,y=!0):9===e.src.charCodeAt(E)?(y=!0,(e.bsCount[t]+f)%4===3?(E++,l++,f++,i=!1):i=!0):y=!1,p=[e.bMarks[t]],e.bMarks[t]=E;E=T,g=[e.sCount[t]],e.sCount[t]=f-l,b=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),m=e.parentType,e.parentType="blockquote",d=t+1;d=(T=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(E++)||k){if(u)break;for(x=!1,a=0,s=w.length;a=T,h.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(y?1:0),g.push(e.sCount[d]),e.sCount[d]=f-l,b.push(e.tShift[d]),e.tShift[d]=E-e.bMarks[d]}for(v=e.blkIndent,e.blkIndent=0,(C=e.push("blockquote_open","blockquote",1)).markup=">",C.map=c=[t,0],e.md.block.tokenize(e,t,d),(C=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=m,c[1]=e.line,a=0;a=4)return!1;if(42!==(i=e.src.charCodeAt(s++))&&45!==i&&95!==i)return!1;for(o=1;s=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(M=!0),(T=fg(e,t))>=0){if(c=!0,I=e.bMarks[t]+e.tShift[t],m=Number(e.src.slice(I,T-1)),M&&1!==m)return!1}else{if(!((T=dg(e,t))>=0))return!1;c=!1}if(M&&e.skipSpaces(T)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(T-1),r)return!0;for(h=e.tokens.length,c?(O=e.push("ordered_list_open","ol",1),1!==m&&(O.attrs=[["start",m]])):O=e.push("bullet_list_open","ul",1),O.map=p=[t,0],O.markup=String.fromCharCode(v),b=t,_=!1,N=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";b=g?1:y-u)>4&&(s=1),l=u+s,(O=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),O.map=d=[t,0],c&&(O.info=e.src.slice(I,T-1)),S=e.tight,k=e.tShift[t],C=e.sCount[t],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=y,o>=g&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!_||(P=!1),_=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[t]=k,e.sCount[t]=C,e.tight=S,(O=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),b=t=e.line,d[1]=b,o=e.bMarks[t],b>=n)break;if(e.sCount[b]=4)break;for(R=!1,a=0,f=N.length;a=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w3)&&!(e.sCount[k]<0)){for(g=!1,u=0,c=b.length;u`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",xg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",wg=new RegExp("^(?:"+yg+"|"+xg+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),Cg=new RegExp("^(?:"+yg+"|"+xg+")");bg.HTML_TAG_RE=wg,bg.HTML_OPEN_CLOSE_TAG_RE=Cg;var kg=["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"],Sg=bg.HTML_OPEN_CLOSE_TAG_RE,Eg=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Sg.source+"\\s*$"),/^$/,!1]],Tg=ie((function(e,t,n,r){var i,o,a,l,s=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(s))return!1;for(l=e.src.slice(s,u),i=0;i=4)return!1;if(35!==(i=e.src.charCodeAt(s))||s>=u)return!1;for(o=1,i=e.src.charCodeAt(++s);35===i&&s6||ss&&_g(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(l=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(s,u).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),!0)}),"heading"),Rg=ie((function(e,t,n){var r,i,o,a,l,s,u,c,d,f,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";p3)){if(e.sCount[p]>=e.blkIndent&&(s=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(d=e.src.charCodeAt(s))||61===d)&&(s=e.skipChars(s,d),(s=e.skipSpaces(s))>=u)){c=61===d?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,a=h.length;o3)&&!(e.sCount[s]<0)){for(r=!1,i=0,o=u.length;i0&&this.level++,this.tokens.push(r),r},Pg.prototype.isEmpty=ie((function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}),"isEmpty"),Pg.prototype.skipEmptyLines=ie((function(e){for(var t=this.lineMax;et;)if(!Mg(this.src.charCodeAt(--e)))return e+1;return e}),"skipSpacesBack"),Pg.prototype.skipChars=ie((function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}),"skipCharsBack"),Pg.prototype.getLines=ie((function(e,t,n,r){var i,o,a,l,s,u,c,d=e;if(e>=t)return"";for(u=new Array(t-e),i=0;dn?new Array(o-n+1).join(" ")+this.src.slice(l,s):this.src.slice(l,s)}return u.join("")}),"getLines"),Pg.prototype.Token=Og;var Dg=Pg,Ag=ym,Zg=[["table",rg,["paragraph","reference"]],["code",ig],["fence",og,["paragraph","reference","blockquote","list"]],["blockquote",lg,["paragraph","reference","blockquote","list"]],["hr",ug,["paragraph","reference","blockquote","list"]],["list",hg,["paragraph","reference","blockquote"]],["reference",gg],["html_block",Tg,["paragraph","reference","blockquote"]],["heading",Ig,["paragraph","reference","blockquote"]],["lheading",Rg],["paragraph",Ng]];function jg(){this.ruler=new Ag;for(var e=0;e=n))&&!(e.sCount[a]=s){e.line=n;break}for(r=0;r=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)),i++;i?@[]^_`{|}~-".split("").forEach((function(e){Ug[e.charCodeAt(0)]=1}));var Wg=ie((function(e,t){var n,r=e.pos,i=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],l=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=l?"strong_open":"em_open",o.tag=l?"strong":"em",o.nesting=1,o.markup=l?a+a:a,o.content="",(o=e.tokens[i.token]).type=l?"strong_close":"em_close",o.tag=l?"strong":"em",o.nesting=-1,o.markup=l?a+a:a,o.content="",l&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}Qg.tokenize=ie((function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n=p)return!1;if(h=l,(s=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?l=s.pos:c="",h=l;l=p||41!==e.src.charCodeAt(l))&&(v=!0),l++}if(v){if("undefined"===typeof e.env.references)return!1;if(l=0?i=e.src.slice(h,l++):l=o+1):l=o+1,i||(i=e.src.slice(a,o)),!(u=e.env.references[Jg(i)]))return e.pos=f,!1;c=u.href,d=u.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",c]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=p,!0}),"link"),tb=Rv.normalizeReference,nb=Rv.isSpace,rb=ie((function(e,t){var n,r,i,o,a,l,s,u,c,d,f,p,h,v="",m=e.pos,g=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((s=a+1)=g)return!1;for(h=s,(c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(v=e.md.normalizeLink(c.str),e.md.validateLink(v)?s=c.pos:v=""),h=s;s=g||41!==e.src.charCodeAt(s))return e.pos=m,!1;s++}else{if("undefined"===typeof e.env.references)return!1;if(s=0?o=e.src.slice(h,s++):s=a+1):s=a+1,o||(o=e.src.slice(l,a)),!(u=e.env.references[tb(o)]))return e.pos=m,!1;v=u.href,d=u.title}return t||(i=e.src.slice(l,a),e.md.inline.parse(i,e.md,e.env,p=[]),(f=e.push("image","img",0)).attrs=n=[["src",v],["alt",""]],f.children=p,f.content=i,d&&n.push(["title",d])),e.pos=s,e.posMax=g,!0}),"image"),ib=/^([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])?)*)$/,ob=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ab=ie((function(e,t){var n,r,i,o,a,l,s=e.pos;if(60!==e.src.charCodeAt(s))return!1;for(a=e.pos,l=e.posMax;;){if(++s>=l)return!1;if(60===(o=e.src.charCodeAt(s)))return!1;if(62===o)break}return n=e.src.slice(a+1,s),ob.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!ib.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}),"autolink"),lb=bg.HTML_TAG_RE;function sb(e){var t=32|e;return t>=97&&t<=122}ie(sb,"isLetter");var ub=ie((function(e,t){var n,r,i,o=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(o)||o+2>=i)&&(!(33!==(n=e.src.charCodeAt(o+1))&&63!==n&&47!==n&&!sb(n))&&(!!(r=e.src.slice(o).match(lb))&&(t||(e.push("html_inline","",0).content=e.src.slice(o,o+r[0].length)),e.pos+=r[0].length,!0))))}),"html_inline"),cb=Nv,db=Rv.has,fb=Rv.isValidEntityCode,pb=Rv.fromCodePoint,hb=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,vb=/^&([a-z][a-z0-9]{1,31});/i,mb=ie((function(e,t){var n,r,i=e.pos,o=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+1a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(s=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(s=!0)),!s)){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,l=-1;break}-1!==l&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=l)}}ie(gb,"processDelimiters");var bb=ie((function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(gb(0,e.delimiters),t=0;t0&&r++,"text"===i[t].type&&t+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},Sb.prototype.scanDelims=function(e,t){var n,r,i,o,a,l,s,u,c,d=e,f=!0,p=!0,h=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;d=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Rb.prototype.parse=function(e,t,n,r){var i,o,a,l=new this.State(e,t,n,r);for(this.tokenize(l),a=(o=this.ruler2.getRules("")).length,i=0;i<\uff5c]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+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 Mb(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Pb(e){return Object.prototype.toString.call(e)}function Db(e){return"[object String]"===Pb(e)}function Ab(e){return"[object Object]"===Pb(e)}function Zb(e){return"[object RegExp]"===Pb(e)}function jb(e){return"[object Function]"===Pb(e)}function Lb(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}ie(Mb,"assign"),ie(Pb,"_class"),ie(Db,"isString"),ie(Ab,"isObject"),ie(Zb,"isRegExp"),ie(jb,"isFunction"),ie(Lb,"escapeRE");var Fb={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function zb(e){return Object.keys(e||{}).reduce((function(e,t){return e||Fb.hasOwnProperty(t)}),!1)}ie(zb,"isOptionsObj");var Bb={"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}}},Vb="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Hb(e){e.__index__=-1,e.__text_cache__=""}function Ub(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function qb(){return function(e,t){t.normalize(e)}}function Wb(e){var t=e.re=Ob(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("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]"),n.push(t.src_xn),t.src_tlds=n.join("|"),ie(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 i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},ie(o,"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,Ab(n))return Zb(n.validate)?r.validate=Ub(n.validate):jb(n.validate)?r.validate=n.validate:o(t,n),void(jb(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});Db(n)?i.push(t):o(t,n)}})),i.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(Lb).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"),Hb(e)}function Gb(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Kb(e,t){var n=new Gb(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function $b(e,t){if(!(this instanceof $b))return new $b(e,t);t||zb(e)&&(t=e,e={}),this.__opts__=Mb({},Fb,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Mb({},Bb,e),this.__compiled__={},this.__tlds__=Vb,this.__tlds_replaced__=!1,this.re={},Wb(this)}ie(Hb,"resetScanCache"),ie(Ub,"createValidator"),ie(qb,"createNormalizer"),ie(Wb,"compile"),ie(Gb,"Match"),ie(Kb,"createMatch"),ie($b,"LinkifyIt$1"),$b.prototype.add=ie((function(e,t){return this.__schemas__[e]=t,Wb(this),this}),"add"),$b.prototype.set=ie((function(e){return this.__opts__=Mb(this.__opts__,e),this}),"set"),$b.prototype.test=ie((function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,l,s;if(this.re.schema_test.test(e))for((l=this.re.schema_search).lastIndex=0;null!==(t=l.exec(e));)if(i=this.testSchemaAt(e,t[2],l.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0}),"test"),$b.prototype.pretest=ie((function(e){return this.re.pretest.test(e)}),"pretest"),$b.prototype.testSchemaAt=ie((function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0}),"testSchemaAt"),$b.prototype.match=ie((function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(Kb(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(Kb(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null}),"match"),$b.prototype.tlds=ie((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(),Wb(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Wb(this),this)}),"tlds"),$b.prototype.normalize=ie((function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)}),"normalize"),$b.prototype.onCompile=ie((function(){}),"onCompile");var Qb=$b,Yb=2147483647,Jb=36,Xb=/^xn--/,ey=/[^\0-\x7E]/,ty=/[\x2E\u3002\uFF0E\uFF61]/g,ny={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ry=Math.floor,iy=String.fromCharCode;function oy(e){throw new RangeError(ny[e])}function ay(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function ly(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+ay((e=e.replace(ty,".")).split("."),t).join(".")}function sy(e){for(var t=[],n=0,r=e.length;n=55296&&i<=56319&&n>1,e+=ry(e/t);e>455;r+=Jb)e=ry(e/35);return ry(r+36*e/(e+38))}),"adapt"),py=ie((function(e){var t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(var l=0;l=128&&oy("not-basic"),t.push(e.charCodeAt(l));for(var s=a>0?a+1:0;s=n&&oy("invalid-input");var f=cy(e.charCodeAt(s++));(f>=Jb||f>ry((Yb-r)/c))&&oy("overflow"),r+=f*c;var p=d<=o?1:d>=o+26?26:d-o;if(fry(Yb/h)&&oy("overflow"),c*=h}var v=t.length+1;o=fy(r-u,v,0==u),ry(r/v)>Yb-i&&oy("overflow"),i+=ry(r/v),r%=v,t.splice(r++,0,i)}return String.fromCodePoint.apply(String,t)}),"decode"),hy=ie((function(e){var t,n=[],r=(e=sy(e)).length,i=128,o=0,a=72,l=(0,p.Z)(e);try{for(l.s();!(t=l.n()).done;){var s=t.value;s<128&&n.push(iy(s))}}catch(TE){l.e(TE)}finally{l.f()}var u=n.length,c=u;for(u&&n.push("-");c=i&&vry((Yb-o)/m)&&oy("overflow"),o+=(f-i)*m,i=f;var g,b=(0,p.Z)(e);try{for(b.s();!(g=b.n()).done;){var y=g.value;if(yYb&&oy("overflow"),y==i){for(var x=o,w=Jb;;w+=Jb){var C=w<=a?1:w>=a+26?26:w-a;if(x=0))try{t.hostname=_y.toASCII(t.hostname)}catch(n){}return Ty.encode(Ty.format(t))}function Dy(e){var t=Ty.parse(e,!0);if(t.hostname&&(!t.protocol||My.indexOf(t.protocol)>=0))try{t.hostname=_y.toUnicode(t.hostname)}catch(n){}return Ty.decode(Ty.format(t),Ty.decode.defaultChars+"%")}function Ay(e,t){if(!(this instanceof Ay))return new Ay(e,t);t||yy.isString(e)||(t=e||{},e="default"),this.inline=new Sy,this.block=new ky,this.core=new Cy,this.renderer=new wy,this.linkify=new Ey,this.validateLink=Oy,this.normalizeLink=Py,this.normalizeLinkText=Dy,this.utils=yy,this.helpers=yy.assign({},xy),this.options={},this.configure(e),t&&this.set(t)}ie(Py,"normalizeLink"),ie(Dy,"normalizeLinkText"),ie(Ay,"MarkdownIt"),Ay.prototype.set=function(e){return yy.assign(this.options,e),this},Ay.prototype.configure=function(e){var t,n=this;if(yy.isString(e)&&!(e=Iy[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},Ay.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},Ay.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},Ay.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ay.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},Ay.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ay.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ay.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Zy=new Ay({breaks:!0,linkify:!0}),jy=(0,g.forwardRef)((function(e,t){var n=e,r=n.children,i=n.onlyShowFirstChild,o=n.type,a=oe(n,["children","onlyShowFirstChild","type"]);return Xe("div",re(ne({},a),{ref:t,className:le("graphiql-markdown-".concat(o),i&&"graphiql-markdown-preview",a.className),dangerouslySetInnerHTML:{__html:Zy.render(r)}}))}));jy.displayName="MarkdownContent";var Ly=(0,g.forwardRef)((function(e,t){return Xe("div",re(ne({},e),{ref:t,className:le("graphiql-spinner",e.className)}))}));Ly.displayName="Spinner";function Fy(e){var t,n,r=Xl(e),i=r.defaultView||window;return r?{width:null!=(t=r.documentElement.clientWidth)?t:i.innerWidth,height:null!=(n=r.documentElement.clientHeight)?n:i.innerHeight}:{width:0,height:0}}function zy(){return zy=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}ie(Fy,"getDocumentDimensions"),ie(zy,"_extends$1"),ie(By,"_objectWithoutPropertiesLoose$1");var Vy,Hy,Uy,qy,Wy,Gy,Ky,$y,Qy,Yy,Jy=["children","label","ariaLabel","id","DEBUG_STYLE"],Xy=["label","ariaLabel","isVisible","id"],ex=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],tx=["type"];($y=Ky||(Ky={})).Idle="IDLE",$y.Focused="FOCUSED",$y.Visible="VISIBLE",$y.LeavingVisible="LEAVING_VISIBLE",$y.Dismissed="DISMISSED",(Yy=Qy||(Qy={})).Blur="BLUR",Yy.Focus="FOCUS",Yy.GlobalMouseMove="GLOBAL_MOUSE_MOVE",Yy.MouseDown="MOUSE_DOWN",Yy.MouseEnter="MOUSE_ENTER",Yy.MouseLeave="MOUSE_LEAVE",Yy.MouseMove="MOUSE_MOVE",Yy.Rest="REST",Yy.SelectWithKeyboard="SELECT_WITH_KEYBOARD",Yy.TimeComplete="TIME_COMPLETE";var nx,rx,ix={initial:Ky.Idle,states:(Gy={},Gy[Ky.Idle]={enter:px,on:(Vy={},Vy[Qy.MouseEnter]=Ky.Focused,Vy[Qy.Focus]=Ky.Visible,Vy)},Gy[Ky.Focused]={enter:ux,leave:cx,on:(Hy={},Hy[Qy.MouseMove]=Ky.Focused,Hy[Qy.MouseLeave]=Ky.Idle,Hy[Qy.MouseDown]=Ky.Dismissed,Hy[Qy.Blur]=Ky.Idle,Hy[Qy.Rest]=Ky.Visible,Hy)},Gy[Ky.Visible]={on:(Uy={},Uy[Qy.Focus]=Ky.Focused,Uy[Qy.MouseEnter]=Ky.Focused,Uy[Qy.MouseLeave]=Ky.LeavingVisible,Uy[Qy.Blur]=Ky.LeavingVisible,Uy[Qy.MouseDown]=Ky.Dismissed,Uy[Qy.SelectWithKeyboard]=Ky.Dismissed,Uy[Qy.GlobalMouseMove]=Ky.LeavingVisible,Uy)},Gy[Ky.LeavingVisible]={enter:dx,leave:ie((function(){fx(),px()}),"leave"),on:(qy={},qy[Qy.MouseEnter]=Ky.Visible,qy[Qy.Focus]=Ky.Visible,qy[Qy.TimeComplete]=Ky.Idle,qy)},Gy[Ky.Dismissed]={leave:ie((function(){px()}),"leave"),on:(Wy={},Wy[Qy.MouseLeave]=Ky.Idle,Wy[Qy.Blur]=Ky.Idle,Wy)},Gy)},ox={value:ix.initial,context:{id:null}},ax=[];function lx(e){return ax.push(e),function(){ax.splice(ax.indexOf(e),1)}}function sx(){ax.forEach((function(e){return e(ox)}))}function ux(){window.clearTimeout(nx),nx=window.setTimeout((function(){wx({type:Qy.Rest})}),100)}function cx(){window.clearTimeout(nx)}function dx(){window.clearTimeout(rx),rx=window.setTimeout((function(){return wx({type:Qy.TimeComplete})}),500)}function fx(){window.clearTimeout(rx)}function px(){ox.context.id=null}function hx(e){var t=void 0===e?{}:e,n=t.id,r=t.onPointerEnter,i=t.onPointerMove,o=t.onPointerLeave,a=t.onPointerDown,l=t.onMouseEnter,s=t.onMouseMove,u=t.onMouseLeave,c=t.onMouseDown,d=t.onFocus,f=t.onBlur,p=t.onKeyDown,h=t.disabled,v=t.ref,m=t.DEBUG_STYLE,b=String(zd(n)),y=(0,g.useState)(!!m||kx(b,!0)),x=y[0],w=y[1],C=(0,g.useRef)(null),k=ss(v,C),S=Gd(C,{observe:x});function E(e,t){return"undefined"!==typeof window&&"PointerEvent"in window?e:us(e,t)}function T(e){return ie((function(t){"mouse"===t.pointerType&&e(t)}),"onPointerEvent")}function _(){wx({type:Qy.MouseEnter,id:b})}function I(){wx({type:Qy.MouseMove,id:b})}function R(){wx({type:Qy.MouseLeave})}function N(){ox.context.id===b&&wx({type:Qy.MouseDown})}function O(){window.__REACH_DISABLE_TOOLTIPS||wx({type:Qy.Focus,id:b})}function M(){ox.context.id===b&&wx({type:Qy.Blur})}function P(e){"Enter"!==e.key&&" "!==e.key||wx({type:Qy.SelectWithKeyboard})}return(0,g.useEffect)((function(){return lx((function(){w(kx(b))}))}),[b]),(0,g.useEffect)((function(){var e=Xl(C.current);function t(e){"Escape"!==e.key&&"Esc"!==e.key||ox.value!==Ky.Visible||wx({type:Qy.SelectWithKeyboard})}return ie(t,"listener"),e.addEventListener("keydown",t),function(){return e.removeEventListener("keydown",t)}}),[]),xx({disabled:h,isVisible:x,ref:C}),ie(E,"wrapMouseEvent"),ie(T,"wrapPointerEventHandler"),ie(_,"handleMouseEnter"),ie(I,"handleMouseMove"),ie(R,"handleMouseLeave"),ie(N,"handleMouseDown"),ie(O,"handleFocus"),ie(M,"handleBlur"),ie(P,"handleKeyDown"),[{"aria-describedby":x?qf("tooltip",b):void 0,"data-state":x?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref:k,onPointerEnter:us(r,T(_)),onPointerMove:us(i,T(I)),onPointerLeave:us(o,T(R)),onPointerDown:us(a,T(N)),onMouseEnter:E(l,_),onMouseMove:E(s,I),onMouseLeave:E(u,R),onMouseDown:E(c,N),onFocus:us(d,O),onBlur:us(f,M),onKeyDown:us(p,P)},{id:b,triggerRect:S,isVisible:x},x]}ie(lx,"subscribe"),ie(sx,"notify"),ie(ux,"startRestTimer"),ie(cx,"clearRestTimer"),ie(dx,"startLeavingVisibleTimer"),ie(fx,"clearLeavingVisibleTimer"),ie(px,"clearContextId"),ie(hx,"useTooltip");var vx=(0,g.forwardRef)((function(e,t){var n=e.children,r=e.label,i=e.ariaLabel,o=e.id,a=e.DEBUG_STYLE,l=By(e,Jy),s=g.Children.only(n),u=hx({id:o,onPointerEnter:s.props.onPointerEnter,onPointerMove:s.props.onPointerMove,onPointerLeave:s.props.onPointerLeave,onPointerDown:s.props.onPointerDown,onMouseEnter:s.props.onMouseEnter,onMouseMove:s.props.onMouseMove,onMouseLeave:s.props.onMouseLeave,onMouseDown:s.props.onMouseDown,onFocus:s.props.onFocus,onBlur:s.props.onBlur,onKeyDown:s.props.onKeyDown,disabled:s.props.disabled,ref:s.ref,DEBUG_STYLE:a}),c=u[0],d=u[1];return(0,g.createElement)(g.Fragment,null,(0,g.cloneElement)(s,c),(0,g.createElement)(mx,zy({ref:t,label:r,"aria-label":i},d,l)))})),mx=(0,g.forwardRef)(ie((function(e,t){var n=e.label,r=e.ariaLabel,i=e.isVisible,o=e.id,a=By(e,Xy);return i?(0,g.createElement)(Jl,null,(0,g.createElement)(gx,zy({ref:t,label:n,"aria-label":r,isVisible:i},a,{id:qf("tooltip",String(o))}))):null}),"TooltipPopup")),gx=(0,g.forwardRef)(ie((function(e,t){var n=e.ariaLabel,r=e["aria-label"],i=e.as,o=void 0===i?"div":i,a=e.id,l=e.isVisible,s=e.label,u=e.position,c=void 0===u?yx:u,d=e.style,f=e.triggerRect,p=By(e,ex),h=null!=(r||n),v=(0,g.useRef)(null),m=ss(t,v),b=Gd(v,{observe:l});return(0,g.createElement)(g.Fragment,null,(0,g.createElement)(o,zy({role:h?void 0:"tooltip"},p,{ref:m,"data-reach-tooltip":"",id:h?void 0:a,style:zy({},d,bx(c,f,b))}),s),h&&(0,g.createElement)(Od,{role:"tooltip",id:a},r||n))}),"TooltipContent"));function bx(e,t,n){return!n?{visibility:"hidden"}:e(t,n)}ie(bx,"getStyles");var yx=ie((function(e,t,n){void 0===n&&(n=8);var r=Fy(),i=r.width,o=r.height;if(!e||!t)return{};var a={top:e.top-t.height<0,right:i0&&(s+="\n"+E.map((function(e){return(0,V.print)(e)})).join("\n")),i(""),S(!0),T=null!=(n=null!=o?o:c.operationName)?n:void 0,null==y||y.addToHistory({query:s,variables:g,headers:C,operationName:T}),e.prev=32,O={data:{}},M=Bx((function(e){if(a===R.current){var t=!!Array.isArray(e)&&e;if(!t&&"object"===typeof e&&null!==e&&"hasNext"in e&&(t=[e]),t){var n={data:O.data},r=[].concat((0,f.Z)((null==O?void 0:O.errors)||[]),(0,f.Z)(t.flatMap((function(e){return e.errors})).filter(Boolean)));r.length&&(n.errors=r);var o,l=(0,p.Z)(t);try{for(l.s();!(o=l.n()).done;){var s=o.value,u=s,c=u.path,d=u.data,h=(u.errors,oe(u,["path","data","errors"]));if(c){if(!d)throw new Error("Expected part to contain a data property, but got ".concat(s));Pa(n.data,c,d,{merge:!0})}else d&&(n.data=d);O=ne(ne({},n),h)}}catch(TE){l.e(TE)}finally{l.f()}S(!1),i(ye(O))}else{var v=ye(e);S(!1),i(v)}}}),"handleResponse"),P=t({query:s,variables:w,operationName:T},{headers:null!=k?k:void 0,documentAST:null!=(r=c.documentAST)?r:void 0}),e.next=38,Promise.resolve(P);case 38:if(!ce(D=e.sent)){e.next=43;break}I(D.subscribe({next:function(e){M(e)},error:function(e){S(!1),e&&i(be(e)),I(null)},complete:function(){S(!1),I(null)}})),e.next=78;break;case 43:if(!de(D)){e.next=77;break}I({unsubscribe:function(){var e,t;return null==(t=(e=D[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),A=!1,Z=!1,e.prev=47,L=(0,h.Z)(D);case 49:return e.next=51,L.next();case 51:if(!(A=!(F=e.sent).done)){e.next=57;break}z=F.value,M(z);case 54:A=!1,e.next=49;break;case 57:e.next=63;break;case 59:e.prev=59,e.t2=e.catch(47),Z=!0,j=e.t2;case 63:if(e.prev=63,e.prev=64,!A||null==L.return){e.next=68;break}return e.next=68,L.return();case 68:if(e.prev=68,!Z){e.next=71;break}throw j;case 71:return e.finish(68);case 72:return e.finish(63);case 73:S(!1),I(null),e.next=78;break;case 77:M(D);case 78:e.next=85;break;case 80:e.prev=80,e.t3=e.catch(32),S(!1),i(be(e.t3)),I(null);case 85:case"end":return e.stop()}}),e,null,[[10,14],[19,23],[32,80],[47,59,63,73],[64,,68,72]])}))),[x,l,t,u,y,o,c,d,N,_,b,v]),M=Boolean(_),P=(0,g.useMemo)((function(){return{isFetching:k,isSubscribed:M,operationName:null!=o?o:null,run:O,stop:N}}),[k,M,o,O,N]);return Xe(Vx.Provider,{value:P,children:i})}ie(Hx,"ExecutionContextProvider"),Bx(Hx,"ExecutionContextProvider");var Ux=Le(Vx);function qx(e){var t=e.json,n=e.errorMessageParse,r=e.errorMessageType,i=void 0;try{i=t&&""!==t.trim()?JSON.parse(t):void 0}catch(a){throw new Error("".concat(n,": ").concat(a instanceof Error?a.message:a,"."))}var o="object"===typeof i&&null!==i&&!Array.isArray(i);if(void 0!==i&&!o)throw new Error(r);return i}ie(qx,"tryParseJsonObject"),Bx(qx,"tryParseJsonObject");var Wx=Object.defineProperty,Gx=ie((function(e,t){return Wx(e,"name",{value:t,configurable:!0})}),"__name$z"),Kx="graphiql",$x="sublime",Qx=!1;"object"===typeof window&&(Qx=0===window.navigator.platform.toLowerCase().indexOf("mac"));var Yx=(F={},(0,u.Z)(F,Qx?"Cmd-F":"Ctrl-F","findPersistent"),(0,u.Z)(F,"Cmd-G","findPersistent"),(0,u.Z)(F,"Ctrl-G","findPersistent"),(0,u.Z)(F,"Ctrl-Left","goSubwordLeft"),(0,u.Z)(F,"Ctrl-Right","goSubwordRight"),(0,u.Z)(F,"Alt-Left","goGroupLeft"),(0,u.Z)(F,"Alt-Right","goGroupRight"),F);function Jx(e,t){return Xx.apply(this,arguments)}function Xx(){return Xx=(0,r.Z)(m().mark((function e(t,r){var i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(461).then(n.bind(n,8461)).then((function(e){return e.c})).then((function(e){return"function"===typeof e?e:e.default}));case 2:return i=e.sent,e.next=5,Promise.all(!1===(null==r?void 0:r.useCommonAddons)?t:[Promise.all([n.e(461),n.e(80)]).then(n.bind(n,4080)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(990)]).then(n.bind(n,5990)).then((function(e){return e.m})),Promise.all([n.e(461),n.e(939)]).then(n.bind(n,1939)).then((function(e){return e.c})),Promise.all([n.e(461),n.e(474)]).then(n.bind(n,6474)).then((function(e){return e.b})),Promise.all([n.e(461),n.e(986)]).then(n.bind(n,986)).then((function(e){return e.f})),Promise.all([n.e(461),n.e(714)]).then(n.bind(n,2714)).then((function(e){return e.l})),Promise.all([n.e(461),n.e(822)]).then(n.bind(n,9822)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(491)]).then(n.bind(n,4491)).then((function(e){return e.j})),Promise.all([n.e(461),n.e(301)]).then(n.bind(n,3301)).then((function(e){return e.d})),Promise.all([n.e(461),n.e(492)]).then(n.bind(n,6492)).then((function(e){return e.s}))].concat((0,f.Z)(t)));case 5:return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)}))),Xx.apply(this,arguments)}ie(Jx,"importCodeMirror"),Gx(Jx,"importCodeMirror");var ew=ie((function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r1?e.slice(0,-1):e}))}),[]),d=(0,g.useCallback)((function(){l((function(e){return 1===e.length?e:[yw]}))}),[]);(0,g.useEffect)((function(){null==n||r.length>0?d():l((function(e){if(1===e.length)return e;var t,r=[yw],i=null,o=(0,p.Z)(e);try{var a=function(){var e=t.value;if(e===yw)return"continue";if(e.def)if((0,I.Zs)(e.def)){var o=n.getType(e.def.name);if(!o)return"break";r.push({name:e.name,def:o}),i=o}else{if(null===i)return"break";if((0,I.lp)(i)||(0,I.hL)(i)){var a=i.getFields()[e.name];if(!a)return"break";r.push({name:e.name,def:a})}else{if((0,I.KA)(i)||(0,I.EM)(i)||(0,I.oT)(i)||(0,I.EN)(i))return"break";var l=i;if(!l.args.find((function(t){return t.name===e.name})))return"break";r.push({name:e.name,def:l})}}else i=null,r.push(e)};for(o.s();!(t=o.n()).done;){var l=a();if("continue"!==l&&"break"===l)break}}catch(TE){o.e(TE)}finally{o.f()}return r}))}),[d,n,r]);var h=(0,g.useMemo)((function(){return{explorerNavStack:a,push:u,pop:c,reset:d}}),[a,u,c,d]);return Xe(xw.Provider,{value:h,children:e.children})}ie(ww,"ExplorerContextProvider"),bw(ww,"ExplorerContextProvider");var Cw=Le(xw),kw=Object.defineProperty,Sw=ie((function(e,t){return kw(e,"name",{value:t,configurable:!0})}),"__name$v");function Ew(e,t){return(0,I.zM)(e)?et(tt,{children:[Ew(e.ofType,t),"!"]}):(0,I.HG)(e)?et(tt,{children:["[",Ew(e.ofType,t),"]"]}):t(e)}ie(Ew,"renderType"),Sw(Ew,"renderType");var Tw=Object.defineProperty,_w=ie((function(e,t){return Tw(e,"name",{value:t,configurable:!0})}),"__name$u");function Iw(e){var t=Cw({nonNull:!0,caller:Iw}).push;return e.type?Ew(e.type,(function(e){return Xe("a",{className:"graphiql-doc-explorer-type-name",onClick:function(n){n.preventDefault(),t({name:e.name,def:e})},href:"#",children:e.name})})):null}ie(Iw,"TypeLink"),_w(Iw,"TypeLink");var Rw=Object.defineProperty,Nw=ie((function(e,t){return Rw(e,"name",{value:t,configurable:!0})}),"__name$t");function Ow(e){var t=e.arg,n=e.showDefaultValue,r=e.inline,i=et("span",{children:[Xe("span",{className:"graphiql-doc-explorer-argument-name",children:t.name}),": ",Xe(Iw,{type:t.type}),!1!==n&&Xe(uw,{field:t})]});return r?i:et("div",{className:"graphiql-doc-explorer-argument",children:[i,t.description?Xe(jy,{type:"description",children:t.description}):null,t.deprecationReason?et("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[Xe("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),Xe(jy,{type:"deprecation",children:t.deprecationReason})]}):null]})}ie(Ow,"Argument"),Nw(Ow,"Argument");var Mw=Object.defineProperty,Pw=ie((function(e,t){return Mw(e,"name",{value:t,configurable:!0})}),"__name$s");function Dw(e){return e.children?et("div",{className:"graphiql-doc-explorer-deprecation",children:[Xe("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),Xe(jy,{type:"deprecation",onlyShowFirstChild:!0,children:e.children})]}):null}ie(Dw,"DeprecationReason"),Pw(Dw,"DeprecationReason");var Aw=Object.defineProperty,Zw=ie((function(e,t){return Aw(e,"name",{value:t,configurable:!0})}),"__name$r");function jw(e){var t=e.directive;return et("span",{className:"graphiql-doc-explorer-directive",children:["@",t.name.value]})}ie(jw,"Directive"),Zw(jw,"Directive");var Lw=Object.defineProperty,Fw=ie((function(e,t){return Lw(e,"name",{value:t,configurable:!0})}),"__name$q");function zw(e){var t=Bw[e.title];return et("div",{children:[et("div",{className:"graphiql-doc-explorer-section-title",children:[Xe(t,{}),e.title]}),Xe("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}ie(zw,"ExplorerSection"),Fw(zw,"ExplorerSection");var Bw={Arguments:fl,"Deprecated Arguments":bl,"Deprecated Enum Values":yl,"Deprecated Fields":xl,Directives:wl,"Enum Values":Sl,Fields:El,Implements:_l,Implementations:Bl,"Possible Types":Bl,"Root Types":Zl,Type:Bl},Vw=Object.defineProperty,Hw=ie((function(e,t){return Vw(e,"name",{value:t,configurable:!0})}),"__name$p");function Uw(e){return et(tt,{children:[e.field.description?Xe(jy,{type:"description",children:e.field.description}):null,Xe(Dw,{children:e.field.deprecationReason}),Xe(zw,{title:"Type",children:Xe(Iw,{type:e.field.type})}),Xe(qw,{field:e.field}),Xe(Ww,{field:e.field})]})}function qw(e){var t=e.field,n=(0,g.useState)(!1),r=(0,s.Z)(n,2),i=r[0],o=r[1];if(!("args"in t))return null;var a,l=[],u=[],c=(0,p.Z)(t.args);try{for(c.s();!(a=c.n()).done;){var d=a.value;d.deprecationReason?u.push(d):l.push(d)}}catch(TE){c.e(TE)}finally{c.f()}return et(tt,{children:[l.length>0?Xe(zw,{title:"Arguments",children:l.map((function(e){return Xe(Ow,{arg:e},e.name)}))}):null,u.length>0?i||0===l.length?Xe(zw,{title:"Deprecated Arguments",children:u.map((function(e){return Xe(Ow,{arg:e},e.name)}))}):Xe(Ul,{type:"button",onClick:function(){o(!0)},children:"Show Deprecated Arguments"}):null]})}function Ww(e){var t,n=(null==(t=e.field.astNode)?void 0:t.directives)||[];return n&&0!==n.length?Xe(zw,{title:"Directives",children:n.map((function(e){return Xe("div",{children:Xe(jw,{directive:e})},e.name.value)}))}):null}ie(Uw,"FieldDocumentation"),Hw(Uw,"FieldDocumentation"),ie(qw,"Arguments"),Hw(qw,"Arguments"),ie(Ww,"Directives"),Hw(Ww,"Directives");var Gw=Object.defineProperty,Kw=ie((function(e,t){return Gw(e,"name",{value:t,configurable:!0})}),"__name$o");function $w(e){var t,n,r,i,o=e.schema.getQueryType(),a=null==(n=(t=e.schema).getMutationType)?void 0:n.call(t),l=null==(i=(r=e.schema).getSubscriptionType)?void 0:i.call(r);return et(tt,{children:[Xe(jy,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),et(zw,{title:"Root Types",children:[o?et("div",{children:[Xe("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",Xe(Iw,{type:o})]}):null,a&&et("div",{children:[Xe("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",Xe(Iw,{type:a})]}),l&&et("div",{children:[Xe("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",Xe(Iw,{type:l})]})]})]})}function Qw(e,t){var n=(0,g.useRef)(!1);(0,g.useEffect)((function(){n.current?e():n.current=!0}),t)}function Yw(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function Jw(){return Jw=Object.assign||function(e){for(var t=1;ts&&e.push({highlight:!1,start:s,end:u}),o.index===l.lastIndex&&l.lastIndex++}return e}),[])}function nC(e){var t=e.chunksToHighlight,n=e.totalLength,r=[];if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r;function o(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})}}function rC(e){return e}function iC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}ie($w,"SchemaDocumentation"),Kw($w,"SchemaDocumentation"),ie(Qw,"useUpdateEffect"),ie(Yw,"_objectWithoutPropertiesLoose"),ie(Jw,"_extends"),ie(Xw,"findAll"),ie(eC,"combineChunks"),ie(tC,"defaultFindChunks"),ie(nC,"fillInChunks"),ie(rC,"defaultSanitize"),ie(iC,"escapeRegExpFn");var oC,aC,lC,sC,uC,cC={combineChunks:eC,fillInChunks:nC,findAll:Xw,findChunks:tC},dC=["onSelect","openOnFocus","children","as","aria-label","aria-labelledby"],fC=["as","selectOnClick","autocomplete","onClick","onChange","onKeyDown","onBlur","onFocus","value"],pC=["as","children","portal","onKeyDown","onBlur","position"],hC=["persistSelection","as"],vC=["as","children","index","value","onClick"],mC="IDLE",gC="SUGGESTING",bC="NAVIGATING",yC="INTERACTING",xC="CLEAR",wC="CHANGE",CC="INITIAL_CHANGE",kC="NAVIGATE",SC="SELECT_WITH_KEYBOARD",EC="SELECT_WITH_CLICK",TC="ESCAPE",_C="BLUR",IC="INTERACT",RC="FOCUS",NC="OPEN_WITH_BUTTON",OC="OPEN_WITH_INPUT_CLICK",MC="CLOSE_WITH_BUTTON",PC={initial:mC,states:(uC={},uC.IDLE={on:(oC={},oC.BLUR=mC,oC.CLEAR=mC,oC.CHANGE=gC,oC.INITIAL_CHANGE=mC,oC.FOCUS=gC,oC.NAVIGATE=bC,oC.OPEN_WITH_BUTTON=gC,oC.OPEN_WITH_INPUT_CLICK=gC,oC)},uC[gC]={on:(aC={},aC.CHANGE=gC,aC.FOCUS=gC,aC.NAVIGATE=bC,aC.CLEAR=mC,aC.ESCAPE=mC,aC.BLUR=mC,aC.SELECT_WITH_CLICK=mC,aC.INTERACT=yC,aC.CLOSE_WITH_BUTTON=mC,aC)},uC[bC]={on:(lC={},lC.CHANGE=gC,lC.FOCUS=gC,lC.CLEAR=mC,lC.BLUR=mC,lC.ESCAPE=mC,lC.NAVIGATE=bC,lC.SELECT_WITH_CLICK=mC,lC.SELECT_WITH_KEYBOARD=mC,lC.CLOSE_WITH_BUTTON=mC,lC.INTERACT=yC,lC)},uC[yC]={on:(sC={},sC.CLEAR=mC,sC.CHANGE=gC,sC.FOCUS=gC,sC.BLUR=mC,sC.ESCAPE=mC,sC.NAVIGATE=bC,sC.CLOSE_WITH_BUTTON=mC,sC.SELECT_WITH_CLICK=mC,sC)},uC)},DC=ie((function(e,t){var n=Jw({},e,{lastEventType:t.type});switch(t.type){case wC:case CC:return Jw({},n,{navigationValue:null,value:t.value});case kC:case NC:case OC:return Jw({},n,{navigationValue:ZC(n,t)});case xC:return Jw({},n,{value:"",navigationValue:null});case _C:case TC:return Jw({},n,{navigationValue:null});case EC:return Jw({},n,{value:t.isControlled?e.value:t.value,navigationValue:null});case SC:return Jw({},n,{value:t.isControlled?e.value:e.navigationValue,navigationValue:null});case MC:return Jw({},n,{navigationValue:null});case IC:return n;case RC:return Jw({},n,{navigationValue:ZC(n,t)});default:return n}}),"reducer");function AC(e){return[gC,bC,yC].includes(e)}function ZC(e,t){return t.value?t.value:t.persistSelection?e.value:null}ie(AC,"popoverIsExpanded"),ie(ZC,"findNavigationValue");var jC=Nf(),LC=Hf(0,{}),FC=Hf(0,{}),zC=(0,g.forwardRef)((function(e,t){var n,r=e.onSelect,i=e.openOnFocus,o=void 0!==i&&i,a=e.children,l=e.as,s=void 0===l?"div":l,u=e["aria-label"],c=e["aria-labelledby"],d=Yw(e,dC),f=Mf(),p=f[0],h=f[1],v=(0,g.useRef)(),m=(0,g.useRef)(),b=(0,g.useRef)(),y=(0,g.useRef)(!1),x=(0,g.useRef)(!1),w=$C(PC,DC,{value:"",navigationValue:null}),C=w[0],k=w[1],S=w[2];WC(k.lastEventType,v);var E=zd(d.id),T=E?qf("listbox",E):"listbox",_=(0,g.useRef)(!1),I=AC(C),R={ariaLabel:u,ariaLabelledby:c,autocompletePropRef:y,buttonRef:b,comboboxId:E,data:k,inputRef:v,isExpanded:I,listboxId:T,onSelect:r||rs,openOnFocus:o,persistSelectionRef:x,popoverRef:m,state:C,transition:S,isControlledRef:_};return(0,g.createElement)(Df,{context:jC,items:p,set:h},(0,g.createElement)(LC.Provider,{value:R},(0,g.createElement)(s,Jw({},d,{"data-reach-combobox":"","data-state":YC(C),"data-expanded":I||void 0,ref:t}),ts(a)?a({id:E,isExpanded:I,navigationValue:null!=(n=k.navigationValue)?n:null,state:C}):a)))})),BC=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"input":n,i=e.selectOnClick,o=void 0!==i&&i,a=e.autocomplete,l=void 0===a||a,s=e.onClick,u=e.onChange,c=e.onKeyDown,d=e.onBlur,f=e.onFocus,p=e.value,h=Yw(e,fC),v=(0,g.useRef)(p).current,m=(0,g.useRef)(!1);Qw((function(){m.current=!0}),[p]);var b=(0,g.useContext)(LC),y=b.data,x=y.navigationValue,w=y.value,C=y.lastEventType,k=b.inputRef,S=b.state,E=b.transition,T=b.listboxId,_=b.autocompletePropRef,I=b.openOnFocus,R=b.isExpanded,N=b.ariaLabel,O=b.ariaLabelledby,M=b.persistSelectionRef,P=b.isControlledRef,D=ss(k,t),A=(0,g.useRef)(!1),Z=GC(),j=KC(),L="undefined"!==typeof p;(0,g.useEffect)((function(){P.current=L}),[L]),Gl((function(){_.current=l}),[l,_]);var F=(0,g.useCallback)((function(e){""===e.trim()?E(xC,{isControlled:L}):e!==v||m.current?E(wC,{value:e}):E(CC,{value:e})}),[v,E,L]);function z(e){var t=e.target.value;L||F(t)}function B(){o&&(A.current=!0),I&&C!==EC&&E(RC,{persistSelection:M.current})}function V(){var e;A.current&&(A.current=!1,null==(e=k.current)||e.select());I&&S===mC&&E(OC)}(0,g.useEffect)((function(){!L||p===w||""===p.trim()&&""===(w||"").trim()||F(p)}),[p,F,L,w]),ie(z,"handleChange"),ie(B,"handleFocus"),ie(V,"handleClick");var H=!l||S!==bC&&S!==yC?p||w:x||p||w;return(0,g.createElement)(r,Jw({"aria-activedescendant":x?String(QC(x)):void 0,"aria-autocomplete":"both","aria-controls":T,"aria-expanded":R,"aria-haspopup":"listbox","aria-label":N,"aria-labelledby":N?void 0:O,role:"combobox"},h,{"data-reach-combobox-input":"","data-state":YC(S),ref:D,onBlur:us(d,j),onChange:us(u,z),onClick:us(s,V),onFocus:us(f,B),onKeyDown:us(c,Z),value:H||""}))})),VC=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.children,o=e.portal,a=void 0===o||o,l=e.onKeyDown,s=e.onBlur,u=e.position,c=void 0===u?Sf:u,d=Yw(e,pC),f=(0,g.useContext)(LC),p=f.popoverRef,h=f.inputRef,v=f.isExpanded,m=f.state,b=ss(p,t),y=GC(),x=KC(),w={"data-reach-combobox-popover":"","data-state":YC(m),onKeyDown:us(l,y),onBlur:us(s,x),hidden:!v,tabIndex:-1,children:i};return a?(0,g.createElement)(yf,Jw({as:r},d,{ref:b,"data-expanded":v||void 0,position:c,targetRef:h,unstable_skipInitialPortalRender:!0},w)):(0,g.createElement)(r,Jw({ref:b},d,w))})),HC=(0,g.forwardRef)((function(e,t){var n=e.persistSelection,r=void 0!==n&&n,i=e.as,o=void 0===i?"ul":i,a=Yw(e,hC),l=(0,g.useContext)(LC),s=l.persistSelectionRef,u=l.listboxId;return r&&(s.current=!0),(0,g.createElement)(o,Jw({role:"listbox"},a,{ref:t,"data-reach-combobox-list":"",id:u}))})),UC=(0,g.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"li":n,i=e.children,o=e.index,a=e.value,l=e.onClick,s=Yw(e,vC),u=(0,g.useContext)(LC),c=u.onSelect,d=u.data.navigationValue,f=u.transition,p=u.isControlledRef,h=Wf((0,g.useRef)(null),null),v=h[0],m=h[1],b=Of((0,g.useMemo)((function(){return{element:v,value:a}}),[a,v]),jC,o),y=ss(t,m),x=d===a,w=ie((function(){c&&c(a),f(EC,{value:a,isControlled:p.current})}),"handleClick");return(0,g.createElement)(FC.Provider,{value:{value:a,index:b}},(0,g.createElement)(r,Jw({"aria-selected":x,role:"option"},s,{"data-reach-combobox-option":"",ref:y,id:String(QC(a)),"data-highlighted":x?"":void 0,tabIndex:-1,onClick:us(l,w)}),i?ts(i)?i({value:a,index:b}):i:(0,g.createElement)(qC,null)))}));function qC(){var e=(0,g.useContext)(FC).value,t=(0,g.useContext)(LC).data.value,n=(0,g.useMemo)((function(){return cC.findAll({searchWords:JC(t||"").split(/\s+/),textToHighlight:e})}),[t,e]);return(0,g.createElement)(g.Fragment,null,n.length?n.map((function(t,n){var r=e.slice(t.start,t.end);return(0,g.createElement)("span",{key:n,"data-reach-combobox-option-text":"","data-user-value":!!t.highlight||void 0,"data-suggested-value":!t.highlight||void 0},r)})):e)}function WC(e,t){Gl((function(){var n;e!==kC&&e!==TC&&e!==EC&&e!==NC||(null==(n=t.current)||n.focus())}),[t,e])}function GC(){var e=(0,g.useContext)(LC),t=e.data.navigationValue,n=e.onSelect,r=e.state,i=e.transition,o=e.autocompletePropRef,a=e.persistSelectionRef,l=e.isControlledRef,s=Pf(jC);return ie((function(e){var u=s.findIndex((function(e){return e.value===t}));function c(){return u===s.length-1?o.current?null:f():s[(u+1)%s.length]}function d(){return 0===u?o.current?null:p():-1===u?p():s[(u-1+s.length)%s.length]}function f(){return s[0]}function p(){return s[s.length-1]}switch(ie(c,"getNextOption"),ie(d,"getPreviousOption"),ie(f,"getFirstOption"),ie(p,"getLastOption"),e.key){case"ArrowDown":if(e.preventDefault(),!s||!s.length)return;if(r===mC)i(kC,{persistSelection:a.current});else{var h=c();i(kC,{value:h?h.value:null})}break;case"ArrowUp":if(e.preventDefault(),!s||0===s.length)return;if(r===mC)i(kC);else{var v=d();i(kC,{value:v?v.value:null})}break;case"Home":case"PageUp":if(e.preventDefault(),!s||0===s.length)return;r===mC?i(kC):i(kC,{value:f().value});break;case"End":case"PageDown":if(e.preventDefault(),!s||0===s.length)return;r===mC?i(kC):i(kC,{value:p().value});break;case"Escape":r!==mC&&i(TC);break;case"Enter":r===bC&&null!==t&&(e.preventDefault(),n&&n(t),i(SC,{isControlled:l.current}))}}),"handleKeyDown")}function KC(){var e=(0,g.useContext)(LC),t=e.state,n=e.transition,r=e.popoverRef,i=e.inputRef,o=e.buttonRef;return ie((function(e){var a=r.current,l=i.current,s=o.current,u=e.relatedTarget;u!==l&&u!==s&&a&&(a.contains(u)?t!==yC&&n(IC):n(_C))}),"handleBlur")}function $C(e,t,n){var r=(0,g.useState)(e.initial),i=r[0],o=r[1],a=(0,g.useReducer)(t,n),l=a[0],s=a[1];return[i,l,ie((function(t,n){void 0===n&&(n={});var r=e.states[i],a=r&&r.on[t];if(a)return s(Jw({type:t,state:i,nextState:i},n)),void o(a)}),"transition")]}function QC(e){var t=0;if(0===e.length)return t;for(var n=0;n0&&p.types.length+p.fields.length>0?Xe("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,p.types.map((function(e,t){return Xe(UC,{index:p.within.length+t,value:e,children:Xe(lk,{type:e.type})},"type-".concat(t))})),p.fields.map((function(e,t){return et(UC,{index:p.within.length+p.types.length+t,value:e,children:[Xe(lk,{type:e.type}),".",Xe(sk,{field:e.field,argument:e.argument})]},"field-".concat(t))})),p.within.length+p.types.length+p.fields.length===0?Xe("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):null]})})]}):null}function ok(e){var t=Cw({nonNull:!0,caller:e||ok}).explorerNavStack,n=hw({nonNull:!0,caller:e||ok}).schema,r=t.at(-1);return(0,g.useCallback)((function(e){var t={within:[],types:[],fields:[]};if(!n)return t;var i=r.def,o=n.getTypeMap(),a=Object.keys(o);i&&(a=a.filter((function(e){return e!==i.name}))).unshift(i.name);var l,s=(0,p.Z)(a);try{var u=function(){var n=l.value;if(t.within.length+t.types.length+t.fields.length>=100)return"break";var r=o[n];if(i!==r&&ak(n,e)&&t.types.push({type:r}),!(0,I.lp)(r)&&!(0,I.oT)(r)&&!(0,I.hL)(r))return"continue";var a=r.getFields(),s=function(n){var o,l=a[n],s=void 0;if(!ak(n,e)){if(!("args"in l))return"continue";if(0===(s=l.args.filter((function(t){return ak(t.name,e)}))).length)return"continue"}(o=t[i===r?"within":"fields"]).push.apply(o,(0,f.Z)(s?s.map((function(e){return{type:r,field:l,argument:e}})):[{type:r,field:l}]))};for(var u in a)s(u)};for(s.s();!(l=s.n()).done;){var c=u();if("break"===c)break}}catch(TE){s.e(TE)}finally{s.f()}return t}),[r.def,n])}function ak(e,t){try{var n=t.replaceAll(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(r){return e.toLowerCase().includes(t.toLowerCase())}}function lk(e){return Xe("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}function sk(e){return et(tt,{children:[Xe("span",{className:"graphiql-doc-explorer-search-field",children:e.field.name}),e.argument?et(tt,{children:["(",Xe("span",{className:"graphiql-doc-explorer-search-argument",children:e.argument.name}),":"," ",Ew(e.argument.type,(function(e){return Xe(lk,{type:e})})),")"]}):null]})}ie(ik,"Search"),rk(ik,"Search"),ie(ok,"useSearchResults"),rk(ok,"useSearchResults"),ie(ak,"isMatch"),rk(ak,"isMatch"),ie(lk,"Type"),rk(lk,"Type"),ie(sk,"Field$1"),rk(sk,"Field");var uk=Object.defineProperty,ck=ie((function(e,t){return uk(e,"name",{value:t,configurable:!0})}),"__name$l");function dk(e){var t=Cw({nonNull:!0}).push;return Xe("a",{className:"graphiql-doc-explorer-field-name",onClick:function(n){n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}ie(dk,"FieldLink"),ck(dk,"FieldLink");var fk=Object.defineProperty,pk=ie((function(e,t){return fk(e,"name",{value:t,configurable:!0})}),"__name$k");function hk(e){return(0,I.Zs)(e.type)?et(tt,{children:[e.type.description?Xe(jy,{type:"description",children:e.type.description}):null,Xe(vk,{type:e.type}),Xe(mk,{type:e.type}),Xe(bk,{type:e.type}),Xe(xk,{type:e.type})]}):null}function vk(e){var t=e.type;return(0,I.lp)(t)&&t.getInterfaces().length>0?Xe(zw,{title:"Implements",children:t.getInterfaces().map((function(e){return Xe("div",{children:Xe(Iw,{type:e})},e.name)}))}):null}function mk(e){var t=e.type,n=(0,g.useState)(!1),r=(0,s.Z)(n,2),i=r[0],o=r[1];if(!(0,I.lp)(t)&&!(0,I.oT)(t)&&!(0,I.hL)(t))return null;var a,l=t.getFields(),u=[],c=[],d=(0,p.Z)(Object.keys(l).map((function(e){return l[e]})));try{for(d.s();!(a=d.n()).done;){var f=a.value;f.deprecationReason?c.push(f):u.push(f)}}catch(TE){d.e(TE)}finally{d.f()}return et(tt,{children:[u.length>0?Xe(zw,{title:"Fields",children:u.map((function(e){return Xe(gk,{field:e},e.name)}))}):null,c.length>0?i||0===u.length?Xe(zw,{title:"Deprecated Fields",children:c.map((function(e){return Xe(gk,{field:e},e.name)}))}):Xe(Ul,{type:"button",onClick:function(){o(!0)},children:"Show Deprecated Fields"}):null]})}function gk(e){var t=e.field,n="args"in t?t.args.filter((function(e){return!e.deprecationReason})):[];return et("div",{className:"graphiql-doc-explorer-item",children:[et("div",{children:[Xe(dk,{field:t}),n.length>0?et(tt,{children:["(",Xe("span",{children:n.map((function(e){return 1===n.length?Xe(Ow,{arg:e,inline:!0},e.name):Xe("div",{className:"graphiql-doc-explorer-argument-multiple",children:Xe(Ow,{arg:e,inline:!0})},e.name)}))}),")"]}):null,": ",Xe(Iw,{type:t.type}),Xe(uw,{field:t})]}),t.description?Xe(jy,{type:"description",onlyShowFirstChild:!0,children:t.description}):null,Xe(Dw,{children:t.deprecationReason})]})}function bk(e){var t=e.type,n=(0,g.useState)(!1),r=(0,s.Z)(n,2),i=r[0],o=r[1];if(!(0,I.EM)(t))return null;var a,l=[],u=[],c=(0,p.Z)(t.getValues());try{for(c.s();!(a=c.n()).done;){var d=a.value;d.deprecationReason?u.push(d):l.push(d)}}catch(TE){c.e(TE)}finally{c.f()}return et(tt,{children:[l.length>0?Xe(zw,{title:"Enum Values",children:l.map((function(e){return Xe(yk,{value:e},e.name)}))}):null,u.length>0?i||0===l.length?Xe(zw,{title:"Deprecated Enum Values",children:u.map((function(e){return Xe(yk,{value:e},e.name)}))}):Xe(Ul,{type:"button",onClick:function(){o(!0)},children:"Show Deprecated Values"}):null]})}function yk(e){var t=e.value;return et("div",{className:"graphiql-doc-explorer-item",children:[Xe("div",{className:"graphiql-doc-explorer-enum-value",children:t.name}),t.description?Xe(jy,{type:"description",children:t.description}):null,t.deprecationReason?Xe(jy,{type:"deprecation",children:t.deprecationReason}):null]})}function xk(e){var t=e.type,n=hw({nonNull:!0}).schema;return n&&(0,I.m0)(t)?Xe(zw,{title:(0,I.oT)(t)?"Implementations":"Possible Types",children:n.getPossibleTypes(t).map((function(e){return Xe("div",{children:Xe(Iw,{type:e})},e.name)}))}):null}ie(hk,"TypeDocumentation"),pk(hk,"TypeDocumentation"),ie(vk,"ImplementsInterfaces"),pk(vk,"ImplementsInterfaces"),ie(mk,"Fields"),pk(mk,"Fields"),ie(gk,"Field"),pk(gk,"Field"),ie(bk,"EnumValues"),pk(bk,"EnumValues"),ie(yk,"EnumValue"),pk(yk,"EnumValue"),ie(xk,"PossibleTypes"),pk(xk,"PossibleTypes");var wk=Object.defineProperty,Ck=ie((function(e,t){return wk(e,"name",{value:t,configurable:!0})}),"__name$j");function kk(){var e,t=hw({nonNull:!0,caller:kk}),n=t.fetchError,r=t.isFetching,i=t.schema,o=t.validationErrors,a=Cw({nonNull:!0,caller:kk}),l=a.explorerNavStack,s=a.pop,u=l.at(-1),c=null;return n?c=Xe("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):o.length>0?c=et("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",o[0].message]}):r?c=Xe(Ly,{}):i?1===l.length?c=Xe($w,{schema:i}):(0,I.P9)(u.def)?c=Xe(hk,{type:u.def}):u.def&&(c=Xe(Uw,{field:u.def})):c=Xe("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),l.length>1&&(e=l.at(-2).name),et("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[et("div",{className:"graphiql-doc-explorer-header",children:[et("div",{className:"graphiql-doc-explorer-header-content",children:[e&&et("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:function(e){e.preventDefault(),s()},"aria-label":"Go back to ".concat(e),children:[Xe(hl,{}),e]}),Xe("div",{className:"graphiql-doc-explorer-title",children:u.name})]}),Xe("div",{className:"graphiql-doc-explorer-search",children:Xe(ik,{},u.name)})]}),Xe("div",{className:"graphiql-doc-explorer-content",children:c})]})}ie(kk,"DocExplorer"),Ck(kk,"DocExplorer");var Sk=Object.defineProperty,Ek=ie((function(e,t){return Sk(e,"name",{value:t,configurable:!0})}),"__name$i"),Tk={title:"Documentation Explorer",icon:Ek(ie((function(){var e=Nk();return(null==e?void 0:e.visiblePlugin)===Tk?Xe(Cl,{}):Xe(kl,{})}),"Icon"),"Icon"),content:kk},_k={title:"History",icon:Tl,content:jx},Ik=je("PluginContext");function Rk(e){var t=st(),n=Cw(),r=Px(),i=Boolean(n),o=Boolean(r),a=(0,g.useMemo)((function(){var t=[],n={};i&&(t.push(Tk),n[Tk.title]=!0),o&&(t.push(_k),n[_k.title]=!0);var r,a=(0,p.Z)(e.plugins||[]);try{for(a.s();!(r=a.n()).done;){var l=r.value;if("string"!==typeof l.title||!l.title)throw new Error("All GraphiQL plugins must have a unique title");if(n[l.title])throw new Error("All GraphiQL plugins must have a unique title, found two plugins with the title '".concat(l.title,"'"));t.push(l),n[l.title]=!0}}catch(TE){a.e(TE)}finally{a.f()}return t}),[i,o,e.plugins]),l=(0,g.useState)((function(){var n=null==t?void 0:t.get(Ok),r=a.find((function(e){return e.title===n}));return r||(n&&(null==t||t.set(Ok,"")),e.visiblePlugin&&a.find((function(t){return("string"===typeof e.visiblePlugin?t.title:t)===e.visiblePlugin}))||null)})),u=(0,s.Z)(l,2),c=u[0],d=u[1],f=e.onTogglePluginVisibility,h=e.children,v=(0,g.useCallback)((function(e){var t=e&&a.find((function(t){return("string"===typeof e?t.title:t)===e}))||null;d((function(e){return t===e?e:(null==f||f(t),t)}))}),[f,a]);(0,g.useEffect)((function(){e.visiblePlugin&&v(e.visiblePlugin)}),[a,e.visiblePlugin,v]);var m=(0,g.useMemo)((function(){return{plugins:a,setVisiblePlugin:v,visiblePlugin:c}}),[a,v,c]);return Xe(Ik.Provider,{value:m,children:h})}ie(Rk,"PluginContextProvider"),Ek(Rk,"PluginContextProvider");var Nk=Le(Ik),Ok="visiblePlugin",Mk=Object.defineProperty,Pk=ie((function(e,t){return Mk(e,"name",{value:t,configurable:!0})}),"__name$h");function Dk(e,t,n,r,i,o){function a(e){if(n&&r&&i&&e.currentTarget instanceof HTMLElement){var t=e.currentTarget.innerText,a=n.getType(t);a&&(i.setVisiblePlugin(Tk),r.push({name:a.name,def:a}),null==o||o(a))}}Jx([],{useCommonAddons:!1}).then((function(e){var n,r,i,o,l,s,u,c,d;e.on(t,"select",(function(e,t){if(!n){var f=t.parentNode;(n=document.createElement("div")).className="CodeMirror-hint-information",f.appendChild(n);var p=document.createElement("header");p.className="CodeMirror-hint-information-header",n.appendChild(p),(r=document.createElement("span")).className="CodeMirror-hint-information-field-name",p.appendChild(r),(i=document.createElement("span")).className="CodeMirror-hint-information-type-name-pill",p.appendChild(i),o=document.createElement("span"),i.appendChild(o),(l=document.createElement("a")).className="CodeMirror-hint-information-type-name",l.href="javascript:void 0",l.addEventListener("click",a),i.appendChild(l),s=document.createElement("span"),i.appendChild(s),(u=document.createElement("div")).className="CodeMirror-hint-information-description",n.appendChild(u),(c=document.createElement("div")).className="CodeMirror-hint-information-deprecation",n.appendChild(c);var h=document.createElement("span");h.className="CodeMirror-hint-information-deprecation-label",h.innerText="Deprecated",c.appendChild(h),(d=document.createElement("div")).className="CodeMirror-hint-information-deprecation-reason",c.appendChild(d);var v,m=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,g=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,b=Pk((function(){n&&(n.style.paddingTop=f.scrollTop+m+"px",n.style.maxHeight=f.scrollTop+g+"px")}),"handleScroll");f.addEventListener("scroll",b),f.addEventListener("DOMNodeRemoved",v=Pk((function(e){e.target===f&&(f.removeEventListener("scroll",b),f.removeEventListener("DOMNodeRemoved",v),n&&n.removeEventListener("click",a),n=null,r=null,i=null,o=null,l=null,s=null,u=null,c=null,d=null,v=null)}),"onRemoveFn"))}if(r&&(r.innerText=e.text),i&&o&&l&&s)if(e.type){i.style.display="inline";var y=Pk((function(e){(0,I.zM)(e)?(s.innerText="!"+s.innerText,y(e.ofType)):(0,I.HG)(e)?(o.innerText+="[",s.innerText="]"+s.innerText,y(e.ofType)):l.innerText=e.name}),"renderType");o.innerText="",s.innerText="",y(e.type)}else o.innerText="",l.innerText="",s.innerText="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=Zy.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&d&&(e.deprecationReason?(c.style.display="block",d.innerHTML=Zy.render(e.deprecationReason)):(c.style.display="none",d.innerHTML=""))}))})),ie(a,"onClickHintInformation"),Pk(a,"onClickHintInformation")}ie(Dk,"onHasCompletion"),Pk(Dk,"onHasCompletion");var Ak=Object.defineProperty,Zk=ie((function(e,t){return Ak(e,"name",{value:t,configurable:!0})}),"__name$g");function jk(e,t){(0,g.useEffect)((function(){e&&"string"===typeof t&&t!==e.getValue()&&e.setValue(t)}),[e,t])}function Lk(e,t,n){(0,g.useEffect)((function(){e&&e.setOption(t,n)}),[e,t,n])}function Fk(e,t,n,r,i){var o=LS({nonNull:!0,caller:i}).updateActiveTabValues,a=st();(0,g.useEffect)((function(){if(e){var i=tk(500,(function(e){a&&null!==n&&a.set(n,e)})),l=tk(100,(function(e){o((0,u.Z)({},r,e))})),s=Zk((function(e,n){if(n){var r=e.getValue();i(r),l(r),null==t||t(r)}}),"handleChange");return e.on("change",s),function(){return e.off("change",s)}}}),[t,e,a,n,r,o])}function zk(e,t,n){var r=hw({nonNull:!0,caller:n}).schema,i=Cw(),o=Nk();(0,g.useEffect)((function(){if(e){var n=Zk((function(e,n){Dk(0,n,r,i,o,(function(e){null==t||t({kind:"Type",type:e,schema:r||void 0})}))}),"handleCompletion");return e.on("hasCompletion",n),function(){return e.off("hasCompletion",n)}}}),[t,e,i,o,r])}function Bk(e,t,n){(0,g.useEffect)((function(){if(e){var r,i=(0,p.Z)(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.removeKeyMap(o)}}catch(TE){i.e(TE)}finally{i.f()}if(n){var a,l={},s=(0,p.Z)(t);try{for(s.s();!(a=s.n()).done;){l[a.value]=function(){return n()}}}catch(TE){s.e(TE)}finally{s.f()}e.addKeyMap(l)}}}),[e,t,n])}function Vk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=e.onCopyQuery,r=LS({nonNull:!0,caller:t||Vk}),i=r.queryEditor;return(0,g.useCallback)((function(){if(i){var e=i.getValue();ow(e),null==n||n(e)}}),[i,n])}function Hk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=LS({nonNull:!0,caller:t||Hk}),r=n.queryEditor,i=hw({nonNull:!0,caller:Hk}),o=i.schema;return(0,g.useCallback)((function(){var e=null==r?void 0:r.documentAST,t=null==r?void 0:r.getValue();e&&t&&r.setValue((0,V.print)(Ie(e,o)))}),[r,o])}function Uk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.caller,n=LS({nonNull:!0,caller:t||Uk}),r=n.queryEditor,i=n.headerEditor,o=n.variableEditor;return(0,g.useCallback)((function(){if(o){var e=o.getValue();try{var t=JSON.stringify(JSON.parse(e),null,2);t!==e&&o.setValue(t)}catch(u){}}if(i){var n=i.getValue();try{var a=JSON.stringify(JSON.parse(n),null,2);a!==n&&i.setValue(a)}catch(c){}}if(r){var l=r.getValue(),s=(0,V.print)((0,k.Qc)(l));s!==l&&r.setValue(s)}}),[r,o,i])}function qk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getDefaultFieldNames,n=e.caller,r=hw({nonNull:!0,caller:n||qk}),i=r.schema,o=LS({nonNull:!0,caller:n||qk}),a=o.queryEditor;return(0,g.useCallback)((function(){if(a){var e=a.getValue(),n=xe(i,e,t),r=n.insertions,o=n.result;return r&&r.length>0&&a.operation((function(){var e=a.getCursor(),t=a.indexFromPos(e);a.setValue(o||"");var n=0,i=r.map((function(e){var t=e.index,r=e.string;return a.markText(a.posFromIndex(t+n),a.posFromIndex(t+(n+=r.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return i.forEach((function(e){return e.clear()}))}),7e3);var l=t;r.forEach((function(e){var n=e.index,r=e.string;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?Kx:t,i=e.keyMap,o=void 0===i?$x:i,a=e.onEdit,l=e.readOnly,s=void 0!==l&&l,u=arguments.length>1?arguments[1]:void 0,c=LS({nonNull:!0,caller:u||Kk}),d=c.initialHeaders,f=c.headerEditor,p=c.setHeaderEditor,h=c.shouldPersistHeaders,v=Ux(),m=Hk({caller:u||Kk}),b=Uk({caller:u||Kk}),y=(0,g.useRef)(null);return(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(243)]).then(n.bind(n,1243)).then((function(e){return e.j}))]).then((function(t){if(e){var n=y.current;if(n){var i=t(n,{value:d,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!s&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Yx});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!1,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!1,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!1,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!1,container:n})}}),i.on("keyup",(function(e,t){var n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),p(i)}}})),function(){e=!1}}),[r,d,s,p]),Lk(f,"keyMap",o),Fk(f,a,h?$k:null,"headers",Kk),Bk(f,["Cmd-Enter","Ctrl-Enter"],null==v?void 0:v.run),Bk(f,["Shift-Ctrl-P"],b),Bk(f,["Shift-Ctrl-M"],m),y}ie(Kk,"useHeaderEditor"),Gk(Kk,"useHeaderEditor");var $k="headers",Qk=Object.defineProperty,Yk=ie((function(e,t){return Qk(e,"name",{value:t,configurable:!0})}),"__name$e"),Jk=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029","\u202f","\xa0"]),Xk=new RegExp("["+Jk.join("")+"]","g");function eS(e){return e.replace(Xk," ")}ie(eS,"normalizeWhitespace"),Yk(eS,"normalizeWhitespace");var tS=Object.defineProperty,nS=ie((function(e,t){return tS(e,"name",{value:t,configurable:!0})}),"__name$d");function rS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?Kx:t,i=e.keyMap,o=void 0===i?$x:i,a=e.onClickReference,l=e.onCopyQuery,s=e.onEdit,u=e.readOnly,c=void 0!==u&&u,d=arguments.length>1?arguments[1]:void 0,f=hw({nonNull:!0,caller:d||rS}),h=f.schema,v=LS({nonNull:!0,caller:d||rS}),m=v.externalFragments,b=v.initialQuery,y=v.queryEditor,x=v.setOperationName,w=v.setQueryEditor,C=v.validationRules,k=v.variableEditor,S=v.updateActiveTabValues,E=Ux(),T=st(),_=Cw(),I=Nk(),R=Vk({caller:d||rS,onCopyQuery:l}),N=Hk({caller:d||rS}),O=Uk({caller:d||rS}),M=(0,g.useRef)(null),P=(0,g.useRef)(),D=(0,g.useRef)((function(){}));(0,g.useEffect)((function(){D.current=function(e){if(_&&I){switch(I.setVisiblePlugin(Tk),e.kind){case"Type":_.push({name:e.type.name,def:e.type});break;case"Field":_.push({name:e.field.name,def:e.field});break;case"Argument":e.field&&_.push({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&_.push({name:e.type.name,def:e.type})}null==a||a(e)}}}),[_,a,I]),(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(628)]).then(n.bind(n,8628)).then((function(e){return e.c})),Promise.all([n.e(461),n.e(554)]).then(n.bind(n,2554)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(966)]).then(n.bind(n,5966)),Promise.all([n.e(461),n.e(936)]).then(n.bind(n,6936)),Promise.all([n.e(461),n.e(142)]).then(n.bind(n,8142)),Promise.all([n.e(461),n.e(950)]).then(n.bind(n,950)),Promise.all([n.e(461),n.e(299)]).then(n.bind(n,3299))]).then((function(t){if(e){P.current=t;var n=M.current;if(n){var i=t(n,{value:b,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!c&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0},info:{schema:void 0,renderDescription:function(e){return Zy.render(e)},onClick:function(e){D.current(e)}},jump:{schema:void 0,onClick:function(e){D.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:re(ne({},Yx),{"Cmd-S":function(){},"Ctrl-S":function(){}})});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!0,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!0,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!0,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!0,container:n})},"Shift-Alt-Space":function(){i.showHint({completeSingle:!0,container:n})}}),i.on("keyup",(function(e,t){lS.test(t.key)&&e.execCommand("autocomplete")}));var o=!1;i.on("startCompletion",(function(){o=!0})),i.on("endCompletion",(function(){o=!1})),i.on("keydown",(function(e,t){"Escape"===t.key&&o&&t.stopPropagation()})),i.on("beforeChange",(function(e,t){var n;if("paste"===t.origin){var r=t.text.map(eS);null==(n=t.update)||n.call(t,t.from,t.to,r)}})),i.documentAST=null,i.operationName=null,i.operations=null,i.variableToType=null,w(i)}}})),function(){e=!1}}),[r,b,c,w]),Lk(y,"keyMap",o),(0,g.useEffect)((function(){if(y){ie(t,"getAndUpdateOperationFacts"),nS(t,"getAndUpdateOperationFacts");var e=tk(100,(function(e){var n,r=e.getValue();null==T||T.set(sS,r);var i=e.operationName,o=t(e);void 0!==(null==o?void 0:o.operationName)&&(null==T||T.set(uS,o.operationName)),null==s||s(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&x(o.operationName),S({query:r,operationName:null!=(n=null==o?void 0:o.operationName)?n:null})}));return t(y),y.on("change",e),function(){return y.off("change",e)}}function t(e){var t,n,r,i,o,a=va(h,e.getValue()),l=Re(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!=(i=null==a?void 0:a.operations)?i:null,k&&(k.state.lint.linterOptions.variableToType=null==a?void 0:a.variableToType,k.options.lint.variableToType=null==a?void 0:a.variableToType,k.options.hintOptions.variableToType=null==a?void 0:a.variableToType,null==(o=P.current)||o.signal(k,"change",k)),a?re(ne({},a),{operationName:l}):null}}),[s,y,h,x,T,k,S]),iS(y,null!=h?h:null,P),oS(y,null!=C?C:null,P),aS(y,m,P),zk(y,a||null,rS);var A=null==E?void 0:E.run,Z=(0,g.useCallback)((function(){var e;if(A&&y&&y.operations&&y.hasFocus()){var t,n,r=y.indexFromPos(y.getCursor()),i=(0,p.Z)(y.operations);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.loc&&o.loc.start<=r&&o.loc.end>=r&&(t=null==(e=o.name)?void 0:e.value)}}catch(TE){i.e(TE)}finally{i.f()}t&&t!==y.operationName&&x(t),A()}else null==A||A()}),[y,A,x]);return Bk(y,["Cmd-Enter","Ctrl-Enter"],Z),Bk(y,["Shift-Ctrl-C"],R),Bk(y,["Shift-Ctrl-P","Shift-Ctrl-F"],O),Bk(y,["Shift-Ctrl-M"],N),M}function iS(e,t,n){(0,g.useEffect)((function(){if(e){var 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 oS(e,t,n){(0,g.useEffect)((function(){if(e){var 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 aS(e,t,n){var r=(0,g.useMemo)((function(){return(0,f.Z)(t.values())}),[t]);(0,g.useEffect)((function(){if(e){var 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])}ie(rS,"useQueryEditor"),nS(rS,"useQueryEditor"),ie(iS,"useSynchronizeSchema"),nS(iS,"useSynchronizeSchema"),ie(oS,"useSynchronizeValidationRules"),nS(oS,"useSynchronizeValidationRules"),ie(aS,"useSynchronizeExternalFragments"),nS(aS,"useSynchronizeExternalFragments");var lS=/^[a-zA-Z0-9_@(]$/,sS="query",uS="operationName",cS=Object.defineProperty,dS=ie((function(e,t){return cS(e,"name",{value:t,configurable:!0})}),"__name$c");function fS(e){var t=e.defaultQuery,n=e.defaultHeaders,r=e.headers,i=e.defaultTabs,o=e.query,a=e.variables,l=e.storage,s=null==l?void 0:l.get(RS);try{if(!s)throw new Error("Storage for tabs is empty");var u=JSON.parse(s);if(pS(u)){for(var c=ES({query:o,variables:a,headers:r}),d=-1,f=0;f=0)u.activeTabIndex=d;else{var h=o?TS(o):null;u.tabs.push({id:SS(),hash:c,title:h||IS,query:o,variables:a,headers:r,operationName:h,response:null}),u.activeTabIndex=u.tabs.length-1}return u}throw new Error("Storage for tabs is invalid")}catch(v){return{activeTabIndex:0,tabs:(i||[{query:null!=o?o:t,variables:a,headers:null!=r?r:n}]).map(CS)}}}function pS(e){return e&&"object"===typeof e&&!Array.isArray(e)&&vS(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(hS)}function hS(e){return e&&"object"===typeof e&&!Array.isArray(e)&&mS(e,"id")&&mS(e,"title")&&gS(e,"query")&&gS(e,"variables")&&gS(e,"headers")&&gS(e,"operationName")&&gS(e,"response")}function vS(e,t){return t in e&&"number"===typeof e[t]}function mS(e,t){return t in e&&"string"===typeof e[t]}function gS(e,t){return t in e&&("string"===typeof e[t]||null===e[t])}function bS(e){var t=e.queryEditor,n=e.variableEditor,r=e.headerEditor,i=e.responseEditor;return(0,g.useCallback)((function(e){var o,a,l,s,u,c=null!=(o=null==t?void 0:t.getValue())?o:null,d=null!=(a=null==n?void 0:n.getValue())?a:null,f=null!=(l=null==r?void 0:r.getValue())?l:null,p=null!=(s=null==t?void 0:t.operationName)?s:null;return kS(e,{query:c,variables:d,headers:f,response:null!=(u=null==i?void 0:i.getValue())?u:null,operationName:p})}),[t,n,r,i])}function yS(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return JSON.stringify(e,(function(e,n){return"hash"===e||"response"===e||!t&&"headers"===e?null:n}))}function xS(e){var t=e.storage,n=e.shouldPersistHeaders,r=(0,g.useMemo)((function(){return tk(500,(function(e){null==t||t.set(RS,e)}))}),[t]);return(0,g.useCallback)((function(e){r(yS(e,n))}),[n,r])}function wS(e){var t=e.queryEditor,n=e.variableEditor,r=e.headerEditor,i=e.responseEditor;return(0,g.useCallback)((function(e){var o=e.query,a=e.variables,l=e.headers,s=e.response;null==t||t.setValue(null!=o?o:""),null==n||n.setValue(null!=a?a:""),null==r||r.setValue(null!=l?l:""),null==i||i.setValue(null!=s?s:"")}),[r,t,i,n])}function CS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?null:t,r=e.variables,i=void 0===r?null:r,o=e.headers,a=void 0===o?null:o;return{id:SS(),hash:ES({query:n,variables:i,headers:a}),title:n&&TS(n)||IS,query:n,variables:i,headers:a,operationName:null,response:null}}function kS(e,t){return re(ne({},e),{tabs:e.tabs.map((function(n,r){if(r!==e.activeTabIndex)return n;var i=ne(ne({},n),t);return re(ne({},i),{hash:ES(i),title:i.operationName||(i.query?TS(i.query):void 0)||IS})}))})}function SS(){var e=dS((function(){return Math.floor(65536*(1+Math.random())).toString(16).slice(1)}),"s4");return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}function ES(e){var t,n,r;return[null!=(t=e.query)?t:"",null!=(n=e.variables)?n:"",null!=(r=e.headers)?r:""].join("|")}function TS(e){var t,n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return null!=(t=null==n?void 0:n[2])?t:null}function _S(e){var t=null==e?void 0:e.get(RS);if(t){var n=JSON.parse(t);null==e||e.set(RS,JSON.stringify(n,(function(e,t){return"headers"===e?null:t})))}}ie(fS,"getDefaultTabState"),dS(fS,"getDefaultTabState"),ie(pS,"isTabsState"),dS(pS,"isTabsState"),ie(hS,"isTabState"),dS(hS,"isTabState"),ie(vS,"hasNumberKey"),dS(vS,"hasNumberKey"),ie(mS,"hasStringKey"),dS(mS,"hasStringKey"),ie(gS,"hasStringOrNullKey"),dS(gS,"hasStringOrNullKey"),ie(bS,"useSynchronizeActiveTabValues"),dS(bS,"useSynchronizeActiveTabValues"),ie(yS,"serializeTabState"),dS(yS,"serializeTabState"),ie(xS,"useStoreTabs"),dS(xS,"useStoreTabs"),ie(wS,"useSetEditorValues"),dS(wS,"useSetEditorValues"),ie(CS,"createTab"),dS(CS,"createTab"),ie(kS,"setPropertiesInActiveTab"),dS(kS,"setPropertiesInActiveTab"),ie(SS,"guid"),dS(SS,"guid"),ie(ES,"hashFromTabContents"),dS(ES,"hashFromTabContents"),ie(TS,"fuzzyExtractOperationName"),dS(TS,"fuzzyExtractOperationName"),ie(_S,"clearHeadersFromTabs"),dS(_S,"clearHeadersFromTabs");var IS="",RS="tabState",NS=Object.defineProperty,OS=ie((function(e,t){return NS(e,"name",{value:t,configurable:!0})}),"__name$b");function MS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.editorTheme,r=void 0===t?Kx:t,i=e.keyMap,o=void 0===i?$x:i,a=e.onClickReference,l=e.onEdit,s=e.readOnly,u=void 0!==s&&s,c=arguments.length>1?arguments[1]:void 0,d=LS({nonNull:!0,caller:c||MS}),f=d.initialVariables,p=d.variableEditor,h=d.setVariableEditor,v=Ux(),m=Hk({caller:c||MS}),b=Uk({caller:c||MS}),y=(0,g.useRef)(null),x=(0,g.useRef)();return(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(904)]).then(n.bind(n,1904)),Promise.all([n.e(461),n.e(15)]).then(n.bind(n,1015)),Promise.all([n.e(461),n.e(401)]).then(n.bind(n,2401))]).then((function(t){if(e){x.current=t;var n=y.current;if(n){var i=t(n,{value:f,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:r,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!u&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Yx});i.addKeyMap({"Cmd-Space":function(){i.showHint({completeSingle:!1,container:n})},"Ctrl-Space":function(){i.showHint({completeSingle:!1,container:n})},"Alt-Space":function(){i.showHint({completeSingle:!1,container:n})},"Shift-Space":function(){i.showHint({completeSingle:!1,container:n})}}),i.on("keyup",(function(e,t){var n=t.keyCode;(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&e.execCommand("autocomplete")})),h(i)}}})),function(){e=!1}}),[r,f,u,h]),Lk(p,"keyMap",o),Fk(p,l,PS,"variables",MS),zk(p,a||null,MS),Bk(p,["Cmd-Enter","Ctrl-Enter"],null==v?void 0:v.run),Bk(p,["Shift-Ctrl-P"],b),Bk(p,["Shift-Ctrl-M"],m),y}ie(MS,"useVariableEditor"),OS(MS,"useVariableEditor");var PS="variables",DS=Object.defineProperty,AS=ie((function(e,t){return DS(e,"name",{value:t,configurable:!0})}),"__name$a"),ZS=je("EditorContext");function jS(e){var t=st(),n=(0,g.useState)(null),r=(0,s.Z)(n,2),i=r[0],o=r[1],a=(0,g.useState)(null),l=(0,s.Z)(a,2),u=l[0],c=l[1],d=(0,g.useState)(null),h=(0,s.Z)(d,2),v=h[0],m=h[1],b=(0,g.useState)(null),y=(0,s.Z)(b,2),x=y[0],w=y[1],C=(0,g.useState)((function(){var n=null!==(null==t?void 0:t.get(FS));return!1!==e.shouldPersistHeaders&&n?"true"===(null==t?void 0:t.get(FS)):Boolean(e.shouldPersistHeaders)})),S=(0,s.Z)(C,2),E=S[0],T=S[1];jk(i,e.headers),jk(u,e.query),jk(v,e.response),jk(x,e.variables);var _=xS({storage:t,shouldPersistHeaders:E}),I=(0,g.useState)((function(){var n,r,i,o,a,l,s,u,c,d=null!=(r=null!=(n=e.query)?n:null==t?void 0:t.get(sS))?r:null,f=null!=(o=null!=(i=e.variables)?i:null==t?void 0:t.get(PS))?o:null,p=null!=(l=null!=(a=e.headers)?a:null==t?void 0:t.get($k))?l:null,h=null!=(s=e.response)?s:"",v=fS({query:d,variables:f,headers:p,defaultTabs:e.defaultTabs||e.initialTabs,defaultQuery:e.defaultQuery||zS,defaultHeaders:e.defaultHeaders,storage:t});return _(v),{query:null!=(u=null!=d?d:0===v.activeTabIndex?v.tabs[0].query:null)?u:"",variables:null!=f?f:"",headers:null!=(c=null!=p?p:e.defaultHeaders)?c:"",response:h,tabState:v}})),R=(0,s.Z)(I,1)[0],N=(0,g.useState)(R.tabState),O=(0,s.Z)(N,2),M=O[0],P=O[1],D=(0,g.useCallback)((function(e){var n;if(e){null==t||t.set($k,null!=(n=null==i?void 0:i.getValue())?n:"");var r=yS(M,!0);null==t||t.set(RS,r)}else null==t||t.set($k,""),_S(t);T(e),null==t||t.set(FS,e.toString())}),[t,M,i]),A=(0,g.useRef)(void 0);(0,g.useEffect)((function(){var t=Boolean(e.shouldPersistHeaders);A.current!==t&&(D(t),A.current=t)}),[e.shouldPersistHeaders,D]);var Z=bS({queryEditor:u,variableEditor:x,headerEditor:i,responseEditor:v}),j=wS({queryEditor:u,variableEditor:x,headerEditor:i,responseEditor:v}),L=e.onTabChange,F=e.defaultHeaders,z=e.children,V=(0,g.useCallback)((function(){P((function(e){var t=Z(e),n={tabs:[].concat((0,f.Z)(t.tabs),[CS({headers:F})]),activeTabIndex:t.tabs.length};return _(n),j(n.tabs[n.activeTabIndex]),null==L||L(n),n}))}),[F,L,j,_,Z]),H=(0,g.useCallback)((function(e){P((function(t){var n=re(ne({},Z(t)),{activeTabIndex:e});return _(n),j(n.tabs[n.activeTabIndex]),null==L||L(n),n}))}),[L,j,_,Z]),U=(0,g.useCallback)((function(e){P((function(t){var n={tabs:t.tabs.filter((function(t,n){return e!==n})),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return _(n),j(n.tabs[n.activeTabIndex]),null==L||L(n),n}))}),[L,j,_]),q=(0,g.useCallback)((function(e){P((function(t){var n=kS(t,e);return _(n),null==L||L(n),n}))}),[L,_]),W=e.onEditOperationName,G=(0,g.useCallback)((function(e){u&&(u.operationName=e,q({operationName:e}),null==W||W(e))}),[W,u,q]),K=(0,g.useMemo)((function(){var t=new Map;if(Array.isArray(e.externalFragments)){var n,r=(0,p.Z)(e.externalFragments);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.set(i.name.value,i)}}catch(TE){r.e(TE)}finally{r.f()}}else if("string"===typeof e.externalFragments)(0,B.Vn)((0,k.Qc)(e.externalFragments,{}),{FragmentDefinition:function(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]),$=(0,g.useMemo)((function(){return e.validationRules||[]}),[e.validationRules]),Q=(0,g.useMemo)((function(){return re(ne({},M),{addTab:V,changeTab:H,closeTab:U,updateActiveTabValues:q,headerEditor:i,queryEditor:u,responseEditor:v,variableEditor:x,setHeaderEditor:o,setQueryEditor:c,setResponseEditor:m,setVariableEditor:w,setOperationName:G,initialQuery:R.query,initialVariables:R.variables,initialHeaders:R.headers,initialResponse:R.response,externalFragments:K,validationRules:$,shouldPersistHeaders:E,setShouldPersistHeaders:D})}),[M,V,H,U,q,i,u,v,x,G,R,K,$,E,D]);return Xe(ZS.Provider,{value:Q,children:z})}ie(jS,"EditorContextProvider"),AS(jS,"EditorContextProvider");var LS=Le(ZS),FS="shouldPersistHeaders",zS='# 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)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n',BS=Object.defineProperty,VS=ie((function(e,t){return BS(e,"name",{value:t,configurable:!0})}),"__name$9");function HS(e){var t=e,n=t.isHidden,r=oe(t,["isHidden"]),i=LS({nonNull:!0,caller:HS}).headerEditor,o=Kk(r,HS);return(0,g.useEffect)((function(){i&&!n&&i.refresh()}),[i,n]),Xe("div",{className:le("graphiql-editor",n&&"hidden"),ref:o})}ie(HS,"HeaderEditor"),VS(HS,"HeaderEditor");var US=Object.defineProperty,qS=ie((function(e,t){return US(e,"name",{value:t,configurable:!0})}),"__name$8");function WS(e){var t,n=(0,g.useState)({width:null,height:null}),r=(0,s.Z)(n,2),i=r[0],o=r[1],a=(0,g.useState)(null),l=(0,s.Z)(a,2),u=l[0],c=l[1],d=(0,g.useRef)(null),f=null==(t=GS(e.token))?void 0:t.href;(0,g.useEffect)((function(){if(d.current)return f?void fetch(f,{method:"HEAD"}).then((function(e){c(e.headers.get("Content-Type"))})).catch((function(){c(null)})):(o({width:null,height:null}),void c(null))}),[f]);var p=null!==i.width&&null!==i.height?et("div",{children:[i.width,"x",i.height,null===u?null:" "+u]}):null;return et("div",{children:[Xe("img",{onLoad:function(){var e,t,n,r;o({width:null!=(t=null==(e=d.current)?void 0:e.naturalWidth)?t:null,height:null!=(r=null==(n=d.current)?void 0:n.naturalHeight)?r:null})},ref:d,src:f}),p]})}function GS(e){if("string"===e.type){var t=e.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(t,n.protocol+"//"+n.host)}catch(r){return}}}function KS(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}ie(WS,"ImagePreview"),qS(WS,"ImagePreview"),WS.shouldRender=qS(ie((function(e){var t=GS(e);return!!t&&KS(t)}),"shouldRender"),"shouldRender"),ie(GS,"tokenToURL"),qS(GS,"tokenToURL"),ie(KS,"isImageURL"),qS(KS,"isImageURL");var $S=Object.defineProperty,QS=ie((function(e,t){return $S(e,"name",{value:t,configurable:!0})}),"__name$7");function YS(e){var t=rS(e,YS);return Xe("div",{className:"graphiql-editor",ref:t})}ie(YS,"QueryEditor"),QS(YS,"QueryEditor");var JS=Object.defineProperty,XS=ie((function(e,t){return JS(e,"name",{value:t,configurable:!0})}),"__name$6");function eE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.responseTooltip,r=e.editorTheme,i=void 0===r?Kx:r,o=e.keyMap,a=void 0===o?$x:o,l=arguments.length>1?arguments[1]:void 0,s=hw({nonNull:!0,caller:l||eE}),u=s.fetchError,c=s.validationErrors,d=LS({nonNull:!0,caller:l||eE}),f=d.initialResponse,p=d.responseEditor,h=d.setResponseEditor,v=(0,g.useRef)(null),m=(0,g.useRef)(t);return(0,g.useEffect)((function(){m.current=t}),[t]),(0,g.useEffect)((function(){var e=!0;return Jx([Promise.all([n.e(461),n.e(986)]).then(n.bind(n,986)).then((function(e){return e.f})),Promise.all([n.e(461),n.e(474)]).then(n.bind(n,6474)).then((function(e){return e.b})),Promise.all([n.e(461),n.e(301)]).then(n.bind(n,3301)).then((function(e){return e.d})),Promise.all([n.e(461),n.e(554)]).then(n.bind(n,2554)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(822)]).then(n.bind(n,9822)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(491)]).then(n.bind(n,4491)).then((function(e){return e.j})),Promise.all([n.e(461),n.e(492)]).then(n.bind(n,6492)).then((function(e){return e.s})),Promise.all([n.e(461),n.e(964)]).then(n.bind(n,7964)),Promise.all([n.e(461),n.e(925)]).then(n.bind(n,9925))],{useCommonAddons:!1}).then((function(t){if(e){var n=document.createElement("div");t.registerHelper("info","graphql-results",(function(e,t,r,i){var o=[],a=m.current;return a&&o.push(Xe(a,{pos:i,token:e})),WS.shouldRender(e)&&o.push(Xe(WS,{token:e},"image-preview")),o.length?(K.render(o,n),n):(K.unmountComponentAtNode(n),null)}));var r=v.current;if(r){var o=t(r,{value:f,lineWrapping:!0,readOnly:!0,theme:i,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Yx});h(o)}}})),function(){e=!1}}),[i,f,h]),Lk(p,"keyMap",a),(0,g.useEffect)((function(){u&&(null==p||p.setValue(u)),c.length>0&&(null==p||p.setValue(be(c)))}),[p,u,c]),v}ie(eE,"useResponseEditor"),XS(eE,"useResponseEditor");var tE=Object.defineProperty,nE=ie((function(e,t){return tE(e,"name",{value:t,configurable:!0})}),"__name$5");function rE(e){var t=eE(e,rE);return Xe("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}ie(rE,"ResponseEditor"),nE(rE,"ResponseEditor");var iE=Object.defineProperty,oE=ie((function(e,t){return iE(e,"name",{value:t,configurable:!0})}),"__name$4");function aE(e){var t=e,n=t.isHidden,r=oe(t,["isHidden"]),i=LS({nonNull:!0,caller:aE}).variableEditor,o=MS(r,aE);return(0,g.useEffect)((function(){i&&!n&&i.refresh()}),[i,n]),Xe("div",{className:le("graphiql-editor",n&&"hidden"),ref:o})}ie(aE,"VariableEditor"),oE(aE,"VariableEditor");var lE=Object.defineProperty,sE=ie((function(e,t){return lE(e,"name",{value:t,configurable:!0})}),"__name$3");function uE(e){var t=e.children,n=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,i=e.defaultHeaders,o=e.defaultTabs,a=e.externalFragments,l=e.fetcher,s=e.getDefaultFieldNames,u=e.headers,c=e.initialTabs,d=e.inputValueDeprecation,f=e.introspectionQueryName,p=e.maxHistoryLength,h=e.onEditOperationName,v=e.onSchemaChange,m=e.onTabChange,g=e.onTogglePluginVisibility,b=e.operationName,y=e.plugins,x=e.query,w=e.response,C=e.schema,k=e.schemaDescription,S=e.shouldPersistHeaders,E=e.storage,T=e.validationRules,_=e.variables,I=e.visiblePlugin;return Xe(ot,{storage:E,children:Xe(Mx,{maxHistoryLength:p,children:Xe(jS,{defaultQuery:r,defaultHeaders:i,defaultTabs:o,externalFragments:a,headers:u,initialTabs:c,onEditOperationName:h,onTabChange:m,query:x,response:w,shouldPersistHeaders:S,validationRules:T,variables:_,children:Xe(pw,{dangerouslyAssumeSchemaIsValid:n,fetcher:l,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:v,schema:C,schemaDescription:k,children:Xe(Hx,{getDefaultFieldNames:s,fetcher:l,operationName:b,children:Xe(ww,{children:Xe(Rk,{onTogglePluginVisibility:g,plugins:y,visiblePlugin:I,children:t})})})})})})})}ie(uE,"GraphiQLProvider"),sE(uE,"GraphiQLProvider");var cE=Object.defineProperty,dE=ie((function(e,t){return cE(e,"name",{value:t,configurable:!0})}),"__name$2");function fE(){var e=st(),t=(0,g.useState)((function(){if(!e)return null;var t=e.get(pE);switch(t){case"light":return"light";case"dark":return"dark";default:return"string"===typeof t&&e.set(pE,""),null}})),n=(0,s.Z)(t,2),r=n[0],i=n[1];(0,g.useLayoutEffect)((function(){"undefined"!==typeof window&&(document.body.classList.remove("graphiql-light","graphiql-dark"),r&&document.body.classList.add("graphiql-".concat(r)))}),[r]);var o=(0,g.useCallback)((function(t){null==e||e.set(pE,t||""),i(t)}),[e]);return(0,g.useMemo)((function(){return{theme:r,setTheme:o}}),[r,o])}ie(fE,"useTheme"),dE(fE,"useTheme");var pE="theme",hE=Object.defineProperty,vE=ie((function(e,t){return hE(e,"name",{value:t,configurable:!0})}),"__name$1");function mE(e){var t=e.defaultSizeRelation,n=void 0===t?gE:t,r=e.direction,i=e.initiallyHidden,o=e.onHiddenElementChange,a=e.sizeThresholdFirst,l=void 0===a?100:a,u=e.sizeThresholdSecond,c=void 0===u?100:u,d=e.storageKey,f=st(),p=(0,g.useMemo)((function(){return tk(500,(function(e){f&&d&&f.set(d,e)}))}),[f,d]),h=(0,g.useState)((function(){var e=f&&d?f.get(d):null;return e===bE||"first"===i?"first":e===yE||"second"===i?"second":null})),v=(0,s.Z)(h,2),m=v[0],b=v[1],y=(0,g.useCallback)((function(e){e!==m&&(b(e),null==o||o(e))}),[m,o]),x=(0,g.useRef)(null),w=(0,g.useRef)(null),C=(0,g.useRef)(null),k=(0,g.useRef)("".concat(n));(0,g.useLayoutEffect)((function(){var e=f&&d&&f.get(d)||k.current,t="horizontal"===r?"row":"column";x.current&&(x.current.style.display="flex",x.current.style.flexDirection=t,x.current.style.flex=e===bE||e===yE?k.current:e),C.current&&(C.current.style.display="flex",C.current.style.flexDirection=t,C.current.style.flex="1"),w.current&&(w.current.style.display="flex",w.current.style.flexDirection=t)}),[r,f,d]);var S=(0,g.useCallback)((function(e){var t="first"===e?x.current:C.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",x.current)){var n=parseFloat(x.current.style.flex);(!Number.isFinite(n)||n<1)&&(x.current.style.flex="1")}}),[]),E=(0,g.useCallback)((function(e){var t="first"===e?x.current:C.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",x.current&&f&&d)){var n=null==f?void 0:f.get(d);n!==bE&&n!==yE&&(x.current.style.flex=n||k.current)}}),[f,d]);return(0,g.useLayoutEffect)((function(){"first"===m?S("first"):E("first"),"second"===m?S("second"):E("second")}),[m,S,E]),(0,g.useEffect)((function(){if(w.current&&x.current&&C.current){var e=w.current,t=x.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight";return ie(u,"handleMouseDown"),vE(u,"handleMouseDown"),e.addEventListener("mousedown",u),ie(d,"reset"),vE(d,"reset"),e.addEventListener("dblclick",d),function(){e.removeEventListener("mousedown",u),e.removeEventListener("dblclick",d)}}function u(r){r.preventDefault();var u=r[i]-e.getBoundingClientRect()[o];function d(r){if(0===r.buttons)return f();var d=r[i]-n.getBoundingClientRect()[o]-u,h=n.getBoundingClientRect()[a]-r[i]+u-e[s];if(d1&&"string"!==typeof a,d=i||o,f="".concat(d?"Stop":"Execute"," query (Ctrl-Enter)"),p={type:"button",className:"graphiql-execute-button",children:Xe(d?zl:Ml,{}),"aria-label":f};return c&&!d?et(Tv,{children:[Xe(vx,{label:f,children:Xe(Tv.Button,ne({},p))}),Xe(Tv.List,{children:u.map((function(e,r){var i=e.name?e.name.value:"");return Xe(Tv.Item,{onSelect:function(){var r,i=null==(r=e.name)?void 0:r.value;t&&i&&i!==t.operationName&&n(i),l()},children:i},"".concat(i,"-").concat(r))}))})]}):Xe(vx,{label:f,children:Xe("button",re(ne({},p),{onClick:function(){d?s():l()}}))})}ie(kE,"ExecuteButton"),CE(kE,"ExecuteButton");var SE=(0,g.forwardRef)((function(e,t){var n=e,r=n.button,i=n.children,o=n.label,a=oe(n,["button","children","label"]),l="".concat(o).concat(a.value?": ".concat(a.value):"");return et(Iv.Input,re(ne({},a),{ref:t,className:le("graphiql-toolbar-listbox",a.className),"aria-label":l,children:[Xe(vx,{label:l,children:Xe(Iv.Button,{children:r})}),Xe(Iv.Popover,{children:i})]}))}));SE.displayName="ToolbarListbox";Pd(SE,{Option:Iv.Option});var EE=(0,g.forwardRef)((function(e,t){var n=e,r=n.button,i=n.children,o=n.label,a=oe(n,["button","children","label"]);return et(Tv,re(ne({},a),{ref:t,children:[Xe(vx,{label:o,children:Xe(Tv.Button,{className:le("graphiql-un-styled graphiql-toolbar-menu",a.className),"aria-label":o,children:r})}),Xe(Tv.List,{children:i})]}))}));EE.displayName="ToolbarMenu";Pd(EE,{Item:Tv.Item})},4069:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");t.Z=a},5596:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)([(0,o.jsx)("path",{d:"m12 2-5.5 9h11z"},"0"),(0,o.jsx)("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),(0,o.jsx)("path",{d:"M3 13.5h8v8H3z"},"2")],"Category");t.Z=a},4195:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},7791:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload");t.Z=a},3670:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"}),"Download");t.Z=a},8215:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},7432:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.Z=a},1739:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");t.Z=a},346:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},1831:function(e,t,n){"use strict";var r=n(1941);t.Z=void 0;var i=r(n(1608)),o=n(9343),a=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6 10H6v-2h8v2zm4-4H6v-2h12v2z"}),"Source");t.Z=a},1608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6190)},396:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case v:case h:case s:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},8712:function(e,t,n){"use strict";n(396)},3660:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(2793),i=n(1048),o=n(1316),a=n(4073),l=n(8046),s=n(4165),u=n(4134),c=n(6222);function d(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,c.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,c.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var f=n(3566),p={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},v={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},b={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},x={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w=["mode","contrastThreshold","tonalOffset"],C={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:p.white,default:p.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:p.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:p.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function S(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.$n)(e.main,i):"dark"===t&&(e.dark=(0,f._j)(e.main,o)))}function E(e){var t=e.mode,n=void 0===t?"light":t,l=e.contrastThreshold,s=void 0===l?3:l,u=e.tonalOffset,c=void 0===u?.2:u,d=(0,i.Z)(e,w),E=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[200],light:b[50],dark:b[400]}:{main:b[700],light:b[400],dark:b[800]}}(n),T=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),_=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(n),I=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(n),R=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(n),N=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(n);function O(e){return(0,f.mi)(e,k.text.primary)>=s?k.text.primary:C.text.primary}var M=function(e){var t=e.color,n=e.name,i=e.mainShade,a=void 0===i?500:i,l=e.lightShade,s=void 0===l?300:l,u=e.darkShade,d=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,o.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,o.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return S(t,"light",s,c),S(t,"dark",d,c),t.contrastText||(t.contrastText=O(t.main)),t},P={dark:k,light:C};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},p),mode:n,primary:M({color:E,name:"primary"}),secondary:M({color:T,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:_,name:"error"}),warning:M({color:N,name:"warning"}),info:M({color:I,name:"info"}),success:M({color:R,name:"success"}),grey:h,contrastThreshold:s,getContrastText:O,augmentColor:M,tonalOffset:c},P[n]),d)}var T=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var _={textTransform:"uppercase"},I='"Roboto", "Helvetica", "Arial", sans-serif';function R(e,t){var n="function"===typeof t?t(e):t,o=n.fontFamily,l=void 0===o?I:o,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,g=void 0===m?700:m,b=n.htmlFontSize,y=void 0===b?16:b,x=n.allVariants,w=n.pxToRem,C=(0,i.Z)(n,T);var k=u/14,S=w||function(e){return"".concat(e/y*k,"rem")},E=function(e,t,n,i,o){return(0,r.Z)({fontFamily:l,fontWeight:e,fontSize:S(t),lineHeight:n},l===I?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},o,x);var a},R={h1:E(d,96,1.167,-1.5),h2:E(d,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(v,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(v,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(v,14,1.75,.4,_),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,_)};return(0,a.Z)((0,r.Z)({htmlFontSize:y,pxToRem:S,fontFamily:l,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:g},R),C,{clone:!1})}function N(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",N(0,2,1,-1,0,1,1,0,0,1,3,0),N(0,3,1,-2,0,2,2,0,0,1,5,0),N(0,3,3,-2,0,3,4,0,0,1,8,0),N(0,2,4,-1,0,4,5,0,0,1,10,0),N(0,3,5,-1,0,5,8,0,0,1,14,0),N(0,3,5,-1,0,6,10,0,0,1,18,0),N(0,4,5,-2,0,7,10,1,0,2,16,1),N(0,5,5,-3,0,8,10,1,0,3,14,2),N(0,5,6,-3,0,9,12,1,0,3,16,2),N(0,6,6,-3,0,10,14,1,0,4,18,3),N(0,6,7,-4,0,11,15,1,0,4,20,3),N(0,7,8,-4,0,12,17,2,0,5,22,4),N(0,7,8,-4,0,13,19,2,0,5,24,4),N(0,7,9,-4,0,14,21,2,0,5,26,4),N(0,8,9,-5,0,15,22,2,0,6,28,5),N(0,8,10,-5,0,16,24,2,0,6,30,5),N(0,8,11,-5,0,17,26,2,0,6,32,5),N(0,9,11,-5,0,18,28,2,0,7,34,6),N(0,9,12,-6,0,19,29,2,0,7,36,6),N(0,10,13,-6,0,20,31,3,0,8,38,7),N(0,10,13,-6,0,21,33,3,0,8,40,7),N(0,10,14,-6,0,22,35,3,0,8,42,7),N(0,11,14,-7,0,23,36,3,0,9,44,8),N(0,11,15,-7,0,24,38,3,0,9,46,8)],M=n(5356),P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},D=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,c=e.palette,f=void 0===c?{}:c,p=e.transitions,h=void 0===p?{}:p,v=e.typography,m=void 0===v?{}:v,g=(0,i.Z)(e,D);if(e.vars)throw new Error((0,o.Z)(18));var b=E(f),y=(0,l.Z)(e),x=(0,a.Z)(y,{mixins:d(y.breakpoints,n),palette:b,shadows:O.slice(),typography:R(b,m),transitions:(0,M.ZP)(h),zIndex:(0,r.Z)({},P)});x=(0,a.Z)(x,g);for(var w=arguments.length,C=new Array(w>1?w-1:0),k=1;k0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,l=void 0===a?n.standard:a,u=i.easing,c=void 0===u?t.easeInOut:u,d=i.delay,f=void 0===d?0:d;(0,r.Z)(i,o);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:s(l)," ").concat(c," ").concat("string"===typeof f?f:s(f))})).join(",")}},e,{easing:t,duration:n})}},9764:function(e,t,n){"use strict";var r=(0,n(3660).Z)();t.Z=r},8132:function(e,t,n){"use strict";n.d(t,{Dz:function(){return a},FO:function(){return o}});var r=n(4011),i=n(9764),o=function(e){return(0,r.x9)(e)&&"classes"!==e},a=r.x9,l=(0,r.ZP)({defaultTheme:i.Z,rootShouldForwardProp:o});t.ZP=l},5656:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7678),i=n(2321);var o=n(9764);function a(e){return function(e){var t=e.props,n=e.name,o=e.defaultTheme,a=(0,i.Z)(o);return(0,r.Z)({theme:a,name:n,props:t})}({props:e.props,name:e.name,defaultTheme:o.Z})}},4112:function(e,t,n){"use strict";var r=n(1460);t.Z=r.Z},2701:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(2793),i=n(8381),o=n(1048),a=n(5863),l=n(2378),s=n(4112),u=n(5656),c=n(8132),d=n(8995),f=n(4438);function p(e){return(0,f.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(9343),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,s.Z)(n.color))],t["fontSize".concat((0,s.Z)(n.fontSize))]]}})((function(e){var t,n,r,i,o,a,l,s,u,c,d,f,p,h,v,m,g,b=e.theme,y=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=b.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=b.transitions)||null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=b.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(l=b.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=b.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[y.fontSize],color:null!=(d=null==(f=(b.vars||b).palette)||null==(p=f[y.color])?void 0:p.main)?d:{action:null==(h=(b.vars||b).palette)||null==(v=h.action)?void 0:v.active,disabled:null==(m=(b.vars||b).palette)||null==(g=m.action)?void 0:g.disabled,inherit:void 0}[y.color]}})),g=i.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),i=n.children,c=n.className,d=n.color,f=void 0===d?"inherit":d,g=n.component,b=void 0===g?"svg":g,y=n.fontSize,x=void 0===y?"medium":y,w=n.htmlColor,C=n.inheritViewBox,k=void 0!==C&&C,S=n.titleAccess,E=n.viewBox,T=void 0===E?"0 0 24 24":E,_=(0,o.Z)(n,v),I=(0,r.Z)({},n,{color:f,component:b,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:k,viewBox:T}),R={};k||(R.viewBox=T);var N=function(e){var t=e.color,n=e.fontSize,r=e.classes,i={root:["root","inherit"!==t&&"color".concat((0,s.Z)(t)),"fontSize".concat((0,s.Z)(n))]};return(0,l.Z)(i,p,r)}(I);return(0,h.jsxs)(m,(0,r.Z)({as:b,className:(0,a.Z)(N.root,c),focusable:"false",color:w,"aria-hidden":!S||void 0,role:S?"img":void 0,ref:t},R,_,{ownerState:I,children:[i,S?(0,h.jsx)("title",{children:S}):null]}))}));g.muiName="SvgIcon";var b=g;function y(e,t){function n(n,i){return(0,h.jsx)(b,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))}return n.muiName=b.muiName,i.memo(i.forwardRef(n))}},3877:function(e,t,n){"use strict";var r=n(3857);t.Z=r.Z},6190:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return i.Z},createChainedFunction:function(){return o},createSvgIcon:function(){return a.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return s},isMuiElement:function(){return u.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return m},useControlled:function(){return g.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return x.Z}});var r=n(6571),i=n(4112),o=n(1920).Z,a=n(2701),l=n(3877);var s=function(e,t){return function(){return null}},u=n(5992),c=n(7412),d=n(7626);n(1860);var f=function(e,t){return function(){return null}},p=n(9863).Z,h=n(496),v=n(6595);var m=function(e,t,n,r,i){return null},g=n(9393),b=n(1463),y=n(355),x=n(6522),w={configure:function(e){r.Z.configure(e)}}},5992:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8381);var i=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},7412:function(e,t,n){"use strict";var r=n(9890);t.Z=r.Z},7626:function(e,t,n){"use strict";var r=n(4967);t.Z=r.Z},9393:function(e,t,n){"use strict";var r=n(5180);t.Z=r.Z},496:function(e,t,n){"use strict";var r=n(2371);t.Z=r.Z},1463:function(e,t,n){"use strict";var r=n(1711);t.Z=r.Z},355:function(e,t,n){"use strict";var r=n(8444);t.Z=r.Z},6595:function(e,t,n){"use strict";var r=n(347);t.Z=r.Z},6522:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,i=n(8381),o=!0,a=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function u(){o=!1}function c(){"hidden"===this.visibilityState&&a&&(o=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){var e=i.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",c,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},131:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},Co:function(){return w}});var r=n(8381);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t96?f:p},v=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);(0,d.L)((function(){return(0,u.My)(t,n,r)}));return null},g=function e(t,n){var o,a,l=t.__emotion_real===t,d=l&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var f=v(t,n,l),p=f||h(d),g=!p("as");return function(){var b=arguments,y=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var x=b.length,w=1;w0&&void 0!==arguments[0]?arguments[0]:{},n=null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function s(e){var t,n=e.values,r=e.breakpoints,i=e.base||function(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var i,a=e.substring(t+1,e.length-1);if("color"===n){if(i=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:i}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,l=r*Math.min(i,1-i),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function c(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}},4011:function(e,t,n){"use strict";n.d(t,{ZP:function(){return S},x9:function(){return C}});var r=n(1303),i=n(678),o=n(916),a=n(4695),l=n(131),s=n(8046),u=n(1460),c=["variant"];function d(e){return 0===e.length}function f(e){var t=e.variant,n=(0,o.Z)(e,c),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?d(r)?e[t]:(0,u.Z)(e[t]):"".concat(d(r)?t:(0,u.Z)(t)).concat((0,u.Z)(e[t].toString()))})),r}var p=n(4134),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],v=["theme"],m=["theme"];function g(e){return 0===Object.keys(e).length}function b(e){return"string"===typeof e&&e.charCodeAt(0)>96}var y=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},x=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=f(e.props);r[t]=e.style})),r},w=function(e,t,n,r){var i,o,a=e.ownerState,l=void 0===a?{}:a,s=[],u=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return u&&u.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){l[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[f(n.props)])})),s};function C(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var k=(0,s.Z)();function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?k:t,s=e.rootShouldForwardProp,u=void 0===s?C:s,c=e.slotShouldForwardProp,d=void 0===c?C:c,f=function(e){var t=g(e.theme)?n:e.theme;return(0,p.Z)((0,a.Z)({},e,{theme:t}))};return f.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var s,c=t.name,p=t.slot,k=t.skipVariantsResolver,S=t.skipSx,E=t.overridesResolver,T=(0,o.Z)(t,h),_=void 0!==k?k:p&&"Root"!==p||!1,I=S||!1;var R=C;"Root"===p?R=u:p?R=d:b(e)&&(R=void 0);var N=(0,l.ZP)(e,(0,a.Z)({shouldForwardProp:R,label:s},T)),O=function(e){for(var t=arguments.length,l=new Array(t>1?t-1:0),s=1;s0){var h=new Array(p).fill("");(d=[].concat((0,r.Z)(e),(0,r.Z)(h))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(h))}else"function"===typeof e&&e.__emotion_real!==e&&(d=function(t){var r=t.theme,i=(0,o.Z)(t,m);return e((0,a.Z)({theme:g(r)?n:r},i))});var b=N.apply(void 0,[d].concat((0,r.Z)(u)));return b};return N.withConfig&&(O.withConfig=N.withConfig),O}}},8046:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(4695),i=n(916),o=n(4073),a=n(6222),l=["values","unit","step"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,o=e.unit,s=void 0===o?"px":o,u=e.step,c=void 0===u?5:u,d=(0,i.Z)(e,l),f=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,a.Z)({},t.key,t.val))}),{})}(n),p=Object.keys(f);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function v(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(s,")")}function m(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-c/100).concat(s,")")}return(0,r.Z)({keys:p,values:f,up:h,down:v,between:m,only:function(e){return p.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,l=void 0===a?{}:a,c=e.spacing,v=e.shape,m=void 0===v?{}:v,g=(0,i.Z)(e,h),b=s(n),y=d(c),x=(0,o.Z)({breakpoints:b,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},l),spacing:y,shape:(0,r.Z)({},u,m)},g),w=arguments.length,C=new Array(w>1?w-1:0),k=1;k2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,r.Z)(t,2),i=n[0],o=n[1],a=l[i],c=s[o]||"";return Array.isArray(c)?c.map((function(e){return a+e})):[a+c]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(d,f);function h(e,t,n,r){var i,a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function v(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(c(n),r),a=e[n];return(0,i.k9)(e,a,o)}function b(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(a.Z,{})}function y(e){return b(e,d)}function x(e){return b(e,f)}function w(e){return b(e,p)}y.propTypes={},y.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=p},1489:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return l}});var r=n(6222),i=n(1460),o=n(9912);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r,i,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,s=void 0===n?e.prop:n,u=e.themeKey,c=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,u)||{};return(0,o.k9)(e,n,(function(e){var n=l(d,c,e);return e===n&&"string"===typeof e&&(n=l(d,c,"".concat(t).concat("default"===e?"":(0,i.Z)(e)),e)),!1===s?n:(0,r.Z)({},s,n)}))};return d.propTypes={},d.filterProps=[t],d}},4165:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(9125),i=n(1489),o=n(2460);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:o;return(0,i.Z)(e)}},7678:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6005);function i(e){var t=e.theme,n=e.name,i=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},3501:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(8381);var i=r.createContext(null);function o(){return r.useContext(i)}function a(e){return 0===Object.keys(e).length}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o();return!t||a(t)?e:t}},6571:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},1460:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1316);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2378:function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},1920:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?l[r]=a(e[r],t[r],n):n.clone?l[r]=i(t[r])?o(t[r]):t[r]:l[r]=t[r])})),l}},1316:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.Z.generate(e),"-").concat(t)}},8995:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4438);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=(0,r.Z)(e,t,n)})),i}},9890:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},4967:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9890);function i(e){return(0,r.Z)(e).defaultView||window}},6005:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1860);function i(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(o){if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){var a=e[o]||{},l=t[o];n[o]={},l&&Object.keys(l)?a&&Object.keys(a)?(n[o]=(0,r.Z)({},l),Object.keys(a).forEach((function(e){n[o][e]=i(a[e],l[e])}))):n[o]=l:n[o]=a}else void 0===n[o]&&(n[o]=e[o])})),n}},9863:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},5180:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(678),i=n(8381);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,i.useRef(void 0!==t).current),a=i.useState(n),l=(0,r.Z)(a,2),s=l[0],u=l[1];return[o?t:s,i.useCallback((function(e){o||u(e)}),[])]}},2371:function(e,t,n){"use strict";var r=n(8381),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},1711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8381),i=n(2371);function o(e){var t=r.useRef(e);return(0,i.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},8444:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8381),i=n(9863);function o(){for(var e=arguments.length,t=new Array(e),n=0;n-1};function u(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!==typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e){var t=new f;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},g.call(y.prototype),g.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];C.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(E){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,o){var a=new y(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:w(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;r(new C(t,e))},l.onerror=function(){o(new TypeError("Network request failed"))},l.ontimeout=function(){o(new TypeError("Network request failed"))},l.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&i&&(l.responseType="blob"),a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",s)}),l.send("undefined"===typeof a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=f,e.Request=y,e.Response=C),t.Headers=f,t.Request=y,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},4413:function(e){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},7809:function(e,t,n){"use strict";var r=n(369);e.exports=function e(t,n,i){var o;void 0===n&&(n=""),void 0===i&&(i=r);var a=new Map;function l(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,l([n],t);else{var s=n?n+".":"";if("undefined"!==typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,(function(e,t){return l([""+s+t],e),null}));else if(Array.isArray(t))o=t.map((function(t,n){var r=e(t,""+s+n,i);return r.files.forEach(l),r.clone}));else if(t&&t.constructor===Object)for(var u in o={},t){var c=e(t[u],""+s+u,i);c.files.forEach(l),o[u]=c.clone}else o=t}return{clone:o,files:a}}},9068:function(e,t,n){"use strict";t.ReactNativeFile=n(4413),t.extractFiles=n(7809),t.isExtractableFile=n(369)},369:function(e,t,n){"use strict";var r=n(4413);e.exports=function(e){return"undefined"!==typeof File&&e instanceof File||"undefined"!==typeof Blob&&e instanceof Blob||e instanceof r}},387:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},1762:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(9068),o=r(n(387)),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"===typeof e&&"function"===typeof e.pipe};t.default=function(e,t,n){var r=i.extractFiles({query:e,variables:t,operationName:n},"",a),l=r.clone,s=r.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(l);if("undefined"!==typeof t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var u=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return JSON.stringify(u)}var c=new("undefined"===typeof FormData?o.default:FormData);c.append("operations",JSON.stringify(l));var d={},f=0;return s.forEach((function(e){d[++f]=e})),c.append("map",JSON.stringify(d)),f=0,s.forEach((function(e,t){c.append(""+ ++f,t)})),c}},3821:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n