@stepzen/graphiql-proxy 0.20.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/package.json +61 -0
  4. package/src/server/api/debugging.js +19 -0
  5. package/src/server/api/details.js +15 -0
  6. package/src/server/api/ping.js +9 -0
  7. package/src/server/api/predicates.js +23 -0
  8. package/src/server/api/proxy.js +59 -0
  9. package/src/server/api/samples.js +26 -0
  10. package/src/server/index.js +100 -0
  11. package/src/server/utils/open-browser.js +144 -0
  12. package/src/server/utils/open-chrome.applescript +93 -0
  13. package/src/ui/README.md +72 -0
  14. package/src/ui/build/asset-manifest.json +58 -0
  15. package/src/ui/build/favicon.ico +0 -0
  16. package/src/ui/build/index.html +1 -0
  17. package/src/ui/build/static/css/main.f9030c32.css +2 -0
  18. package/src/ui/build/static/css/main.f9030c32.css.map +1 -0
  19. package/src/ui/build/static/js/0.a1da3266.chunk.js +2 -0
  20. package/src/ui/build/static/js/0.a1da3266.chunk.js.map +1 -0
  21. package/src/ui/build/static/js/136.7849911c.chunk.js +2 -0
  22. package/src/ui/build/static/js/136.7849911c.chunk.js.map +1 -0
  23. package/src/ui/build/static/js/170.27296619.chunk.js +2 -0
  24. package/src/ui/build/static/js/170.27296619.chunk.js.map +1 -0
  25. package/src/ui/build/static/js/190.e088a175.chunk.js +2 -0
  26. package/src/ui/build/static/js/190.e088a175.chunk.js.map +1 -0
  27. package/src/ui/build/static/js/267.962ef6a4.chunk.js +2 -0
  28. package/src/ui/build/static/js/267.962ef6a4.chunk.js.map +1 -0
  29. package/src/ui/build/static/js/306.cb66dc99.chunk.js +2 -0
  30. package/src/ui/build/static/js/306.cb66dc99.chunk.js.map +1 -0
  31. package/src/ui/build/static/js/316.7c2be1f0.chunk.js +2 -0
  32. package/src/ui/build/static/js/316.7c2be1f0.chunk.js.map +1 -0
  33. package/src/ui/build/static/js/322.5ada89eb.chunk.js +2 -0
  34. package/src/ui/build/static/js/322.5ada89eb.chunk.js.map +1 -0
  35. package/src/ui/build/static/js/344.e6b10333.chunk.js +2 -0
  36. package/src/ui/build/static/js/344.e6b10333.chunk.js.map +1 -0
  37. package/src/ui/build/static/js/39.dd9b3202.chunk.js +2 -0
  38. package/src/ui/build/static/js/39.dd9b3202.chunk.js.map +1 -0
  39. package/src/ui/build/static/js/430.de05cf2b.chunk.js +2 -0
  40. package/src/ui/build/static/js/430.de05cf2b.chunk.js.map +1 -0
  41. package/src/ui/build/static/js/503.a3ba392a.chunk.js +2 -0
  42. package/src/ui/build/static/js/503.a3ba392a.chunk.js.map +1 -0
  43. package/src/ui/build/static/js/580.b48b02d9.chunk.js +2 -0
  44. package/src/ui/build/static/js/580.b48b02d9.chunk.js.map +1 -0
  45. package/src/ui/build/static/js/587.f2cbe2fb.chunk.js +2 -0
  46. package/src/ui/build/static/js/587.f2cbe2fb.chunk.js.map +1 -0
  47. package/src/ui/build/static/js/619.cd709ae5.chunk.js +2 -0
  48. package/src/ui/build/static/js/619.cd709ae5.chunk.js.map +1 -0
  49. package/src/ui/build/static/js/658.916c9abf.chunk.js +2 -0
  50. package/src/ui/build/static/js/658.916c9abf.chunk.js.map +1 -0
  51. package/src/ui/build/static/js/756.a915a97e.chunk.js +2 -0
  52. package/src/ui/build/static/js/756.a915a97e.chunk.js.map +1 -0
  53. package/src/ui/build/static/js/76.0a014434.chunk.js +2 -0
  54. package/src/ui/build/static/js/76.0a014434.chunk.js.map +1 -0
  55. package/src/ui/build/static/js/804.118a9243.chunk.js +2 -0
  56. package/src/ui/build/static/js/804.118a9243.chunk.js.map +1 -0
  57. package/src/ui/build/static/js/849.f850f73b.chunk.js +2 -0
  58. package/src/ui/build/static/js/849.f850f73b.chunk.js.map +1 -0
  59. package/src/ui/build/static/js/88.b5b4cd91.chunk.js +2 -0
  60. package/src/ui/build/static/js/88.b5b4cd91.chunk.js.map +1 -0
  61. package/src/ui/build/static/js/983.df163755.chunk.js +2 -0
  62. package/src/ui/build/static/js/983.df163755.chunk.js.map +1 -0
  63. package/src/ui/build/static/js/main.27cac1e6.js +3 -0
  64. package/src/ui/build/static/js/main.27cac1e6.js.LICENSE.txt +92 -0
  65. package/src/ui/build/static/js/main.27cac1e6.js.map +1 -0
  66. package/src/ui/build/static/media/logo.2fa5e016c31f1c335b07ff477d91ee9a.svg +1 -0
  67. package/src/ui/package.json +51 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see main.27cac1e6.js.LICENSE.txt */
2
+ !function(){var e={7757:function(e,t,n){e.exports=n(9727)},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3668:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(e),l=u&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),v=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),m=/Android/.test(e),g=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=v||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),E=f&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,u=!0);var k=y&&(l||f&&(null==E||E<12.11)),S=n||a&&s>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var _,T=function(e,t){var n=e.className,r=x(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function N(e,t){return C(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function L(e,t){var n=e.className;x(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!x(n[r]).test(t)&&(t+=" "+n[r]);return t}_=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var F=function(e){e.select()};function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function j(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}v?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(t){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}V.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},V.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var B=50,z={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},H={origin:"*mouse"},Z={origin:"+move"};function W(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var G=[""];function Q(e){for(;G.length<=e;)G.push($(G)+" ");return G[e]}function $(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function K(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function J(){}function X(e,t){var n;return Object.create?n=Object.create(e):(J.prototype=e,n=new J),t&&P(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function ue(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var le=null;function ce(e,t,n){var r;le=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:le=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function u(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,f=[],p=0;p<c;++p)f.push(n(e.charCodeAt(p)));for(var d=0,h=l;d<c;++d){var v=f[d];"m"==v?f[d]=h:h=v}for(var m=0,g=l;m<c;++m){var y=f[m];"1"==y&&"r"==g?f[m]="n":o.test(y)&&(g=y,"r"==y&&(f[m]="R"))}for(var b=1,w=f[0];b<c-1;++b){var E=f[b];"+"==E&&"1"==w&&"1"==f[b+1]?f[b]="1":","!=E||w!=f[b+1]||"1"!=w&&"n"!=w||(f[b]=w),w=E}for(var k=0;k<c;++k){var S=f[k];if(","==S)f[k]="N";else if("%"==S){var x=void 0;for(x=k+1;x<c&&"%"==f[x];++x);for(var _=k&&"!"==f[k-1]||x<c&&"1"==f[x]?"1":"N",T=k;T<x;++T)f[T]=_;k=x-1}}for(var C=0,N=l;C<c;++C){var O=f[C];"L"==N&&"1"==O?f[C]="L":o.test(O)&&(N=O)}for(var A=0;A<c;++A)if(i.test(f[A])){var D=void 0;for(D=A+1;D<c&&i.test(f[D]);++D);for(var I="L"==(A?f[A-1]:l),L=I==("L"==(D<c?f[D]:l))?I?"L":"R":l,M=A;M<D;++M)f[M]=L;A=D-1}for(var F,R=[],P=0;P<c;)if(a.test(f[P])){var j=P;for(++P;P<c&&a.test(f[P]);++P);R.push(new u(0,j,P))}else{var V=P,U=R.length,B="rtl"==t?1:0;for(++P;P<c&&"L"!=f[P];++P);for(var z=V;z<P;)if(s.test(f[z])){V<z&&(R.splice(U,0,new u(1,V,z)),U+=B);var q=z;for(++z;z<P&&s.test(f[z]);++z);R.splice(U,0,new u(2,q,z)),U+=B,V=z}else++z;V<P&&R.splice(U,0,new u(1,V,P))}return"ltr"==t&&(1==R[0].level&&(F=e.match(/^\s+/))&&(R[0].from=F[0].length,R.unshift(new u(0,0,F[0].length))),1==$(R).level&&(F=e.match(/\s+$/))&&($(R).to-=F[0].length,R.push(new u(0,c-F[0].length,c)))),"rtl"==t?R.reverse():R}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var de=[],he=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||de).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||de}function me(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=U(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ye(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ge(e,n||t.type,e,t),xe(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==U(n,t[r])&&n.push(t[r])}function we(e,t){return ve(e,t).length>0}function Ee(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){ke(e),Se(e)}function Te(e){return e.target||e.srcElement}function Ce(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Ne,Oe,Ae=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ne){var t=O("span","\u200b");N(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ne?O("span","\u200b"):O("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Oe)return Oe;var t=N(e,document.createTextNode("A\u062eA")),n=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Le=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Me=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Fe=function(){var e=O("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Re=null;function Pe(e){if(null!=Re)return Re;var t=N(e,O("span","x")),n=t.getBoundingClientRect(),r=_(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}var je={},Ve={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),je[e]=t}function Be(e,t){Ve[e]=t}function ze(e){if("string"==typeof e&&Ve.hasOwnProperty(e))e=Ve[e];else if(e&&"string"==typeof e.name&&Ve.hasOwnProperty(e.name)){var t=Ve[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ze("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ze("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=ze(t);var n=je[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var He={};function Ze(e,t){P(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var $e=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ye(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ke(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Xe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=U(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function st(e){return it(e.line,e.ch)}function ut(e,t){return ot(e,t)<0?t:e}function lt(e,t){return ot(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Ye(e,n).text.length):pt(t,Ye(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function dt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}$e.prototype.eol=function(){return this.pos>=this.string.length},$e.prototype.sol=function(){return this.pos==this.lineStart},$e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$e.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$e.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},$e.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$e.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},$e.prototype.skipToEnd=function(){this.pos=this.string.length},$e.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$e.prototype.backUp=function(e){this.pos-=e},$e.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},$e.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},$e.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},$e.prototype.current=function(){return this.string.slice(this.start,this.pos)},$e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},$e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},$e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},vt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};_t(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],u=1,l=0;n.state=!0,_t(e,t.text,s.mode,n,(function(e,t){for(var n=u;l<e;){var r=i[u];r>e&&i.splice(u,1,e,i[u+1],r),u+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,u-n,e,"overlay "+t),u=n+2;else for(;n<u;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},u=0;u<e.state.overlays.length;++u)s(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function gt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=yt(e,et(t)),i=t.text.length>e.options.maxHighlightLength&&We(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new vt(r,!0,t);var o=Tt(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?vt.fromSaved(r,a,o):new vt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function bt(e,t,n,r){var i=e.doc.mode,o=new $e(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&wt(i,n.state);!o.eol();)Et(i,o,n.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ge(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ge(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}vt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},vt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},vt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vt.fromSaved=function(e,t,n){return t instanceof ht?new vt(e,We(e.mode,t.state),n,t.lookAhead):new vt(e,We(e.mode,t),n)},vt.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function St(e,t,n,r){var i,o,a=e.doc,s=a.mode,u=Ye(a,(t=ft(a,t)).line),l=yt(e,t.line,n),c=new $e(u.text,e.options.tabSize,l);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Et(s,c,l.state),r&&o.push(new kt(c,i,We(a.mode,l.state)));return r?o:new kt(c,i,l.state)}function xt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function _t(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var u,l=0,c=null,f=new $e(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&xt(wt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,f.pos),f.pos=t.length,u=null):u=xt(Et(n,f,r.state,p),o),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||c!=u){for(;l<f.start;)i(l=Math.min(f.start,l+5e3),c);c=u}f.start=f.pos}for(;l<f.pos;){var h=Math.min(f.pos,l+5e3);i(h,c),l=h}}function Tt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var u=Ye(o,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof ht?l.lookAhead:0)<=o.modeFrontier))return s;var c=j(u.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function Ct(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,Ot=!1;function At(){Nt=!0}function Dt(){Ot=!0}function It(e,t,n){this.marker=e,this.from=t,this.to=n}function Lt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Mt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Ft(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Rt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new It(a,o.from,s?null:o.to))}}return r}function Pt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new It(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function jt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Ye(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Ye(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ot(t.from,t.to),s=Rt(n,i,a),u=Pt(r,o,a),l=1==t.text.length,c=$(t.text).length+(l?i:0);if(s)for(var f=0;f<s.length;++f){var p=s[f];if(null==p.to){var d=Lt(u,p.marker);d?l&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(u)for(var h=0;h<u.length;++h){var v=u[h];null!=v.to&&(v.to+=c),null==v.from?Lt(s,v.marker)||(v.from=c,l&&(s||(s=[])).push(v)):(v.from+=c,l&&(s||(s=[])).push(v))}s&&(s=Vt(s)),u&&u!=s&&(u=Vt(u));var m=[s];if(!l){var g,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(g||(g=[])).push(new It(s[b].marker,null,null));for(var w=0;w<y;++w)m.push(g);m.push(u)}return m}function Vt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ut(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),u=0;u<i.length;++u){var l=i[u];if(!(ot(l.to,s.from)<0||ot(l.from,s.to)>0)){var c=[u,1],f=ot(l.from,s.from),p=ot(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:l.to}),i.splice.apply(i,c),u+=c.length-3}}return i}function Bt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function zt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function qt(e){return e.inclusiveLeft?-1:0}function Ht(e){return e.inclusiveRight?1:0}function Zt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ot(r.from,i.from)||qt(e)-qt(t);if(o)return-o;var a=ot(r.to,i.to)||Ht(e)-Ht(t);return a||t.id-e.id}function Wt(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Zt(n,i.marker)<0)&&(n=i.marker);return n}function Gt(e){return Wt(e,!0)}function Qt(e){return Wt(e,!1)}function $t(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Zt(n,o.marker)<0)&&(n=o.marker)}return n}function Yt(e,t,n,r,i){var o=Ye(e,t),a=Ot&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var l=u.marker.find(0),c=ot(l.from,n)||qt(u.marker)-qt(i),f=ot(l.to,r)||Ht(u.marker)-Ht(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ot(l.to,n)>=0:ot(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ot(l.from,r)<=0:ot(l.from,r)<0)))return!0}}}function Kt(e){for(var t;t=Gt(e);)e=t.find(-1,!0).line;return e}function Jt(e){for(var t;t=Qt(e);)e=t.find(1,!0).line;return e}function Xt(e){for(var t,n;t=Qt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ye(e,t),r=Kt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!nn(e,r))return t;for(;n=Qt(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&rn(e,t,r))return!0}}function rn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return rn(e,r.line,Lt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&rn(e,t,i))return!0}function on(e){for(var t=0,n=(e=Kt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function an(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Gt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Qt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function sn(e){var t=e.display,n=e.doc;t.maxLine=Ye(n,n.first),t.maxLineLength=an(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=an(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var un=function(e,t,n){this.text=e,zt(this,t),this.height=n?n(this):1};function ln(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Bt(e),zt(e,n);var i=r?r(e):1;i!=e.height&&Xe(e,i)}function cn(e){e.parent=null,Bt(e)}un.prototype.lineNo=function(){return et(this)},Ee(un);var fn={},pn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=A("span",null,null,u?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=mn,Ie(e.display.measure)&&(a=pe(o,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],wn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function vn(e){var t=O("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mn(e,t,n,r,i,o,u){if(t){var l,c=e.splitSpaces?gn(t,e.trailingSpace):t,f=e.cm.state.specialChars,p=!1;if(f.test(t)){l=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var h=f.exec(t),v=h?h.index-d:t.length-d;if(v){var m=document.createTextNode(c.slice(d,d+v));a&&s<9?l.appendChild(O("span",[m])):l.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!h)break;d+=v+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=l.appendChild(O("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=l.appendChild(O("span","\r"==h[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?l.appendChild(O("span",[g])):l.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||p||o||u){var w=n||"";r&&(w+=r),i&&(w+=i);var E=O("span",[l],w,o);if(u)for(var k in u)u.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&E.setAttribute(k,u[k]);return e.content.appendChild(E)}e.content.appendChild(l)}}function gn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o="\xa0"),r+=o,n=" "==o}return r}function yn(e,t){return function(n,r,i,o,a,s,u){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>l&&f.from<=l);p++);if(f.to>=c)return e(n,r,i,o,a,s,u);e(n,r.slice(0,f.to-l),i,o,null,s,u),o=null,r=r.slice(f.to-l),l=f.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,u,l,c,f,p,d=i.length,h=0,v=1,m="",g=0;;){if(g==h){u=l=c=s="",p=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var E=r[w],k=E.marker;if("bookmark"==k.type&&E.from==h&&k.widgetNode)y.push(k);else if(E.from<=h&&(null==E.to||E.to>h||k.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,l=""),k.className&&(u+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&E.from==h&&(c+=" "+k.startStyle),k.endStyle&&E.to==g&&(b||(b=[])).push(k.endStyle,E.to),k.title&&((p||(p={})).title=k.title),k.attributes)for(var S in k.attributes)(p||(p={}))[S]=k.attributes[S];k.collapsed&&(!f||Zt(f.marker,k)<0)&&(f=E)}else E.from>h&&g>E.from&&(g=E.from)}if(b)for(var x=0;x<b.length;x+=2)b[x+1]==g&&(l+=" "+b[x]);if(!f||f.from==h)for(var _=0;_<y.length;++_)bn(t,0,y[_]);if(f&&(f.from||0)==h){if(bn(t,(null==f.to?d+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=d)break;for(var T=Math.min(d,g);;){if(m){var C=h+m.length;if(!f){var N=C>T?m.slice(0,T-h):m;t.addToken(t,N,a?a+u:u,c,h+N.length==g?l:"",s,p)}if(C>=T){m=m.slice(T-h),h=T;break}h=C,c=""}m=i.slice(o,o=n[v++]),a=dn(n[v++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),dn(n[O+1],t.cm.options))}function En(e,t,n){this.line=t,this.rest=Xt(t),this.size=this.rest?et($(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nn(e,t)}function kn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new En(e.doc,Ye(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Sn=null;function xn(e){Sn?Sn.ops.push(e):e.ownsGroup=Sn={ops:[e],delayedCallbacks:[]}}function _n(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Tn(e,t){var n=e.ownsGroup;if(n)try{_n(n)}finally{Sn=null,t(n)}}var Cn=null;function Nn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Sn?r=Sn.delayedCallbacks:Cn?r=Cn:(r=Cn=[],setTimeout(On,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function On(){var e=Cn;Cn=null;for(var t=0;t<e.length;++t)e[t]()}function An(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Mn(e,t):"gutter"==o?Rn(e,t,n,r):"class"==o?Fn(e,t):"widget"==o&&Pn(e,t,r)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function In(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Dn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Ln(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):hn(e,t)}function Mn(e,t){var n=t.text.className,r=Ln(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Fn(e,t)):n&&(t.text.className=n)}function Fn(e,t){In(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Rn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Dn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Dn(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<e.display.gutterSpecs.length;++u){var l=e.display.gutterSpecs[u].className,c=o.hasOwnProperty(l)&&o[l];c&&s.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function Pn(e,t,n){t.alignable&&(t.alignable=null);for(var r=x("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Vn(e,t,n)}function jn(e,t,n,r){var i=Ln(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Fn(e,t),Rn(e,t,n,r),Vn(e,t,r),t.node}function Vn(e,t,n){if(Un(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Un(e,t.rest[r],t,n,!1)}function Un(e,t,n,r,i){if(t.widgets)for(var o=Dn(n),a=0,s=t.widgets;a<s.length;++a){var u=s[a],l=O("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),Bn(u,l,n,r),e.display.input.setUneditable(l),i&&u.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),Nn(u,"redraw")}}function Bn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function zn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),N(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function qn(e,t){for(var n=Te(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Hn(e){return e.lineSpace.offsetTop}function Zn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Wn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=N(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Gn(e){return B-e.display.nativeBarWidth}function Qn(e){return e.display.scroller.clientWidth-Gn(e)-e.display.barWidth}function $n(e){return e.display.scroller.clientHeight-Gn(e)-e.display.barHeight}function Yn(e,t,n){var r=e.options.lineWrapping,i=r&&Qn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var u=a[s],l=a[s+1];Math.abs(u.bottom-l.bottom)>2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Kn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(et(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Jn(e,t){var n=et(t=Kt(t)),r=e.display.externalMeasured=new En(e.doc,t,n);r.lineN=n;var i=r.built=hn(e,r);return r.text=i.pre,N(e.display.lineMeasure,i.pre),r}function Xn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Fr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function tr(e,t){var n=et(t),r=er(e,n);r&&!r.text?r=null:r&&r.changes&&(An(e,r,n,Ar(e)),e.curOp.forceUpdate=!0),r||(r=Jn(e,t));var i=Kn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function nr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Yn(e,t.view,t.rect),t.hasHeights=!0),(o=sr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var rr,ir={left:0,right:0,top:0,bottom:0};function or(e,t,n){for(var r,i,o,a,s,u,l=0;l<e.length;l+=3)if(s=e[l],u=e[l+1],t<s?(i=0,o=1,a="left"):t<u?o=1+(i=t-s):(l==e.length-3||t==u&&e[l+3]>t)&&(i=(o=u-s)-1,t>=u&&(a="right")),null!=i){if(r=e[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==u-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:u}}function ar(e,t){var n=ir;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,o=or(t.map,n,r),u=o.node,l=o.start,c=o.end,f=o.collapse;if(3==u.nodeType){for(var p=0;p<4;p++){for(;l&&oe(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==l&&c==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():ar(_(u,l,c).getClientRects(),r)).left||i.right||0==l)break;c=l,l-=1,f="right"}a&&s<11&&(i=ur(e.display.measure,i))}else{var d;l>0&&(f=r="right"),i=e.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=u.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Or(e.display),top:h.top,bottom:h.bottom}:ir}for(var v=i.top-t.rect.top,m=i.bottom-t.rect.top,g=(v+m)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var w=b?y[b-1]:0,E=y[b],k={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:w,bottom:E};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=v,k.rbottom=m),k}function ur(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Pe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function lr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function cr(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)lr(e.display.view[t])}function fr(e){cr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pr(){return c&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function dr(){return c&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hr(e){var t=Kt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=zn(t[r]));return n}function vr(e,t,n,r,i){if(!i){var o=hr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=on(t);if("local"==r?a+=Hn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:dr());var u=s.left+("window"==r?0:pr());n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function mr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=pr(),i-=dr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function gr(e,t,n,r,i){return r||(r=Ye(e.doc,t.line)),vr(e,r,Xn(e,r,t.ch,i),n)}function yr(e,t,n,r,i,o){function a(t,a){var s=nr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,vr(e,r,s,n)}r=r||Ye(e.doc,t.line),i||(i=tr(e,r));var s=pe(r,e.doc.direction),u=t.ch,l=t.sticky;if(u>=r.text.length?(u=r.text.length,l="before"):u<=0&&(u=0,l="after"),!s)return a("before"==l?u-1:u,"before"==l);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=ce(s,u,l),p=le,d=c(u,f,"before"==l);return null!=p&&(d.other=c(u,p,"before"!=l)),d}function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Or(e.display)*t.ch);var r=Ye(e.doc,t.line),i=on(r)+Hn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=_r(e,a,i,t,n),u=$t(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var l=u.find(1);if(l.line==i)return l;a=Ye(r,i=l.line)}}function kr(e,t,n,r){r-=hr(t);var i=t.text.length,o=se((function(t){return nr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=se((function(t){return nr(e,n,t).top>r}),o,i)}}function Sr(e,t,n,r){return n||(n=tr(e,t)),kr(e,t,n,vr(e,t,nr(e,n,r),"line").top)}function xr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function _r(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=hr(t),s=0,u=t.text.length,l=!0,c=pe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Cr:Tr)(e,t,n,o,c,r,i);s=(l=1!=f.level)?f.from:f.to-1,u=l?f.to:f.from-1}var p,d,h=null,v=null,m=se((function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!xr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,v=n),!0)}),s,u),g=!1;if(v){var y=r-v.left<v.right-r,b=y==l;m=h+(b?0:1),d=b?"after":"before",p=y?v.left:v.right}else{l||m!=u&&m!=s||m++,d=0==m?"after":m==t.text.length?"before":nr(e,o,m-(l?1:0)).bottom+a<=i==l?"after":"before";var w=yr(e,it(n,m,d),"line",t,o);p=w.left,g=i<w.top?-1:i>=w.bottom?1:0}return wr(n,m=ae(t.text,m,1),d,g,r-p)}function Tr(e,t,n,r,i,o,a){var s=se((function(s){var u=i[s],l=1!=u.level;return xr(yr(e,it(n,l?u.to:u.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var l=1!=u.level,c=yr(e,it(n,l?u.from:u.to,l?"after":"before"),"line",t,r);xr(c,o,a,!0)&&c.top>a&&(u=i[s-1])}return u}function Cr(e,t,n,r,i,o,a){var s=kr(e,t,r,a),u=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=l||d.to<=u)){var h=nr(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(u,d.from)).right,v=h<o?o-h+1e9:h-o;(!c||f>v)&&(c=d,f=v)}}return c||(c=i[i.length-1]),c.from<u&&(c={from:u,to:c.to,level:c.level}),c.to>l&&(c={from:c.from,to:l,level:c.level}),c}function Nr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(O("br"));rr.appendChild(document.createTextNode("x"))}N(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function Or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");N(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ir(e){var t=Nr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Or(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Lr(e){var t=e.doc,n=Ir(e);t.iter((function(e){var t=n(e);t!=e.height&&Xe(e,t)}))}function Mr(e,t,n,r){var i=e.display;if(!n&&"true"==Te(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(f){return null}var u,l=Er(e,o,a);if(r&&l.xRel>0&&(u=Ye(e.doc,l.line).text).length==l.ch){var c=j(u,u.length,e.options.tabSize)-u.length;l=it(l.line,Math.max(0,Math.round((o-Wn(e.display).left)/Or(e.display))-c))}return l}function Fr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Rr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&en(e.doc,t)<i.viewTo&&jr(e);else if(n<=i.viewFrom)Ot&&tn(e.doc,n+r)>i.viewFrom?jr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)jr(e);else if(t<=i.viewFrom){var o=Vr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):jr(e)}else if(n>=i.viewTo){var a=Vr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):jr(e)}else{var s=Vr(e,t,t,-1),u=Vr(e,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(kn(e,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):jr(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Pr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Fr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function jr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Vr(e,t,n,r){var i,o=Fr(e,t),a=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u<o;u++)s+=a[u].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;en(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Ur(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=kn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=kn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Fr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(kn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Fr(e,n)))),r.viewTo=n}function Br(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function zr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function qr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var u=n.sel.ranges[s];if(!(u.from().line>=e.display.viewTo||u.to().line<e.display.viewFrom)){var l=u.empty();if(a){var c=a(e,u);c&&Hr(e,c,i)}else(l||e.options.showCursorWhenSelecting)&&Hr(e,u.head,i);l||Wr(e,u,o)}}return r}function Hr(e,t,n){var r=yr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div","\xa0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=gr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(O("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Zr(e,t){return e.top-t.top||e.left-t.left}function Wr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Wn(e.display),s=a.left,u=Math.max(r.sizerWidth,Qn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?u-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=Ye(i,t),p=f.text.length;function d(n,r){return gr(e,it(t,n),"div",f,r)}function h(t,n,r){var i=Sr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var v=pe(f,i.direction);return ue(v,n||0,null==r?p:r,(function(e,t,i,f){var m="ltr"==i,g=d(e,m?"left":"right"),y=d(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==p,E=0==f,k=!v||f==v.length-1;if(y.top-g.top<=3){var S=(l?w:b)&&k,x=(l?b:w)&&E?s:(m?g:y).left,_=S?u:(m?y:g).right;c(x,g.top,_-x,g.bottom)}else{var T,C,N,O;m?(T=l&&b&&E?s:g.left,C=l?u:h(e,i,"before"),N=l?s:h(t,i,"after"),O=l&&w&&k?u:y.right):(T=l?h(e,i,"before"):s,C=!l&&b&&E?u:g.right,N=!l&&w&&k?s:y.left,O=l?h(t,i,"after"):u),c(T,g.top,C-T,g.bottom),g.bottom<y.top&&c(s,g.bottom,null,y.top),c(N,y.top,O-N,y.bottom)}(!o||Zr(g,o)<0)&&(o=g),Zr(y,o)<0&&(o=y),(!a||Zr(g,a)<0)&&(a=g),Zr(y,a)<0&&(a=y)})),{start:o,end:a}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=Ye(i,p.line),v=Ye(i,d.line),m=Kt(h)==Kt(v),g=f(p.line,p.ch,m?h.text.length+1:null).end,y=f(d.line,m?0:null,d.ch).start;m&&(g.top<y.top-2?(c(g.right,g.top,null,g.bottom),c(s,y.top,y.left,y.bottom)):c(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&c(s,g.bottom,null,y.top)}n.appendChild(o)}function Gr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Kr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Yr(e))}function $r(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Kr(e))}),100)}function Yr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Gr(e))}function Kr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Jr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,u=0;u<t.view.length;u++){var l=t.view[u],c=e.options.lineWrapping,f=void 0,p=0;if(!l.hidden){if(i+=l.line.height,a&&s<8){var d=l.node.offsetTop+l.node.offsetHeight;f=d-n,n=d}else{var h=l.node.getBoundingClientRect();f=h.bottom-h.top,!c&&l.text.firstChild&&(p=l.text.firstChild.getBoundingClientRect().right-h.left-1)}var v=l.line.height-f;if((v>.005||v<-.005)&&(i<r&&(o-=v),Xe(l.line,f),Xr(l.line),l.rest))for(var m=0;m<l.rest.length;m++)Xr(l.rest[m]);if(p>e.display.sizerWidth){var g=Math.ceil(p/Or(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Xr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ei(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Hn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),a=tt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<o?(o=s,a=tt(t,on(Ye(t,s))+e.wrapper.clientHeight)):Math.min(u,t.lastLine())>=a&&(o=tt(t,on(Ye(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function ti(e,t){if(!ye(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=O("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Hn(e.display))+"px;\n height: "+(t.bottom-t.top+Gn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ni(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=yr(e,t),u=n&&n!=t?yr(e,n):s,l=ii(e,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=l.scrollTop&&(fi(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(di(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&fi(e,n.scrollTop),null!=n.scrollLeft&&di(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Nr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=$n(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Zn(n),u=t.top<r,l=t.bottom>s-r;if(t.top<i)a.scrollTop=u?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(l?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Qn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+f-(h?0:10)):t.right>d+p-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function oi(e,t){null!=t&&(li(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){li(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||li(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ui(e,t){li(e),e.curOp.scrollToPos=t}function li(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ci(e,br(e,t.from),br(e,t.to),t.margin))}function ci(e,t,n,r){var i=ii(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||zi(e,{top:t}),pi(e,t,!0),n&&zi(e),Mi(e,100))}function pi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function di(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Wi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function hi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Zn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var vi=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},vi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vi.prototype.zeroWidthHack=function(){var e=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},vi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},vi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mi=function(){};function gi(e,t){t||(t=hi(e));var n=e.display.barWidth,r=e.display.barHeight;yi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),yi(e,hi(e)),n=e.display.barWidth,r=e.display.barHeight}function yi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var bi={native:vi,null:mi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?di(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Ei=0;function ki(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ei,markArrays:null},xn(e.curOp)}function Si(e){var t=e.curOp;t&&Tn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;xi(e)}))}function xi(e){for(var t=e.ops,n=0;n<t.length;n++)_i(t[n]);for(var r=0;r<t.length;r++)Ti(t[r]);for(var i=0;i<t.length;i++)Ci(t[i]);for(var o=0;o<t.length;o++)Ni(t[o]);for(var a=0;a<t.length;a++)Oi(t[a])}function _i(e){var t=e.cm,n=t.display;Pi(t),e.updateMaxLine&&sn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ri(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ti(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Ci(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=hi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Xn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&di(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==I();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&gi(t,e.barMeasure),e.updatedDisplay&&Zi(t,e.barMeasure),e.selectionChanged&&Gr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Qr(e.cm)}function Oi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Bi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&pi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&di(t,e.scrollLeft,!0,!0),e.scrollToPos&&ti(t,ni(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ge(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ge(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ai(e,t){if(e.curOp)return t();ki(e);try{return t()}finally{Si(e)}}function Di(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ki(e);try{return t.apply(e,arguments)}finally{Si(e)}}}function Ii(e){return function(){if(this.curOp)return e.apply(this,arguments);ki(this);try{return e.apply(this,arguments)}finally{Si(this)}}}function Li(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ki(t);try{return e.apply(this,arguments)}finally{Si(t)}}}function Mi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(Fi,e))}function Fi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,u=mt(e,o,r,!0);s&&(r.state=s),o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Mi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ai(e,(function(){for(var t=0;t<i.length;t++)Pr(e,i[t],"text")}))}}var Ri=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ei(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Qn(e),this.force=n,this.dims=Ar(e),this.events=[]};function Pi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Gn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Gn(e)+"px",t.scrollbarsClipped=!0)}function ji(e){if(e.hasFocus())return null;var t=I();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Vi(e){if(e&&e.activeElt&&e.activeElt!=I()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Ui(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return jr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Br(e))return!1;Gi(e)&&(jr(e),t.dims=Ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ot&&(o=en(e.doc,o),a=tn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ur(e,o,a),n.viewOffset=on(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=Br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=ji(e);return u>4&&(n.lineDiv.style.display="none"),qi(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Vi(l),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Mi(e,400)),n.updateLineNumbers=null,!0}function Bi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Zn(e.display)-$n(e),n.top)}),t.visible=ei(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ui(e,t))break;Jr(e);var i=hi(e);zr(e),gi(e,i),Zi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function zi(e,t){var n=new Ri(e,t);if(Ui(e,n)){Jr(e),Bi(e,n);var r=hi(e);zr(e),gi(e,r),Zi(e,r),n.finish()}}function qi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return u&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,f=0;f<l.length;f++){var p=l[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var d=i&&null!=t&&t<=c&&p.lineNumber;p.changes&&(U(p.changes,"gutter")>-1&&(d=!1),An(e,p,c,n)),d&&(C(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=p.node.nextSibling}else{var h=jn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=s(a)}function Hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nn(e,"gutterChanged",e)}function Zi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gn(e)+"px"}function Wi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Gi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Hi(e.display),!0}return!1}function Qi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function $i(e){var t=e.gutters,n=e.gutterSpecs;C(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(O("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Hi(e)}function Yi(e){$i(e.display),Rr(e),Wi(e)}function Ki(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[l],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+B+"px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),$i(o),r.init(o)}Ri.prototype.signal=function(e,t){we(e,t)&&this.events.push(arguments)},Ri.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var Ji=0,Xi=null;function eo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function to(e){var t=eo(e);return t.x*=Xi,t.y*=Xi,t}function no(e,t){var r=eo(t),i=r.x,o=r.y,a=Xi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,l=s.scroller,c=l.scrollWidth>l.clientWidth,p=l.scrollHeight>l.clientHeight;if(i&&c||o&&p){if(o&&y&&u)e:for(var d=t.target,h=s.view;d!=l;d=d.parentNode)for(var v=0;v<h.length;v++)if(h[v].node==d){e.display.currentWheelTarget=d;break e}if(i&&!n&&!f&&null!=a)return o&&p&&fi(e,Math.max(0,l.scrollTop+o*a)),di(e,Math.max(0,l.scrollLeft+i*a)),(!o||o&&p)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var m=o*a,g=e.doc.scrollTop,b=g+s.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):b=Math.min(e.doc.height,b+m+50),zi(e,{top:g,bottom:b})}Ji<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=l.scrollLeft-s.wheelStartX,t=l.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(Xi=(Xi*Ji+n)/(Ji+1),++Ji)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?Xi=-.53:n?Xi=15:c?Xi=-.7:p&&(Xi=-1/3);var ro=function(e,t){this.ranges=e,this.primIndex=t};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new io(st(this.ranges[t].anchor),st(this.ranges[t].head));return new ro(e,this.primIndex)},ro.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ro.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var io=function(e,t){this.anchor=e,this.head=t};function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=U(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],u=ot(s.to(),a.from());if(r&&!a.empty()?u>0:u>=0){var l=lt(s.from(),a.from()),c=ut(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(f?c:l,f?l:c))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?it(e.from.line+e.text.length-1,$(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function uo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),it(n,r)}function lo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new io(uo(i.anchor,t),uo(i.head,t)))}return oo(e.cm,n,e.sel.primIndex)}function co(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],u=co(s.from,i,o),l=co(so(s),i,o);if(i=s.to,o=l,"around"==n){var c=e.sel.ranges[a],f=ot(c.head,c.anchor)<0;r[a]=new io(f?l:u,f?u:l)}else r[a]=new io(u,u)}return new ro(r,e.sel.primIndex)}function po(e){e.doc.mode=qe(e.options,e.doc.modeOption),ho(e)}function ho(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Mi(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function vo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==$(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function mo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){ln(e,n,i,r),Nn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new un(l[o],i(o),r));return n}var s=t.from,u=t.to,l=t.text,c=Ye(e,s.line),f=Ye(e,u.line),p=$(l),d=i(l.length-1),h=u.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(vo(e,t)){var v=a(0,l.length-1);o(f,f.text,d),h&&e.remove(s.line,h),v.length&&e.insert(s.line,v)}else if(c==f)if(1==l.length)o(c,c.text.slice(0,s.ch)+p+c.text.slice(u.ch),d);else{var m=a(1,l.length-1);m.push(new un(p+c.text.slice(u.ch),d,r)),o(c,c.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,m)}else if(1==l.length)o(c,c.text.slice(0,s.ch)+l[0]+f.text.slice(u.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+l[0],i(0)),o(f,p+f.text.slice(u.ch),d);var g=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}Nn(e,"change",e,t)}function go(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var u=o&&s.sharedHist;n&&!u||(t(s.doc,u),r(s.doc,e,u))}}}r(e,null,!0)}function yo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Lr(e),po(e),bo(e),e.options.direction=t.direction,e.options.lineWrapping||sn(e),e.options.mode=t.modeOption,Rr(e)}function bo(e){("rtl"==e.doc.direction?L:T)(e.display.lineDiv,"CodeMirror-rtl")}function wo(e){Ai(e,(function(){bo(e),Rr(e)}))}function Eo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ko(e,t){var n={from:st(t.from),to:so(t),text:Ke(e,t.from,t.to)};return Oo(e,n,t.from.line,t.to.line+1),go(e,(function(e){return Oo(e,n,t.from.line,t.to.line+1)}),!0),n}function So(e){for(;e.length&&$(e).ranges;)e.pop()}function xo(e,t){return t?(So(e.done),$(e.done)):e.done.length&&!$(e.done).ranges?$(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),$(e.done)):void 0}function _o(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=xo(i,i.lastOp==r)))a=$(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=so(t):o.changes.push(ko(e,t));else{var u=$(i.done);for(u&&u.ranges||No(e.sel,i.done),o={changes:[ko(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function To(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Co(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||To(e,o,$(i.done),t))?i.done[i.done.length-1]=t:No(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&So(i.undone)}function No(e,t){var n=$(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Oo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ao(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Do(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Ao(n[i]));return r}function Io(e,t){var n=Do(e,t),r=jt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var u=a[s],l=0;l<o.length;++l)if(o[l].marker==u.marker)continue e;o.push(u)}else a&&(n[i]=a)}return n}function Lo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?ro.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var l=a[u],c=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&U(t,Number(c[1]))>-1&&($(s)[f]=l[f],delete l[f])}}}return r}function Mo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Fo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Bo(e,new ro([Mo(e.sel.primary(),t,n,i)],0),r)}function Ro(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Mo(e.sel.ranges[o],t[o],null,i);Bo(e,oo(e.cm,r,e.sel.primIndex),n)}function Po(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Bo(e,oo(e.cm,i,e.sel.primIndex),r)}function jo(e,t,n,r){Bo(e,ao(t,n),r)}function Vo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new io(ft(e,t[n].anchor),ft(e,t[n].head))},origin:n&&n.origin};return ge(e,"beforeSelectionChange",e,r),e.cm&&ge(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?oo(e.cm,r.ranges,r.ranges.length-1):t}function Uo(e,t,n){var r=e.history.done,i=$(r);i&&i.ranges?(r[r.length-1]=t,zo(e,t,n)):Bo(e,t,n)}function Bo(e,t,n){zo(e,t,n),Co(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function zo(e,t,n){(we(e,"beforeSelectionChange")||e.cm&&we(e.cm,"beforeSelectionChange"))&&(t=Vo(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);qo(e,Zo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ai(e.cm)}function qo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),Nn(e,"cursorActivity",e))}function Ho(e){qo(e,Zo(e,e.sel,null,!1))}function Zo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],u=Go(e,a.anchor,s&&s.anchor,n,r),l=Go(e,a.head,s&&s.head,n,r);(i||u!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new io(u,l))}return i?oo(e.cm,i,t.primIndex):t}function Wo(e,t,n,r,i){var o=Ye(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],u=s.marker,l="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,c="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==s.from||(l?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(ge(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),p=void 0;if((r<0?c:l)&&(f=Qo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=ot(f,n))&&(r<0?p<0:p>0))return Wo(e,f,t,r,i)}var d=u.find(r<0?-1:1);return(r<0?l:c)&&(d=Qo(e,d,r,d.line==t.line?o:null)),d?Wo(e,d,t,r,i):null}}return t}function Go(e,t,n,r,i){var o=r||1,a=Wo(e,t,n,o,i)||!i&&Wo(e,t,n,o,!0)||Wo(e,t,n,-o,i)||!i&&Wo(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function $o(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),q)}function Yo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(e,"beforeChange",e,r),e.cm&&ge(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ko(e,t,n){if(e.cm){if(!e.cm.curOp)return Di(e.cm,Ko)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"))||(t=Yo(e,t,!0))){var r=Nt&&!n&&Ut(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Jo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=lo(e,t);_o(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,jt(e,t));var r=[];go(e,(function(e,n){n||-1!=U(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,jt(e,t))}))}}function Xo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,u="undo"==t?o.undone:o.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(No(i,u),n&&!i.equals(e.sel))return void Bo(e,i,{clearRedo:!1});a=i}var c=[];No(a,u),u.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=we(e,"beforeChange")||e.cm&&we(e.cm,"beforeChange"),p=function(n){var r=i.changes[n];if(r.origin=t,f&&!Yo(e,r,!1))return s.length=0,{};c.push(ko(e,r));var o=n?lo(e,r):$(s);ta(e,r,o,Io(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:so(r)});var a=[];go(e,(function(e,t){t||-1!=U(a,e.history)||(aa(e.history,r),a.push(e.history)),ta(e,r,null,Io(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=p(d);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,(function(e){return new io(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Pr(e.cm,r,"gutter")}}function ta(e,t,n,r){if(e.cm&&!e.cm.curOp)return Di(e.cm,ta)(e,t,n,r);if(t.to.line<e.first)ea(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ea(e,i),t={from:it(e.first,0),to:it(t.to.line+i,t.to.ch),text:[$(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ke(e,t.from,t.to),n||(n=lo(e,t)),e.cm?na(e.cm,t,r):mo(e,t,r),zo(e,n,q),e.cantEdit&&Go(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=et(Kt(Ye(r,o.line))),r.iter(u,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),mo(r,t,n,Ir(e)),e.options.lineWrapping||(r.iter(u,o.line+t.text.length,(function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Ct(r,o.line),Mi(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?Rr(e):o.line!=a.line||1!=t.text.length||vo(e.doc,t)?Rr(e,o.line,a.line+1,l):Pr(e,o.line,"text");var c=we(e,"changes"),f=we(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Nn(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Ko(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function oa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)ia(o.ranges[s].anchor,t,n,r),ia(o.ranges[s].head,t,n,r)}else{for(var u=0;u<o.changes.length;++u){var l=o.changes[u];if(n<l.from.line)l.from=it(l.from.line+r,l.from.ch),l.to=it(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function aa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;oa(e.done,n,r,i),oa(e.undone,n,r,i)}function sa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ye(e,ct(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&Pr(e.cm,i,n),o)}function ua(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function la(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}io.prototype.from=function(){return lt(this.anchor,this.head)},io.prototype.to=function(){return ut(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ua.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,cn(i),Nn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},la.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ua))){var s=[];this.collapse(s),this.children=[new ua(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var u=new ua(i.lines.slice(s,s+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new la(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=U(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new la(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ca=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function fa(e,t,n){on(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&oi(e,n)}function pa(e,t,n,r){var i=new ca(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),sa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!nn(e,t)){var r=on(t)<e.scrollTop;Xe(t,t.height+zn(i)),r&&oi(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Nn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}ca.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=zn(this);Xe(n,Math.max(0,n.height-o)),e&&(Ai(e,(function(){fa(e,n,-o),Pr(e,r,"widget")})),Nn(e,"lineWidgetCleared",e,this,r))}},ca.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=zn(this)-t;i&&(nn(this.doc,r)||Xe(r,r.height+i),n&&Ai(n,(function(){n.curOp.forceUpdate=!0,fa(n,r,i),Nn(n,"lineWidgetChanged",n,e,et(r))})))},Ee(ca);var da=0,ha=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++da};function va(e,t,n,r,i){if(r&&r.shared)return ga(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Di(e.cm,va)(e,t,n,r,i);var o=new ha(e,i),a=ot(t,n);if(r&&P(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Yt(e,t.line,t,n,o)||t.line!=n.line&&Yt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&_o(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,l=e.cm;if(e.iter(u,n.line+1,(function(r){l&&o.collapsed&&!l.options.lineWrapping&&Kt(r)==l.display.maxLine&&(s=!0),o.collapsed&&u!=t.line&&Xe(r,0),Ft(r,new It(o,u==t.line?t.ch:null,u==n.line?n.ch:null),e.cm&&e.cm.curOp),++u})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Xe(t,0)})),o.clearOnEnter&&he(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(At(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++da,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)Rr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Pr(l,c,"text");o.atomic&&Ho(l.doc),Nn(l,"markerAdded",l,o)}return o}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ki(e),we(this,"clear")){var n=this.find();n&&Nn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Lt(a.markedSpans,this);e&&!this.collapsed?Pr(e,et(a),"text"):e&&(null!=s.to&&(i=et(a)),null!=s.from&&(r=et(a))),a.markedSpans=Mt(a.markedSpans,s),null==s.from&&this.collapsed&&!nn(this.doc,a)&&e&&Xe(a,Nr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var l=Kt(this.lines[u]),c=an(l);c>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Rr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ho(e.doc)),e&&Nn(e,"markerCleared",e,this,r,i),t&&Si(e),this.parent&&this.parent.clear()}},ha.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Lt(o.markedSpans,this);if(null!=a.from&&(n=it(t?o:et(o),a.from),-1==e))return n;if(null!=a.to&&(r=it(t?o:et(o),a.to),1==e))return r}return n&&{from:n,to:r}},ha.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ai(r,(function(){var i=t.line,o=et(t.line),a=er(r,o);if(a&&(lr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var u=zn(n)-s;u&&Xe(i,i.height+u)}Nn(r,"markerChanged",r,e)}))},ha.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=U(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ha.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ee(ha);var ma=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ga(e,t,n,r,i){(r=P(r)).shared=!1;var o=[va(e,t,n,r,i)],a=o[0],s=r.widgetNode;return go(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(va(e,ft(e,t),ft(e,n),r,i));for(var u=0;u<e.linked.length;++u)if(e.linked[u].isParent)return;a=$(o)})),new ma(o,a)}function ya(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),(function(e){return e.parent}))}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ot(o,a)){var s=va(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function wa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];go(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ma.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Nn(this,"clear")}},ma.prototype.find=function(e,t){return this.primary.find(e,t)},Ee(ma);var Ea=0,ka=function e(t,n,r,i,o){if(!(this instanceof e))return new e(t,n,r,i,o);null==r&&(r=0),la.call(this,[new ua([new un("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=it(r,0);this.sel=ao(a),this.history=new Eo(null),this.id=++Ea,this.modeOption=n,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),mo(this,{from:a,to:a,text:t}),Bo(this,ao(a),q)};ka.prototype=X(la.prototype,{constructor:ka,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Li((function(e){var t=it(this.first,0),n=this.first+this.size-1;Ko(this,{from:t,to:it(n,Ye(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&si(this.cm,0,0),Bo(this,ao(t),q)})),replaceRange:function(e,t,n,r){ra(this,e,t=ft(this,t),n=n?ft(this,n):t,r)},getRange:function(e,t,n){var r=Ke(this,ft(this,e),ft(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Ye(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ye(this,e)),Kt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Li((function(e,t,n){jo(this,ft(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:Li((function(e,t,n){jo(this,ft(this,e),ft(this,t||e),n)})),extendSelection:Li((function(e,t,n){Fo(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:Li((function(e,t){Ro(this,dt(this,e),t)})),extendSelectionsBy:Li((function(e,t){Ro(this,dt(this,Y(this.sel.ranges,e)),t)})),setSelections:Li((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new io(ft(this,e[i].anchor),ft(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Bo(this,oo(this.cm,r,t),n)}})),addSelection:Li((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new io(ft(this,e),ft(this,t||e))),Bo(this,oo(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ke(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ke(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Li((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&fo(this,r,t),u=r.length-1;u>=0;u--)Ko(this,r[u]);s?Uo(this,s):this.cm&&ai(this.cm)})),undo:Li((function(){Xo(this,"undo")})),redo:Li((function(){Xo(this,"redo")})),undoSelection:Li((function(){Xo(this,"undo",!0)})),redoSelection:Li((function(){Xo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Eo(this.history),go(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Lo(this.history.done),undone:Lo(this.history.undone)}},setHistory:function(e){var t=this.history=new Eo(this.history);t.done=Lo(e.done.slice(0),null,!0),t.undone=Lo(e.undone.slice(0),null,!0)},setGutterMarker:Li((function(e,t,n){return sa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Li((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&sa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,!(e=Ye(this,e)))return null}else if(null==(t=et(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Li((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(x(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Li((function(e,t,n){return sa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(x(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Li((function(e,t,n){return pa(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return va(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return va(this,e=ft(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ye(this,(e=ft(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var u=a[s];null!=u.to&&i==e.line&&e.ch>=u.to||null==u.from&&i!=e.line||null!=u.from&&i==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ft(this,it(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new ka(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new ka(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ba(r,ya(this)),r},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),wa(ya(this));break}if(e.history==this.history){var n=[e.id];go(e,(function(e){return n.push(e.id)}),!0),e.history=new Eo(null),e.history.done=Lo(this.history.done,n),e.history.undone=Lo(this.history.undone,n)}},iterLinkedDocs:function(e){go(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Le(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Li((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&wo(this.cm))}))}),ka.prototype.eachLine=ka.prototype.iter;var Sa=0;function xa(e){var t=this;if(Ca(t),!ye(t,e)&&!qn(t.display,e)){ke(e),a&&(Sa=+new Date);var n=Mr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,u=function(){++s==i&&Di(t,(function(){var e={from:n=ft(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Ko(t.doc,e),Uo(t.doc,ao(ft(t.doc,n),ft(t.doc,so(e))))}))()},l=function(e,n){if(t.options.allowDropFileTypes&&-1==U(t.options.allowDropFileTypes,e.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),u()},r.readAsText(e)}},c=0;c<r.length;c++)l(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),zo(t.doc,ao(n,n)),p)for(var d=0;d<p.length;++d)ra(t.doc,"",p[d].anchor,p[d].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(h){}}}}function _a(e,t){if(a&&(!e.state.draggingText||+new Date-Sa<100))_e(t);else if(!ye(e,t)&&!qn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function Ta(e,t){var n=Mr(e,t);if(n){var r=document.createDocumentFragment();Hr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),N(e.display.dragCursor,r)}}function Ca(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Na(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Oa=!1;function Aa(){Oa||(Da(),Oa=!0)}function Da(){var e;he(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Na(Ia)}),100))})),he(window,"blur",(function(){return Na(Kr)}))}function Ia(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var La={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ma=0;Ma<10;Ma++)La[Ma+48]=La[Ma+96]=String(Ma);for(var Fa=65;Fa<=90;Fa++)La[Fa]=String.fromCharCode(Fa);for(var Ra=1;Ra<=12;Ra++)La[Ra+111]=La[Ra+63235]="F"+Ra;var Pa={};function ja(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Va(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=Y(n.split(" "),ja),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var u=t[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function Ua(e,t,n,r){var i=(t=Ha(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ua(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ua(e,t.fallthrough[o],n,r);if(a)return a}}}function Ba(e){var t="string"==typeof e?e:La[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function za(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function qa(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=La[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),za(n,e,t))}function Ha(e){return"string"==typeof e?Pa[e]:e}function Za(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ot(o.from,$(r).to)<=0;){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ai(e,(function(){for(var t=r.length-1;t>=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)}))}function Wa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ga(e,t,n){var r=Wa(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=pe(n,t.doc.direction);if(o){var a,s=i<0?$(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=tr(t,n);a=i<0?n.text.length-1:0;var c=nr(t,l,a).top;a=se((function(e){return nr(t,l,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Wa(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,u)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function $a(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return Ga(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ga(t,n,r);var s,u=function(e,n){return Wa(t,e instanceof it?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||tr(e,t),Sr(e,t,s,n)):{begin:0,end:t.text.length}},c=l("before"==n.sticky?u(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=u(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new it(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,u(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:u(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},v=h(o+r,r,c);if(v)return v;var m=r>0?c.end:u(c.begin,-1);return null==m||r>0&&m==t.text.length||!(v=h(r>0?0:i.length-1,r,l(m)))?null:v}Pa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Pa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Pa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Pa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Pa.default=y?Pa.macDefault:Pa.pcDefault;var Ya={selectAll:$o,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Za(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Za(e,(function(t){return{from:it(t.from().line,0),to:ft(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return Za(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Za(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Za(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Ka(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Xa(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Ja(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),Z)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),Z)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Xa(e,t.head):r}),Z)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=j(e.getLine(o.line),o.ch,r);t.push(Q(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ai(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ye(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new it(i.line,i.ch-1)),i.ch>0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ai(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ai(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ka(e,t){var n=Ye(e.doc,t),r=Kt(n);return r!=n&&(t=et(r)),Qa(!0,e,r,t,1)}function Ja(e,t){var n=Ye(e.doc,t),r=Jt(n);return r!=n&&(t=et(r)),Qa(!0,e,n,t,-1)}function Xa(e,t){var n=Ka(e,t.line),r=Ye(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return it(n.line,a?0:o,n.sticky)}return n}function es(e,t,n){if("string"==typeof t&&!(t=Ya[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=z}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ts(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ua(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ua(t,e.options.extraKeys,n,e)||Ua(t,e.options.keyMap,n,e)}var ns=new V;function rs(e,t,n,r){var i=e.state.keySeq;if(i){if(Ba(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ns.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),is(e,i+" "+t,n,r))return!0}return is(e,t,n,r)}function is(e,t,n,r){var i=ts(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Nn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Gr(e)),!!i}function os(e,t){var n=qa(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?rs(e,"Shift-"+n,t,(function(t){return es(e,t,!0)}))||rs(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return es(e,t)})):rs(e,n,t,(function(t){return es(e,t)})))}function as(e,t,n){return rs(e,"'"+n+"'",t,(function(t){return es(e,t,!0)}))}var ss=null;function us(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=I(),!ye(t,e))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=os(t,e);f&&(ss=i?r:null,i||88!=r||Fe||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ls(t)}}function ls(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n))}L(t,"CodeMirror-crosshair"),he(document,"keyup",n),he(document,"mouseover",n)}function cs(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function fs(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(qn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ss)return ss=null,void ke(e);if(!f||e.which&&!(e.which<10)||!os(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(as(t,e,i)||t.display.input.onKeyPress(e))}}}var ps,ds,hs=400,vs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ms(e,t){var n=+new Date;return ds&&ds.compare(n,e,t)?(ps=ds=null,"triple"):ps&&ps.compare(n,e,t)?(ds=new vs(n,e,t),ps=null,"double"):(ps=new vs(n,e,t),ds=null,"single")}function gs(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,qn(n,e))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ts(t,e)){var r=Mr(t,e),i=Ce(e),o=r?ms(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ys(t,i,r,o,e)||(1==i?r?ws(t,r,o,e):Te(e)==n.scroller&&ke(e):2==i?(r&&Fo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(S?t.display.input.onContextMenu(e):$r(t)))}}function ys(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),rs(e,za(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=Ya[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=z}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}function ws(e,t,n,r){a?setTimeout(R(Qr,e),0):e.curOp.focus=I();var i,o=bs(e,n,r),s=e.doc.sel;e.options.dragDrop&&Ae&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?Es(e,r,t,o):Ss(e,r,t,o)}function Es(e,t,n,r){var i=e.display,o=!1,l=Di(e,(function(t){u&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:$r(e)),me(i.wrapper.ownerDocument,"mouseup",l),me(i.wrapper.ownerDocument,"mousemove",c),me(i.scroller,"dragstart",f),me(i.scroller,"drop",l),o||(ke(t),r.addNew||Fo(e.doc,n,null,null,r.extend),u&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",l),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",f),he(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function ks(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(it(t.line,0),ft(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function Ss(e,t,n,r){a&&$r(e);var i=e.display,o=e.doc;ke(t);var s,u,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(u=o.sel.contains(n),s=u>-1?c[u]:new io(n,n)):(s=o.sel.primary(),u=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new io(n,n)),n=Mr(e,t,!0,!0),u=-1;else{var f=ks(e,n,r.unit);s=r.extend?Mo(s,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=c.length,Bo(o,oo(e,c.concat([s]),u),{scroll:!1,origin:"*mouse"})):c.length>1&&c[u].empty()&&"char"==r.unit&&!r.extend?(Bo(o,oo(e,c.slice(0,u).concat(c.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Po(o,u,s,H):(u=0,Bo(o,new ro([s],0),H),l=o.sel);var p=n;function d(t){if(0!=ot(p,t))if(p=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=j(Ye(o,n.line).text,n.ch,a),f=j(Ye(o,t.line).text,t.ch,a),d=Math.min(c,f),h=Math.max(c,f),v=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));v<=m;v++){var g=Ye(o,v).text,y=W(g,d,a);d==h?i.push(new io(it(v,y),it(v,y))):g.length>y&&i.push(new io(it(v,y),it(v,W(g,h,a))))}i.length||i.push(new io(n,n)),Bo(o,oo(e,l.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,E=ks(e,t,r.unit),k=w.anchor;ot(E.anchor,k)>0?(b=E.head,k=lt(w.from(),E.anchor)):(b=E.anchor,k=ut(w.to(),E.head));var S=l.ranges.slice(0);S[u]=xs(e,new io(ft(o,k),b)),Bo(o,oo(e,S,u),H)}}var h=i.wrapper.getBoundingClientRect(),v=0;function m(t){var n=++v,a=Mr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,p)){e.curOp.focus=I(),d(a);var s=ei(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Di(e,(function(){v==n&&m(t)})),150)}else{var u=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;u&&setTimeout(Di(e,(function(){v==n&&(i.scroller.scrollTop+=u,m(t))})),50)}}function g(t){e.state.selectingText=!1,v=1/0,t&&(ke(t),i.input.focus()),me(i.wrapper.ownerDocument,"mousemove",y),me(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Di(e,(function(e){0!==e.buttons&&Ce(e)?m(e):g(e)})),b=Di(e,g);e.state.selectingText=b,he(i.wrapper.ownerDocument,"mousemove",y),he(i.wrapper.ownerDocument,"mouseup",b)}function xs(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);u=c==l-1||c==l?f<0:f>0}var p=o[l+(u?-1:0)],d=u==(1==p.level),h=d?p.from:p.to,v=d?"after":"before";return n.ch==h&&n.sticky==v?t:new io(new it(n.line,h,v),r)}function _s(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(c){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!we(e,n))return xe(t);o-=s.top-a.viewOffset;for(var u=0;u<e.display.gutterSpecs.length;++u){var l=a.gutters.childNodes[u];if(l&&l.getBoundingClientRect().right>=i)return ge(e,n,e,tt(e.doc,o),e.display.gutterSpecs[u].className,t),xe(t)}}function Ts(e,t){return _s(e,t,"gutterClick",!0)}function Cs(e,t){qn(e.display,t)||Ns(e,t)||ye(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Ns(e,t){return!!we(e,"gutterContextMenu")&&_s(e,t,"gutterContextMenu",!1)}function Os(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}vs.prototype.compare=function(e,t,n){return this.time+hs>e&&0==ot(t,this.pos)&&n==this.button};var As={toString:function(){return"CodeMirror.Init"}},Ds={},Is={};function Ls(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=As&&i(e,t,n)}:i)}e.defineOption=n,e.Init=As,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,po(e)}),!0),n("indentUnit",2,po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){ho(e),fr(e),Rr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=As&&e.refresh()})),n("specialCharPlaceholder",vn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Os(e),Yi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ha(t),i=n!=As&&Ha(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Fs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),Yi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return gi(e)}),!0),n("scrollbarStyle","native",(function(e){wi(e),gi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),Yi(e)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(e){return e}),Yi,!0),n("showCursorWhenSelecting",!1,zr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Kr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ms),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,zr,!0),n("singleCursorHeightPerLine",!0,zr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ho,!0),n("addModeClass",!1,ho,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,ho,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ms(e,t,n){if(!t!=!(n&&n!=As)){var r=e.display.dragFunctions,i=t?he:me;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Fs(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Lr(e),Rr(e),fr(e),setTimeout((function(){return gi(e)}),100)}function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?P(t):{},P(Ds,t,!1);var r=t.value;"string"==typeof r?r=new ka(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Rs.inputStyles[t.inputStyle](this),o=this.display=new Ki(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,Os(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Aa(),ki(this),this.curOp.forceUpdate=!0,yo(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Kr(this),Is)Is.hasOwnProperty(l)&&Is[l](this,t[l],As);Gi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<js.length;++c)js[c](this);Si(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ps(e){var t=e.display;he(t.scroller,"mousedown",Di(e,gs)),he(t.scroller,"dblclick",a&&s<11?Di(e,(function(t){if(!ye(e,t)){var n=Mr(e,t);if(n&&!Ts(e,t)&&!qn(e.display,t)){ke(t);var r=e.findWordAt(n);Fo(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||ke(t)}),he(t.scroller,"contextmenu",(function(t){return Cs(e,t)})),he(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Cs(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function u(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}he(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!o(i)&&!Ts(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!qn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||u(r,r.prev)?new io(a,a):!r.prev.prev||u(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),ft(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()})),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),di(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return no(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||_e(t)},over:function(t){ye(e,t)||(Ta(e,t),_e(t))},start:function(t){return _a(e,t)},drop:Di(e,xa),leave:function(t){ye(e,t)||Ca(e)}};var l=t.input.getField();he(l,"keyup",(function(t){return cs.call(e,t)})),he(l,"keydown",Di(e,us)),he(l,"keypress",Di(e,fs)),he(l,"focus",(function(t){return Yr(e,t)})),he(l,"blur",(function(t){return Kr(e,t)}))}Rs.defaults=Ds,Rs.optionHandlers=Is;var js=[];function Vs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),u=j(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=o.mode.indent(i,s.text.slice(c.length),s.text))==z||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?j(Ye(o,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)p+=a,f+="\t";if(p<l&&(f+=Q(l-p)),f!=c)return ra(o,f,it(t,0),it(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var v=o.sel.ranges[h];if(v.head.line==t&&v.head.ch<c.length){var m=it(t,c.length);Po(o,h,new io(m,m));break}}}Rs.defineInitHook=function(e){return js.push(e)};var Us=null;function Bs(e){Us=e}function zs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,u=Le(t),l=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\n")==t){if(r.ranges.length%Us.text.length==0){l=[];for(var c=0;c<Us.text.length;c++)l.push(o.splitLines(Us.text[c]))}}else u.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=Y(u,(function(e){return[e]})));for(var f=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],h=d.from(),v=d.to();d.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?v=it(v.line,Math.min(Ye(o,v.line).text.length,v.ch+$(u).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==u.join("\n")&&(h=v=it(h.line,0)));var m={from:h,to:v,text:l?l[p%l.length]:u,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Ko(e.doc,m),Nn(e,"inputRead",e,m)}t&&!s&&Hs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ai(t,(function(){return zs(t,n,0,null,"paste")})),!0}function Hs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Vs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Vs(e,i.head.line,"smart"));a&&Nn(e,"electricInput",e,i.head.line)}}}function Zs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:it(i,0),head:it(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ws(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Gs(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),v&&(e.style.border="1px solid black"),Ws(e),t}function Qs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Di(this,t[e])(this,n,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ha(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ii((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");K(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Rr(this)})),removeOverlay:Ii((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Rr(this)}})),indentLine:Ii((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Vs(this,e,t,n)})),indentSelection:Ii((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Vs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u<n;++u)Vs(this,u,e);var l=this.doc.sel.ranges;0==o.ch&&t.length==l.length&&l[r].from().ch>0&&Po(this.doc,r,new io(o,l[r].to()),q)}}})),getTokenAt:function(e,t){return St(this,e,t)},getLineTokens:function(e,t){return St(this,it(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=gt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var l=i._global[u];l.pred(o,this)&&-1==U(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=ct(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return yr(this,null==e?n.head:"object"==typeof e?ft(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return gr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return Er(this,(e=mr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=mr(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return vr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Nr(this.display)},defaultCharWidth:function(){return Or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=yr(this,ft(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ii(us),triggerOnKeyPress:Ii(fs),triggerOnKeyUp:cs,triggerOnMouseDown:Ii(gs),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:Ii((function(e){Hs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a<t&&!(o=$s(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Ii((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?$s(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),Z)})),deleteH:Ii((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Za(this,(function(n){var i=$s(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ft(this.doc,e),s=0;s<t;++s){var u=yr(this,a,"div");if(null==o?o=u.left:u.left=o,(a=Ys(this,u,i,n)).hitSide)break}return a},moveV:Ii((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=yr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var u=Ys(n,s,e,t);return"page"==t&&a==r.sel.primary()&&oi(n,gr(n,u,"div").top-s.top),u}),Z),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ye(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new io(it(e.line,n),it(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ii((function(e,t){si(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Gn(this)-this.display.barHeight,width:e.scrollWidth-Gn(this)-this.display.barWidth,clientHeight:$n(this),clientWidth:Qn(this)}},scrollIntoView:Ii((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ui(this,e):ci(this,e.from,e.to,e.margin)})),setSize:Ii((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&cr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Pr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ge(this,"refresh",this)})),operation:function(e){return Ai(this,e)},startOperation:function(){return ki(this)},endOperation:function(){return Si(this)},refresh:Ii((function(){var e=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,fr(this),si(this,this.doc.scrollLeft,this.doc.scrollTop),Hi(this.display),(null==e||Math.abs(e-Nr(this.display))>.5||this.options.lineWrapping)&&Lr(this),ge(this,"refresh",this)})),swapDoc:Ii((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,e),fr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Nn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function $s(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),u=i&&"rtl"==e.direction?-n:n;function l(){var n=t.line+u;return!(n<e.first||n>=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ye(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?$a(e.cm,s,t,n):Ga(s,t,n);if(null==a){if(o||!l())return!1;t=Qa(i,e.cm,s,t.line,u)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,p="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var v=s.text.charAt(t.ch)||"\n",m=ne(v,d)?"w":p&&"\n"==v?"n":!p||/\s/.test(v)?null:"p";if(!p||h||m||(m="s"),f&&f!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(f=m),n>0&&!c(!h))break}var g=Go(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function Ys(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(u-.5*Nr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ks=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Kn(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var s=or(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Xs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function eu(e,t){return t&&(e.bad=!0),e}function tu(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),u=!1;function l(e){return function(t){return t.id==e}}function c(){a&&(o+=s,u&&(o+=s),a=u=!1)}function f(e){e&&(c(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(it(r,0),it(i+1,0),l(+d));return void(h.length&&(o=h[0].find(0))&&f(Ke(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var v=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;v&&c();for(var m=0;m<t.childNodes.length;m++)p(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(u=!0),v&&(a=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;p(t),t!=n;)t=t.nextSibling,u=!1;return o}function nu(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return eu(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return ru(o,t,n)}}function ru(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return eu(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?$(e.rest):e.line;return eu(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=e.measure,l=u.maps;function c(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?u.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=et(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),it(c,f)}}}var f=c(a,s,n);if(f)return eu(f,i);for(var p=s.nextSibling,d=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(f=c(p,p.firstChild,0))return eu(it(f.line,f.ch-d),i);d+=p.textContent.length}for(var h=s.previousSibling,v=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return eu(it(f.line,f.ch+v),i);v+=h.textContent.length}}Ks.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!ye(r,e)){if(r.somethingSelected())Bs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Zs(r);Bs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,q),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Us.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Gs(),u=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),u.value=Us.text.join("\n");var l=I();F(u),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Ws(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),he(i,"paste",(function(e){!o(e)||ye(r,e)||qs(e,r)||s<=11&&setTimeout(Di(r,(function(){return t.updateFromDOM()})),20)})),he(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),he(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),he(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),he(i,"touchstart",(function(){return n.forceCompositionEnd()})),he(i,"input",(function(){t.composing||t.readFromDOMSoon()})),he(i,"copy",a),he(i,"cut",a)},Ks.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ks.prototype.prepareSelection=function(){var e=qr(this.cm,!1);return e.focus=I()==this.div,e},Ks.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ks.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ks.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=nu(t,e.anchorNode,e.anchorOffset),s=nu(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ot(lt(a,s),i)||0!=ot(ut(a,s),o)){var u=t.display.view,l=i.line>=t.display.viewFrom&&Js(t,i)||{node:u[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Js(t,o);if(!c){var f=u[u.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(l&&c){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=_(l.node,l.offset,c.offset,c.node)}catch(v){}d&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ks.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ks.prototype.showMultipleSelections=function(e){N(this.cm.display.cursorDiv,e.cursors),N(this.cm.display.selectionDiv,e.selection)},Ks.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ks.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Ks.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ks.prototype.blur=function(){this.div.blur()},Ks.prototype.getField=function(){return this.div},Ks.prototype.supportsTouch=function(){return!0},Ks.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Ai(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},Ks.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ks.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(m&&c&&this.cm.display.gutterSpecs.length&&Xs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nu(t,e.anchorNode,e.anchorOffset),r=nu(t,e.focusNode,e.focusOffset);n&&r&&Ai(t,(function(){Bo(t.doc,ao(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ks.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=it(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Fr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var u,l,c=Fr(r,s.line);if(c==i.view.length-1?(u=i.viewTo-1,l=i.lineDiv.lastChild):(u=et(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(tu(r,n,l,t,u)),p=Ke(r.doc,it(t,0),it(u,Ye(r.doc,u).text.length));f.length>1&&p.length>1;)if($(f)==$(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,v=f[0],m=p[0],g=Math.min(v.length,m.length);d<g&&v.charCodeAt(d)==m.charCodeAt(d);)++d;for(var y=$(f),b=$(p),w=Math.min(y.length-(1==f.length?d:0),b.length-(1==p.length?d:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var E=it(t,d),k=it(u,p.length?$(p).length-h:0);return f.length>1||f[0]||ot(E,k)?(ra(r.doc,f,E,k,"+input"),!0):void 0},Ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ks.prototype.reset=function(){this.forceCompositionEnd()},Ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ks.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ks.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ai(this.cm,(function(){return Rr(e.cm)}))},Ks.prototype.setUneditable=function(e){e.contentEditable="false"},Ks.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Di(this.cm,zs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ks.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ks.prototype.onContextMenu=function(){},Ks.prototype.resetPosition=function(){},Ks.prototype.needsContentAttribute=!0;var iu=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};function ou(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(u){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Rs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function au(e){e.off=me,e.on=he,e.wheelEventPixels=to,e.Doc=ka,e.splitLines=Le,e.countColumn=j,e.findColumn=W,e.isWordChar=te,e.Pass=z,e.signal=ge,e.Line=un,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=je,e.mimeModes=Ve,e.resolveMode=ze,e.getMode=qe,e.modeExtensions=He,e.extendMode=Ze,e.copyState=We,e.startState=Qe,e.innerMode=Ge,e.commands=Ya,e.keyMap=Pa,e.keyName=qa,e.isModifierKey=Ba,e.lookupKey=Ua,e.normalizeKeyMap=Va,e.StringStream=$e,e.SharedTextMarker=ma,e.TextMarker=ha,e.LineWidget=ca,e.e_preventDefault=ke,e.e_stopPropagation=Se,e.e_stop=_e,e.addClass=L,e.contains=D,e.rmClass=T,e.keyNames=La}iu.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ye(r,e)){if(r.somethingSelected())Bs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Zs(r);Bs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),he(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(i,"paste",(function(e){ye(r,e)||qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),he(i,"cut",o),he(i,"copy",o),he(e.scroller,"paste",(function(t){if(!qn(e,t)&&!ye(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),he(e.lineSpace,"selectstart",(function(t){qn(e,t)||ke(t)})),he(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),he(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},iu.prototype.createField=function(e){this.wrapper=Gs(),this.textarea=this.wrapper.firstChild},iu.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},iu.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=qr(e);if(e.options.moveInputWithCursor){var i=yr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},iu.prototype.showSelection=function(e){var t=this.cm.display;N(t.cursorDiv,e.cursors),N(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},iu.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},iu.prototype.getField=function(){return this.textarea},iu.prototype.supportsTouch=function(){return!1},iu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},iu.prototype.blur=function(){this.textarea.blur()},iu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},iu.prototype.receivedFocus=function(){this.slowPoll()},iu.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},iu.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},iu.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Me(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,l=Math.min(r.length,i.length);u<l&&r.charCodeAt(u)==i.charCodeAt(u);)++u;return Ai(t,(function(){zs(t,i.slice(u),r.length-u,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},iu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},iu.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},iu.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Mr(n,e),l=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Di(n,Bo)(n.doc,ao(o),q);var c,p=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),r.input.focus(),u&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),S?(_e(e),he(window,"mouseup",(function e(){me(window,"mouseup",e),setTimeout(m,20)}))):setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?i.value:"");i.value="\u21da",i.value=o,t.prevInput=e?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Di(n,$o)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},iu.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},iu.prototype.setUneditable=function(){},iu.prototype.needsContentAttribute=!1,Ls(Rs),Qs(Rs);var su="iter insert remove copy getEditor constructor".split(" ");for(var uu in ka.prototype)ka.prototype.hasOwnProperty(uu)&&U(su,uu)<0&&(Rs.prototype[uu]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[uu]));return Ee(ka),Rs.inputStyles={textarea:iu,contenteditable:Ks},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),Ue.apply(this,arguments)},Rs.defineMIME=Be,Rs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){ka.prototype[e]=t},Rs.fromTextArea=ou,au(Rs),Rs.version="5.65.3",Rs}()},5683:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,u=n.json||s,l=!1!==n.trackScope,c=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function m(e,t,n){return r=e,i=n,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):it(e,t,1)?(v(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=w,w(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==n&&e.eatWhile(f))return m("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(d.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?m("."):m("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(r)){var i=p[r];return m(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",r)}return m("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(h))return n.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=g),m("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function w(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var E="([{}])";function k(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),u=E.indexOf(s);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var S={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function _(e,t){if(!l)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function T(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?Z:q)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&_(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function O(){return N.apply(null,arguments),!0}function A(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function D(e){var t=C.state;if(C.marked="def",l){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=I(e,t.context);if(null!=r)return void(t.context=r)}else if(!A(e,t.localVars))return void(t.localVars=new F(e,t.localVars));n.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new F(e,t.globalVars))}}function I(e,t){if(t){if(t.block){var n=I(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return A(e,t.vars)?t:new M(t.prev,new F(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function F(e,t){this.name=e,this.next=t}var R=new F("this",new F("arguments",null));function P(){C.state.context=new M(C.state.context,C.state.localVars,!1),C.state.localVars=R}function j(){C.state.context=new M(C.state.context,C.state.localVars,!0),C.state.localVars=null}function V(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function U(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function B(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?N():O(t)}return t}function q(e,t){return"var"==e?O(U("vardef",t),Ne,z(";"),B):"keyword a"==e?O(U("form"),G,q,B):"keyword b"==e?O(U("form"),q,B):"keyword d"==e?C.stream.match(/^\s*$/,!1)?O():O(U("stat"),$,z(";"),B):"debugger"==e?O(z(";")):"{"==e?O(U("}"),j,pe,B,V):";"==e?O():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==B&&C.state.cc.pop()(),O(U("form"),G,q,B,Me)):"function"==e?O(je):"for"==e?O(U("form"),j,Fe,q,V,B):"class"==e||c&&"interface"==t?(C.marked="keyword",O(U("form","class"==e?e:t),qe,B)):"variable"==e?c&&"declare"==t?(C.marked="keyword",O(q)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?O(tt):"type"==t?O(Ue,z("operator"),ge,z(";")):O(U("form"),Oe,z("{"),U("}"),pe,B,B)):c&&"namespace"==t?(C.marked="keyword",O(U("form"),Z,q,B)):c&&"abstract"==t?(C.marked="keyword",O(q)):O(U("stat"),oe):"switch"==e?O(U("form"),G,z("{"),U("}","switch"),j,pe,B,B,V):"case"==e?O(Z,z(":")):"default"==e?O(z(":")):"catch"==e?O(U("form"),P,H,q,B,V):"export"==e?O(U("stat"),Ge,B):"import"==e?O(U("stat"),$e,B):"async"==e?O(q):"@"==t?O(Z,q):N(U("stat"),Z,z(";"),B)}function H(e){if("("==e)return O(Be,z(")"))}function Z(e,t){return Q(e,t,!1)}function W(e,t){return Q(e,t,!0)}function G(e){return"("!=e?N():O(U(")"),$,z(")"),B)}function Q(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?te:ee;if("("==e)return O(P,U(")"),ce(Be,")"),B,z("=>"),r,V);if("variable"==e)return N(P,Oe,z("=>"),r,V)}var i=n?K:Y;return S.hasOwnProperty(e)?O(i):"function"==e?O(je,i):"class"==e||c&&"interface"==t?(C.marked="keyword",O(U("form"),ze,B)):"keyword c"==e||"async"==e?O(n?W:Z):"("==e?O(U(")"),$,z(")"),B,i):"operator"==e||"spread"==e?O(n?W:Z):"["==e?O(U("]"),et,B,i):"{"==e?fe(se,"}",null,i):"quasi"==e?N(J,i):"new"==e?O(ne(n)):O()}function $(e){return e.match(/[;\}\)\],]/)?N():N(Z)}function Y(e,t){return","==e?O($):K(e,t,!1)}function K(e,t,n){var r=0==n?Y:K,i=0==n?Z:W;return"=>"==e?O(P,n?te:ee,V):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?O(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(U(">"),ce(ge,">"),B,r):"?"==t?O(Z,z(":"),i):O(i):"quasi"==e?N(J,r):";"!=e?"("==e?fe(W,")","call",r):"."==e?O(ae,r):"["==e?O(U("]"),$,z("]"),B,r):c&&"as"==t?(C.marked="keyword",O(ge,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),O(i)):void 0:void 0}function J(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(J):O($,X)}function X(e){if("}"==e)return C.marked="string-2",C.state.tokenize=w,O(J)}function ee(e){return k(C.stream,C.state),N("{"==e?q:Z)}function te(e){return k(C.stream,C.state),N("{"==e?q:W)}function ne(e){return function(t){return"."==t?O(e?ie:re):"variable"==t&&c?O(_e,e?K:Y):N(e?W:Z)}}function re(e,t){if("target"==t)return C.marked="keyword",O(Y)}function ie(e,t){if("target"==t)return C.marked="keyword",O(K)}function oe(e){return":"==e?O(B,q):N(Y,z(";"),B)}function ae(e){if("variable"==e)return C.marked="property",O()}function se(e,t){return"async"==e?(C.marked="property",O(se)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?O(ue):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),O(le))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",O(le)):"jsonld-keyword"==e?O(le):c&&L(t)?(C.marked="keyword",O(se)):"["==e?O(Z,de,z("]"),le):"spread"==e?O(W,le):"*"==t?(C.marked="keyword",O(se)):":"==e?N(le):void 0;var n}function ue(e){return"variable"!=e?N(le):(C.marked="property",O(je))}function le(e){return":"==e?O(W):"("==e?N(je):void 0}function ce(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?N():N(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?N(e):O(z(t))}return function(n,i){return n==t||i==t?O():N(e,r)}}function fe(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return O(U(t,n),ce(e,t),B)}function pe(e){return"}"==e?O():N(q,pe)}function de(e,t){if(c){if(":"==e)return O(ge);if("?"==t)return O(de)}}function he(e,t){if(c&&(":"==e||"in"==t))return O(ge)}function ve(e){if(c&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?O(Z,me,ge):O(ge)}function me(e,t){if("is"==t)return C.marked="keyword",O()}function ge(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",O("typeof"==t?W:ge)):"variable"==e||"void"==t?(C.marked="type",O(xe)):"|"==t||"&"==t?O(ge):"string"==e||"number"==e||"atom"==e?O(xe):"["==e?O(U("]"),ce(ge,"]",","),B,xe):"{"==e?O(U("}"),be,B,xe):"("==e?O(ce(Se,")"),ye,xe):"<"==e?O(ce(ge,">"),ge):"quasi"==e?N(Ee,xe):void 0}function ye(e){if("=>"==e)return O(ge)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):N(we,be)}function we(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",O(we)):"?"==t||"number"==e||"string"==e?O(we):":"==e?O(ge):"["==e?O(z("variable"),he,z("]"),we):"("==e?N(Ve,we):e.match(/[;\}\)\],]/)?void 0:O()}function Ee(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(Ee):O(ge,ke)}function ke(e){if("}"==e)return C.marked="string-2",C.state.tokenize=w,O(Ee)}function Se(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?O(Se):":"==e?O(ge):"spread"==e?O(Se):N(ge)}function xe(e,t){return"<"==t?O(U(">"),ce(ge,">"),B,xe):"|"==t||"."==e||"&"==t?O(ge):"["==e?O(ge,z("]"),xe):"extends"==t||"implements"==t?(C.marked="keyword",O(ge)):"?"==t?O(ge,z(":"),ge):void 0}function _e(e,t){if("<"==t)return O(U(">"),ce(ge,">"),B,xe)}function Te(){return N(ge,Ce)}function Ce(e,t){if("="==t)return O(ge)}function Ne(e,t){return"enum"==t?(C.marked="keyword",O(tt)):N(Oe,de,Ie,Le)}function Oe(e,t){return c&&L(t)?(C.marked="keyword",O(Oe)):"variable"==e?(D(t),O()):"spread"==e?O(Oe):"["==e?fe(De,"]"):"{"==e?fe(Ae,"}"):void 0}function Ae(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?O(Oe):"}"==e?N():"["==e?O(Z,z("]"),z(":"),Ae):O(z(":"),Oe,Ie)):(D(t),O(Ie))}function De(){return N(Oe,Ie)}function Ie(e,t){if("="==t)return O(W)}function Le(e){if(","==e)return O(Ne)}function Me(e,t){if("keyword b"==e&&"else"==t)return O(U("form","else"),q,B)}function Fe(e,t){return"await"==t?O(Fe):"("==e?O(U(")"),Re,B):void 0}function Re(e){return"var"==e?O(Ne,Pe):"variable"==e?O(Pe):N(Pe)}function Pe(e,t){return")"==e?O():";"==e?O(Pe):"in"==t||"of"==t?(C.marked="keyword",O(Z,Pe)):N(Z,Pe)}function je(e,t){return"*"==t?(C.marked="keyword",O(je)):"variable"==e?(D(t),O(je)):"("==e?O(P,U(")"),ce(Be,")"),B,ve,q,V):c&&"<"==t?O(U(">"),ce(Te,">"),B,je):void 0}function Ve(e,t){return"*"==t?(C.marked="keyword",O(Ve)):"variable"==e?(D(t),O(Ve)):"("==e?O(P,U(")"),ce(Be,")"),B,ve,V):c&&"<"==t?O(U(">"),ce(Te,">"),B,Ve):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(C.marked="type",O(Ue)):"<"==t?O(U(">"),ce(Te,">"),B):void 0}function Be(e,t){return"@"==t&&O(Z,Be),"spread"==e?O(Be):c&&L(t)?(C.marked="keyword",O(Be)):c&&"this"==e?O(de,Ie):N(Oe,de,Ie)}function ze(e,t){return"variable"==e?qe(e,t):He(e,t)}function qe(e,t){if("variable"==e)return D(t),O(He)}function He(e,t){return"<"==t?O(U(">"),ce(Te,">"),B,He):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),O(c?ge:Z,He)):"{"==e?O(U("}"),Ze,B):void 0}function Ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&L(t))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",O(Ze)):"variable"==e||"keyword"==C.style?(C.marked="property",O(We,Ze)):"number"==e||"string"==e?O(We,Ze):"["==e?O(Z,de,z("]"),We,Ze):"*"==t?(C.marked="keyword",O(Ze)):c&&"("==e?N(Ve,Ze):";"==e||","==e?O(Ze):"}"==e?O():"@"==t?O(Z,Ze):void 0}function We(e,t){if("!"==t)return O(We);if("?"==t)return O(We);if(":"==e)return O(ge,Ie);if("="==t)return O(W);var n=C.state.lexical.prev;return N(n&&"interface"==n.info?Ve:je)}function Ge(e,t){return"*"==t?(C.marked="keyword",O(Xe,z(";"))):"default"==t?(C.marked="keyword",O(Z,z(";"))):"{"==e?O(ce(Qe,"}"),Xe,z(";")):N(q)}function Qe(e,t){return"as"==t?(C.marked="keyword",O(z("variable"))):"variable"==e?N(W,Qe):void 0}function $e(e){return"string"==e?O():"("==e?N(Z):"."==e?N(Y):N(Ye,Ke,Xe)}function Ye(e,t){return"{"==e?fe(Ye,"}"):("variable"==e&&D(t),"*"==t&&(C.marked="keyword"),O(Je))}function Ke(e){if(","==e)return O(Ye,Ke)}function Je(e,t){if("as"==t)return C.marked="keyword",O(Ye)}function Xe(e,t){if("from"==t)return C.marked="keyword",O(Z)}function et(e){return"]"==e?O():N(ce(W,"]"))}function tt(){return N(U("form"),Oe,z("{"),U("}"),ce(nt,"}"),B,B)}function nt(){return N(Oe,Ie)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return P.lex=j.lex=!0,V.lex=!0,B.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new M(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),k(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",T(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==w)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),u=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var c=t.cc[l];if(c==B)u=u.prev;else if(c!=Me&&c!=V)break}for(;("stat"==u.type||"form"==u.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==Y||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;a&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,p=s==f;return"vardef"==f?u.indented+("operator"==t.lastType||","==t.lastType?u.info.length+1:0):"form"==f&&"{"==s?u.indented:"form"==f?u.indented+o:"stat"==f?u.indented+(rt(t,r)?a||o:0):"switch"!=u.info||p||0==n.doubleIndentSwitch?u.align?u.column+(p?0:1):u.indented+(p?0:o):u.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:s,jsonMode:u,expressionAllowed:it,skipExpression:function(t){T(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(3668))},7830:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){this.state=e,this.mode=t,this.depth=n,this.prev=r}function n(r){return new t(e.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&n(r.prev))}e.defineMode("jsx",(function(r,i){var o=e.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=e.getMode(r,i&&i.base||"javascript");function s(e){var t=e.tagName;e.tagName=null;var n=o.indent(e,"","");return e.tagName=t,n}function u(e,t){return t.context.mode==o?l(e,t,t.context):c(e,t,t.context)}function l(n,i,l){if(2==l.depth)return n.match(/^.*?\*\//)?l.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(l.state);var c=s(l.state),f=l.state.context;if(f&&n.match(/^[^>]*>\s*$/,!1)){for(;f.prev&&!f.startOfLine;)f=f.prev;f.startOfLine?c-=r.indentUnit:l.prev.state.lexical&&(c=l.prev.state.lexical.indented)}else 1==l.depth&&(c+=r.indentUnit);return i.context=new t(e.startState(a,c),a,0,i.context),null}if(1==l.depth){if("<"==n.peek())return o.skipAttribute(l.state),i.context=new t(e.startState(o,s(l.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return l.depth=2,u(n,i)}var p,d=o.token(n,l.state),h=n.current();return/\btag\b/.test(d)?/>$/.test(h)?l.state.context?l.depth=0:i.context=i.context.prev:/^</.test(h)&&(l.depth=1):!d&&(p=h.indexOf("{"))>-1&&n.backUp(h.length-p),d}function c(n,r,i){if("<"==n.peek()&&a.expressionAllowed(n,i.state))return r.context=new t(e.startState(o,a.indent(i.state,"","")),o,0,r.context),a.skipExpression(i.state),null;var s=a.token(n,i.state);if(!s&&null!=i.depth){var u=n.current();"{"==u?i.depth++:"}"==u&&0==--i.depth&&(r.context=r.context.prev)}return s}return{startState:function(){return{context:new t(e.startState(a),a)}},copyState:function(e){return{context:n(e.context)}},token:u,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(3668),n(9029),n(5683))},9029:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,u={},l=i.htmlMode?t:n;for(var c in l)u[c]=l[c];for(var c in i)u[c]=i[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(v(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=f,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=f,t.state=w,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=d(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=p;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function v(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=v(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=v(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function g(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!u.contextGrabbers.hasOwnProperty(m(n))||!u.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;y(e)}}function w(e,t,n){return"openTag"==e?(n.tagStart=t.column(),E):"closeTag"==e?k:w}function E(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",_):u.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",E)}function k(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&u.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===u.matchClosing?(a="tag",S):(a="tag error",x)}return u.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",x)}function S(e,t,n){return"endTag"!=e?(a="error",S):(y(n),w)}function x(e,t,n){return a="error",S(e,t,n)}function _(e,t,n){if("word"==e)return a="attribute",T;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||u.autoSelfClosers.hasOwnProperty(m(r))?b(n,r):(b(n,r),n.context=new g(n,r,i==n.indented)),w}return a="error",_}function T(e,t,n){return"equals"==e?C:(u.allowMissing||(a="error"),_(e,t,n))}function C(e,t,n){return"string"==e?N:"word"==e&&u.allowUnquoted?(a="string",_):(a="error",_(e,t,n))}function N(e,t,n){return"string"==e?N:_(e,t,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==u.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!u.implicitlyClosed.hasOwnProperty(m(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=u.contextGrabbers[m(i.tagName)];if(!a||!a.hasOwnProperty(m(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=_)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(3668))},6998:function(e,t,n){"use strict";var r=n(2458),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,l,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),l&&document.body.removeChild(l),a()}return c}},1584:function(e){"use strict";var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,i=t.exec(r);if(!i)return r;var o="",a=0,s=0;for(a=i.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==a&&(o+=r.substring(s,a)),s=a+1,o+=n}return s!==a?o+r.substring(s,a):o}},5651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.defaultValue=T;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2791)),u=n(4495);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}var v={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},m=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),g=s.createElement("svg",{width:"12",height:"9"},s.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),y=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),b=s.createElement("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"}));function w(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function E(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach((function(e){(0,u.isLeafType)(t[e].type)&&r.push(e)})),r.length?r.slice(0,2):["__typename"]}function k(e){return(0,u.isNonNullType)(e.type)&&void 0===e.defaultValue}function S(e){for(var t=e;(0,u.isWrappingType)(t);)t=t.ofType;return t}function x(e,t){if("string"!==typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,u.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"===typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(i){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(i){return console.error("error coercing arg value",i,t),{kind:"StringValue",value:t}}else try{var r=e.parseValue(t);return r?{kind:"EnumValue",value:String(r)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(i){return{kind:"EnumValue",value:e.getValues()[0].name}}}var _=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return r.props.selection.fields.find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(){var e=r.props.selection,t=r._getArgSelection();r._previousArgSelection=t,r.props.modifyFields(e.fields.filter((function(e){return e!==t})),!0)},r._addArg=function(){var e=r.props,t=e.selection,n=e.arg,i=e.getDefaultScalarArgValue,o=e.parentField,a=e.makeDefaultArg,s=S(n.type),l=null;if(r._previousArgSelection)l=r._previousArgSelection;else if((0,u.isInputObjectType)(s)){var f=s.getFields();l={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:F(i,a,o,Object.keys(f).map((function(e){return f[e]})))}}}else(0,u.isLeafType)(s)&&(l={kind:"ObjectField",name:{kind:"Name",value:n.name},value:i(o,n,s)});if(l)return r.props.modifyFields([].concat(c(t.fields||[]),[l]),!0);console.error("Unable to add arg for argType",s)},r._setArgValue=function(e,t){var n=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null===e||"undefined"===typeof e?n=!0:"string"===typeof e.kind&&(a=!0)}catch(d){}var s=r.props.selection,l=r._getArgSelection();if(l){var c=S(r.props.arg.type);if((0,u.isLeafType)(c)||i||n||a){var f=void 0,p=void 0;return null===e||"undefined"===typeof e?p=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?p=(f=e).variable:"string"===typeof e.kind?p=e:e.target&&"string"===typeof e.target.value&&(f=e.target.value,p=x(c,f)),r.props.modifyFields((s.fields||[]).map((function(e){return e===l?o({},e,{value:p}):e})),t)}console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e)}else console.error("missing arg selection when setting arg value")},r._modifyChildFields=function(e){return r.props.modifyFields(r.props.selection.fields.map((function(t){return t.name.value===r.props.arg.name?o({},t,{value:{kind:"ObjectValue",fields:e}}):t})),!0)},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(I,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);function T(e){if((0,u.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}}function C(e,t,n){return T(n)}var N=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return(r.props.selection.arguments||[]).find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(e){var t=r.props.selection,n=r._getArgSelection();return r._previousArgSelection=n,r.props.modifyArguments((t.arguments||[]).filter((function(e){return e!==n})),e)},r._addArg=function(e){var t=r.props,n=t.selection,i=t.getDefaultScalarArgValue,o=t.makeDefaultArg,a=t.parentField,s=t.arg,l=S(s.type),f=null;if(r._previousArgSelection)f=r._previousArgSelection;else if((0,u.isInputObjectType)(l)){var p=l.getFields();f={kind:"Argument",name:{kind:"Name",value:s.name},value:{kind:"ObjectValue",fields:F(i,o,a,Object.keys(p).map((function(e){return p[e]})))}}}else(0,u.isLeafType)(l)&&(f={kind:"Argument",name:{kind:"Name",value:s.name},value:i(a,s,l)});return f?r.props.modifyArguments([].concat(c(n.arguments||[]),[f]),e):(console.error("Unable to add arg for argType",l),null)},r._setArgValue=function(e,t){var n=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null===e||"undefined"===typeof e?n=!0:"string"===typeof e.kind&&(a=!0)}catch(d){}var s=r.props.selection,l=r._getArgSelection();if(l||i){var c=S(r.props.arg.type);if((0,u.isLeafType)(c)||i||n||a){var f=void 0,p=void 0;return null===e||"undefined"===typeof e?p=null:e.target&&"string"===typeof e.target.value?(f=e.target.value,p=x(c,f)):e.target||"VariableDefinition"!==e.kind?"string"===typeof e.kind&&(p=e):p=(f=e).variable,r.props.modifyArguments((s.arguments||[]).map((function(e){return e===l?o({},e,{value:p}):e})),t)}console.warn("Unable to handle non leaf types in ArgView._setArgValue")}else console.error("missing arg selection when setting arg value")},r._setArgFields=function(e,t){var n=r.props.selection,i=r._getArgSelection();if(i)return r.props.modifyArguments((n.arguments||[]).map((function(t){return t===i?o({},t,{value:{kind:"ObjectValue",fields:e}}):t})),t);console.error("missing arg selection when setting arg value")},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(I,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);function O(e){return e.ctrlKey&&"Enter"===e.key}function A(e){return"FragmentDefinition"!==e}var D=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._handleChange=function(e){r.props.setArgValue(e,!0)},p(r,n)}return d(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,i=t.styleConfig,o=S(n.type),a="string"===typeof r.value?r.value:"",u="StringValue"===this.props.argValue.kind?i.colors.string:i.colors.number;return s.createElement("span",{style:{color:u}},"String"===o.name?'"':"",s.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,a.length))+"ch",color:u},ref:function(t){e._ref=t},type:"text",onChange:this._handleChange,value:a}),"String"===o.name?'"':"")}}]),t}(s.PureComponent),I=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayArgActions:!1},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,a=t.styleConfig,l=S(r.type),f=null;if(n)if("Variable"===n.kind)f=s.createElement("span",{style:{color:a.colors.variable}},"$",n.name.value);else if((0,u.isScalarType)(l))f="Boolean"===l.name?s.createElement("select",{style:{color:a.colors.builtin},onChange:this.props.setArgValue,value:"BooleanValue"===n.kind?n.value:void 0},s.createElement("option",{key:"true",value:"true"},"true"),s.createElement("option",{key:"false",value:"false"},"false")):s.createElement(D,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,u.isEnumType)(l))"EnumValue"===n.kind?f=s.createElement("select",{style:{backgroundColor:"white",color:a.colors.string2},onChange:this.props.setArgValue,value:n.value},l.getValues().map((function(e){return s.createElement("option",{key:e.name,value:e.name},e.name)}))):console.error("arg mismatch between arg and selection",l,n);else if((0,u.isInputObjectType)(l))if("ObjectValue"===n.kind){var p=l.getFields();f=s.createElement("div",{style:{marginLeft:16}},Object.keys(p).sort().map((function(t){return s.createElement(_,{key:t,arg:p[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})))}else console.error("arg mismatch between arg and selection",l,n);var d=function(){var t=r.name,a=(e.props.definition.variableDefinitions||[]).filter((function(e){return e.variable.name.value.startsWith(t)})).length,s=void 0;s=a>0?""+t+a:t;var l=r.type.toString(),f={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:s}},type:(0,u.parseType)(l),directives:[]},p=void 0,d={};if("undefined"!==typeof n&&null!==n){var h=(0,u.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(d[r]=d[r]+1||1,i)return i.defaultValue}}),v="NonNullType"===f.type.kind?o({},f,{type:f.type.type}):f;p=o({},v,{defaultValue:h})}else p=f;var m=Object.entries(d).filter((function(e){var t=i(e,2);t[0];return t[1]<2})).map((function(e){var t=i(e,2),n=t[0];t[1];return n}));if(p){var g=e.props.setArgValue(p,!1);if(g){var y=g.definitions.find((function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value})),b=[].concat(c(y.variableDefinitions||[]),[p]).filter((function(e){return-1===m.indexOf(e.variable.name.value)})),w=o({},y,{variableDefinitions:b}),E=g.definitions.map((function(e){return y===e?w:e})),k=o({},g,{definitions:E});e.props.onCommit(k)}}},h=n&&"Variable"===n.kind,v=this.state.displayArgActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:h?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),h?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===t}));if(r){var i=r.defaultValue,a=e.props.setArgValue(i,{commit:!1});if(a){var s=a.definitions.find((function(t){return t.name.value===e.props.definition.name.value}));if(!s)return;var l=0;(0,u.visit)(s,{Variable:function(e){e.name.value===t&&(l+=1)}});var c=s.variableDefinitions||[];l<2&&(c=c.filter((function(e){return e.variable.name.value!==t})));var f=o({},s,{variableDefinitions:c}),p=a.definitions.map((function(e){return s===e?f:e})),d=o({},a,{definitions:p});e.props.onCommit(d)}}}}():d()},style:a.styles.actionButtonStyle},s.createElement("span",{style:{color:a.colors.variable}},"$")):null;return s.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":l.name,className:"graphiql-explorer-"+r.name},s.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,u.isInputObjectType)(l)?s.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(w,{checked:!!n,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:a.colors.attribute},title:r.description,onMouseEnter:function(){null!==n&&"undefined"!==typeof n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,k(r)?"*":"",": ",v," ")," "),f||s.createElement("span",null)," ")}}]),t}(s.PureComponent),L=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(c(r.props.selections),[r._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:r.props.getDefaultFieldNames(r.props.implementingType).map((function(e){return{kind:"Field",name:{kind:"Name",value:e}}}))}}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"InlineFragment"===e.kind&&e.typeCondition&&r.props.implementingType.name===e.typeCondition.name.value}));return e?"InlineFragment"===e.kind?e:void 0:null},r._modifyChildSelections=function(e,t){var n=r._getSelection();return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{directives:t.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:t})),t)},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,i=t.getDefaultFieldNames,o=t.styleConfig,a=this._getSelection(),u=n.getFields(),l=a&&a.selectionSet?a.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+n.name},s.createElement("span",{style:{cursor:"pointer"},onClick:a?this._removeFragment:this._addFragment},s.createElement(w,{checked:!!a,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:o.colors.atom}},this.props.implementingType.name)),a?s.createElement("div",{style:{marginLeft:16}},Object.keys(u).sort().map((function(t){return s.createElement(P,{key:t,field:u[t],selections:l,modifySelections:e._modifyChildSelections,schema:r,getDefaultFieldNames:i,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,onCommit:e.props.onCommit,styleConfig:e.props.styleConfig,definition:e.props.definition,availableFragments:e.props.availableFragments})}))):null)}}]),t}(s.PureComponent),M=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._addFragment=function(){r.props.modifySelections([].concat(c(r.props.selections),[r._previousSelection||{kind:"FragmentSpread",name:r.props.fragment.name}]))},r._removeFragment=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(e){return!("FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value)})))},r._getSelection=function(){return r.props.selections.find((function(e){return"FragmentSpread"===e.kind&&e.name.value===r.props.fragment.name.value}))},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this.props.styleConfig,t=this._getSelection();return s.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},s.createElement("span",{style:{cursor:"pointer"},onClick:t?this._removeFragment:this._addFragment},s.createElement(w,{checked:!!t,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:e.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(s.PureComponent);function F(e,t,n,r){var i=[],o=!0,a=!1,s=void 0;try{for(var l,c=r[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;if((0,u.isRequiredInputField)(f)||t&&t(n,f)){var p=S(f.type);(0,u.isInputObjectType)(p)?function(){var r=p.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:f.name},value:{kind:"ObjectValue",fields:F(e,t,n,Object.keys(r).map((function(e){return r[e]})))}})}():(0,u.isLeafType)(p)&&i.push({kind:"ObjectField",name:{kind:"Name",value:f.name},value:e(n,f,p)})}}}catch(d){a=!0,s=d}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}function R(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s,l=n.args[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value;if(k(c)||t&&t(n,c)){var f=S(c.type);(0,u.isInputObjectType)(f)?function(){var i=f.getFields();r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:{kind:"ObjectValue",fields:F(e,t,n,Object.keys(i).map((function(e){return i[e]})))}})}():(0,u.isLeafType)(f)&&r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:e(n,c,f)})}}}catch(p){o=!0,a=p}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return r}var P=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayFieldActions:!1},r._addAllFieldsToSelections=function(e){var t={kind:"SelectionSet",selections:e?Object.keys(e).map((function(e){return{kind:"Field",name:{kind:"Name",value:e},arguments:[]}})):[]},n=[].concat(c(r.props.selections.filter((function(e){return"InlineFragment"===e.kind||e.name.value!==r.props.field.name}))),[{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:R(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field),selectionSet:t}]);r.props.modifySelections(n)},r._addFieldToSelections=function(e){var t=[].concat(c(r.props.selections),[r._previousSelection||{kind:"Field",name:{kind:"Name",value:r.props.field.name},arguments:R(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,u.getNamedType)(r.props.field.type),n=(0,u.isObjectType)(t)&&t.getFields();!!n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"Field"===e.kind&&r.props.field.name===e.name.value}));return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e,t){var n=r._getSelection();if(n)return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{alias:n.alias,arguments:e,directives:n.directives,kind:"Field",name:n.name,selectionSet:n.selectionSet}:t})),t);console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e,t){return r.props.modifySelections(r.props.selections.map((function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t})),t)},p(r,n)}return d(t,e),a(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,i=n.schema,a=n.getDefaultFieldNames,l=n.styleConfig,f=this._getSelection(),p=function(e){for(var t=e;(0,u.isWrappingType)(t);)t=t.ofType;return t}(r.type),d=r.args.sort((function(e,t){return e.name.localeCompare(t.name)})),h="graphiql-explorer-node graphiql-explorer-"+r.name;r.isDeprecated&&(h+=" graphiql-explorer-deprecated");var v=(0,u.isObjectType)(p)||(0,u.isInterfaceType)(p)||(0,u.isUnionType)(p)?this.props.availableFragments&&this.props.availableFragments[p.name]:null,m=s.createElement("div",{className:h},s.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":p.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){(0,u.isObjectType)(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter((function(e){return"FragmentSpread"!==e.kind})).length>0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,u.isObjectType)(p)?s.createElement("span",null,f?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,u.isObjectType)(p)?null:s.createElement(w,{checked:!!f,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:l.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=p.name+"Fragment",r=(v||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var i=f&&f.selectionSet?f.selectionSet.selections:[],a=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],s={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:p.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},u=e._modifyChildSelections(a,!1);if(u){var l=o({},u,{definitions:[].concat(c(u.definitions),[s])});e.props.onCommit(l)}else console.warn("Unable to complete extractFragment operation")},style:o({},l.styles.actionButtonStyle)},s.createElement("span",null,"\u2026")):null),f&&d.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},d.map((function(t){return s.createElement(N,{key:t.name,parentField:r,arg:t,selection:f,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(f&&((0,u.isObjectType)(p)||(0,u.isInterfaceType)(p)||(0,u.isUnionType)(p))){var g=(0,u.isUnionType)(p)?{}:p.getFields(),y=f&&f.selectionSet?f.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+r.name},m,s.createElement("div",{style:{marginLeft:16}},v?v.map((function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(M,{key:r,fragment:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null})):null,Object.keys(g).sort().map((function(n){return s.createElement(t,{key:n,field:g[n],selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})),(0,u.isInterfaceType)(p)||(0,u.isUnionType)(p)?i.getPossibleTypes(p).map((function(t){return s.createElement(L,{key:t.name,implementingType:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null))}return m}}]),t}(s.PureComponent);var j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},V=null;function U(e){if(V&&V[0]===e)return V[1];var t=function(e){try{return e.trim()?(0,u.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}(e);return t?t instanceof Error?V?V[1]:j:(V=[e,t],t):j}var B={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},z=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={newOperationType:"query",displayTitleActions:!1},r._modifySelections=function(e,t){var n=r.props.definition;0===n.selectionSet.selections.length&&r._previousOperationDef&&(n=r._previousOperationDef);var i=void 0;if("FragmentDefinition"===n.kind)i=o({},n,{selectionSet:o({},n.selectionSet,{selections:e})});else if("OperationDefinition"===n.kind){var a=e.filter((function(e){return!("Field"===e.kind&&"__typename"===e.name.value)}));0===a.length&&(a=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),i=o({},n,{selectionSet:o({},n.selectionSet,{selections:a})})}return r.props.onEdit(i,t)},r._onOperationRename=function(e){return r.props.onOperationRename(e.target.value)},r._handlePotentialRun=function(e){O(e)&&A(r.props.definition.kind)&&r.props.onRunOperation(r.props.name)},r._rootViewElId=function(){var e=r.props;return e.operationType+"-"+(e.name||"unknown")},p(r,n)}return d(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._rootViewElId();this.props.onMount(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.operationType,r=t.definition,i=t.schema,a=t.getDefaultFieldNames,u=t.styleConfig,l=this._rootViewElId(),c=this.props.fields||{},f=r.selectionSet.selections,p=this.props.name||h(n)+" Name";return s.createElement("div",{id:l,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},s.createElement("div",{style:{color:u.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return e.setState({displayTitleActions:!0})},onMouseLeave:function(){return e.setState({displayTitleActions:!1})}},n," ",s.createElement("span",{style:{color:u.colors.def}},s.createElement("input",{style:{color:u.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,p.length)+"ch"},autoComplete:"false",placeholder:h(n)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?s.createElement("span",null,s.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?s.createElement(s.Fragment,null,s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationDestroy()},style:o({},u.styles.actionButtonStyle)},s.createElement("span",null,"\u2715")),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationClone()},style:o({},u.styles.actionButtonStyle)},s.createElement("span",null,"\u2398"))):""),Object.keys(c).sort().map((function(t){return s.createElement(P,{key:t,field:c[t],selections:f,modifySelections:e._modifySelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})))}}]),t}(s.PureComponent);function q(){return s.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},s.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",s.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),s.createElement("div",null,"Contribute on"," ",s.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var H=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={newOperationType:"query",operation:null,operationToScrollTo:null},r._resetScroll=function(){var e=r._ref;e&&(e.scrollLeft=0)},r._onEdit=function(e){return r.props.onEdit(e)},r._setAddOperationType=function(e){r.setState({newOperationType:e})},r._handleRootViewMount=function(e){if(r.state.operationToScrollTo&&r.state.operationToScrollTo===e){var t=".graphiql-explorer-root #"+e,n=document.querySelector(t);n&&n.scrollIntoView()}},p(r,n)}return d(t,e),a(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,i=t.query,a=t.makeDefaultArg;if(!n)return s.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var f={colors:this.props.colors||v,checkboxChecked:this.props.checkboxChecked||y,checkboxUnchecked:this.props.checkboxUnchecked||b,arrowClosed:this.props.arrowClosed||g,arrowOpen:this.props.arrowOpen||m,styles:this.props.styles?o({},B,this.props.styles):B},p=n.getQueryType(),d=n.getMutationType(),w=n.getSubscriptionType();if(!p&&!d&&!w)return s.createElement("div",null,"Missing query type");var k=p&&p.getFields(),S=d&&d.getFields(),x=w&&w.getFields(),_=U(i),T=this.props.getDefaultFieldNames||E,N=this.props.getDefaultScalarArgValue||C,O=_.definitions.map((function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null})).filter(Boolean),A=0===O.length?j.definitions:O,D=[k?s.createElement("option",{key:"query",className:"toolbar-button",style:f.styles.buttonStyle,type:"link",value:"query"},"Query"):null,S?s.createElement("option",{key:"mutation",className:"toolbar-button",style:f.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,x?s.createElement("option",{key:"subscription",className:"toolbar-button",style:f.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),I=0===D.length||this.props.hideActions?null:s.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},s.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:o({},f.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(e){return e.preventDefault()}},s.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),s.createElement("select",{onChange:function(t){return e._setAddOperationType(t.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},D),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.state.newOperationType?function(t){var n=_.definitions,r=1===_.definitions.length&&_.definitions[0]===j.definitions[0],i=r?[]:n.filter((function(e){return"OperationDefinition"===e.kind&&e.operation===t})),a="My"+h(t)+(0===i.length?"":i.length+1),s={kind:"OperationDefinition",operation:t,name:{kind:"Name",value:a},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},l=r?[s]:[].concat(c(_.definitions),[s]),f=o({},_,{definitions:l});e.setState({operationToScrollTo:t+"-"+a}),e.props.onEdit((0,u.print)(f))}(e.state.newOperationType):null},style:o({},f.styles.buttonStyle,{height:"22px",width:"22px"})},s.createElement("span",null,"+")))),L=this.props.externalFragments&&this.props.externalFragments.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(c(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return o({},e,l({},n,i))}return e}),{}),M=A.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(c(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return o({},e,l({},n,i))}return e}),{}),F=o({},M,L),R=this.props.showAttribution?s.createElement(q,null):null;return s.createElement("div",{ref:function(t){e._ref=t},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},s.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},A.map((function(t,i){var l=t&&t.name&&t.name.value,p="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",d="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),h=d instanceof u.GraphQLObjectType?d.getFields():null,v="query"===p?k:"mutation"===p?S:"subscription"===p?x:"FragmentDefinition"===t.kind?h:null,m="FragmentDefinition"===t.kind?t.typeCondition.name.value:null,g=function(t){var n=(0,u.print)(t);e.props.onEdit(n)};return s.createElement(z,{key:i,isLast:i===A.length-1,fields:v,operationType:p,name:l,definition:t,onOperationRename:function(n){var r=function(e,t){var n=o({},e,{name:null==t||""===t?null:{kind:"Name",value:t,loc:void 0}}),r=_.definitions.map((function(t){return e===t?n:t}));return o({},_,{definitions:r})}(t,n);e.props.onEdit((0,u.print)(r))},onOperationDestroy:function(){var n=function(e){var t=_.definitions.filter((function(t){return e!==t}));return o({},_,{definitions:t})}(t);e.props.onEdit((0,u.print)(n))},onOperationClone:function(){var n=function(t){var n=void 0;n="FragmentDefinition"===t.kind?"fragment":t.operation;var r=(t.name&&t.name.value||"")+"Copy",i=o({},t,{name:{kind:"Name",value:r,loc:void 0}}),a=_.definitions,s=[].concat(c(a),[i]);return e.setState({operationToScrollTo:n+"-"+r}),o({},_,{definitions:s})}(t);e.props.onEdit((0,u.print)(n))},onTypeName:m,onMount:e._handleRootViewMount,onCommit:g,onEdit:function(e,n){var i=void 0;if(i="object"!==("undefined"===typeof n?"undefined":r(n))||"undefined"===typeof n.commit||n.commit,e){var a=o({},_,{definitions:_.definitions.map((function(n){return n===t?e:n}))});return i?(g(a),a):a}return _},schema:n,getDefaultFieldNames:T,getDefaultScalarArgValue:N,makeDefaultArg:a,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(l)},styleConfig:f,availableFragments:F})})),R),I)}}]),t}(s.PureComponent);H.defaultProps={getDefaultFieldNames:E,getDefaultScalarArgValue:C};var Z=function(e){function t(){var e,n,r;f(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1,error:null,errorInfo:null},p(r,n)}return d(t,e),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?s.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},s.createElement("div",null,"Something went wrong"),s.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,s.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(s.Component),W=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),a(t,[{key:"render",value:function(){return s.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},s.createElement("div",{className:"doc-explorer-title-bar"},s.createElement("div",{className:"doc-explorer-title"},this.props.title),s.createElement("div",{className:"doc-explorer-rhs"},s.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"\u2715"))),s.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},s.createElement(Z,null,s.createElement(H,this.props))))}}]),t}(s.PureComponent);W.defaultValue=T,W.defaultProps={width:320,title:"Explorer"},t.default=W},2560:function(e,t,n){"use strict";var r,i=n(5651),o=(r=i)&&r.__esModule?r:{default:r};o.default,t.ZP=o.default},6304:function(e,t,n){"use strict";n.r(t),n.d(t,{CharacterStream:function(){return We},CompletionItemKind:function(){return Zn},DIAGNOSTIC_SEVERITY:function(){return Tn},FileChangeTypeKind:function(){return Wn},LexRules:function(){return Xe},ParseRules:function(){return et},Position:function(){return jt},Range:function(){return Pt},RuleKinds:function(){return pt},SEVERITY:function(){return _n},SuggestionCommand:function(){return dt},canUseDirective:function(){return wt},collectVariables:function(){return sn},getASTNodeAtPosition:function(){return Ft},getAutocompleteSuggestions:function(){return ht},getDefinitionQueryResultForDefinitionNode:function(){return yn},getDefinitionQueryResultForFragmentSpread:function(){return gn},getDefinitionQueryResultForNamedType:function(){return mn},getDefinitionState:function(){return o},getDiagnostics:function(){return Nn},getFieldDef:function(){return a},getFragmentDefinitions:function(){return gt},getFragmentDependencies:function(){return Tt},getFragmentDependenciesForAST:function(){return Ct},getHoverInformation:function(){return Rn},getOperationASTFacts:function(){return un},getOperationFacts:function(){return ln},getOutline:function(){return Mn},getQueryFacts:function(){return cn},getRange:function(){return In},getTokenAtPosition:function(){return yt},getTypeInfo:function(){return Et},getVariableCompletions:function(){return mt},getVariablesJSONSchema:function(){return Mt},isIgnored:function(){return Je},list:function(){return Qe},offsetToPosition:function(){return Vt},onlineParser:function(){return rt},opt:function(){return Ge},p:function(){return Ye},pointToOffset:function(){return Rt},t:function(){return $e},validateQuery:function(){return On},validateWithCustomRules:function(){return on}});var r=n(2572),i=n(8979);function o(e){var t;return s(e,(function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function a(e,t,n){return n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t?i.SchemaMetaFieldDef:n===i.TypeMetaFieldDef.name&&e.getQueryType()===t?i.TypeMetaFieldDef:n===i.TypeNameMetaFieldDef.name&&(0,r.Gv)(t)?i.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function s(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}function u(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=e[t[i]];return r}function l(e,t){return function(e,t){if(!t)return c(e,(function(e){return!e.isDeprecated}));return c(c(e.map((function(e){return{proximity:p(f(e.label),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length})).map((function(e){return e.entry}))}(t,f(e.string))}function c(e,t){var n=e.filter(t);return 0===n.length?e:n}function f(e){return e.toLowerCase().replace(/\W/g,"")}function p(e,t){var n=function(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 s=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]+s),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]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var d,h,v,m,g,y,b,w,E,k,S,x,_,T,C,N,O,A,D,I,L,M,F,R,P,j,V,U,B=n(2982);!function(e){e.is=function(e){return"string"===typeof e}}(d||(d={})),function(e){e.is=function(e){return"string"===typeof e}}(h||(h={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"===typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(v||(v={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"===typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(m||(m={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.uinteger(t.line)&&Fe.uinteger(t.character)}}(g||(g={})),function(e){e.create=function(e,t,n,r){if(Fe.uinteger(e)&&Fe.uinteger(t)&&Fe.uinteger(n)&&Fe.uinteger(r))return{start:g.create(e,t),end:g.create(n,r)};if(g.is(e)&&g.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(r,"]"))},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&g.is(t.start)&&g.is(t.end)}}(y||(y={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Fe.defined(t)&&y.is(t.range)&&(Fe.string(t.uri)||Fe.undefined(t.uri))}}(b||(b={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Fe.defined(t)&&y.is(t.targetRange)&&Fe.string(t.targetUri)&&y.is(t.targetSelectionRange)&&(y.is(t.originSelectionRange)||Fe.undefined(t.originSelectionRange))}}(w||(w={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.numberRange(t.red,0,1)&&Fe.numberRange(t.green,0,1)&&Fe.numberRange(t.blue,0,1)&&Fe.numberRange(t.alpha,0,1)}}(E||(E={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&y.is(t.range)&&E.is(t.color)}}(k||(k={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.string(t.label)&&(Fe.undefined(t.textEdit)||I.is(t))&&(Fe.undefined(t.additionalTextEdits)||Fe.typedArray(t.additionalTextEdits,I.is))}}(S||(S={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(x||(x={})),function(e){e.create=function(e,t,n,r,i,o){var a={startLine:e,endLine:t};return Fe.defined(n)&&(a.startCharacter=n),Fe.defined(r)&&(a.endCharacter=r),Fe.defined(i)&&(a.kind=i),Fe.defined(o)&&(a.collapsedText=o),a},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.uinteger(t.startLine)&&Fe.uinteger(t.startLine)&&(Fe.undefined(t.startCharacter)||Fe.uinteger(t.startCharacter))&&(Fe.undefined(t.endCharacter)||Fe.uinteger(t.endCharacter))&&(Fe.undefined(t.kind)||Fe.string(t.kind))}}(_||(_={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Fe.defined(t)&&b.is(t.location)&&Fe.string(t.message)}}(T||(T={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(C||(C={})),function(e){e.Unnecessary=1,e.Deprecated=2}(N||(N={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.string(t.href)}}(O||(O={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return Fe.defined(n)&&(a.severity=n),Fe.defined(r)&&(a.code=r),Fe.defined(i)&&(a.source=i),Fe.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t,n=e;return Fe.defined(n)&&y.is(n.range)&&Fe.string(n.message)&&(Fe.number(n.severity)||Fe.undefined(n.severity))&&(Fe.integer(n.code)||Fe.string(n.code)||Fe.undefined(n.code))&&(Fe.undefined(n.codeDescription)||Fe.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Fe.string(n.source)||Fe.undefined(n.source))&&(Fe.undefined(n.relatedInformation)||Fe.typedArray(n.relatedInformation,T.is))}}(A||(A={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return Fe.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.string(t.title)&&Fe.string(t.command)}}(D||(D={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.string(t.newText)&&y.is(t.range)}}(I||(I={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.string(t.label)&&(Fe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Fe.string(t.description)||void 0===t.description)}}(L||(L={})),function(e){e.is=function(e){var t=e;return Fe.string(t)}}(M||(M={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return I.is(t)&&(L.is(t.annotationId)||M.is(t.annotationId))}}(F||(F={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Fe.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}}(R||(R={})),function(e){e.create=function(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},e.is=function(e){var t=e;return t&&"create"===t.kind&&Fe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Fe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Fe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||M.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(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},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Fe.string(t.oldUri)&&Fe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Fe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Fe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||M.is(t.annotationId))}}(j||(j={})),function(e){e.create=function(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},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Fe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Fe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Fe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||M.is(t.annotationId))}}(V||(V={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Fe.string(e.kind)?P.is(e)||j.is(e)||V.is(e):R.is(e)})))}}(U||(U={}));var z,q,H,Z,W,G,Q,$,Y,K,J,X,ee,te,ne,re,ie,oe,ae,se,ue,le,ce,fe,pe,de,he,ve,me,ge,ye,be,we,Ee,ke,Se,xe,_e,Te,Ce,Ne,Oe,Ae,De,Ie=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=I.insert(e,t):M.is(n)?(i=n,r=F.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=F.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=I.replace(e,t):M.is(n)?(i=n,r=F.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=F.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=I.del(e):M.is(t)?(r=t,n=F.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=F.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}(),Le=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return 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(M.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 Le(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(R.is(e)){var n=new Ie(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Ie(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}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(H.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 Ie(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 Ie(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Le,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(L.is(t)||M.is(t)?r=t:n=t,void 0===r?i=P.create(e,n):(o=M.is(r)?r:this._changeAnnotations.manage(r),i=P.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(L.is(n)||M.is(n)?i=n:r=n,void 0===i?o=j.create(e,t,r):(a=M.is(i)?i:this._changeAnnotations.manage(i),o=j.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(L.is(t)||M.is(t)?r=t:n=t,void 0===r?i=V.create(e,n):(o=M.is(r)?r:this._changeAnnotations.manage(r),i=V.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.string(t.uri)}}(z||(z={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.string(t.uri)&&Fe.integer(t.version)}}(q||(q={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.string(t.uri)&&(null===t.version||Fe.integer(t.version))}}(H||(H={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.string(t.uri)&&Fe.string(t.languageId)&&Fe.integer(t.version)&&Fe.string(t.text)}}(Z||(Z={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(W||(W={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(e)&&W.is(t.kind)&&Fe.string(t.value)}}(G||(G={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Q||(Q={})),function(e){e.PlainText=1,e.Snippet=2}($||($={})),function(e){e.Deprecated=1}(Y||(Y={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Fe.string(t.newText)&&y.is(t.insert)&&y.is(t.replace)}}(K||(K={})),function(e){e.asIs=1,e.adjustIndentation=2}(J||(J={})),function(e){e.is=function(e){var t=e;return t&&(Fe.string(t.detail)||void 0===t.detail)&&(Fe.string(t.description)||void 0===t.description)}}(X||(X={})),function(e){e.create=function(e){return{label:e}}}(ee||(ee={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(te||(te={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Fe.string(t)||Fe.objectLiteral(t)&&Fe.string(t.language)&&Fe.string(t.value)}}(ne||(ne={})),function(e){e.is=function(e){var t=e;return!!t&&Fe.objectLiteral(t)&&(G.is(t.contents)||ne.is(t.contents)||Fe.typedArray(t.contents,ne.is))&&(void 0===e.range||y.is(e.range))}}(re||(re={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ie||(ie={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return Fe.defined(t)&&(i.documentation=t),Fe.defined(n)?i.parameters=n:i.parameters=[],i}}(oe||(oe={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ae||(ae={})),function(e){e.create=function(e,t){var n={range:e};return Fe.number(t)&&(n.kind=t),n}}(se||(se={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ue||(ue={})),function(e){e.Deprecated=1}(le||(le={})),function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(ce||(ce={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(fe||(fe={})),function(e){e.create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){var t=e;return t&&Fe.string(t.name)&&Fe.number(t.kind)&&y.is(t.range)&&y.is(t.selectionRange)&&(void 0===t.detail||Fe.string(t.detail))&&(void 0===t.deprecated||Fe.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(pe||(pe={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(de||(de={})),function(e){e.Invoked=1,e.Automatic=2}(he||(he={})),function(e){e.create=function(e,t,n){var r={diagnostics:e};return void 0!==t&&null!==t&&(r.only=t),void 0!==n&&null!==n&&(r.triggerKind=n),r},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.typedArray(t.diagnostics,A.is)&&(void 0===t.only||Fe.typedArray(t.only,Fe.string))&&(void 0===t.triggerKind||t.triggerKind===he.Invoked||t.triggerKind===he.Automatic)}}(ve||(ve={})),function(e){e.create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):D.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&Fe.string(t.title)&&(void 0===t.diagnostics||Fe.typedArray(t.diagnostics,A.is))&&(void 0===t.kind||Fe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||D.is(t.command))&&(void 0===t.isPreferred||Fe.boolean(t.isPreferred))&&(void 0===t.edit||U.is(t.edit))}}(me||(me={})),function(e){e.create=function(e,t){var n={range:e};return Fe.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return Fe.defined(t)&&y.is(t.range)&&(Fe.undefined(t.command)||D.is(t.command))}}(ge||(ge={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return Fe.defined(t)&&Fe.uinteger(t.tabSize)&&Fe.boolean(t.insertSpaces)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return Fe.defined(t)&&y.is(t.range)&&(Fe.undefined(t.target)||Fe.string(t.target))}}(be||(be={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return Fe.objectLiteral(n)&&y.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(we||(we={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(Ee||(Ee={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(ke||(ke={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(t)&&(void 0===t.resultId||"string"===typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"===typeof t.data[0])}}(Se||(Se={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){var t=e;return void 0!==t&&null!==t&&y.is(t.range)&&Fe.string(t.text)}}(xe||(xe={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){var t=e;return void 0!==t&&null!==t&&y.is(t.range)&&Fe.boolean(t.caseSensitiveLookup)&&(Fe.string(t.variableName)||void 0===t.variableName)}}(_e||(_e={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){var t=e;return void 0!==t&&null!==t&&y.is(t.range)&&(Fe.string(t.expression)||void 0===t.expression)}}(Te||(Te={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return Fe.defined(t)&&y.is(e.stoppedLocation)}}(Ce||(Ce={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ne||(Ne={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&(void 0===t.tooltip||Fe.string(t.tooltip)||G.is(t.tooltip))&&(void 0===t.location||b.is(t.location))&&(void 0===t.command||D.is(t.command))}}(Oe||(Oe={})),function(e){e.create=function(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&g.is(t.position)&&(Fe.string(t.label)||Fe.typedArray(t.label,Oe.is))&&(void 0===t.kind||Ne.is(t.kind))&&void 0===t.textEdits||Fe.typedArray(t.textEdits,I.is)&&(void 0===t.tooltip||Fe.string(t.tooltip)||G.is(t.tooltip))&&(void 0===t.paddingLeft||Fe.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Fe.boolean(t.paddingRight))}}(Ae||(Ae={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(t)&&h.is(t.uri)&&Fe.string(t.name)}}(De||(De={}));var Me;!function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var l=n(i[a],o[s]);e[u++]=l<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,t,n,r){return new Re(e,t,n,r)},e.is=function(e){var t=e;return!!(Fe.defined(t)&&Fe.string(t.uri)&&(Fe.undefined(t.languageId)||Fe.string(t.languageId))&&Fe.uinteger(t.lineCount)&&Fe.func(t.getText)&&Fe.func(t.positionAt)&&Fe.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],u=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(l,r.length),o=u}return r}}(Me||(Me={}));var Fe,Re=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return g.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return g.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+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Fe||(Fe={}));var Pe=n(3208),je=n(9145),Ve=n(344),Ue=n(4027),Be=n(3940),ze=n(6527);function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ze(e,t,n){return t&&He(e.prototype,t),n&&He(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var We=function(){function e(t){var n=this;qe(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&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.substr(n._pos,e.length)),i=e}else e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&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 Ze(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 Ge(e){return{ofRule:e}}function Qe(e,t){return{ofRule:e,isList:!0,separator:t}}function $e(e,t){return{style:t,match:function(t){return t.kind===e}}}function Ye(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}var Ke,Je=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e},Xe={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:/^#.*/},et={Document:[Qe("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 Pe.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:[tt("query"),Ge(nt("def")),Ge("VariableDefinitions"),Qe("Directive"),"SelectionSet"],Mutation:[tt("mutation"),Ge(nt("def")),Ge("VariableDefinitions"),Qe("Directive"),"SelectionSet"],Subscription:[tt("subscription"),Ge(nt("def")),Ge("VariableDefinitions"),Qe("Directive"),"SelectionSet"],VariableDefinitions:[Ye("("),Qe("VariableDefinition"),Ye(")")],VariableDefinition:["Variable",Ye(":"),"Type",Ge("DefaultValue")],Variable:[Ye("$","variable"),nt("variable")],DefaultValue:[Ye("="),"Value"],SelectionSet:[Ye("{"),Qe("Selection"),Ye("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[nt("property"),Ye(":"),nt("qualifier"),Ge("Arguments"),Qe("Directive"),Ge("SelectionSet")],Field:[nt("property"),Ge("Arguments"),Qe("Directive"),Ge("SelectionSet")],Arguments:[Ye("("),Qe("Argument"),Ye(")")],Argument:[nt("attribute"),Ye(":"),"Value"],FragmentSpread:[Ye("..."),nt("def"),Qe("Directive")],InlineFragment:[Ye("..."),Ge("TypeCondition"),Qe("Directive"),"SelectionSet"],FragmentDefinition:[tt("fragment"),Ge(function(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}(nt("def"),[tt("on")])),"TypeCondition",Qe("Directive"),"SelectionSet"],TypeCondition:[tt("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:[$e("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:[$e("Name","builtin")],NullValue:[$e("Name","keyword")],EnumValue:[nt("string-2")],ListValue:[Ye("["),Qe("Value"),Ye("]")],ObjectValue:[Ye("{"),Qe("ObjectField"),Ye("}")],ObjectField:[nt("attribute"),Ye(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[Ye("["),"Type",Ye("]"),Ge(Ye("!"))],NonNullType:["NamedType",Ge(Ye("!"))],NamedType:[(Ke="atom",{style:Ke,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[Ye("@","meta"),nt("meta"),Ge("Arguments")],DirectiveDef:[tt("directive"),Ye("@","meta"),nt("meta"),Ge("ArgumentsDef"),tt("on"),Qe("DirectiveLocation",Ye("|"))],InterfaceDef:[tt("interface"),nt("atom"),Ge("Implements"),Qe("Directive"),Ye("{"),Qe("FieldDef"),Ye("}")],Implements:[tt("implements"),Qe("NamedType",Ye("&"))],DirectiveLocation:[nt("string-2")],SchemaDef:[tt("schema"),Qe("Directive"),Ye("{"),Qe("OperationTypeDef"),Ye("}")],OperationTypeDef:[nt("keyword"),Ye(":"),nt("atom")],ScalarDef:[tt("scalar"),nt("atom"),Qe("Directive")],ObjectTypeDef:[tt("type"),nt("atom"),Ge("Implements"),Qe("Directive"),Ye("{"),Qe("FieldDef"),Ye("}")],FieldDef:[nt("property"),Ge("ArgumentsDef"),Ye(":"),"Type",Qe("Directive")],ArgumentsDef:[Ye("("),Qe("InputValueDef"),Ye(")")],InputValueDef:[nt("attribute"),Ye(":"),"Type",Ge("DefaultValue"),Qe("Directive")],UnionDef:[tt("union"),nt("atom"),Qe("Directive"),Ye("="),Qe("UnionMember",Ye("|"))],UnionMember:["NamedType"],EnumDef:[tt("enum"),nt("atom"),Qe("Directive"),Ye("{"),Qe("EnumValueDef"),Ye("}")],EnumValueDef:[nt("string-2"),Qe("Directive")],InputDef:[tt("input"),nt("atom"),Qe("Directive"),Ye("{"),Qe("InputValueDef"),Ye("}")],ExtendDef:[tt("extend"),"ObjectTypeDef"]};function tt(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function nt(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(Je)},lexRules:Xe,parseRules:et,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return st(e.parseRules,t,Pe.h.DOCUMENT),t},token:function(t,n){return it(t,n,e)}}}function it(e,t,n){if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");var r=n.lexRules,i=n.parseRules,o=n.eatWhitespace,a=n.editorConfig;if(t.rule&&0===t.rule.length?ut(t):t.needsAdvance&&(t.needsAdvance=!1,lt(t,!0)),e.sol()){var s=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/s)}if(o(e))return"ws";var u=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!u)return e.match(/\S+/)||e.match(/\s/),st(at,t,"Invalid"),"invalidchar";if("Comment"===u.kind)return st(at,t,"Comment"),"comment";var l=ot({},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 c=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&c.length>0&&c[c.length-1]<t.indentLevel&&(t.indentLevel=c[c.length-1])}for(;t.rule;){var f="function"===typeof t.rule?0===t.step?t.rule(u,e):null:t.rule[t.step];if(t.needsSeperator&&(f=f&&(null===f||void 0===f?void 0:f.separator)),f){if(f.ofRule&&(f=f.ofRule),"string"===typeof f){st(i,t,f);continue}if(f.match&&f.match(u))return f.update&&f.update(t,u),"Punctuation"===u.kind?lt(t,!0):t.needsAdvance=!0,f.style}ft(t)}return ot(t,l),st(at,t,"Invalid"),"invalidchar"}function ot(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}var at={Invalid:[],Comment:[]};function st(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function ut(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function lt(e,t){if(ct(e)&&e.rule){var n=e.rule[e.step];if(n.separator){var r=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&r.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)ut(e),e.rule&&(ct(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function ct(e){var t=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function ft(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)ut(e);e.rule&&lt(e,!1)}var pt=Object.assign(Object.assign({},Pe.h),{ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"}),dt={command:"editor.action.triggerSuggest",title:"Suggestions"};function ht(e,t,n,a,s,c){var f,p=Object.assign(Object.assign({},c),{schema:e}),d=a||yt(t,n),h="Invalid"===d.state.kind?d.state.prevState:d.state;if(!h)return[];var v=h.kind,m=h.step,g=Et(e,d.state);if(v===pt.DOCUMENT)return l(d,[{label:"query",kind:Q.Function},{label:"mutation",kind:Q.Function},{label:"subscription",kind:Q.Function},{label:"fragment",kind:Q.Function},{label:"{",kind:Q.Constructor}]);if(v===pt.IMPLEMENTS||v===pt.NAMED_TYPE&&(null===(f=h.prevState)||void 0===f?void 0:f.kind)===pt.IMPLEMENTS)return function(e,t,n,i,o){if(t.needsSeperator)return[];var a=u(n.getTypeMap()).filter(r.oT),s=a.map((function(e){return e.name})),c=new Set;bt(i,(function(e,t){var i,a,u,l,f;if(t.name&&(t.kind!==pt.INTERFACE_DEF||s.includes(t.name)||c.add(t.name),t.kind===pt.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===pt.IMPLEMENTS))if(o.interfaceDef){if(null===(a=o.interfaceDef)||void 0===a?void 0:a.getInterfaces().find((function(e){return e.name===t.name})))return;var p=n.getType(t.name),d=null===(u=o.interfaceDef)||void 0===u?void 0:u.toConfig();o.interfaceDef=new r.oW(Object.assign(Object.assign({},d),{interfaces:[].concat((0,B.Z)(d.interfaces),[p||new r.oW({name:t.name,fields:{}})])}))}else if(o.objectTypeDef){if(null===(l=o.objectTypeDef)||void 0===l?void 0:l.getInterfaces().find((function(e){return e.name===t.name})))return;var h=n.getType(t.name),v=null===(f=o.objectTypeDef)||void 0===f?void 0:f.toConfig();o.objectTypeDef=new r.h6(Object.assign(Object.assign({},v),{interfaces:[].concat((0,B.Z)(v.interfaces),[h||new r.oW({name:t.name,fields:{}})])}))}}));var f=o.interfaceDef||o.objectTypeDef,p=((null===f||void 0===f?void 0:f.getInterfaces())||[]).map((function(e){return e.name})),d=a.concat((0,B.Z)(c).map((function(e){return{name:e}}))).filter((function(e){var t=e.name;return t!==(null===f||void 0===f?void 0:f.name)&&!p.includes(t)}));return l(e,d.map((function(e){var t={label:e.name,kind:Q.Interface,type:e};return(null===e||void 0===e?void 0:e.description)&&(t.documentation=e.description),t})))}(d,h,e,t,g);if(v===pt.SELECTION_SET||v===pt.FIELD||v===pt.ALIASED_FIELD)return function(e,t,n){var o;if(t.parentType){var a=t.parentType,s=[];return"getFields"in a&&(s=u(a.getFields())),(0,r.Gv)(a)&&s.push(i.TypeNameMetaFieldDef),a===(null===(o=null===n||void 0===n?void 0:n.schema)||void 0===o?void 0:o.getQueryType())&&s.push(i.SchemaMetaFieldDef,i.TypeMetaFieldDef),l(e,s.map((function(e,t){var n,i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Q.Field,type:e.type},o=function(e){var t=e.type;if((0,r.Gv)(t))return vt;if((0,r.HG)(t)&&(0,r.Gv)(t.ofType))return vt;if((0,r.zM)(t)){if((0,r.Gv)(t.ofType))return vt;if((0,r.HG)(t.ofType)&&(0,r.Gv)(t.ofType.ofType))return vt}return null}(e);return o&&(i.insertText=e.name+o,i.insertTextFormat=$.Snippet,i.command=dt),i})))}return[]}(d,g,p);if(v===pt.ARGUMENTS||v===pt.ARGUMENT&&0===m){var y=g.argDefs;if(y)return l(d,y.map((function(e){var t;return{label:e.name,insertText:e.name+": ",command:dt,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Q.Variable,type:e.type}})))}if((v===pt.OBJECT_VALUE||v===pt.OBJECT_FIELD&&0===m)&&g.objectFieldDefs){var b=u(g.objectFieldDefs),w=v===pt.OBJECT_VALUE?Q.Value:Q.Field;return l(d,b.map((function(e){var t;return{label:e.name,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:w,type:e.type}})))}if(v===pt.ENUM_VALUE||v===pt.LIST_VALUE&&1===m||v===pt.OBJECT_FIELD&&2===m||v===pt.ARGUMENT&&2===m)return function(e,t,n,i){var o=(0,r.xC)(t.inputType),a=mt(n,i,e).filter((function(e){return e.detail===o.name}));if(o instanceof r.mR)return l(e,o.getValues().map((function(e){var t;return{label:e.name,detail:String(o),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Q.EnumMember,type:o}})).concat(a));if(o===Be.EZ)return l(e,a.concat([{label:"true",detail:String(Be.EZ),documentation:"Not false.",kind:Q.Variable,type:Be.EZ},{label:"false",detail:String(Be.EZ),documentation:"Not true.",kind:Q.Variable,type:Be.EZ}]));return a}(d,g,t,e);if(v===pt.VARIABLE&&1===m){var E=(0,r.xC)(g.inputType);return l(d,mt(t,e,d).filter((function(e){return e.detail===(null===E||void 0===E?void 0:E.name)})))}return v===pt.TYPE_CONDITION&&1===m||v===pt.NAMED_TYPE&&null!=h.prevState&&h.prevState.kind===pt.TYPE_CONDITION?function(e,t,n,i){var o;if(t.parentType)if((0,r.m0)(t.parentType)){var a=(0,r.fU)(t.parentType),s=n.getPossibleTypes(a),c=Object.create(null);s.forEach((function(e){e.getInterfaces().forEach((function(e){c[e.name]=e}))})),o=s.concat(u(c))}else o=[t.parentType];else{o=u(n.getTypeMap()).filter(r.Gv)}return l(e,o.map((function(e){var t=(0,r.xC)(e);return{label:String(e),documentation:t&&t.description||"",kind:Q.Field}})))}(d,g,e):v===pt.FRAGMENT_SPREAD&&1===m?function(e,t,n,i,a){if(!i)return[];var s=n.getTypeMap(),u=o(e.state),c=gt(i);a&&a.length>0&&c.push.apply(c,(0,B.Z)(a));var f=c.filter((function(e){return s[e.typeCondition.name.value]&&!(u&&u.kind===pt.FRAGMENT_DEFINITION&&u.name===e.name.value)&&(0,r.Gv)(t.parentType)&&(0,r.Gv)(s[e.typeCondition.name.value])&&(0,ze.zR)(n,t.parentType,s[e.typeCondition.name.value])}));return l(e,f.map((function(e){return{label:e.name.value,detail:String(s[e.typeCondition.name.value]),documentation:"fragment ".concat(e.name.value," on ").concat(e.typeCondition.name.value),kind:Q.Field,type:s[e.typeCondition.name.value]}})))}(d,g,e,t,Array.isArray(s)?s:function(e){var t=[];if(e)try{(0,Ve.Vn)((0,Ue.Qc)(e),{FragmentDefinition:function(e){t.push(e)}})}catch(f){return[]}return t}(s)):v===pt.VARIABLE_DEFINITION&&2===m||v===pt.LIST_TYPE&&1===m||v===pt.NAMED_TYPE&&h.prevState&&(h.prevState.kind===pt.VARIABLE_DEFINITION||h.prevState.kind===pt.LIST_TYPE||h.prevState.kind===pt.NON_NULL_TYPE)?function(e,t,n){var i=u(t.getTypeMap()).filter(r.j$);return l(e,i.map((function(e){return{label:e.name,documentation:e.description,kind:Q.Variable}})))}(d,e):v===pt.DIRECTIVE?function(e,t,n,r){if(t.prevState&&t.prevState.kind){return l(e,n.getDirectives().filter((function(e){return wt(t.prevState,e)})).map((function(e){return{label:e.name,documentation:e.description||"",kind:Q.Function}})))}return[]}(d,h,e):[]}var vt=" {\n $1\n}";function mt(e,t,n){var r,i=null,o=Object.create({});return bt(e,(function(e,a){if((null===a||void 0===a?void 0:a.kind)===pt.VARIABLE&&a.name&&(i=a.name),(null===a||void 0===a?void 0:a.kind)===pt.NAMED_TYPE&&i){var s=function(e,t){var n,r,i,o,a,s,u,l,c,f;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===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(f=null===(c=null===(l=null===(u=e.prevState)||void 0===u?void 0:u.prevState)||void 0===l?void 0:l.prevState)||void 0===c?void 0:c.prevState)||void 0===f?void 0:f.kind)===t?e.prevState.prevState.prevState.prevState:void 0}(a,pt.TYPE);(null===s||void 0===s?void 0:s.type)&&(r=t.getType(null===s||void 0===s?void 0:s.type))}i&&r&&(o[i]||(o[i]={detail:r.toString(),insertText:"$"===n.string?i:"$"+i,label:i,type:r,kind:Q.Variable},i=null,r=null))})),u(o)}function gt(e){var t=[];return bt(e,(function(e,n){n.kind===pt.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:pt.FRAGMENT_DEFINITION,name:{kind:Pe.h.NAME,value:n.name},selectionSet:{kind:pt.SELECTION_SET,selections:[]},typeCondition:{kind:pt.NAMED_TYPE,name:{kind:Pe.h.NAME,value:n.type}}})})),t}function yt(e,t){var n=null,r=null,i=null,o=bt(e,(function(e,o,a,s){if(s===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 bt(e,t){for(var n=e.split("\n"),r=rt(),i=r.startState(),o="",a=new We(""),s=0;s<n.length;s++){for(a=new We(n[s]);!a.eol();){if("BREAK"===t(a,i,o=r.token(a,i),s))break}t(a,i,o,s),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}function wt(e,t){if(!e||!e.kind)return!1;var n=e.kind,r=t.locations;switch(n){case pt.QUERY:return-1!==r.indexOf(je.B.QUERY);case pt.MUTATION:return-1!==r.indexOf(je.B.MUTATION);case pt.SUBSCRIPTION:return-1!==r.indexOf(je.B.SUBSCRIPTION);case pt.FIELD:case pt.ALIASED_FIELD:return-1!==r.indexOf(je.B.FIELD);case pt.FRAGMENT_DEFINITION:return-1!==r.indexOf(je.B.FRAGMENT_DEFINITION);case pt.FRAGMENT_SPREAD:return-1!==r.indexOf(je.B.FRAGMENT_SPREAD);case pt.INLINE_FRAGMENT:return-1!==r.indexOf(je.B.INLINE_FRAGMENT);case pt.SCHEMA_DEF:return-1!==r.indexOf(je.B.SCHEMA);case pt.SCALAR_DEF:return-1!==r.indexOf(je.B.SCALAR);case pt.OBJECT_TYPE_DEF:return-1!==r.indexOf(je.B.OBJECT);case pt.FIELD_DEF:return-1!==r.indexOf(je.B.FIELD_DEFINITION);case pt.INTERFACE_DEF:return-1!==r.indexOf(je.B.INTERFACE);case pt.UNION_DEF:return-1!==r.indexOf(je.B.UNION);case pt.ENUM_DEF:return-1!==r.indexOf(je.B.ENUM);case pt.ENUM_VALUE:return-1!==r.indexOf(je.B.ENUM_VALUE);case pt.INPUT_DEF:return-1!==r.indexOf(je.B.INPUT_OBJECT);case pt.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case pt.ARGUMENTS_DEF:return-1!==r.indexOf(je.B.ARGUMENT_DEFINITION);case pt.INPUT_DEF:return-1!==r.indexOf(je.B.INPUT_FIELD_DEFINITION)}}return!1}function Et(e,t){var n,i,o,u,l,c,f,p,d,h,v;return s(t,(function(t){switch(t.kind){case pt.QUERY:case"ShortQuery":h=e.getQueryType();break;case pt.MUTATION:h=e.getMutationType();break;case pt.SUBSCRIPTION:h=e.getSubscriptionType();break;case pt.INLINE_FRAGMENT:case pt.FRAGMENT_DEFINITION:t.type&&(h=e.getType(t.type));break;case pt.FIELD:case pt.ALIASED_FIELD:h&&t.name?(l=d?a(e,d,t.name):null,h=l?l.type:null):l=null;break;case pt.SELECTION_SET:d=(0,r.xC)(h);break;case pt.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case pt.INTERFACE_DEF:t.name&&(f=null,v=new r.oW({name:t.name,interfaces:[],fields:{}}));break;case pt.OBJECT_TYPE_DEF:t.name&&(v=null,f=new r.h6({name:t.name,interfaces:[],fields:{}}));break;case pt.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case pt.FIELD:i=l&&l.args;break;case pt.DIRECTIVE:i=o&&o.args;break;case pt.ALIASED_FIELD:var s=t.prevState&&t.prevState.name;if(!s){i=null;break}var m=d?a(e,d,s):null;if(!m){i=null;break}i=m.args;break;default:i=null}else i=null;break;case pt.ARGUMENT:if(i)for(var g=0;g<i.length;g++)if(i[g].name===t.name){n=i[g];break}c=n&&n.type;break;case pt.ENUM_VALUE:var y=(0,r.xC)(c);u=y instanceof r.mR?y.getValues().find((function(e){return e.value===t.name})):null;break;case pt.LIST_VALUE:var b=(0,r.tf)(c);c=b instanceof r.p2?b.ofType:null;break;case pt.OBJECT_VALUE:var w=(0,r.xC)(c);p=w instanceof r.sR?w.getFields():null;break;case pt.OBJECT_FIELD:var E=t.name&&p?p[t.name]:null;c=E&&E.type;break;case pt.NAMED_TYPE:t.name&&(h=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:o,enumValue:u,fieldDef:l,inputType:c,objectFieldDefs:p,parentType:d,type:h,interfaceDef:v,objectTypeDef:f}}var kt=n(7757),St=n.n(kt),xt=n(9921),_t=n.n(xt),Tt=function(e,t){if(!t)return[];var n;try{n=(0,Ue.Qc)(e)}catch(r){return[]}return Ct(n,t)},Ct=function(e,t){if(!t)return[];var n=new Map,r=new Set;(0,Ve.Vn)(e,{FragmentDefinition:function(e){n.set(e.name.value,!0)},FragmentSpread:function(e){r.has(e.name.value)||r.add(e.name.value)}});var i=new Set;r.forEach((function(e){!n.has(e)&&t.has(e)&&i.add(_t()(t.get(e)))}));var o=[];return i.forEach((function(e){(0,Ve.Vn)(e,{FragmentSpread:function(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(_t()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e)})),o},Nt=n(885);function Ot(e,t){e.push(t)}function At(e,t){(0,r.zM)(t)?(At(e,t.ofType),Ot(e,"!")):(0,r.HG)(t)?(Ot(e,"["),At(e,t.ofType),Ot(e,"]")):Ot(e,t.name)}function Dt(e,t){var n=[];return t&&Ot(n,"```graphql\n"),At(n,e),t&&Ot(n,"\n```"),n.join("")}var It={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"};function Lt(e,t){var n,i=!1,o=Object.create(null),a=Object.create(null);if("defaultValue"in e&&void 0!==e.defaultValue&&(o.default=e.defaultValue),(0,r.EM)(e)&&(o.type="string",o.enum=e.getValues().map((function(e){return e.name}))),(0,r.KA)(e)&&(o.type=null!==(n=It[e.name])&&void 0!==n?n:"any"),(0,r.HG)(e)){o.type="array";var s=Lt(e.ofType,t),u=s.definition,l=s.definitions;u.$ref?o.items={$ref:u.$ref}:o.items=u,l&&Object.keys(l).forEach((function(e){a[e]=l[e]}))}if((0,r.zM)(e)){i=!0;var c=Lt(e.ofType,t),f=c.definition,p=c.definitions;o=f,p&&Object.keys(p).forEach((function(e){a[e]=p[e]}))}if((0,r.hL)(e)){o.$ref="#/definitions/".concat(e.name);var d=e.getFields(),h={type:"object",properties:{},required:[]};e.description?(h.description=e.description+"\n"+Dt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(h.markdownDescription=e.description+"\n"+Dt(e,!0))):(h.description=Dt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(h.markdownDescription=Dt(e,!0))),Object.keys(d).forEach((function(e){var n=d[e],r=Lt(n.type,t),i=r.required,o=r.definition,s=r.definitions,u=Lt(n,t).definition;h.properties[e]=Object.assign(Object.assign({},o),u);var l=Dt(n.type);if(h.properties[e].description=n.description?n.description+"\n"+l:l,null===t||void 0===t?void 0:t.useMarkdownDescription){var c=Dt(n.type,!0);h.properties[e].markdownDescription=n.description?n.description+"\n"+c:c}i&&h.required.push(e),s&&Object.keys(s).map((function(e){a[e]=s[e]}))})),a[e.name]=h}return"description"in e&&!(0,r.KA)(e)&&e.description&&!o.description?(o.description=e.description+"\n"+Dt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=e.description+"\n"+Dt(e,!0))):(o.description=Dt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=Dt(e,!0))),{required:i,definition:o,definitions:a}}function Mt(e,t){var n={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach((function(e){var r,i=(0,Nt.Z)(e,2),o=i[0],a=Lt(i[1],t),s=a.definition,u=a.required,l=a.definitions;n.properties[o]=s,u&&(null===(r=n.required)||void 0===r||r.push(o)),l&&(n.definitions=Object.assign(Object.assign({},null===n||void 0===n?void 0:n.definitions),l))})),n}function Ft(e,t,n){var r,i=Rt(e,n);return(0,Ve.Vn)(t,{enter:function(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;r=e},leave:function(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),r}function Rt(e,t){var n=e.split("\n").slice(0,t.line);return t.character+n.map((function(e){return e.length+1})).reduce((function(e,t){return e+t}),0)}var Pt=function(){function e(t,n){var r=this;qe(this,e),this.containsPosition=function(e){return r.start.line===e.line?r.start.character<=e.character:r.end.line===e.line?r.end.character>=e.character:r.start.line<=e.line&&r.end.line>=e.line},this.start=t,this.end=n}return Ze(e,[{key:"setStart",value:function(e,t){this.start=new jt(e,t)}},{key:"setEnd",value:function(e,t){this.end=new jt(e,t)}}]),e}(),jt=function(){function e(t,n){var r=this;qe(this,e),this.lessThanOrEqualTo=function(e){return r.line<e.line||r.line===e.line&&r.character<=e.character},this.line=t,this.character=n}return Ze(e,[{key:"setLine",value:function(e){this.line=e}},{key:"setCharacter",value:function(e){this.character=e}}]),e}();function Vt(e,t){var n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new jt(r,t-i-1)}var Ut=n(5399),Bt=n(1863),zt=n(8548),qt=n(3848),Ht=n(7546),Zt=n(2873),Wt=n(2754),Gt=n(8623),Qt=n(1681),$t=n(2202),Yt=n(1698),Kt=n(9494),Jt=n(2593),Xt=n(5130),en=n(9289),tn=n(6861),nn=n(6665),rn=[Ut.t,Bt.q,zt.P,qt.L,Ht.y,Zt.o,Wt.I,Gt.J,Qt.k,$t.g,Yt.L,Kt.P];function on(e,t,n,r,i){var o=Jt.i.filter((function(e){return e!==Xt.J&&e!==en.i&&(!r||e!==tn.a)}));return n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,rn),(0,nn.Gu)(e,t,o).filter((function(e){if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){var t=e.nodes[0];if(t&&t.kind===Pe.h.DIRECTIVE){var n=t.name.value;if("arguments"===n||"argumentDefinitions"===n)return!1}}return!0}))}var an=n(3696);function sn(e,t){var n=Object.create(null);return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind){var r=t.variableDefinitions;r&&r.forEach((function(t){var r=t.variable,i=t.type,o=(0,an._)(e,i);o?n[r.name.value]=o:i.kind===Pe.h.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=Be.av)}))}})),n}function un(e,t){var n=t?sn(t,e):void 0,r=[];return(0,Ve.Vn)(e,{OperationDefinition:function(e){r.push(e)}}),{variableToType:n,operations:r}}function ln(e,t){if(t)try{var n=(0,Ue.Qc)(t);return Object.assign(Object.assign({},un(n,e)),{documentAST:n})}catch(r){return}}var cn=ln,fn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},pn="GraphQL";function dn(e,t){if(!e)throw new Error(t)}function hn(e,t){var n=t.loc;return dn(n,"Expected ASTNode to have a location."),function(e,t){var n=Vt(e,t.start),r=Vt(e,t.end);return new Pt(n,r)}(e,n)}function vn(e,t){var n=t.loc;return dn(n,"Expected ASTNode to have a location."),Vt(e,n.start)}function mn(e,t,n){return fn(this,void 0,void 0,St().mark((function r(){var i,o,a;return St().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.name.value,0!==(o=n.filter((function(e){var t=e.definition;return t.name&&t.name.value===i}))).length){r.next=4;break}throw Error("Definition not found for GraphQL type ".concat(i));case 4:return a=o.map((function(e){return wn(e.filePath||"",e.content,e.definition)})),r.abrupt("return",{definitions:a,queryRange:a.map((function(n){return hn(e,t)}))});case 6:case"end":return r.stop()}}),r)})))}function gn(e,t,n){return fn(this,void 0,void 0,St().mark((function r(){var i,o,a;return St().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.name.value,0!==(o=n.filter((function(e){return e.definition.name.value===i}))).length){r.next=4;break}throw Error("Definition not found for GraphQL fragment ".concat(i));case 4:return a=o.map((function(e){return bn(e.filePath||"",e.content,e.definition)})),r.abrupt("return",{definitions:a,queryRange:a.map((function(n){return hn(e,t)}))});case 6:case"end":return r.stop()}}),r)})))}function yn(e,t,n){return{definitions:[bn(e,t,n)],queryRange:n.name?[hn(t,n.name)]:[]}}function bn(e,t,n){var r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:vn(t,n),range:hn(t,n),name:r.value||"",language:pn,projectRoot:e}}function wn(e,t,n){var r=n.name;return dn(r,"Expected ASTNode to have a Name."),{path:e,position:vn(t,n),range:hn(t,n),name:r.value||"",language:pn,projectRoot:e}}function En(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kn,Sn=n(2615),xn=n(663),_n={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},Tn=(En(kn={},_n.Error,1),En(kn,_n.Warning,2),En(kn,_n.Information,3),En(kn,_n.Hint,4),kn),Cn=function(e,t){if(!e)throw new Error(t)};function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=null;i&&(e+="string"===typeof i?"\n\n"+i:"\n\n"+i.reduce((function(e,t){return e+=(0,Sn.S)(t)+"\n\n"}),""));try{o=(0,Ue.Qc)(e)}catch(s){var a=In(s.locations[0],e);return[{severity:Tn.Error,message:s.message,source:"GraphQL: Syntax",range:a}]}return On(o,t,n,r)}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!t)return[];var i=An(on(t,e,n,r),(function(e){return Dn(e,Tn.Error,"Validation")})),o=An((0,nn.Gu)(t,e,[xn.r]),(function(e){return Dn(e,Tn.Warning,"Deprecation")}));return i.concat(o)}function An(e,t){return Array.prototype.concat.apply([],e.map(t))}function Dn(e,t,n){if(!e.nodes)return[];var r=[];return e.nodes.forEach((function(i){var o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){Cn(e.locations,"GraphQL validation error requires locations.");var a=e.locations[0],s=function(e){var t=e.loc;return Cn(t,"Expected ASTNode to have a location."),t}(o),u=a.column+(s.end-s.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new Pt(new jt(a.line-1,a.column-1),new jt(a.line-1,u))})}})),r}function In(e,t){var n=rt(),r=n.startState(),i=t.split("\n");Cn(i.length>=e.line,"Query text must have more lines than where the error happened");for(var o=null,a=0;a<e.line;a++)for(o=new We(i[a]);!o.eol();){if("invalidchar"===n.token(o,r))break}Cn(o,"Expected Parser stream to be available.");var s=e.line-1,u=o.getStartOfToken(),l=o.getCurrentPosition();return new Pt(new jt(s,u),new jt(s,l))}var Ln=Pe.h.INLINE_FRAGMENT;function Mn(e){var t;try{t=(0,Ue.Qc)(e)}catch(r){return null}var n=function(e){var t=function(t){return{representativeName:t.name,startPosition:Vt(e,t.loc.start),endPosition:Vt(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]}};return{Field:function(e){var n=e.alias?[Fn("plain",e.alias),Fn("plain",": ")]:[];return n.push(Fn("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:function(e){return Object.assign({tokenizedText:[Fn("keyword",e.operation),Fn("whitespace"," "),Fn("class-name",e.name)]},t(e))},Document:function(e){return e.definitions},SelectionSet:function(e){return function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);Array.isArray(i)?n.push.apply(n,(0,B.Z)(i)):n.push(i)}return n}(e.selections,(function(e){return e.kind===Ln?e.selectionSet:e}))},Name:function(e){return e.value},FragmentDefinition:function(e){return Object.assign({tokenizedText:[Fn("keyword","fragment"),Fn("whitespace"," "),Fn("class-name",e.name)]},t(e))},InterfaceTypeDefinition:function(e){return Object.assign({tokenizedText:[Fn("keyword","interface"),Fn("whitespace"," "),Fn("class-name",e.name)]},t(e))},EnumTypeDefinition:function(e){return Object.assign({tokenizedText:[Fn("keyword","enum"),Fn("whitespace"," "),Fn("class-name",e.name)]},t(e))},EnumValueDefinition:function(e){return Object.assign({tokenizedText:[Fn("plain",e.name)]},t(e))},ObjectTypeDefinition:function(e){return Object.assign({tokenizedText:[Fn("keyword","type"),Fn("whitespace"," "),Fn("class-name",e.name)]},t(e))},InputObjectTypeDefinition:function(e){return Object.assign({tokenizedText:[Fn("keyword","input"),Fn("whitespace"," "),Fn("class-name",e.name)]},t(e))},FragmentSpread:function(e){return Object.assign({tokenizedText:[Fn("plain","..."),Fn("class-name",e.name)]},t(e))},InputValueDefinition:function(e){return Object.assign({tokenizedText:[Fn("plain",e.name)]},t(e))},FieldDefinition:function(e){return Object.assign({tokenizedText:[Fn("plain",e.name)]},t(e))},InlineFragment:function(e){return e.selectionSet}}}(e);return{outlineTrees:(0,Ve.Vn)(t,{leave:function(e){return void 0!==n&&e.kind in n?n[e.kind](e):null}})}}function Fn(e,t){return{kind:e,value:t}}function Rn(e,t,n,r,i){var o=r||yt(t,n);if(!e||!o||!o.state)return"";var a=o.state,s=a.kind,u=a.step,l=Et(e,o.state),c=Object.assign(Object.assign({},i),{schema:e});if("Field"===s&&0===u&&l.fieldDef||"AliasedField"===s&&2===u&&l.fieldDef){var f=[];return Pn(f,c),function(e,t,n){Vn(e,t,n),Bn(e,t,n,t.type)}(f,l,c),jn(f,c),qn(f,c,l.fieldDef),f.join("").trim()}if("Directive"===s&&1===u&&l.directiveDef){var p=[];return Pn(p,c),Un(p,l,c),jn(p,c),qn(p,c,l.directiveDef),p.join("").trim()}if("Argument"===s&&0===u&&l.argDef){var d=[];return Pn(d,c),function(e,t,n){t.directiveDef?Un(e,t,n):t.fieldDef&&Vn(e,t,n);if(!t.argDef)return;var r=t.argDef.name;Hn(e,"("),Hn(e,r),Bn(e,t,n,t.inputType),Hn(e,")")}(d,l,c),jn(d,c),qn(d,c,l.argDef),d.join("").trim()}if("EnumValue"===s&&l.enumValue&&"description"in l.enumValue){var h=[];return Pn(h,c),function(e,t,n){if(!t.enumValue)return;var r=t.enumValue.name;zn(e,t,n,t.inputType),Hn(e,"."),Hn(e,r)}(h,l,c),jn(h,c),qn(h,c,l.enumValue),h.join("").trim()}if("NamedType"===s&&l.type&&"description"in l.type){var v=[];return Pn(v,c),zn(v,l,c,l.type),jn(v,c),qn(v,c,l.type),v.join("").trim()}return""}function Pn(e,t){t.useMarkdown&&Hn(e,"```graphql\n")}function jn(e,t){t.useMarkdown&&Hn(e,"\n```")}function Vn(e,t,n){if(t.fieldDef){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(zn(e,t,n,t.parentType),Hn(e,".")),Hn(e,r)}}function Un(e,t,n){t.directiveDef&&Hn(e,"@"+t.directiveDef.name)}function Bn(e,t,n,r){Hn(e,": "),zn(e,t,n,r)}function zn(e,t,n,i){i&&(i instanceof r.bM?(zn(e,t,n,i.ofType),Hn(e,"!")):i instanceof r.p2?(Hn(e,"["),zn(e,t,n,i.ofType),Hn(e,"]")):Hn(e,i.name))}function qn(e,t,n){if(n){var r="string"===typeof n.description?n.description:null;r&&(Hn(e,"\n\n"),Hn(e,r)),function(e,t,n){if(!n)return;var r=n.deprecationReason?n.deprecationReason:null;if(!r)return;Hn(e,"\n\n"),Hn(e,"Deprecated: "),Hn(e,r)}(e,0,n)}}function Hn(e,t){e.push(t)}var Zn,Wn={Created:1,Changed:2,Deleted:3};!function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Zn||(Zn={}))},2110:function(e,t,n){"use strict";var r=n(7441),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=d(n);i&&i!==h&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var y=p(n,g);try{l(t,g,y)}catch(b){}}}}return t}},4807:function(e,t,n){"use strict";var r=n(8863);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&("function"===typeof(t=e.constructor)&&(!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},2906:function(e){"use strict";e.exports=function(e){return"object"===typeof e?null===e:"function"!==typeof e}},8863:function(e){"use strict";e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},6927:function(e,t,n){"use strict";function r(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 i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var u={"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}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function c(e){var t=e.re=n(1875)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.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]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var u=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?o(n.validate)?r.validate=n.validate:l(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?l(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?l(t,n):u.push(t)}})),u.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 c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function f(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 p(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},u,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},c(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},1875:function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(5510).source,t.src_Cc=n(538).source,t.src_Z=n(2426).source,t.src_P=n(3741).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\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}},3534:function(e,t,n){"use strict";e.exports=n(9890)},1285:function(e,t,n){"use strict";e.exports=n(5485)},1437:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},3182:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.n=r,e.exports.q=i},786:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(1285);var f=/[&<>"]/,p=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return d[e]}var v=/[.?*+^$[\]\\(){}|-]/g;var m=n(3741);t.lib={},t.lib.mdurl=n(3461),t.lib.ucmicro=n(6937),t.assign=function(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},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(u,(function(e,t,n){return t||function(e,t){var n=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&l.test(t)&&o(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return m.test(e)},t.escapeRE=function(e){return e.replace(v,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},4937:function(e,t,n){"use strict";t.parseLinkLabel=n(9162),t.parseLinkDestination=n(9738),t.parseLinkTitle=n(4890)},9738:function(e,t,n){"use strict";var r=n(786).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}},9162:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,u=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<u;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(s=e.pos),e.pos=l,s}},4890:function(e,t,n){"use strict";var r=n(786).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,u={ok:!1,pos:0,lines:0,str:""};if(t>=n)return u;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return u.pos=t+1,u.lines=a,u.str=r(e.slice(s+1,t)),u.ok=!0,u;if(40===i&&41===o)return u;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return u}},9890:function(e,t,n){"use strict";var r=n(786),i=n(4937),o=n(6843),a=n(2205),s=n(7782),u=n(4871),l=n(6927),c=n(3461),f=n(5984),p={default:n(1349),zero:n(7578),commonmark:n(6389)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function v(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var m=["http:","https:","mailto:"];function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=f.toASCII(t.hostname)}catch(n){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=f.toUnicode(t.hostname)}catch(n){}return c.decode(c.format(t),c.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new u,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new l,this.validateLink=v,this.normalizeLink=g,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},7782:function(e,t,n){"use strict";var r=n(8674),i=[["table",n(9399),["paragraph","reference"]],["code",n(5078)],["fence",n(1077),["paragraph","reference","blockquote","list"]],["blockquote",n(9224),["paragraph","reference","blockquote","list"]],["hr",n(7542),["paragraph","reference","blockquote","list"]],["list",n(7168),["paragraph","reference","blockquote"]],["reference",n(9277)],["html_block",n(5672),["paragraph","reference","blockquote"]],["heading",n(969),["paragraph","reference","blockquote"]],["lheading",n(7671)],["paragraph",n(6572)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,u=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},o.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=n(2007),e.exports=o},2205:function(e,t,n){"use strict";var r=n(8674),i=[["normalize",n(710)],["block",n(2486)],["inline",n(7557)],["linkify",n(6716)],["replacements",n(904)],["smartquotes",n(6991)]];function o(){this.ruler=new r;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},o.prototype.State=n(3311),e.exports=o},4871:function(e,t,n){"use strict";var r=n(8674),i=[["text",n(6537)],["newline",n(6179)],["escape",n(4072)],["backticks",n(7860)],["strikethrough",n(333).w],["emphasis",n(3650).w],["link",n(9384)],["image",n(1677)],["autolink",n(3657)],["html_inline",n(8286)],["entity",n(4514)]],o=[["balance_pairs",n(5381)],["strikethrough",n(333).g],["emphasis",n(3650).g],["text_collapse",n(6788)]];function a(){var e;for(this.ruler=new r,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new r,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"===typeof s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},a.prototype.State=n(9402),e.exports=a},6389:function(e){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},1349:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},7578:function(e){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},6843:function(e,t,n){"use strict";var r=n(786).assign,i=n(786).unescapeAll,o=n(786).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return"<code"+i.renderAttrs(a)+">"+o(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,i){var a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+o(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,u,l,c,f,p=e[t],d=p.info?i(p.info).trim():"",h="",v="";return d&&(h=(l=d.split(/(\s+)/g))[0],v=l.slice(2).join("")),0===(s=n.highlight&&n.highlight(p.content,h,v)||o(p.content)).indexOf("<pre")?s+"\n":d?(u=p.attrIndex("class"),c=p.attrs?p.attrs.slice():[],u<0?c.push(["class",n.langPrefix+h]):(c[u]=c[u].slice(),c[u][1]+=" "+n.langPrefix+h),f={attrs:c},"<pre><code"+a.renderAttrs(f)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"},a.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)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)"undefined"!==typeof o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},s.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):"undefined"!==typeof s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},8674:function(e){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},9224:function(e,t,n){"use strict";var r=n(786).isSpace;e.exports=function(e,t,n,i){var o,a,s,u,l,c,f,p,d,h,v,m,g,y,b,w,E,k,S,x,_=e.lineMax,T=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(T++))return!1;if(i)return!0;for(u=d=e.sCount[t]+1,32===e.src.charCodeAt(T)?(T++,u++,d++,o=!1,w=!0):9===e.src.charCodeAt(T)?(w=!0,(e.bsCount[t]+d)%4===3?(T++,u++,d++,o=!1):o=!0):w=!1,h=[e.bMarks[t]],e.bMarks[t]=T;T<C&&(a=e.src.charCodeAt(T),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,T++;for(v=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(w?1:0),c=T>=C,y=[e.sCount[t]],e.sCount[t]=d-u,b=[e.tShift[t]],e.tShift[t]=T-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(x=e.sCount[p]<e.blkIndent,!((T=e.bMarks[p]+e.tShift[p])>=(C=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(T++)||x){if(c)break;for(E=!1,s=0,l=k.length;s<l;s++)if(k[s](e,p,n,!0)){E=!0;break}if(E){e.lineMax=p,0!==e.blkIndent&&(h.push(e.bMarks[p]),v.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}h.push(e.bMarks[p]),v.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(u=d=e.sCount[p]+1,32===e.src.charCodeAt(T)?(T++,u++,d++,o=!1,w=!0):9===e.src.charCodeAt(T)?(w=!0,(e.bsCount[p]+d)%4===3?(T++,u++,d++,o=!1):o=!0):w=!1,h.push(e.bMarks[p]),e.bMarks[p]=T;T<C&&(a=e.src.charCodeAt(T),r(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,T++;c=T>=C,v.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(w?1:0),y.push(e.sCount[p]),e.sCount[p]=d-u,b.push(e.tShift[p]),e.tShift[p]=T-e.bMarks[p]}for(m=e.blkIndent,e.blkIndent=0,(S=e.push("blockquote_open","blockquote",1)).markup=">",S.map=f=[t,0],e.md.block.tokenize(e,t,p),(S=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=_,e.parentType=g,f[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=v[s];return e.blkIndent=m,!0}},5078:function(e){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=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}},1077:function(e){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,u,l,c,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(c=e.src.slice(u,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((p=u=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[s]-e.blkIndent>=4)&&!((p=e.skipChars(p,i))-u<o)&&!((p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=c,l.map=[t,e.line],!0}},969:function(e,t,n){"use strict";var r=n(786).isSpace;e.exports=function(e,t,n,i){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=c)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l<c&&a<=6;)a++,o=e.src.charCodeAt(++l);return!(a>6||l<c&&!r(o))&&(i||(c=e.skipSpacesBack(c,l),(s=e.skipCharsBack(c,35,l))>l&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(u=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[t,e.line],(u=e.push("inline","",0)).content=e.src.slice(l,c).trim(),u.map=[t,e.line],u.children=[],(u=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}},7542:function(e,t,n){"use strict";var r=n(786).isSpace;e.exports=function(e,t,n,i){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(a=1;l<c;){if((s=e.src.charCodeAt(l++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(i||(e.line=t+1,(u=e.push("hr","hr",0)).map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o))),!0)}},5672:function(e,t,n){"use strict";var r=n(1437),i=n(3182).q,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(u=e.src.slice(l,c),i=0;i<o.length&&!o[i][0].test(u);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(u))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],u=e.src.slice(l,c),o[i][1].test(u)){0!==u.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},7671:function(e){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,u,l,c,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(f=e.src.charCodeAt(u))||61===f)&&(u=e.skipChars(u,f),(u=e.skipSpaces(u))>=l)){c=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}},7168:function(e,t,n){"use strict";var r=n(786).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function o(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}e.exports=function(e,t,n,r){var a,s,u,l,c,f,p,d,h,v,m,g,y,b,w,E,k,S,x,_,T,C,N,O,A,D,I,L,M=!1,F=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(M=!0),(N=o(e,t))>=0){if(p=!0,A=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(A,N-1)),M&&1!==y)return!1}else{if(!((N=i(e,t))>=0))return!1;p=!1}if(M&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(N-1),r)return!0;for(m=e.tokens.length,p?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=v=[t,0],L.markup=String.fromCharCode(g),w=t,O=!1,I=e.md.block.ruler.getRules("list"),S=e.parentType,e.parentType="list";w<n;){for(C=N,b=e.eMarks[w],f=E=e.sCount[w]+N-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))E+=4-(E+e.bsCount[w])%4;else{if(32!==a)break;E++}C++}if((c=(s=C)>=b?1:E-f)>4&&(c=1),l=f+c,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),L.map=d=[t,0],p&&(L.info=e.src.slice(A,N-1)),T=e.tight,_=e.tShift[t],x=e.sCount[t],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!O||(F=!1),O=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[t]=_,e.sCount[t]=x,e.tight=T,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),w=t=e.line,d[1]=w,s=e.bMarks[t],w>=n)break;if(e.sCount[w]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(D=!1,u=0,h=I.length;u<h;u++)if(I[u](e,w,n,!0)){D=!0;break}if(D)break;if(p){if((N=o(e,w))<0)break;A=e.bMarks[w]+e.tShift[w]}else if((N=i(e,w))<0)break;if(g!==e.src.charCodeAt(N-1))break}return(L=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),v[1]=w,e.line=w,e.parentType=S,F&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0}},6572:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u=t+1,l=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<c&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,u,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},9277:function(e,t,n){"use strict";var r=n(786).normalizeReference,i=n(786).isSpace;e.exports=function(e,t,n,o){var a,s,u,l,c,f,p,d,h,v,m,g,y,b,w,E,k=0,S=e.bMarks[t]+e.tShift[t],x=e.eMarks[t],_=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(S))return!1;for(;++S<x;)if(93===e.src.charCodeAt(S)&&92!==e.src.charCodeAt(S-1)){if(S+1===x)return!1;if(58!==e.src.charCodeAt(S+1))return!1;break}for(l=e.lineMax,w=e.md.block.ruler.getRules("reference"),v=e.parentType,e.parentType="reference";_<l&&!e.isEmpty(_);_++)if(!(e.sCount[_]-e.blkIndent>3)&&!(e.sCount[_]<0)){for(b=!1,f=0,p=w.length;f<p;f++)if(w[f](e,_,l,!0)){b=!0;break}if(b)break}for(x=(y=e.getLines(t,_,e.blkIndent,!1).trim()).length,S=1;S<x;S++){if(91===(a=y.charCodeAt(S)))return!1;if(93===a){h=S;break}(10===a||92===a&&++S<x&&10===y.charCodeAt(S))&&k++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(S=h+2;S<x;S++)if(10===(a=y.charCodeAt(S)))k++;else if(!i(a))break;if(!(m=e.md.helpers.parseLinkDestination(y,S,x)).ok)return!1;if(c=e.md.normalizeLink(m.str),!e.md.validateLink(c))return!1;for(s=S=m.pos,u=k+=m.lines,g=S;S<x;S++)if(10===(a=y.charCodeAt(S)))k++;else if(!i(a))break;for(m=e.md.helpers.parseLinkTitle(y,S,x),S<x&&g!==S&&m.ok?(E=m.str,S=m.pos,k+=m.lines):(E="",S=s,k=u);S<x&&(a=y.charCodeAt(S),i(a));)S++;if(S<x&&10!==y.charCodeAt(S)&&E)for(E="",S=s,k=u;S<x&&(a=y.charCodeAt(S),i(a));)S++;return!(S<x&&10!==y.charCodeAt(S))&&(!!(d=r(y.slice(1,h)))&&(o||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[d]&&(e.env.references[d]={title:E,href:c}),e.parentType=v,e.line=t+k+1),!0))}},2007:function(e,t,n){"use strict";var r=n(596),i=n(786).isSpace;function o(e,t,n,r){var o,a,s,u,l,c,f,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=u=c=f=0,l=(a=this.src).length;u<l;u++){if(o=a.charCodeAt(u),!p){if(i(o)){c++,9===o?f+=4-f%4:f++;continue}p=!0}10!==o&&u!==l-1||(10!==o&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,u,l,c,f,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p<t;p++,o++){for(a=0,f=u=this.bMarks[p],l=p+1<t||r?this.eMarks[p]+1:this.eMarks[p];u<l&&a<n;){if(s=this.src.charCodeAt(u),i(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(u-f<this.tShift[p]))break;a++}u++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return c.join("")},o.prototype.Token=r,e.exports=o},9399:function(e,t,n){"use strict";var r=n(786).isSpace;function i(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,t,n,a){var s,u,l,c,f,p,d,h,v,m,g,y,b,w,E,k,S,x;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(S=e.src.charCodeAt(l++))&&45!==S&&58!==S)return!1;if(l>=e.eMarks[p])return!1;if(124!==(x=e.src.charCodeAt(l++))&&45!==x&&58!==x&&!r(x))return!1;if(45===S&&r(x))return!1;for(;l<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(l))&&45!==s&&58!==s&&!r(s))return!1;l++}for(d=(u=i(e,t+1)).split("|"),m=[],c=0;c<d.length;c++){if(!(g=d[c].trim())){if(0===c||c===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?m.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(u=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=o(u)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==m.length)return!1;if(a)return!0;for(w=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),(v=e.push("table_open","table",1)).map=y=[t,0],(v=e.push("thead_open","thead",1)).map=[t,t+1],(v=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<d.length;c++)v=e.push("th_open","th",1),m[c]&&(v.attrs=[["style","text-align:"+m[c]]]),(v=e.push("inline","",0)).content=d[c].trim(),v.children=[],v=e.push("th_close","th",-1);for(v=e.push("tr_close","tr",-1),v=e.push("thead_close","thead",-1),p=t+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(E=!1,c=0,f=k.length;c<f;c++)if(k[c](e,p,n,!0)){E=!0;break}if(E)break;if(!(u=i(e,p).trim()))break;if(e.sCount[p]-e.blkIndent>=4)break;for((d=o(u)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),p===t+2&&((v=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(v=e.push("tr_open","tr",1)).map=[p,p+1],c=0;c<h;c++)v=e.push("td_open","td",1),m[c]&&(v.attrs=[["style","text-align:"+m[c]]]),(v=e.push("inline","",0)).content=d[c]?d[c].trim():"",v.children=[],v=e.push("td_close","td",-1);v=e.push("tr_close","tr",-1)}return b&&(v=e.push("tbody_close","tbody",-1),b[1]=p),v=e.push("table_close","table",-1),y[1]=p,e.parentType=w,e.line=p,!0}},2486:function(e){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},7557:function(e){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},6716:function(e,t,n){"use strict";var r=n(786).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,u,l,c,f,p,d,h,v,m,g,y,b,w,E=e.tokens;if(e.md.options.linkify)for(n=0,o=E.length;n<o;n++)if("inline"===E[n].type&&e.md.linkify.pretest(E[n].content))for(v=0,t=(a=E[n].children).length-1;t>=0;t--)if("link_close"!==(u=a[t]).type){if("html_inline"===u.type&&(w=u.content,/^<a[>\s]/i.test(w)&&v>0&&v--,i(u.content)&&v++),!(v>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(f=u.content,b=e.md.linkify.match(f),l=[],h=u.level,d=0,c=0;c<b.length;c++)m=b[c].url,g=e.md.normalizeLink(m),e.md.validateLink(g)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[c].index)>d&&((s=new e.Token("text","",0)).content=f.slice(d,p),s.level=h,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",g]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,l.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",l.push(s),d=b[c].lastIndex);d<f.length&&((s=new e.Token("text","",0)).content=f.slice(d),s.level=h,l.push(s)),E[n].children=a=r(a,t,l)}}else for(t--;a[t].level!==u.level&&"link_open"!==a[t].type;)t--}},710:function(e){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"\ufffd"),e.src=r}},904:function(e){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},6991:function(e,t,n){"use strict";var r=n(786).isWhiteSpace,i=n(786).isPunctChar,o=n(786).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function u(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,t){var n,a,l,c,f,p,d,h,v,m,g,y,b,w,E,k,S,x,_,T,C;for(_=[],n=0;n<e.length;n++){for(a=e[n],d=e[n].level,S=_.length-1;S>=0&&!(_[S].level<=d);S--);if(_.length=S+1,"text"===a.type){f=0,p=(l=a.content).length;e:for(;f<p&&(s.lastIndex=f,c=s.exec(l));){if(E=k=!0,f=c.index+1,x="'"===c[0],v=32,c.index-1>=0)v=l.charCodeAt(c.index-1);else for(S=n-1;S>=0&&("softbreak"!==e[S].type&&"hardbreak"!==e[S].type);S--)if(e[S].content){v=e[S].content.charCodeAt(e[S].content.length-1);break}if(m=32,f<p)m=l.charCodeAt(f);else for(S=n+1;S<e.length&&("softbreak"!==e[S].type&&"hardbreak"!==e[S].type);S++)if(e[S].content){m=e[S].content.charCodeAt(0);break}if(g=o(v)||i(String.fromCharCode(v)),y=o(m)||i(String.fromCharCode(m)),b=r(v),(w=r(m))?E=!1:y&&(b||g||(E=!1)),b?k=!1:g&&(w||y||(k=!1)),34===m&&'"'===c[0]&&v>=48&&v<=57&&(k=E=!1),E&&k&&(E=g,k=y),E||k){if(k)for(S=_.length-1;S>=0&&(h=_[S],!(_[S].level<d));S--)if(h.single===x&&_[S].level===d){h=_[S],x?(T=t.md.options.quotes[2],C=t.md.options.quotes[3]):(T=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=u(a.content,c.index,C),e[h.token].content=u(e[h.token].content,h.pos,T),f+=C.length-1,h.token===n&&(f+=T.length-1),p=(l=a.content).length,_.length=S;continue e}E?_.push({token:n,pos:c.index,single:x,level:d}):k&&x&&(a.content=u(a.content,c.index,"\u2019"))}else x&&(a.content=u(a.content,c.index,"\u2019"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},3311:function(e,t,n){"use strict";var r=n(596);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},3657:function(e){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,u,l,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(u=e.pos,l=e.posMax;;){if(++c>=l)return!1;if(60===(s=e.src.charCodeAt(c)))return!1;if(62===s)break}return i=e.src.slice(u+1,c),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}},7860:function(e){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,u,l,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(u=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[u]||0)<=n)return t||(e.pending+=i),e.pos+=u,!0;for(a=s=c;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((l=s-a)===u)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=u,!0}},5381:function(e){"use strict";function t(e,t){var n,r,i,o,a,s,u,l,c={},f=t.length;if(f){var p=0,d=-2,h=[];for(n=0;n<f;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&d===i.token-1||(p=n),d=i.token,i.length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],s=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(u=!0)),!u)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,s=-1,d=-2;break}-1!==s&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}},3650:function(e){"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.w=function(e,t){var n,r,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<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},4514:function(e,t,n){"use strict";var r=n(1285),i=n(786).has,o=n(786).isValidEntityCode,a=n(786).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,u=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,c=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<f)if(35===e.src.charCodeAt(c+1)){if(l=e.src.slice(c).match(s))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(c).match(u))&&i(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},4072:function(e,t,n){"use strict";for(var r=n(786).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((n=e.src.charCodeAt(o))<256&&0!==i[n])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),o++;o<a&&(n=e.src.charCodeAt(o),r(n));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},8286:function(e,t,n){"use strict";var r=n(3182).n;e.exports=function(e,t){var n,i,o,a=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=o)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,!0))))}},1677:function(e,t,n){"use strict";var r=n(786).normalizeReference,i=n(786).isSpace;e.exports=function(e,t){var n,o,a,s,u,l,c,f,p,d,h,v,m,g="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=u+1)<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=b)return!1;for(m=c,(p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(g=e.md.normalizeLink(p.str),e.md.validateLink(g)?c=p.pos:g=""),m=c;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(p=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&m!==c&&p.ok)for(d=p.str,c=p.pos;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);else d="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if("undefined"===typeof e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(m=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(m,c++):c=u+1):c=u+1,s||(s=e.src.slice(l,u)),!(f=e.env.references[r(s)]))return e.pos=y,!1;g=f.href,d=f.title}return t||(a=e.src.slice(l,u),e.md.inline.parse(a,e.md,e.env,v=[]),(h=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],h.children=v,h.content=a,d&&n.push(["title",d])),e.pos=c,e.posMax=b,!0}},9384:function(e,t,n){"use strict";var r=n(786).normalizeReference,i=n(786).isSpace;e.exports=function(e,t){var n,o,a,s,u,l,c,f,p="",d="",h=e.pos,v=e.posMax,m=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)<v&&40===e.src.charCodeAt(l)){for(g=!1,l++;l<v&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(l>=v)return!1;if(m=l,(c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?l=c.pos:p="",m=l;l<v&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&m!==l&&c.ok)for(d=c.str,l=c.pos;l<v&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);}(l>=v||41!==e.src.charCodeAt(l))&&(g=!0),l++}if(g){if("undefined"===typeof e.env.references)return!1;if(l<v&&91===e.src.charCodeAt(l)?(m=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?a=e.src.slice(m,l++):l=s+1):l=s+1,a||(a=e.src.slice(u,s)),!(f=e.env.references[r(a)]))return e.pos=h,!1;p=f.href,d=f.title}return t||(e.pos=u,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",p]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=v,!0}},6179:function(e,t,n){"use strict";var r=n(786).isSpace;e.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}},9402:function(e,t,n){"use strict";var r=n(596),i=n(786).isWhiteSpace,o=n(786).isPunctChar,a=n(786).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,u,l,c,f,p,d,h=e,v=!0,m=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<g&&this.src.charCodeAt(h)===y;)h++;return s=h-e,r=h<g?this.src.charCodeAt(h):32,f=a(n)||o(String.fromCharCode(n)),d=a(r)||o(String.fromCharCode(r)),c=i(n),(p=i(r))?v=!1:d&&(c||f||(v=!1)),c?m=!1:f&&(p||d||(m=!1)),t?(u=v,l=m):(u=v&&(!m||f),l=m&&(!v||d)),{can_open:u,can_close:l,length:s}},s.prototype.Token=r,e.exports=s},333:function(e){"use strict";function t(e,t){var n,r,i,o,a,s=[],u=t.length;for(n=0;n<u;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.w=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.g=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}},6537:function(e){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}},6788:function(e){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}},596:function(e){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t},6762:function(e){"use strict";var t={};function n(e,r){var i;return"string"!==typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,a,s,u,l="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?l+=i[r]:192===(224&r)&&t+3<n&&128===(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(u=r<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(u),t+=3):224===(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&o)&&128===(192&a))?(l+=(u=r<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(u),t+=6):240===(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?((u=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||u>1114111?l+="\ufffd\ufffd\ufffd\ufffd":(u-=65536,l+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):l+="\ufffd";return l}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},2366:function(e){"use strict";var t={};function n(e,r,i){var o,a,s,u,l,c="";for("string"!==typeof r&&(i=r,r=n.defaultChars),"undefined"===typeof i&&(i=!0),l=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},835:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},3461:function(e,t,n){"use strict";e.exports.encode=n(2366),e.exports.decode=n(6762),e.exports.format=n(835),e.exports.parse=n(9944)},9944:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),u=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,d,h,v=e;if(v=v.trim(),!t&&1===e.split("#").length){var m=i.exec(v);if(m)return this.pathname=m[1],m[2]&&(this.search=m[2]),this}var g=n.exec(v);if(g&&(a=(g=g[0]).toLowerCase(),this.protocol=g,v=v.substr(g.length)),(t||g||v.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===v.substr(0,2))||g&&f[g]||(v=v.substr(2),this.slashes=!0)),!f[g]&&(h||g&&!p[g])){var y,b,w=-1;for(r=0;r<u.length;r++)-1!==(d=v.indexOf(u[r]))&&(-1===w||d<w)&&(w=d);for(-1!==(b=-1===w?v.lastIndexOf("@"):v.lastIndexOf("@",w))&&(y=v.slice(0,b),v=v.slice(b+1),this.auth=y),w=-1,r=0;r<s.length;r++)-1!==(d=v.indexOf(s[r]))&&(-1===w||d<w)&&(w=d);-1===w&&(w=v.length),":"===v[w-1]&&w--;var E=v.slice(0,w);v=v.slice(w),this.parseHost(E),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var S=this.hostname.split(/\./);for(r=0,o=S.length;r<o;r++){var x=S[r];if(x&&!x.match(l)){for(var _="",T=0,C=x.length;T<C;T++)x.charCodeAt(T)>127?_+="x":_+=x[T];if(!_.match(l)){var N=S.slice(0,r),O=S.slice(r+1),A=x.match(c);A&&(N.push(A[1]),O.unshift(A[2])),O.length&&(v=O.join(".")+v),this.hostname=N.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=v.indexOf("#");-1!==D&&(this.hash=v.substr(D),v=v.slice(0,D));var I=v.indexOf("?");return-1!==I&&(this.search=v.substr(I),v=v.slice(0,I)),v&&(this.pathname=v),p[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},9921:function(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){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}}()?Object.assign:function(e,o){for(var a,s,u=i(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(u[c]=a[c]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},6151:function(e,t,n){var r=n(2878);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],p=n[1],d=n.index;if(s+=e.slice(a,d),a=d+f.length,p)s+=p[1];else{var h=e[a],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=v&&null!=h&&h!==v,k="+"===b||"*"===b,S="?"===b||"*"===b,x=n[2]||c,_=g||y;r.push({name:m||o++,prefix:v||"",delimiter:x,optional:S,repeat:k,partial:E,asterisk:!!w,pattern:_?l(_):w?".*":"[^"+u(x)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var f,p=s[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=u(p[d]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===d?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function p(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=u(l);else{var p=u(l.prefix),d="(?:"+l.pattern+")";t.push(l),l.repeat&&(d+="(?:"+p+d+")*"),a+=d=l.optional?l.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}var h=u(n.delimiter||"/"),v=a.slice(-h.length)===h;return i||(a=(v?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&v?"":"(?="+h+"|$)",c(new RegExp("^"+a,f(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(o(e,n),t,n)}(e,t,n)}},2878:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},888:function(e,t,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;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:o,resetWarningCache:i};return n.PropTypes=n,n}},9843:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5984:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return w},default:function(){return x},encode:function(){return E},toASCII:function(){return S},toUnicode:function(){return k},ucs2decode:function(){return m},ucs2encode:function(){return g}});var r=n(181);function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}var o=n(2982),a=2147483647,s=36,u=/^xn--/,l=/[^\0-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function h(e){throw new RangeError(f[e])}function v(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var i=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(c,".")).split("."),t).join(".");return r+i}function m(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var g=function(e){return String.fromCodePoint.apply(String,(0,o.Z)(e))},y=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},b=function(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=s)e=p(e/35);return p(r+36*e/(e+38))},w=function(e){var t,n=[],r=e.length,i=0,o=128,u=72,l=e.lastIndexOf("-");l<0&&(l=0);for(var c=0;c<l;++c)e.charCodeAt(c)>=128&&h("not-basic"),n.push(e.charCodeAt(c));for(var f=l>0?l+1:0;f<r;){for(var d=i,v=1,m=s;;m+=s){f>=r&&h("invalid-input");var g=(t=e.charCodeAt(f++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:s;(g>=s||g>p((a-i)/v))&&h("overflow"),i+=g*v;var y=m<=u?1:m>=u+26?26:m-u;if(g<y)break;var w=s-y;v>p(a/w)&&h("overflow"),v*=w}var E=n.length+1;u=b(i-d,E,0==d),p(i/E)>a-o&&h("overflow"),o+=p(i/E),i%=E,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},E=function(e){var t,n=[],r=(e=m(e)).length,o=128,u=0,l=72,c=i(e);try{for(c.s();!(t=c.n()).done;){var f=t.value;f<128&&n.push(d(f))}}catch(L){c.e(L)}finally{c.f()}var v=n.length,g=v;for(v&&n.push("-");g<r;){var w,E=a,k=i(e);try{for(k.s();!(w=k.n()).done;){var S=w.value;S>=o&&S<E&&(E=S)}}catch(L){k.e(L)}finally{k.f()}var x=g+1;E-o>p((a-u)/x)&&h("overflow"),u+=(E-o)*x,o=E;var _,T=i(e);try{for(T.s();!(_=T.n()).done;){var C=_.value;if(C<o&&++u>a&&h("overflow"),C==o){for(var N=u,O=s;;O+=s){var A=O<=l?1:O>=l+26?26:O-l;if(N<A)break;var D=N-A,I=s-A;n.push(d(y(A+D%I,0))),N=p(D/I)}n.push(d(y(N,0))),l=b(u,x,g==v),u=0,++g}}}catch(L){T.e(L)}finally{T.f()}++u,++o}return n.join("")},k=function(e){return v(e,(function(e){return u.test(e)?w(e.slice(4).toLowerCase()):e}))},S=function(e){return v(e,(function(e){return l.test(e)?"xn--"+E(e):e}))},x={version:"2.1.0",ucs2:{decode:m,encode:g},decode:w,encode:E,toASCII:S,toUnicode:k}},4463:function(e,t,n){"use strict";var r=n(2791),i=n(1725),o=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,u={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,h={},v={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(v,e)||!d.call(h,e)&&(p.test(e)?v[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,x=60107,_=60108,T=60114,C=60109,N=60110,O=60112,A=60113,D=60120,I=60115,L=60116,M=60121,F=60128,R=60129,P=60130,j=60131;if("function"===typeof Symbol&&Symbol.for){var V=Symbol.for;k=V("react.element"),S=V("react.portal"),x=V("react.fragment"),_=V("react.strict_mode"),T=V("react.profiler"),C=V("react.provider"),N=V("react.context"),O=V("react.forward_ref"),A=V("react.suspense"),D=V("react.suspense_list"),I=V("react.memo"),L=V("react.lazy"),M=V("react.block"),V("react.scope"),F=V("react.opaque.id"),R=V("react.debug_trace_mode"),P=V("react.offscreen"),j=V("react.legacy_hidden")}var U,B="function"===typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function Z(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function W(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=Z(e.type,!1);case 11:return e=Z(e.type.render,!1);case 22:return e=Z(e.type._render,!1);case 1:return e=Z(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case T:return"Profiler";case _:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return G(e.type);case M:return G(e._render);case L:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function le(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",pe="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,me,ge=(me=function(e,t){if(e.namespaceURI!==pe||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ee(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ne=null,Oe=null;function Ae(e){if(e=ri(e)){if("function"!==typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=oi(t),Ce(e.stateNode,e.type,t))}}function De(e){Ne?Oe?Oe.push(e):Oe=[e]:Ne=e}function Ie(){if(Ne){var e=Ne,t=Oe;if(Oe=Ne=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Le(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Fe(){}var Re=Le,Pe=!1,je=!1;function Ve(){null===Ne&&null===Oe||(Fe(),Ie())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=oi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Be=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(me){Be=!1}function qe(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var He=!1,Ze=null,We=!1,Ge=null,Qe={onError:function(e){He=!0,Ze=e}};function $e(e,t,n,r,i,o,a,s,u){He=!1,Ze=null,qe.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ye(e)!==e)throw Error(a(188))}function Xe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Je(i),e;if(o===r)return Je(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,ot=!1,at=[],st=null,ut=null,lt=null,ct=new Map,ft=new Map,pt=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&(null!==(t=ri(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ni(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==ut&&yt(ut)&&(ut=null),null!==lt&&yt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function kt(e){function t(t){return Et(t,e)}if(0<at.length){Et(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&Et(st,e),null!==ut&&Et(ut,e),null!==lt&&Et(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<pt.length;n++)(r=pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<pt.length&&null===(n=pt[0]).blockedOn;)gt(n),null===n.blockedOn&&pt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},_t={},Tt={};function Ct(e){if(_t[e])return _t[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return _t[e]=n[t];return e}f&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Nt=Ct("animationend"),Ot=Ct("animationiteration"),At=Ct("animationstart"),Dt=Ct("transitionend"),It=new Map,Lt=new Map,Mt=["abort","abort",Nt,"animationEnd",Ot,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function Ft(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Lt.set(r,t),It.set(r,i),l(i,[r])}}(0,o.unstable_now)();var Rt=8;function Pt(e){if(0!==(1&e))return Rt=15,1;if(0!==(2&e))return Rt=14,2;if(0!==(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!==(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!==(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!==(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!==(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!==(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function jt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Rt=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Pt(u),i=Rt):0!==(s&=o)&&(r=Pt(s),i=Rt)}else 0!==(o=n&~a)?(r=Pt(o),i=Rt):0!==s&&(r=Pt(s),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Pt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function Vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ut(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ut(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Zt(e)/Wt|0)|0},Zt=Math.log,Wt=Math.LN2;var Gt=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,$t=!0;function Yt(e,t,n,r){Pe||Fe();var i=Jt,o=Pe;Pe=!0;try{Me(i,e,t,n,r)}finally{(Pe=o)||Ve()}}function Kt(e,t,n,r){Qt(Gt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if($t)if((i=0===(4&t))&&0<at.length&&-1<dt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var o=Xt(e,t,n,r);if(null===o)i&&vt(e,r);else{if(i){if(-1<dt.indexOf(e))return e=ht(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=mt(st,e,t,n,r,i),!0;case"dragenter":return ut=mt(ut,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ft.set(o,mt(ft.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;vt(e,r)}Fr(e,t,r,null,n)}}}function Xt(e,t,n,r){var i=Te(r);if(null!==(i=ni(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Fr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,cn,fn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=un(pn),hn=i({},pn,{view:0,detail:0}),vn=un(hn),mn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=un(mn),yn=un(i({},mn,{dataTransfer:0})),bn=un(i({},hn,{relatedTarget:0})),wn=un(i({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=i({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kn=un(En),Sn=un(i({},pn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tn[e])&&!!t[e]}function Nn(){return Cn}var On=i({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=un(On),Dn=un(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=un(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),Ln=un(i({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fn=un(Mn),Rn=[9,13,27,32],Pn=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Vn=f&&"TextEvent"in window&&!jn,Un=f&&(!Pn||jn&&8<jn&&11>=jn),Bn=String.fromCharCode(32),zn=!1;function qn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Zn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Qn(e,t,n,r){De(r),0<(t=Pr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Yn=null;function Kn(e){Or(e,0)}function Jn(e){if(K(ii(e)))return e}function Xn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){$n&&($n.detachEvent("onpropertychange",or),Yn=$n=null)}function or(e){if("value"===e.propertyName&&Jn(Yn)){var t=[];if(Qn(t,Yn,e,Te(e)),e=Kn,Pe)e(t);else{Pe=!0;try{Le(e,t)}finally{Pe=!1,Ve()}}}}function ar(e,t,n){"focusin"===e?(ir(),Yn=n,($n=t).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Yn)}function ur(e,t){if("click"===e)return Jn(t)}function lr(e,t){if("input"===e||"change"===e)return Jn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function pr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=dr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,Er=null,kr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==br||br!==J(r)||("selectionStart"in(r=br)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Er&&pr(Er,r)||(Er=r,0<(r=Pr(wr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Ft("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ft("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ft(Mt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<xr.length;_r++)Lt.set(xr[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,l){if($e.apply(this,arguments),He){if(!He)throw Error(a(198));var c=Ze;He=!1,Ze=null,We||(We=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Nr(i,s,l),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Nr(i,s,l),o=u}}}if(We)throw e=Ge,We=!1,Ge=null,e}function Ar(e,t){var n=ai(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Dr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Dr]||(e[Dr]=!0,s.forEach((function(t){Cr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Mr(o,e,i,t),a.add(s))}function Mr(e,t,n,r){var i=Lt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Fr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ni(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(je)return e(t,n);je=!0;try{Re(e,t,n)}finally{je=!1,Ve()}}((function(){var r=o,i=Te(n),a=[];e:{var s=It.get(e);if(void 0!==s){var u=dn,l=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":u=An;break;case"focusin":l="focus",u=bn;break;case"focusout":l="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=In;break;case Nt:case Ot:case At:u=wn;break;case Dt:u=Ln;break;case"scroll":u=vn;break;case"wheel":u=Fn;break;case"copy":case"cut":case"paste":u=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Dn}var c=0!==(4&t),f=!c&&"scroll"===e,p=c?null!==s?s+"Capture":null:s;c=[];for(var d,h=r;null!==h;){var v=(d=h).stateNode;if(5===d.tag&&null!==v&&(d=v,null!==p&&(null!=(v=Ue(h,p))&&c.push(Rr(h,v,d)))),f)break;h=h.return}0<c.length&&(s=new u(s,l,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!ni(l)&&!l[ei])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(l=(l=n.relatedTarget||n.toElement)?ni(l):null)&&(l!==(f=Ye(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=r),u!==l)){if(c=gn,v="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Dn,v="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==u?s:ii(u),d=null==l?s:ii(l),(s=new c(v,h+"leave",u,n,i)).target=f,s.relatedTarget=d,v=null,ni(i)===r&&((c=new c(p,h+"enter",l,n,i)).target=d,c.relatedTarget=f,v=c),f=v,u&&l)e:{for(p=l,h=0,d=c=u;d;d=jr(d))h++;for(d=0,v=p;v;v=jr(v))d++;for(;0<h-d;)c=jr(c),h--;for(;0<d-h;)p=jr(p),d--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=jr(c),p=jr(p)}c=null}else c=null;null!==u&&Vr(a,s,u,c,!1),null!==l&&null!==f&&Vr(a,f,l,c,!0)}if("select"===(u=(s=r?ii(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=Xn;else if(Gn(s))if(er)m=lr;else{m=sr;var g=ar}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ur);switch(m&&(m=m(e,r))?Qn(a,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?ii(r):window,e){case"focusin":(Gn(g)||"true"===g.contentEditable)&&(br=g,wr=r,Er=null);break;case"focusout":Er=wr=br=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,Sr(a,n,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,i)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Zn?qn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Un&&"ko"!==n.locale&&(Zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Zn&&(y=rn()):(tn="value"in(en=i)?en.value:en.textContent,Zn=!0)),0<(g=Pr(r,b)).length&&(b=new Sn(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Vn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(zn=!0,Bn);case"textInput":return(e=t.data)===Bn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Zn)return"compositionend"===e||!Pn&&qn(e,t)?(e=rn(),nn=tn=en=null,Zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Pr(r,"onBeforeInput")).length&&(i=new Sn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Or(a,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ue(e,n))&&r.unshift(Rr(e,o,i)),null!=(o=Ue(e,t))&&r.push(Rr(e,o,i))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Ue(n,o))&&a.unshift(Rr(n,u,s)):i||null!=(u=Ue(n,o))&&a.push(Rr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Ur(){}var Br=null,zr=null;function qr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Kr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Kr,Xr="__reactProps$"+Kr,ei="__reactContainer$"+Kr,ti="__reactEvents$"+Kr;function ni(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Jr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Jr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oi(e){return e[Xr]||null}function ai(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var si=[],ui=-1;function li(e){return{current:e}}function ci(e){0>ui||(e.current=si[ui],si[ui]=null,ui--)}function fi(e,t){ui++,si[ui]=e.current,e.current=t}var pi={},di=li(pi),hi=li(!1),vi=pi;function mi(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ci(hi),ci(di)}function bi(e,t,n){if(di.current!==pi)throw Error(a(168));fi(di,t),fi(hi,n)}function wi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,G(t)||"Unknown",o));return i({},n,r)}function Ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,vi=di.current,fi(di,e),fi(hi,hi.current),!0}function ki(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wi(e,t,vi),r.__reactInternalMemoizedMergedChildContext=e,ci(hi),ci(di),fi(di,e)):ci(hi),fi(hi,n)}var Si=null,xi=null,_i=o.unstable_runWithPriority,Ti=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Ni=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Ai=o.unstable_now,Di=o.unstable_getCurrentPriorityLevel,Ii=o.unstable_ImmediatePriority,Li=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Fi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Pi={},ji=void 0!==Oi?Oi:function(){},Vi=null,Ui=null,Bi=!1,zi=Ai(),qi=1e4>zi?Ai:function(){return Ai()-zi};function Hi(){switch(Di()){case Ii:return 99;case Li:return 98;case Mi:return 97;case Fi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Zi(e){switch(e){case 99:return Ii;case 98:return Li;case 97:return Mi;case 96:return Fi;case 95:return Ri;default:throw Error(a(332))}}function Wi(e,t){return e=Zi(e),_i(e,t)}function Gi(e,t,n){return e=Zi(e),Ti(e,t,n)}function Qi(){if(null!==Ui){var e=Ui;Ui=null,Ci(e)}$i()}function $i(){if(!Bi&&null!==Vi){Bi=!0;var e=0;try{var t=Vi;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Vi=null}catch(n){throw null!==Vi&&(Vi=Vi.slice(e+1)),Ti(Ii,Qi),n}finally{Bi=!1}}}var Yi=E.ReactCurrentBatchConfig;function Ki(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ji=li(null),Xi=null,eo=null,to=null;function no(){to=eo=Xi=null}function ro(e){var t=Ji.current;ci(Ji),e.type._context._currentValue=t}function io(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function oo(e,t){Xi=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Pa=!0),e.firstContext=null)}function ao(e,t){if(to!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Xi)throw Error(a(308));eo=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var so=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var o=e.updateQueue;so=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var l=u,c=l.next;l.next=null,null===s?a=c:s.next=c,s=l;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==s&&(null===p?f.firstBaseUpdate=c:p.next=c,f.lastBaseUpdate=l)}}if(null!==a){for(p=o.baseState,s=0,f=c=l=null;;){u=a.lane;var d=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,v=a;switch(u=t,d=n,v.tag){case 1:if("function"===typeof(h=v.payload)){p=h.call(d,p,u);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(u="function"===typeof(h=v.payload)?h.call(d,p,u):h)||void 0===u)break e;p=i({},p,u);break e;case 2:so=!0}}null!==a.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else d={eventTime:d,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=d,l=p):f=f.next=d,s|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(l=p),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Bs|=s,e.lanes=s,e.memoizedState=p}}function vo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function go(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=du(e),o=co(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),fo(e,o),hu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=du(e),o=co(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),fo(e,o),hu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=du(e),i=co(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),fo(e,i),hu(e,r,n)}};function bo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!pr(n,r)||!pr(i,o))}function wo(e,t,n){var r=!1,i=pi,o=t.contextType;return"object"===typeof o&&null!==o?o=ao(o):(i=gi(t)?vi:di.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Eo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function ko(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,uo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ao(o):(o=gi(t)?vi:di.current,i.context=mi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(go(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var So=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function To(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Wu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Yu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Gu(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ku(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Qu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Yu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Gu(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case S:return(t=Ku(t,e.mode,n)).return=e,t}if(So(t)||z(t))return(t=Qu(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===x?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null}if(So(n)||z(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(So(r)||z(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function v(i,a,s,u){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=d(i,f,s[v],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)null!==(f=p(i,s[v],u))&&(a=o(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)null!==(m=h(f,i,v,s[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?l=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),l}function m(i,s,u,l){var c=z(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=d(i,v,y.value,l);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),c;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=p(i,y.value,l))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=h(v,i,m,y.value,l))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var l="object"===typeof o&&null!==o&&o.type===x&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===x){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=xo(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===x?((r=Qu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Gu(o.type,o.key,o.props,null,e.mode,u)).ref=xo(e,r,o),u.return=e,e=u)}return s(e);case S:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ku(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Yu(o,e.mode,u)).return=e,e=r),s(e);if(So(o))return v(e,r,o,u);if(z(o))return m(e,r,o,u);if(c&&_o(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Co=To(!0),No=To(!1),Oo={},Ao=li(Oo),Do=li(Oo),Io=li(Oo);function Lo(e){if(e===Oo)throw Error(a(174));return e}function Mo(e,t){switch(fi(Io,t),fi(Do,e),fi(Ao,Oo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Ao),fi(Ao,t)}function Fo(){ci(Ao),ci(Do),ci(Io)}function Ro(e){Lo(Io.current);var t=Lo(Ao.current),n=he(t,e.type);t!==n&&(fi(Do,e),fi(Ao,n))}function Po(e){Do.current===e&&(ci(Ao),ci(Do))}var jo=li(0);function Vo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Uo=null,Bo=null,zo=!1;function qo(e,t){var n=Hu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Zo(e){if(zo){var t=Bo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Qr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,zo=!1,void(Uo=e);qo(Uo,n)}Uo=e,Bo=Qr(t.firstChild)}else e.flags=-1025&e.flags|2,zo=!1,Uo=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uo=e}function Go(e){if(e!==Uo)return!1;if(!zo)return Wo(e),zo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Bo;t;)qo(e,t),t=Qr(t.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Bo=Qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Bo=null}}else Bo=Uo?Qr(e.stateNode.nextSibling):null;return!0}function Qo(){Bo=Uo=null,zo=!1}var $o=[];function Yo(){for(var e=0;e<$o.length;e++)$o[e]._workInProgressVersionPrimary=null;$o.length=0}var Ko=E.ReactCurrentDispatcher,Jo=E.ReactCurrentBatchConfig,Xo=0,ea=null,ta=null,na=null,ra=!1,ia=!1;function oa(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,i,o){if(Xo=o,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=null===e||null===e.memoizedState?La:Ma,e=n(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(a(301));o+=1,na=ta=null,t.updateQueue=null,Ko.current=Fa,e=n(r,i)}while(ia)}if(Ko.current=Ia,t=null!==ta&&null!==ta.next,Xo=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function la(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ca(e,t){return"function"===typeof t?t(e):t}function fa(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,l=i;do{var c=l.lane;if((Xo&c)===c)null!==u&&(u=u.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,ea.lanes|=c,Bs|=c}l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,cr(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function pa(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);cr(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function da(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Xo&e)===e)&&(t._workInProgressVersionPrimary=r,$o.push(t))),e)return n(t._source);throw $o.push(t),Error(a(350))}function ha(e,t,n,r){var i=Ls;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),u=Ko.current,l=u.useState((function(){return da(i,t,n)})),c=l[1],f=l[0];l=na;var p=e.memoizedState,d=p.refs,h=d.getSnapshot,v=p.source;p=p.subscribe;var m=ea;return e.memoizedState={refs:d,source:t,subscribe:r},u.useEffect((function(){d.getSnapshot=n,d.setSnapshot=c;var e=o(t._source);if(!cr(s,e)){e=n(t._source),cr(f,e)||(c(e),e=du(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var u=31-Ht(a),l=1<<u;r[u]|=e,a&=~l}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=du(m);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(h,n)&&cr(v,t)&&cr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:f}).dispatch=c=Da.bind(null,ea,e),l.queue=e,l.baseQueue=null,f=da(i,t,n),l.memoizedState=l.baseState=f),f}function va(e,t,n){return ha(la(),e,t,n)}function ma(e){var t=ua();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Da.bind(null,ea,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},ua().memoizedState=e}function ba(){return la().memoizedState}function wa(e,t,n,r){var i=ua();ea.flags|=e,i.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function Ea(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void ga(t,n,o,r)}ea.flags|=e,i.memoizedState=ga(1|t,n,o,r)}function ka(e,t){return wa(516,4,e,t)}function Sa(e,t){return Ea(516,4,e,t)}function xa(e,t){return Ea(4,2,e,t)}function _a(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ta(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ea(4,2,_a.bind(null,t,e),n)}function Ca(){}function Na(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Aa(e,t){var n=Hi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}}))}function Da(e,t,n){var r=pu(),i=du(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(o.eagerReducer=a,o.eagerState=u,cr(u,s))return}catch(l){}hu(e,i,r)}}var Ia={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},La={readContext:ao,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=ua();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ua();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Da.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:ma,useDebugValue:Ca,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return ka((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=ma(!1),t=e[0];return ya(e=Aa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ua();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(zo){var e=!1,t=function(e){return{$$typeof:F,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ga(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:ao,useCallback:Na,useContext:ao,useEffect:Sa,useImperativeHandle:Ta,useLayoutEffect:xa,useMemo:Oa,useReducer:fa,useRef:ba,useState:function(){return fa(ca)},useDebugValue:Ca,useDeferredValue:function(e){var t=fa(ca),n=t[0],r=t[1];return Sa((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=fa(ca)[0];return[ba().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return fa(ca)[0]},unstable_isNewReconciler:!1},Fa={readContext:ao,useCallback:Na,useContext:ao,useEffect:Sa,useImperativeHandle:Ta,useLayoutEffect:xa,useMemo:Oa,useReducer:pa,useRef:ba,useState:function(){return pa(ca)},useDebugValue:Ca,useDeferredValue:function(e){var t=pa(ca),n=t[0],r=t[1];return Sa((function(){var t=Jo.transition;Jo.transition=1;try{r(e)}finally{Jo.transition=t}}),[e]),n},useTransition:function(){var e=pa(ca)[0];return[ba().current,e]},useMutableSource:va,useOpaqueIdentifier:function(){return pa(ca)[0]},unstable_isNewReconciler:!1},Ra=E.ReactCurrentOwner,Pa=!1;function ja(e,t,n,r){t.child=null===e?No(t,null,n,r):Co(t,e.child,n,r)}function Va(e,t,n,r,i){n=n.render;var o=t.ref;return oo(t,i),r=sa(e,t,n,r,o,i),null===e||Pa?(t.flags|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Ua(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Zu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:pr)(i,r)&&e.ref===t.ref)?os(e,t,o):(t.flags|=1,(e=Wu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,i,o){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Pa=!1,0===(o&i))return t.lanes=e.lanes,os(e,t,o);0!==(16384&e.flags)&&(Pa=!0)}return Ha(e,t,n,r,o)}function za(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},ku(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ku(t,e),null;t.memoizedState={baseLanes:0},ku(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ku(t,r);return ja(e,t,i,n),t.child}function qa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,i){var o=gi(n)?vi:di.current;return o=mi(t,o),oo(t,i),n=sa(e,t,n,r,o,i),null===e||Pa?(t.flags|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Za(e,t,n,r,i){if(gi(n)){var o=!0;Ei(t)}else o=!1;if(oo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wo(t,n,r),ko(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ao(l):l=mi(t,l=gi(n)?vi:di.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&Eo(t,a,r,l),so=!1;var p=t.memoizedState;a.state=p,ho(t,r,a,i),u=t.memoizedState,s!==r||p!==u||hi.current||so?("function"===typeof c&&(go(t,n,c,r),u=t.memoizedState),(s=so||bo(t,n,s,r,p,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ki(t.type,s),a.props=l,f=t.pendingProps,p=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=ao(u):u=mi(t,u=gi(n)?vi:di.current);var d=n.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||p!==u)&&Eo(t,a,r,u),so=!1,p=t.memoizedState,a.state=p,ho(t,r,a,i);var h=t.memoizedState;s!==f||p!==h||hi.current||so?("function"===typeof d&&(go(t,n,d,r),h=t.memoizedState),(l=so||bo(t,n,l,r,p,h,u))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,o,i)}function Wa(e,t,n,r,i,o){qa(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&ki(t,n,!1),os(e,t,o);r=t.stateNode,Ra.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):ja(e,t,s,o),t.memoizedState=r.state,i&&ki(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Mo(e,t.containerInfo)}var Qa,$a,Ya,Ka={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,i=t.pendingProps,o=jo.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),fi(jo,1&o),null===e?(void 0!==i.fallback&&Zo(t),e=i.children,o=i.fallback,a?(e=Xa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ka,e):"number"===typeof i.unstable_expectedLoadTime?(e=Xa(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ka,t.lanes=33554432,e):((n=$u({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=ts(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ka,i):(n=es(e,t,i.children,n),t.memoizedState=null,n))}function Xa(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=$u(t,i,0,null),n=Qu(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function es(e,t,n,r){var i=e.child;return e=i.sibling,n=Wu(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Wu(a,s),null!==e?r=Wu(e,r):(r=Qu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),io(e.return,t)}function rs(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!==(2&(r=jo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fi(jo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Vo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Vo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Wu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!zo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return gi(t.type)&&yi(),null;case 3:return Fo(),ci(hi),ci(di),Yo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Po(t);var o=Lo(Io.current);if(n=t.type,null!==e&&null!=t.stateNode)$a(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Lo(Ao.current),Go(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Xr]=s,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<Tr.length;e++)Ar(Tr[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":ee(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":ue(r,s),Ar("invalid",r)}for(var l in xe(n,s),e=null,s)s.hasOwnProperty(l)&&(o=s[l],"children"===l?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):u.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&Ar("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Jr]=t,e[Xr]=r,Qa(e,t),t.stateNode=e,l=_e(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),o=r;break;case"iframe":case"object":case"embed":Ar("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tr.length;o++)Ar(Tr[o],e);o=r;break;case"source":Ar("error",e),o=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),o=r;break;case"details":Ar("toggle",e),o=r;break;case"input":ee(e,r),o=X(e,r),Ar("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":ue(e,r),o=se(e,r),Ar("invalid",e);break;default:o=r}xe(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?ke(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"===typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"===typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Ar("scroll",e):null!=f&&w(e,s,f,l))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Ur)}qr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Lo(Io.current),Lo(Ao.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return ci(jo),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&jo.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===Ls||0===(134217727&Bs)&&0===(134217727&zs)||yu(Ls,Fs))),(r||n)&&(t.flags|=4),null);case 4:return Fo(),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ci(jo),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(l=r.rendering))if(s)as(r,!1);else{if(0!==js||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Vo(e))){for(t.flags|=64,as(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fi(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&qi()>Ws&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Vo(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!zo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*qi()-r.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=qi(),n.sibling=null,t=jo.current,fi(jo,s?1&t|2:1&t),n):null;case 23:case 24:return Su(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function us(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Fo(),ci(hi),ci(di),Yo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Po(e),null;case 13:return ci(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ci(jo),null;case 4:return Fo(),null;case 10:return ro(e),null;case 23:case 24:return Su(),null;default:return null}}function ls(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function cs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$a=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Lo(Ao.current);var a,s=null;switch(n){case"input":o=X(e,o),r=X(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Ur)}for(f in xe(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var l=o[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Ar("scroll",e),s||l===c||(s=[])):"object"===typeof c&&null!==c&&c.$$typeof===F?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Ya=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Ks=r),cs(0,t)},n}function ds(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return cs(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"===typeof WeakSet?WeakSet:Set;function vs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Uu(e,n)}else t.current=null}function ms(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function gs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Pu(n,e),Ru(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&vo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}vo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&qr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ee("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(xi&&"function"===typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(Si,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Pu(t,n);else{r=t;try{i()}catch(o){Uu(r,o)}}n=n.next}while(n!==e)}break;case 1:if(vs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Uu(t,o)}break;case 5:vs(t);break;case 4:_s(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Es(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(Es(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Es(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):xs(e,n,t)}function Ss(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ur));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function _s(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,l=u;;)if(bs(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===u)break e;for(;null===l.sibling;){if(null===l.return||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Ts(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),_e(e,i),t=_e(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?ke(n,u):"dangerouslySetInnerHTML"===s?ge(n,u):"children"===s?ye(n,u):w(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Zs=qi(),ys(t.child,!0)),void Cs(t);case 19:return void Cs(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function Cs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=zu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ns(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Os=Math.ceil,As=E.ReactCurrentDispatcher,Ds=E.ReactCurrentOwner,Is=0,Ls=null,Ms=null,Fs=0,Rs=0,Ps=li(0),js=0,Vs=null,Us=0,Bs=0,zs=0,qs=0,Hs=null,Zs=0,Ws=1/0;function Gs(){Ws=qi()+500}var Qs,$s=null,Ys=!1,Ks=null,Js=null,Xs=!1,eu=null,tu=90,nu=[],ru=[],iu=null,ou=0,au=null,su=-1,uu=0,lu=0,cu=null,fu=!1;function pu(){return 0!==(48&Is)?qi():-1!==su?su:su=qi()}function du(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Hi()?1:2;if(0===uu&&(uu=Us),0!==Yi.transition){0!==lu&&(lu=null!==Hs?Hs.pendingLanes:0),e=uu;var t=4186112&~lu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Hi(),0!==(4&Is)&&98===e?e=Ut(12,uu):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),uu),e}function hu(e,t,n){if(50<ou)throw ou=0,au=null,Error(a(185));if(null===(e=vu(e,t)))return null;qt(e,t,n),e===Ls&&(zs|=t,4===js&&yu(e,Fs));var r=Hi();1===t?0!==(8&Is)&&0===(48&Is)?bu(e):(mu(e,n),0===Is&&(Gs(),Qi())):(0===(4&Is)||98!==r&&99!==r||(null===iu?iu=new Set([e]):iu.add(e)),mu(e,n)),Hs=e}function vu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function mu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Ht(s),l=1<<u,c=o[u];if(-1===c){if(0===(l&r)||0!==(l&i)){c=t,Pt(l);var f=Rt;o[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);s&=~l}if(r=jt(e,e===Ls?Fs:0),t=Rt,0===r)null!==n&&(n!==Pi&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Pi&&Ci(n)}15===t?(n=bu.bind(null,e),null===Vi?(Vi=[n],Ui=Ti(Ii,$i)):Vi.push(n),n=Pi):14===t?n=Gi(99,bu.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Gi(n,gu.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gu(e){if(su=-1,lu=uu=0,0!==(48&Is))throw Error(a(327));var t=e.callbackNode;if(Fu()&&e.callbackNode!==t)return null;var n=jt(e,e===Ls?Fs:0);if(0===n)return null;var r=n,i=Is;Is|=16;var o=Tu();for(Ls===e&&Fs===r||(Gs(),xu(e,r));;)try{Ou();break}catch(u){_u(e,u)}if(no(),As.current=o,Is=i,null!==Ms?r=0:(Ls=null,Fs=0,r=js),0!==(Us&zs))xu(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Vt(e))&&(r=Cu(e,n))),1===r)throw t=Vs,xu(e,0),yu(e,n),mu(e,qi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Iu(e);break;case 3:if(yu(e,n),(62914560&n)===n&&10<(r=Zs+500-qi())){if(0!==jt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){pu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Zr(Iu.bind(null,e),r);break}Iu(e);break;case 4:if(yu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ht(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=qi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Os(n/1960))-n)){e.timeoutHandle=Zr(Iu.bind(null,e),n);break}Iu(e);break;default:throw Error(a(329))}}return mu(e,qi()),e.callbackNode===t?gu.bind(null,e):null}function yu(e,t){for(t&=~qs,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function bu(e){if(0!==(48&Is))throw Error(a(327));if(Fu(),e===Ls&&0!==(e.expiredLanes&Fs)){var t=Fs,n=Cu(e,t);0!==(Us&zs)&&(n=Cu(e,t=jt(e,t)))}else n=Cu(e,t=jt(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Vt(e))&&(n=Cu(e,t))),1===n)throw n=Vs,xu(e,0),yu(e,t),mu(e,qi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Iu(e),mu(e,qi()),null}function wu(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Gs(),Qi())}}function Eu(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(Gs(),Qi())}}function ku(e,t){fi(Ps,Rs),Rs|=t,Us|=t}function Su(){Rs=Ps.current,ci(Ps)}function xu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Ms)for(n=Ms.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Fo(),ci(hi),ci(di),Yo();break;case 5:Po(r);break;case 4:Fo();break;case 13:case 19:ci(jo);break;case 10:ro(r);break;case 23:case 24:Su()}n=n.return}Ls=e,Ms=Wu(e.current,null),Fs=Rs=Us=t,js=0,Vs=null,qs=zs=Bs=0}function _u(e,t){for(;;){var n=Ms;try{if(no(),Ko.current=Ia,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Xo=0,na=ta=ea=null,ia=!1,Ds.current=null,null===n||null===n.return){js=1,Vs=t,Ms=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Fs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var l=u;if(0===(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!==(1&jo.current),p=a;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var v=p.memoizedProps;d=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(d){var m=p.updateQueue;if(null===m){var g=new Set;g.add(l),p.updateQueue=g}else m.add(l);if(0===(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=co(-1,1);y.tag=2,fo(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new fs,u=new Set,b.set(l,u)):void 0===(u=b.get(l))&&(u=new Set,b.set(l,u)),!u.has(s)){u.add(s);var w=Bu.bind(null,o,l,s);l.then(w,w)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);u=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==js&&(js=2),u=ls(u,s),p=a;do{switch(p.tag){case 3:o=u,p.flags|=4096,t&=-t,p.lanes|=t,po(p,ps(0,o,t));break e;case 1:o=u;var E=p.type,k=p.stateNode;if(0===(64&p.flags)&&("function"===typeof E.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Js||!Js.has(k)))){p.flags|=4096,t&=-t,p.lanes|=t,po(p,ds(p,o,t));break e}}p=p.return}while(null!==p)}Du(n)}catch(S){t=S,Ms===n&&null!==n&&(Ms=n=n.return);continue}break}}function Tu(){var e=As.current;return As.current=Ia,null===e?Ia:e}function Cu(e,t){var n=Is;Is|=16;var r=Tu();for(Ls===e&&Fs===t||xu(e,t);;)try{Nu();break}catch(i){_u(e,i)}if(no(),Is=n,As.current=r,null!==Ms)throw Error(a(261));return Ls=null,Fs=0,js}function Nu(){for(;null!==Ms;)Au(Ms)}function Ou(){for(;null!==Ms&&!Ni();)Au(Ms)}function Au(e){var t=Qs(e.alternate,e,Rs);e.memoizedProps=e.pendingProps,null===t?Du(e):Ms=t,Ds.current=null}function Du(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Rs)))return void(Ms=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Rs)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=us(t)))return n.flags&=2047,void(Ms=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ms=t);Ms=t=e}while(null!==t);0===js&&(js=5)}function Iu(e){var t=Hi();return Wi(99,Lu.bind(null,e,t)),null}function Lu(e,t){do{Fu()}while(null!==eu);if(0!==(48&Is))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<o;){var l=31-Ht(o),c=1<<l;i[l]=0,s[l]=-1,u[l]=-1,o&=~c}if(null!==iu&&0===(24&r)&&iu.has(e)&&iu.delete(e),e===Ls&&(Ms=Ls=null,Fs=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Is,Is|=32,Ds.current=null,Br=$t,gr(s=mr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{u.nodeType,l.nodeType}catch(T){u=null;break e}var f=0,p=-1,d=-1,h=0,v=0,m=s,g=null;t:for(;;){for(var y;m!==u||0!==o&&3!==m.nodeType||(p=f+o),m!==l||0!==c&&3!==m.nodeType||(d=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)g=m,m=y;for(;;){if(m===s)break t;if(g===u&&++h===o&&(p=f),g===l&&++v===c&&(d=f),null!==(y=m.nextSibling))break;g=(m=g).parentNode}m=y}u=-1===p||-1===d?null:{start:p,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;zr={focusedElem:s,selectionRange:u},$t=!1,cu=null,fu=!1,$s=r;do{try{Mu()}catch(T){if(null===$s)throw Error(a(330));Uu($s,T),$s=$s.nextEffect}}while(null!==$s);cu=null,$s=r;do{try{for(s=e;null!==$s;){var b=$s.flags;if(16&b&&ye($s.stateNode,""),128&b){var w=$s.alternate;if(null!==w){var E=w.ref;null!==E&&("function"===typeof E?E(null):E.current=null)}}switch(1038&b){case 2:ks($s),$s.flags&=-3;break;case 6:ks($s),$s.flags&=-3,Ts($s.alternate,$s);break;case 1024:$s.flags&=-1025;break;case 1028:$s.flags&=-1025,Ts($s.alternate,$s);break;case 4:Ts($s.alternate,$s);break;case 8:_s(s,u=$s);var k=u.alternate;ws(u),null!==k&&ws(k)}$s=$s.nextEffect}}catch(T){if(null===$s)throw Error(a(330));Uu($s,T),$s=$s.nextEffect}}while(null!==$s);if(E=zr,w=mr(),b=E.focusedElem,s=E.selectionRange,w!==b&&b&&b.ownerDocument&&vr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(w=s.start,void 0===(E=s.end)&&(E=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(E,b.value.length)):(E=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=b.textContent.length,k=Math.min(s.start,u),s=void 0===s.end?k:Math.min(s.end,u),!E.extend&&k>s&&(u=s,s=k,k=u),u=hr(b,k),o=hr(b,s),u&&o&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==o.node||E.focusOffset!==o.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),k>s?(E.addRange(w),E.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(E=w[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}$t=!!Br,zr=Br=null,e.current=n,$s=r;do{try{for(b=e;null!==$s;){var S=$s.flags;if(36&S&&gs(b,$s.alternate,$s),128&S){w=void 0;var x=$s.ref;if(null!==x){var _=$s.stateNode;$s.tag,w=_,"function"===typeof x?x(w):x.current=w}}$s=$s.nextEffect}}catch(T){if(null===$s)throw Error(a(330));Uu($s,T),$s=$s.nextEffect}}while(null!==$s);$s=null,ji(),Is=i}else e.current=n;if(Xs)Xs=!1,eu=e,tu=t;else for($s=r;null!==$s;)t=$s.nextEffect,$s.nextEffect=null,8&$s.flags&&((S=$s).sibling=null,S.stateNode=null),$s=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===au?ou++:(ou=0,au=e):ou=0,n=n.stateNode,xi&&"function"===typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(Si,n,void 0,64===(64&n.current.flags))}catch(T){}if(mu(e,qi()),Ys)throw Ys=!1,e=Ks,Ks=null,e;return 0!==(8&Is)||Qi(),null}function Mu(){for(;null!==$s;){var e=$s.alternate;fu||null===cu||(0!==(8&$s.flags)?et($s,cu)&&(fu=!0):13===$s.tag&&Ns(e,$s)&&et($s,cu)&&(fu=!0));var t=$s.flags;0!==(256&t)&&ms(e,$s),0===(512&t)||Xs||(Xs=!0,Gi(97,(function(){return Fu(),null}))),$s=$s.nextEffect}}function Fu(){if(90!==tu){var e=97<tu?97:tu;return tu=90,Wi(e,ju)}return!1}function Ru(e,t){nu.push(t,e),Xs||(Xs=!0,Gi(97,(function(){return Fu(),null})))}function Pu(e,t){ru.push(t,e),Xs||(Xs=!0,Gi(97,(function(){return Fu(),null})))}function ju(){if(null===eu)return!1;var e=eu;if(eu=null,0!==(48&Is))throw Error(a(331));var t=Is;Is|=32;var n=ru;ru=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(l){if(null===o)throw Error(a(330));Uu(o,l)}}for(n=nu,nu=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var u=i.create;i.destroy=u()}catch(l){if(null===o)throw Error(a(330));Uu(o,l)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Is=t,Qi(),!0}function Vu(e,t,n){fo(e,t=ps(0,t=ls(n,t),1)),t=pu(),null!==(e=vu(e,1))&&(qt(e,1,t),mu(e,t))}function Uu(e,t){if(3===e.tag)Vu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Vu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var i=ds(n,e=ls(t,e),1);if(fo(n,i),i=pu(),null!==(n=vu(n,1)))qt(n,1,i),mu(n,i);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pu(),e.pingedLanes|=e.suspendedLanes&n,Ls===e&&(Fs&n)===n&&(4===js||3===js&&(62914560&Fs)===Fs&&500>qi()-Zs?xu(e,0):qs|=n),mu(e,t)}function zu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Hi()?1:2:(0===uu&&(uu=Us),0===(t=Bt(62914560&~uu))&&(t=4194304))),n=pu(),null!==(e=vu(e,t))&&(qt(e,t,n),mu(e,n))}function qu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hu(e,t,n,r){return new qu(e,t,n,r)}function Zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wu(e,t){var n=e.alternate;return null===n?((n=Hu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gu(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Zu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return Qu(n.children,i,o,t);case R:s=8,i|=16;break;case _:s=8,i|=1;break;case T:return(e=Hu(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case A:return(e=Hu(13,n,t,i)).type=A,e.elementType=A,e.lanes=o,e;case D:return(e=Hu(19,n,t,i)).elementType=D,e.lanes=o,e;case P:return $u(n,i,o,t);case j:return(e=Hu(24,n,t,i)).elementType=j,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case N:s=9;break e;case O:s=11;break e;case I:s=14;break e;case L:s=16,r=null;break e;case M:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hu(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Qu(e,t,n,r){return(e=Hu(7,e,r,t)).lanes=n,e}function $u(e,t,n,r){return(e=Hu(23,e,r,t)).elementType=P,e.lanes=n,e}function Yu(e,t,n){return(e=Hu(6,e,null,t)).lanes=n,e}function Ku(e,t,n){return(t=Hu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ju(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Xu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function el(e,t,n,r){var i=t.current,o=pu(),s=du(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(gi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(gi(l)){n=wi(n,l,u);break e}}n=u}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fo(i,t),hu(i,s,o),s}function tl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rl(e,t){nl(e,t),(e=e.alternate)&&nl(e,t)}function il(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ju(e,t,null!=n&&!0===n.hydrate),t=Hu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,uo(t),e[ei]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function al(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=tl(a);s.call(e)}}el(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new il(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=tl(a);u.call(e)}}Eu((function(){el(t,a,e,i)}))}return tl(a)}function sl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return Xu(e,t,null,n)}Qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)Pa=!0;else{if(0===(n&r)){switch(Pa=!1,t.tag){case 3:Ga(t),Qo();break;case 5:Ro(t);break;case 1:gi(t.type)&&Ei(t);break;case 4:Mo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;fi(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(fi(jo,1&jo.current),null!==(t=os(e,t,n))?t.sibling:null);fi(jo,1&jo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return is(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),fi(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,za(e,t,n)}return os(e,t,n)}Pa=0!==(16384&e.flags)}else Pa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,di.current),oo(t,n),i=sa(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var o=!0;Ei(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,uo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&go(t,r,s,e),i.updater=yo,t.stateNode=i,i._reactInternals=t,ko(t,r,e,n),t=Wa(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return Zu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Ha(null,t,i,e,n);break e;case 1:t=Za(null,t,i,e,n);break e;case 11:t=Va(null,t,i,e,n);break e;case 14:t=Ua(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Za(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Qo(),t=os(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Bo=Qr(t.stateNode.containerInfo.firstChild),Uo=t,o=zo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],$o.push(o);for(n=No(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Qo();t=t.child}return t;case 5:return Ro(t),null===e&&Zo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Hr(r,i)?s=null:null!==o&&Hr(r,o)&&(t.flags|=16),qa(e,t),ja(e,t,s,n),t.child;case 6:return null===e&&Zo(t),null;case 13:return Ja(e,t,n);case 4:return Mo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(fi(Ji,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=cr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){t=os(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===u.tag&&((c=co(-1,n&-n)).tag=2,fo(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),io(u.return,n),l.lanes|=n;break}c=c.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(i=ao(i,o.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Ua(e,t,i,o=Ki(i.type,o),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,Ei(t)):e=!1,oo(t,n),wo(t,r,i),ko(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return za(e,t,n)}throw Error(a(156,t.tag))},il.prototype.render=function(e){el(e,this._internalRoot,null,null)},il.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;el(null,e,null,(function(){t[ei]=null}))},tt=function(e){13===e.tag&&(hu(e,4,pu()),rl(e,4))},nt=function(e){13===e.tag&&(hu(e,67108864,pu()),rl(e,67108864))},rt=function(e){if(13===e.tag){var t=pu(),n=du(e);hu(e,n,t),rl(e,n)}},it=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=oi(r);if(!i)throw Error(a(90));K(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Le=wu,Me=function(e,t,n,r,i){var o=Is;Is|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Is=o)&&(Gs(),Qi())}},Fe=function(){0===(49&Is)&&(function(){if(null!==iu){var e=iu;iu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,mu(e,qi())}))}Qi()}(),Fu())},Re=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(Gs(),Qi())}};var ul={Events:[ri,ii,oi,De,Ie,Fu,{current:!1}]},ll={findFiberByHostInstance:ni,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cl={bundleType:ll.bundleType,version:ll.version,rendererPackageName:ll.rendererPackageName,rendererConfig:ll.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:ll.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{Si=fl.inject(cl),xi=fl}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ul,t.createPortal=sl,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Xe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Is;if(0!==(48&n))return e(t);Is|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Is=n,Qi()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return al(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return al(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(Eu((function(){al(null,null,e,!1,(function(){e._reactRootContainer=null,e[ei]=null}))})),!0)},t.unstable_batchedUpdates=wu,t.unstable_createPortal=function(e,t){return sl(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return al(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},1372:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case v:case u:return e;default:return t}}case i:return t}}}function k(e){return E(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return k(e)||E(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===d||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},7441:function(e,t,n){"use strict";e.exports=n(1372)},5851:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2791),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},o.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}},2063:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2791),a=p(o),s=p(n(1694)),u=p(n(9843)),l=p(n(5851)),c=p(n(2274)),f=n(5039);function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.previouslyChecked=!(!e.checked&&!e.defaultChecked),n.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){if(!this.props.disabled){var t=this.input;if(e.target!==t&&!this.moved)return this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),void t.click();var n=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:n})}}},{key:"handleTouchStart",value:function(e){this.props.disabled||(this.startX=(0,f.pointerCoord)(e).x,this.activated=!0)}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,f.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,f.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var n=this.props.icons;return n?void 0===n[e]?t.defaultProps.icons[e]:n[e]:null}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=(t.icons,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","icons"])),o=(0,s.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return a.default.createElement("div",{className:o,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},a.default.createElement("div",{className:"react-toggle-track"},a.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),a.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),a.default.createElement("div",{className:"react-toggle-thumb"}),a.default.createElement("input",r({},i,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(o.PureComponent);t.Z=d,d.displayName="Toggle",d.defaultProps={icons:{checked:a.default.createElement(l.default,null),unchecked:a.default.createElement(c.default,null)}},d.propTypes={checked:u.default.bool,disabled:u.default.bool,defaultChecked:u.default.bool,onChange:u.default.func,onFocus:u.default.func,onBlur:u.default.func,className:u.default.string,name:u.default.string,value:u.default.string,id:u.default.string,"aria-labelledby":u.default.string,"aria-label":u.default.string,icons:u.default.oneOfType([u.default.bool,u.default.shape({checked:u.default.node,unchecked:u.default.node})])}},5039:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var r=e.pageX;if(void 0!==r)return{x:r,y:e.pageY}}return{x:0,y:0}}},2274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2791),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){return o.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},o.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:a.current}}t.jsx=l,t.jsxs=l},9117:function(e,t,n){"use strict";var r=n(1725),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var b=y.prototype=new g;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:w.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var _=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=e),e=""===r?"."+T(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(_,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+T(s=e[l],l);u+=C(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=C(s=s.value,t,n,c=r+T(s,l++),a);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function N(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var A={current:null};function D(){var e=A.current;if(null===e)throw Error(d(321));return e}var I={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(d(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(d(267,e));var o=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)E.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(D){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new N(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={};function m(){}function g(){}function y(){}var b={};u(b,o,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(O([])));E&&E!==n&&r.call(E,o)&&(b=E);var k=y.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return g.prototype=y,u(k,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new x(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),u(k,s,"Generator"),u(k,o,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6813:function(e,t){"use strict";var n,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,f=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,d=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?E.postMessage(null):(v=!1,m=null)}catch(n){throw E.postMessage(null),n}}else v=!1},n=function(e){m=e,v||(v=!0,E.postMessage(null))},r=function(e,n){g=p((function(){e(t.unstable_now())}),n)},i=function(){d(g),g=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<_(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>_(a,n))void 0!==u&&0>_(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>_(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],C=[],N=1,O=null,A=3,D=!1,I=!1,L=!1;function M(e){for(var t=S(C);null!==t;){if(null===t.callback)x(C);else{if(!(t.startTime<=e))break;x(C),t.sortIndex=t.expirationTime,k(T,t)}t=S(C)}}function F(e){if(L=!1,M(e),!I)if(null!==S(T))I=!0,n(R);else{var t=S(C);null!==t&&r(F,t.startTime-e)}}function R(e,n){I=!1,L&&(L=!1,i()),D=!0;var o=A;try{for(M(n),O=S(T);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"===typeof a){O.callback=null,A=O.priorityLevel;var s=a(O.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?O.callback=s:O===S(T)&&x(T),M(n)}else x(T);O=S(T)}if(null!==O)var u=!0;else{var l=S(C);null!==l&&r(F,l.startTime-n),u=!1}return u}finally{O=null,A=o,D=!1}}var P=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||D||(I=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=P,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:N++,callback:o,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>s?(e.sortIndex=a,k(C,e),null===S(T)&&e===S(C)&&(L?i():L=!0,r(F,a-s))):(e.sortIndex=u,k(T,e),I||D||(I=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},7809:function(e,t,n){"use strict";var r=Reflect.deleteProperty,i=n(2906),o=n(4807),a=function(e){return"object"===typeof e&&null!==e||"function"===typeof e},s=function(e){if(!i(e))throw new TypeError("Object keys must be strings or symbols");if(function(e){return"__proto__"===e||"constructor"===e||"prototype"===e}(e))throw new Error('Cannot set unsafe key: "'.concat(e,'"'))},u=function(e,t,n){var r=function(e){return Array.isArray(e)?e.flat().map(String).join(","):e}(t?function(e,t){if("string"!==typeof e||!t)return e;var n=e+";";return void 0!==t.arrays&&(n+="arrays=".concat(t.arrays,";")),void 0!==t.separator&&(n+="separator=".concat(t.separator,";")),void 0!==t.split&&(n+="split=".concat(t.split,";")),void 0!==t.merge&&(n+="merge=".concat(t.merge,";")),void 0!==t.preservePaths&&(n+="preservePaths=".concat(t.preservePaths,";")),n}(e,t):e);s(r);var i=f.cache.get(r)||n();return f.cache.set(r,i),i},l=function(e,t){return t&&"function"===typeof t.split?t.split(e):"symbol"===typeof e?[e]:Array.isArray(e)?e:u(e,t,(function(){return function(e){var t=arguments.length>1&&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=function(e){var t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)},s=0;s<e.length;s++){var u=e[s];"\\"!==u?u!==n?o+=u:(a(o),o=""):o+=e[++s]}return o&&a(o),i}(e,t)}))},c=function(e,t,n,i){if(s(t),void 0===n)r(e,t);else if(i&&i.merge){var a="function"===i.merge?i.merge:Object.assign;a&&o(e[t])&&o(n)?e[t]=a(e[t],n):e[t]=n}else e[t]=n;return e},f=function(e,t,n,r){if(!t||!a(e))return e;for(var i=l(t,r),o=e,u=0;u<i.length;u++){var f=i[u],p=i[u+1];if(s(f),void 0===p){c(o,f,n,r);break}"number"!==typeof p||Array.isArray(o[f])?(a(o[f])||(o[f]={}),o=o[f]):o=o[f]=[]}return e};f.split=l,f.cache=new Map,f.clear=function(){f.cache=new Map},e.exports=f},2458:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},538:function(e){e.exports=/[\0-\x1F\x7F-\x9F]/},7319:function(e){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},3741:function(e){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},2426:function(e){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},6937:function(e,t,n){"use strict";t.Any=n(5510),t.Cc=n(538),t.Cf=n(7319),t.P=n(3741),t.Z=n(2426)},5510:function(e){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},9583:function(e,t,n){e.exports=n(3437).YAML},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907);var i=n(181);function o(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},2343:function(e,t,n){"use strict";n.d(t,{O:function(){return w},_:function(){return y}});var r=n(7770),i=n(8969),o=n(2282),a=n(1224);function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"===typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),m(r,e)},d(e)}function h(e,t,n){return h=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&m(i,n.prototype),i},h.apply(null,arguments)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(d,e);var t,n,a,s=function(e){var t=v();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}(d);function d(e,t,n,i,a,c,h){var v,m,g,y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(y=s.call(this,e)).name="GraphQLError",y.originalError=null!==c&&void 0!==c?c:void 0,y.nodes=b(Array.isArray(t)?t:t?[t]:void 0);for(var w=[],E=0,k=null!==(S=y.nodes)&&void 0!==S?S:[];E<k.length;E++){var S,x=k[E].loc;null!=x&&w.push(x)}w=b(w),y.source=null!==n&&void 0!==n?n:null===(v=w)||void 0===v?void 0:v[0].source,y.positions=null!==i&&void 0!==i?i:null===(m=w)||void 0===m?void 0:m.map((function(e){return e.start})),y.locations=i&&n?i.map((function(e){return(0,o.k)(n,e)})):null===(g=w)||void 0===g?void 0:g.map((function(e){return(0,o.k)(e.source,e.start)})),y.path=null!==a&&void 0!==a?a:void 0;var _=null===c||void 0===c?void 0:c.extensions;return null==h&&(0,r.Z)(_)?y.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},_):y.extensions=null!==h&&void 0!==h?h:{},Object.defineProperties(p(y),{message:{enumerable:!0},locations:{enumerable:null!=y.locations},path:{enumerable:null!=y.path},extensions:{enumerable:null!=y.extensions&&Object.keys(y.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==c&&void 0!==c&&c.stack?(Object.defineProperty(p(y),"stack",{value:c.stack,writable:!0,configurable:!0}),f(y)):(Error.captureStackTrace?Error.captureStackTrace(p(y),d):Object.defineProperty(p(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return t=d,(n=[{key:"toString",value:function(){return w(this)}},{key:i.YF,get:function(){return"Object"}}])&&c(t.prototype,n),a&&c(t,a),d}(d(Error));function b(e){return void 0===e||0===e.length?void 0:e}function w(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+(0,a.Q)(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var u=s[o];t+="\n\n"+(0,a.z)(e.source,u)}return t}},8425:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(7173),i=n(2343);function o(e,t,n){var o,a=e instanceof Error?e:new Error("Unexpected error value: "+(0,r.Z)(e));return Array.isArray(a.path)?a:new i._(a.message,null!==(o=a.nodes)&&void 0!==o?o:t,a.source,a.positions,n,a)}},777:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(2343);function i(e,t,n){return new r._("Syntax Error: ".concat(n),void 0,e,[t])}},4495:function(e,t,n){"use strict";n.r(t),n.d(t,{BREAK:function(){return ye.$_},BreakingChangeType:function(){return dn},DEFAULT_DEPRECATION_REASON:function(){return w.SY},DangerousChangeType:function(){return hn},DirectiveLocation:function(){return be.B},ExecutableDefinitionsRule:function(){return Le.i},FieldsOnCorrectTypeRule:function(){return Me.A},FragmentsOnCompositeTypesRule:function(){return Fe.T},GraphQLBoolean:function(){return fe.EZ},GraphQLDeprecatedDirective:function(){return w.fg},GraphQLDirective:function(){return w.NZ},GraphQLEnumType:function(){return E.mR},GraphQLError:function(){return m._},GraphQLFloat:function(){return fe.av},GraphQLID:function(){return fe.km},GraphQLIncludeDirective:function(){return w.Yf},GraphQLInputObjectType:function(){return E.sR},GraphQLInt:function(){return fe._o},GraphQLInterfaceType:function(){return E.oW},GraphQLList:function(){return E.p2},GraphQLNonNull:function(){return E.bM},GraphQLObjectType:function(){return E.h6},GraphQLScalarType:function(){return E.n2},GraphQLSchema:function(){return ce.XO},GraphQLSkipDirective:function(){return w.QE},GraphQLSpecifiedByDirective:function(){return w.df},GraphQLString:function(){return fe.kH},GraphQLUnionType:function(){return E.Gp},Kind:function(){return y.h},KnownArgumentNamesRule:function(){return Re.e},KnownDirectivesRule:function(){return Pe.J},KnownFragmentNamesRule:function(){return je.a},KnownTypeNamesRule:function(){return Ve.I},Lexer:function(){return me.h},Location:function(){return pe.Ye},LoneAnonymousOperationRule:function(){return Ue.F},LoneSchemaDefinitionRule:function(){return ot.t},NoDeprecatedCustomRule:function(){return pt.r},NoFragmentCyclesRule:function(){return Be.H},NoSchemaIntrospectionCustomRule:function(){return Ae},NoUndefinedVariablesRule:function(){return ze.$},NoUnusedFragmentsRule:function(){return qe.J},NoUnusedVariablesRule:function(){return He.p},OverlappingFieldsCanBeMergedRule:function(){return Ze.y},PossibleFragmentSpreadsRule:function(){return We.a},PossibleTypeExtensionsRule:function(){return ft.g},ProvidedRequiredArgumentsRule:function(){return Ge.s},ScalarLeafsRule:function(){return Qe.O},SchemaMetaFieldDef:function(){return b.SchemaMetaFieldDef},SingleFieldSubscriptionsRule:function(){return $e.Z},Source:function(){return de.H},Token:function(){return pe.WU},TokenKind:function(){return ge.T},TypeInfo:function(){return In.a},TypeKind:function(){return b.TypeKind},TypeMetaFieldDef:function(){return b.TypeMetaFieldDef},TypeNameMetaFieldDef:function(){return b.TypeNameMetaFieldDef},UniqueArgumentNamesRule:function(){return Ye.L},UniqueDirectiveNamesRule:function(){return ct.o},UniqueDirectivesPerLocationRule:function(){return Ke.k},UniqueEnumValueNamesRule:function(){return ut.L},UniqueFieldDefinitionNamesRule:function(){return lt.y},UniqueFragmentNamesRule:function(){return Je.N},UniqueInputFieldNamesRule:function(){return Xe.P},UniqueOperationNamesRule:function(){return et.H},UniqueOperationTypesRule:function(){return at.q},UniqueTypeNamesRule:function(){return st.P},UniqueVariableNamesRule:function(){return tt.H},ValidationContext:function(){return De._t},ValuesOfCorrectTypeRule:function(){return nt.j},VariablesAreInputTypesRule:function(){return rt.I},VariablesInAllowedPositionRule:function(){return it.w},__Directive:function(){return b.__Directive},__DirectiveLocation:function(){return b.__DirectiveLocation},__EnumValue:function(){return b.__EnumValue},__Field:function(){return b.__Field},__InputValue:function(){return b.__InputValue},__Schema:function(){return b.__Schema},__Type:function(){return b.__Type},__TypeKind:function(){return b.__TypeKind},assertAbstractType:function(){return E.fU},assertCompositeType:function(){return E.M_},assertDirective:function(){return w.CO},assertEnumType:function(){return E.Zu},assertInputObjectType:function(){return E.U8},assertInputType:function(){return E.qT},assertInterfaceType:function(){return E.k2},assertLeafType:function(){return E.H5},assertListType:function(){return E.kS},assertNamedType:function(){return E.rM},assertNonNullType:function(){return E.E$},assertNullableType:function(){return E.i_},assertObjectType:function(){return E.Z6},assertOutputType:function(){return E.Gt},assertScalarType:function(){return E.Pt},assertSchema:function(){return ce.EO},assertType:function(){return E.p_},assertUnionType:function(){return E.rc},assertValidName:function(){return Mn.k},assertValidSchema:function(){return u.J},assertWrappingType:function(){return E.vX},astFromValue:function(){return zt.J},buildASTSchema:function(){return Dt},buildClientSchema:function(){return An.Z},buildSchema:function(){return It},coerceInputValue:function(){return I},concatAST:function(){return rn},createSourceEventStream:function(){return Oe},defaultFieldResolver:function(){return oe},defaultTypeResolver:function(){return ie},doTypesOverlap:function(){return Ln.zR},execute:function(){return V},executeSync:function(){return U},extendSchema:function(){return _t},findBreakingChanges:function(){return vn},findDangerousChanges:function(){return mn},findDeprecatedUsages:function(){return On},formatError:function(){return dt},getDescription:function(){return At},getDirectiveValues:function(){return P},getIntrospectionQuery:function(){return mt.K},getLocation:function(){return he.k},getNamedType:function(){return E.xC},getNullableType:function(){return E.tf},getOperationAST:function(){return vt},getOperationRootType:function(){return S},getVisitFn:function(){return ye.CK},graphql:function(){return se},graphqlSync:function(){return ue},introspectionFromSchema:function(){return bt},introspectionTypes:function(){return b.introspectionTypes},isAbstractType:function(){return E.m0},isCompositeType:function(){return E.Gv},isDefinitionNode:function(){return we.Ir},isDirective:function(){return w.wX},isEnumType:function(){return E.EM},isEqualType:function(){return Ln._7},isExecutableDefinitionNode:function(){return we.Wk},isInputObjectType:function(){return E.hL},isInputType:function(){return E.j$},isInterfaceType:function(){return E.oT},isIntrospectionType:function(){return b.isIntrospectionType},isLeafType:function(){return E.UT},isListType:function(){return E.HG},isNamedType:function(){return E.Zs},isNonNullType:function(){return E.zM},isNullableType:function(){return E.zP},isObjectType:function(){return E.lp},isOutputType:function(){return E.SZ},isRequiredArgument:function(){return E.dK},isRequiredInputField:function(){return E.Wd},isScalarType:function(){return E.KA},isSchema:function(){return ce.nN},isSelectionNode:function(){return we.pO},isSpecifiedDirective:function(){return w.xg},isSpecifiedScalarType:function(){return fe.u1},isType:function(){return E.P9},isTypeDefinitionNode:function(){return we.zT},isTypeExtensionNode:function(){return we.D$},isTypeNode:function(){return we.VB},isTypeSubTypeOf:function(){return Ln.uJ},isTypeSystemDefinitionNode:function(){return we.G4},isTypeSystemExtensionNode:function(){return we.aU},isUnionType:function(){return E.EN},isValidNameError:function(){return Mn.u},isValueNode:function(){return we.nr},isWrappingType:function(){return E.fw},lexicographicSortSchema:function(){return jt},locatedError:function(){return g.y},parse:function(){return a.Qc},parseType:function(){return a.gZ},parseValue:function(){return a.H2},print:function(){return C.S},printError:function(){return m.O},printIntrospectionSchema:function(){return Ht},printLocation:function(){return ve.Q},printSchema:function(){return qt},printSourceLocation:function(){return ve.z},printType:function(){return Qt},responsePathAsArray:function(){return v},separateOperations:function(){return on},specifiedDirectives:function(){return w.V4},specifiedRules:function(){return Ie.i},specifiedScalarTypes:function(){return fe.HS},stripIgnoredCharacters:function(){return un},subscribe:function(){return Te},syntaxError:function(){return ht.h},typeFromAST:function(){return k._},validate:function(){return s.Gu},validateSchema:function(){return u.F},valueFromAST:function(){return N.u},valueFromASTUntyped:function(){return Dn.M},version:function(){return r},versionInfo:function(){return i},visit:function(){return ye.Vn},visitInParallel:function(){return ye.j1},visitWithTypeInfo:function(){return In.y}});var r="15.8.0",i=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function o(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}var a=n(4027),s=n(6665),u=n(7477),l=n(7173);var c=n(6205),f=n(3943),p=n(7770),d=n(1672);function h(e,t,n){return{prev:e,key:t,typename:n}}function v(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}var m=n(2343),g=n(8425),y=n(3208),b=n(8979),w=n(4083),E=n(2572),k=n(3696);function S(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new m._("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new m._("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new m._("Schema is not configured for subscriptions.",t);return i}throw new m._("Can only have query, mutation and subscription operations.",t)}var x=n(5171),_=n(8651);function T(e){return e.map((function(e){return"number"===typeof e?"["+e.toString()+"]":"."+e})).join("")}var C=n(2615),N=n(5848),O=n(6158),A=n(4701),D=n(4696);function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;return M(e,t,n)}function L(e,t,n){var r="Invalid value "+(0,l.Z)(t);throw e.length>0&&(r+=' at "value'.concat(T(e),'"')),n.message=r+": "+n.message,n}function M(e,t,n,r){if((0,E.zM)(t))return null!=e?M(e,t.ofType,n,r):void n(v(r),e,new m._('Expected non-nullable type "'.concat((0,l.Z)(t),'" not to be null.')));if(null==e)return null;if((0,E.HG)(t)){var i=t.ofType,o=(0,d.Z)(e,(function(e,t){var o=h(r,t,void 0);return M(e,i,n,o)}));return null!=o?o:[M(e,i,n,r)]}if((0,E.hL)(t)){if(!(0,p.Z)(e))return void n(v(r),e,new m._('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},s=t.getFields(),u=0,f=(0,O.Z)(s);u<f.length;u++){var g=f[u],y=e[g.name];if(void 0!==y)a[g.name]=M(y,g.type,n,h(r,g.name,t.name));else if(void 0!==g.defaultValue)a[g.name]=g.defaultValue;else if((0,E.zM)(g.type)){var b=(0,l.Z)(g.type);n(v(r),e,new m._('Field "'.concat(g.name,'" of required type "').concat(b,'" was not provided.')))}}for(var w=0,k=Object.keys(e);w<k.length;w++){var S=k[w];if(!s[S]){var x=(0,D.Z)(S,Object.keys(t.getFields()));n(v(r),e,new m._('Field "'.concat(S,'" is not defined by type "').concat(t.name,'".')+(0,A.Z)(x)))}}return a}if((0,E.UT)(t)){var _;try{_=t.parseValue(e)}catch(T){return void(T instanceof m._?n(v(r),e,T):n(v(r),e,new m._('Expected type "'.concat(t.name,'". ')+T.message,void 0,void 0,void 0,void 0,T)))}return void 0===_&&n(v(r),e,new m._('Expected type "'.concat(t.name,'".'))),_}(0,c.Z)(0,"Unexpected input type: "+(0,l.Z)(t))}function F(e,t,n,r){var i=[],o=null===r||void 0===r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],s=a.variable.name.value,u=(0,k._)(e,a.type);if(!(0,E.j$)(u)){var c=(0,C.S)(a.type);return r(new m._('Variable "$'.concat(s,'" expected value of type "').concat(c,'" which cannot be used as an input type.'),a.type)),"continue"}if(!j(n,s)){if(a.defaultValue)i[s]=(0,N.u)(a.defaultValue,u);else if((0,E.zM)(u)){var f=(0,l.Z)(u);r(new m._('Variable "$'.concat(s,'" of required type "').concat(f,'" was not provided.'),a))}return"continue"}var p=n[s];if(null===p&&(0,E.zM)(u)){var d=(0,l.Z)(u);return r(new m._('Variable "$'.concat(s,'" of non-null type "').concat(d,'" must not be null.'),a)),"continue"}i[s]=I(p,u,(function(e,t,n){var i='Variable "$'.concat(s,'" got invalid value ')+(0,l.Z)(t);e.length>0&&(i+=' at "'.concat(s).concat(T(e),'"')),r(new m._(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))}))},a=0;a<t.length;a++)o(a);return i}(e,t,n,(function(e){if(null!=o&&i.length>=o)throw new m._("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(s){i.push(s)}return{errors:i}}function R(e,t,n){for(var r,i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],a=(0,_.Z)(o,(function(e){return e.name.value})),s=0,u=e.args;s<u.length;s++){var c=u[s],f=c.name,p=c.type,d=a[f];if(d){var h=d.value,v=h.kind===y.h.NULL;if(h.kind===y.h.VARIABLE){var g=h.name.value;if(null==n||!j(n,g)){if(void 0!==c.defaultValue)i[f]=c.defaultValue;else if((0,E.zM)(p))throw new m._('Argument "'.concat(f,'" of required type "').concat((0,l.Z)(p),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),h);continue}v=null==n[g]}if(v&&(0,E.zM)(p))throw new m._('Argument "'.concat(f,'" of non-null type "').concat((0,l.Z)(p),'" ')+"must not be null.",h);var b=(0,N.u)(h,p,n);if(void 0===b)throw new m._('Argument "'.concat(f,'" has invalid value ').concat((0,C.S)(h),"."),h);i[f]=b}else if(void 0!==c.defaultValue)i[f]=c.defaultValue;else if((0,E.zM)(p))throw new m._('Argument "'.concat(f,'" of required type "').concat((0,l.Z)(p),'" ')+"was not provided.",t)}return i}function P(e,t,n){var r=t.directives&&(0,x.Z)(t.directives,(function(t){return t.name.value===e.name}));if(r)return R(e,r,n)}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function V(e,t,n,r,i,o,a,s){return B(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s})}function U(e){var t=B(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function B(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,s=e.operationName,u=e.fieldResolver,l=e.typeResolver;q(t,n,a);var c=H(t,n,r,i,a,s,u,l);if(Array.isArray(c))return{errors:c};var f=function(e,t,n){var r=S(e.schema,t),i=W(e,r,t.selectionSet,Object.create(null),Object.create(null)),a=void 0;try{var s="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),s=function(a,s){var u=i[s],l=h(r,s,t.name),c=$(e,t,n,u,l);return void 0===c?a:o(c)?c.then((function(e){return a[s]=e,a})):(a[s]=c,a)},u=Object.create(null),a.reduce((function(e,t){return o(e)?e.then((function(e){return s(e,t)})):s(e,t)}),u);var a,s,u}(e,r,n,a,i):Z(e,r,n,a,i);return o(s)?s.then(void 0,(function(t){return e.errors.push(t),Promise.resolve(null)})):s}catch(u){return e.errors.push(u),null}}(c,c.operation,r);return z(c,f)}function z(e,t){return o(t)?t.then((function(t){return z(e,t)})):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function q(e,t,n){t||(0,f.Z)(0,"Must provide document."),(0,u.J)(e),null==n||(0,p.Z)(n)||(0,f.Z)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function H(e,t,n,r,i,o,a,s){for(var u,l,c,f=Object.create(null),p=0,d=t.definitions;p<d.length;p++){var h=d[p];switch(h.kind){case y.h.OPERATION_DEFINITION:if(null==o){if(void 0!==c)return[new m._("Must provide operation name if query contains multiple operations.")];c=h}else(null===(u=h.name)||void 0===u?void 0:u.value)===o&&(c=h);break;case y.h.FRAGMENT_DEFINITION:f[h.name.value]=h}}if(!c)return null!=o?[new m._('Unknown operation named "'.concat(o,'".'))]:[new m._("Must provide an operation.")];var v=F(e,null!==(l=c.variableDefinitions)&&void 0!==l?l:[],null!==i&&void 0!==i?i:{},{maxErrors:50});return v.errors?v.errors:{schema:e,fragments:f,rootValue:n,contextValue:r,operation:c,variableValues:v.coerced,fieldResolver:null!==a&&void 0!==a?a:oe,typeResolver:null!==s&&void 0!==s?s:ie,errors:[]}}function Z(e,t,n,r,i){for(var a=Object.create(null),s=!1,u=0,l=Object.keys(i);u<l.length;u++){var c=l[u],f=$(e,t,n,i[c],h(r,c,t.name));void 0!==f&&(a[c]=f,o(f)&&(s=!0))}return s?function(e){var t=Object.keys(e),n=t.map((function(t){return e[t]}));return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return e[t[r]]=n,e}),Object.create(null))}))}(a):a}function W(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case y.h.FIELD:if(!G(e,s))continue;var u=(f=s).alias?f.alias.value:f.name.value;r[u]||(r[u]=[]),r[u].push(s);break;case y.h.INLINE_FRAGMENT:if(!G(e,s)||!Q(e,s,t))continue;W(e,t,s.selectionSet,r,i);break;case y.h.FRAGMENT_SPREAD:var l=s.name.value;if(i[l]||!G(e,s))continue;i[l]=!0;var c=e.fragments[l];if(!c||!Q(e,c,t))continue;W(e,t,c.selectionSet,r,i)}}var f;return r}function G(e,t){var n=P(w.QE,t,e.variableValues);if(!0===(null===n||void 0===n?void 0:n.if))return!1;var r=P(w.Yf,t,e.variableValues);return!1!==(null===r||void 0===r?void 0:r.if)}function Q(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=(0,k._)(e.schema,r);return i===n||!!(0,E.m0)(i)&&e.schema.isSubType(i,n)}function $(e,t,n,r,i){var a,s=r[0].name.value,u=ae(e.schema,t,s);if(u){var l=u.type,c=null!==(a=u.resolve)&&void 0!==a?a:e.fieldResolver,f=Y(e,u,r,t,i);try{var p,d=c(n,R(u,r[0],e.variableValues),e.contextValue,f);return p=o(d)?d.then((function(t){return J(e,l,r,f,i,t)})):J(e,l,r,f,i,d),o(p)?p.then(void 0,(function(t){return K((0,g.y)(t,r,v(i)),l,e)})):p}catch(h){return K((0,g.y)(h,r,v(i)),l,e)}}}function Y(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function K(e,t,n){if((0,E.zM)(t))throw e;return n.errors.push(e),null}function J(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,E.zM)(t)){var s=J(e,t.ofType,n,r,i,a);if(null===s)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return s}return null==a?null:(0,E.HG)(t)?function(e,t,n,r,i,a){var s=t.ofType,u=!1,l=(0,d.Z)(a,(function(t,a){var l=h(i,a,void 0);try{var c;return c=o(t)?t.then((function(t){return J(e,s,n,r,l,t)})):J(e,s,n,r,l,t),o(c)?(u=!0,c.then(void 0,(function(t){return K((0,g.y)(t,n,v(l)),s,e)}))):c}catch(f){return K((0,g.y)(f,n,v(l)),s,e)}}));if(null==l)throw new m._('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));return u?Promise.all(l):l}(e,t,n,r,i,a):(0,E.UT)(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat((0,l.Z)(e),'" but ')+"received: ".concat((0,l.Z)(t)));return n}(t,a):(0,E.m0)(t)?function(e,t,n,r,i,a){var s,u=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,l=e.contextValue,c=u(a,l,r,t);if(o(c))return c.then((function(o){return ee(e,X(o,e,t,n,r,a),n,r,i,a)}));return ee(e,X(c,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):(0,E.lp)(t)?ee(e,t,n,r,i,a):void(0,c.Z)(0,"Cannot complete value of unexpected output type: "+(0,l.Z)(t))}function X(e,t,n,r,i,o){if(null==e)throw new m._('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var a=(0,E.Zs)(e)?e.name:e;if("string"!==typeof a)throw new m._('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat((0,l.Z)(o),', received "').concat((0,l.Z)(e),'".'));var s=t.schema.getType(a);if(null==s)throw new m._('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(a,'" that does not exist inside schema.'),r);if(!(0,E.lp)(s))throw new m._('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(a,'".'),r);if(!t.schema.isSubType(n,s))throw new m._('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(n.name,'".'),r);return s}function ee(e,t,n,r,i,a){if(t.isTypeOf){var s=t.isTypeOf(a,e.contextValue,r);if(o(s))return s.then((function(r){if(!r)throw te(t,a,n);return ne(e,t,n,i,a)}));if(!s)throw te(t,a,n)}return ne(e,t,n,i,a)}function te(e,t,n){return new m._('Expected value of type "'.concat(e.name,'" but got: ').concat((0,l.Z)(t),"."),n)}function ne(e,t,n,r,i){return Z(e,t,i,r,re(e,t,n))}var re=function(e){var t;return function(n,r,i){t||(t=new WeakMap);var o,a=t.get(n);if(a){if(o=a.get(r)){var s=o.get(i);if(void 0!==s)return s}}else a=new WeakMap,t.set(n,a);o||(o=new WeakMap,a.set(r,o));var u=e(n,r,i);return o.set(i,u),u}}((function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=W(e,t,a.selectionSet,r,i))}return r}));var ie=function(e,t,n,r){if((0,p.Z)(e)&&"string"===typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],s=0;s<i.length;s++){var u=i[s];if(u.isTypeOf){var l=u.isTypeOf(e,t,n);if(o(l))a[s]=l;else if(l)return u.name}}return a.length?Promise.all(a).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},oe=function(e,t,n,r){if((0,p.Z)(e)||"function"===typeof e){var i=e[r.fieldName];return"function"===typeof i?e[r.fieldName](t,n,r):i}};function ae(e,t,n){return n===b.SchemaMetaFieldDef.name&&e.getQueryType()===t?b.SchemaMetaFieldDef:n===b.TypeMetaFieldDef.name&&e.getQueryType()===t?b.TypeMetaFieldDef:n===b.TypeNameMetaFieldDef.name?b.TypeNameMetaFieldDef:t.getFields()[n]}function se(e,t,n,r,i,o,a,s){var u=arguments;return new Promise((function(l){return l(1===u.length?le(e):le({schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:s}))}))}function ue(e,t,n,r,i,a,s,u){var l=le(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:s,typeResolver:u});if(o(l))throw new Error("GraphQL execution failed to complete synchronously.");return l}function le(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,l=e.variableValues,c=e.operationName,f=e.fieldResolver,p=e.typeResolver,d=(0,u.F)(n);if(d.length>0)return{errors:d};try{t=(0,a.Qc)(r)}catch(ht){return{errors:[ht]}}var h=(0,s.Gu)(n,t);return h.length>0?{errors:h}:V({schema:n,document:t,rootValue:i,contextValue:o,variableValues:l,operationName:c,fieldResolver:f,typeResolver:p})}var ce=n(3004),fe=n(3940),pe=n(365),de=n(2978),he=n(2282),ve=n(1224),me=n(5150),ge=n(5850),ye=n(344),be=n(9145),we=n(8635),Ee=n(8969);function ke(e){return"function"===typeof(null===e||void 0===e?void 0:e[Ee.PA])}function Se(e,t,n){var r,i,o,a,s,u,l=e[Ee.PA].call(e);function c(e){return e.done?e:xe(e.value,t).then(_e,i)}if("function"===typeof l.return&&(r=l.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(l).then(t,t)}),n){var f=n;o=function(e){return xe(e,f).then(_e,i)}}return a={next:function(){return l.next().then(c,o)},return:function(){return r?r.call(l).then(c,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"===typeof l.throw?l.throw(e).then(c,o):Promise.reject(e).catch(i)}},s=Ee.PA,u=function(){return this},s in a?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,a}function xe(e,t){return new Promise((function(n){return n(t(e))}))}function _e(e){return{value:e,done:!1}}function Te(e,t,n,r,i,o,a,s){return Ne(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:s})}function Ce(e){if(e instanceof m._)return{errors:[e]};throw e}function Ne(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,s=e.fieldResolver,u=e.subscribeFieldResolver,l=Oe(t,n,r,i,o,a,u),c=function(e){return V({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:s})};return l.then((function(e){return ke(e)?Se(e,c,Ce):e}))}function Oe(e,t,n,r,i,o,a){return q(e,t,i),new Promise((function(s){var u=H(e,t,n,r,i,o,a);s(Array.isArray(u)?{errors:u}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=S(t,n),a=W(e,o,n.selectionSet,Object.create(null),Object.create(null)),s=Object.keys(a)[0],u=a[s],c=u[0].name.value,f=ae(t,o,c);if(!f)throw new m._('The subscription field "'.concat(c,'" is not defined.'),u);var p=h(void 0,s,o.name),d=Y(e,f,u,o,p);return new Promise((function(t){var n,o=R(f,u[0],r),a=e.contextValue;t((null!==(n=f.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,d))})).then((function(e){if(e instanceof Error)throw(0,g.y)(e,u,v(p));if(!ke(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,l.Z)(e),"."));return e}),(function(e){throw(0,g.y)(e,u,v(p))}))}(u))})).catch(Ce)}function Ae(e){return{Field:function(t){var n=(0,E.xC)(e.getType());n&&(0,b.isIntrospectionType)(n)&&e.reportError(new m._('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var De=n(3623),Ie=n(2593),Le=n(9289),Me=n(51),Fe=n(3972),Re=n(9481),Pe=n(8623),je=n(6861),Ve=n(2754),Ue=n(187),Be=n(2605),ze=n(657),qe=n(5130),He=n(9565),Ze=n(6142),We=n(9012),Ge=n(186),Qe=n(8228),$e=n(2840),Ye=n(1698),Ke=n(1681),Je=n(8233),Xe=n(9494),et=n(8097),tt=n(2260),nt=n(2483),rt=n(3642),it=n(6267),ot=n(5399),at=n(1863),st=n(8548),ut=n(3848),lt=n(7546),ct=n(2873),ft=n(2202),pt=n(663);function dt(e){var t;e||(0,f.Z)(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}var ht=n(777);function vt(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===y.h.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}return n}var mt=n(9710);function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=U({schema:e,document:(0,a.Qc)((0,mt.K)(n))});return!r.errors&&r.data||(0,c.Z)(0),r.data}var wt=n(94),Et=n(7810);function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _t(e,t,n){(0,ce.EO)(e),null!=t&&t.kind===y.h.DOCUMENT||(0,f.Z)(0,"Must provide valid Document AST."),!0!==(null===n||void 0===n?void 0:n.assumeValid)&&!0!==(null===n||void 0===n?void 0:n.assumeValidSDL)&&(0,s.ED)(t,e);var r=e.toConfig(),i=Tt(r,t,n);return r===i?e:new ce.XO(i)}function Tt(e,t,n){for(var r,i,o,a,s,u=[],f=Object.create(null),p=[],d=[],h=0,v=t.definitions;h<v.length;h++){var m=v[h];if(m.kind===y.h.SCHEMA_DEFINITION)s=m;else if(m.kind===y.h.SCHEMA_EXTENSION)d.push(m);else if((0,we.zT)(m))u.push(m);else if((0,we.D$)(m)){var g=m.name.value,k=f[g];f[g]=k?k.concat([m]):[m]}else m.kind===y.h.DIRECTIVE_DEFINITION&&p.push(m)}if(0===Object.keys(f).length&&0===u.length&&0===p.length&&0===d.length&&null==s)return e;for(var S=Object.create(null),x=0,_=e.types;x<_.length;x++){var T=_[x];S[T.name]=R(T)}for(var C=0;C<u.length;C++){var A,D=u[C],I=D.name.value;S[I]=null!==(A=Ct[I])&&void 0!==A?A:Q(D)}var L=St(St({query:e.query&&F(e.query),mutation:e.mutation&&F(e.mutation),subscription:e.subscription&&F(e.subscription)},s&&V([s])),V(d));return St(St({description:null===(r=s)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},L),{},{types:(0,O.Z)(S),directives:[].concat(e.directives.map((function(e){var t=e.toConfig();return new w.NZ(St(St({},t),{},{args:(0,wt.Z)(t.args,j)}))})),p.map((function(e){var t=e.locations.map((function(e){return e.value}));return new w.NZ({name:e.name.value,description:At(e,n),locations:t,isRepeatable:e.repeatable,args:q(e.arguments),astNode:e})}))),extensions:void 0,astNode:null!==(o=s)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(a=null===n||void 0===n?void 0:n.assumeValid)&&void 0!==a&&a});function M(e){return(0,E.HG)(e)?new E.p2(M(e.ofType)):(0,E.zM)(e)?new E.bM(M(e.ofType)):F(e)}function F(e){return S[e.name]}function R(e){return(0,b.isIntrospectionType)(e)||(0,fe.u1)(e)?e:(0,E.KA)(e)?function(e){for(var t,n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a;i=null!==(a=Ot(r[o]))&&void 0!==a?a:i}return new E.n2(St(St({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,E.lp)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new E.h6(St(St({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(F),W(r))},fields:function(){return St(St({},(0,wt.Z)(n.fields,P)),z(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,E.oT)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new E.oW(St(St({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(F),W(r))},fields:function(){return St(St({},(0,wt.Z)(n.fields,P)),z(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,E.EN)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new E.Gp(St(St({},n),{},{types:function(){return[].concat(e.getTypes().map(F),G(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,E.EM)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=f[e.name])&&void 0!==t?t:[];return new E.mR(St(St({},n),{},{values:St(St({},n.values),Z(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):(0,E.hL)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=f[n.name])&&void 0!==t?t:[];return new E.sR(St(St({},n),{},{fields:function(){return St(St({},(0,wt.Z)(n.fields,(function(e){return St(St({},e),{},{type:M(e.type)})}))),H(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):void(0,c.Z)(0,"Unexpected type: "+(0,l.Z)(e))}function P(e){return St(St({},e),{},{type:M(e.type),args:(0,wt.Z)(e.args,j)})}function j(e){return St(St({},e),{},{type:M(e.type)})}function V(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=U(a.type)}return t}function U(e){var t,n=e.name.value,r=null!==(t=Ct[n])&&void 0!==t?t:S[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function B(e){return e.kind===y.h.LIST_TYPE?new E.p2(B(e.type)):e.kind===y.h.NON_NULL_TYPE?new E.bM(B(e.type)):U(e)}function z(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={type:B(s.type),description:At(s,n),args:q(s.arguments),deprecationReason:Nt(s),astNode:s}}return t}function q(e){for(var t=null!==e&&void 0!==e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=B(o.type);r[o.name.value]={type:a,description:At(o,n),defaultValue:(0,N.u)(o.defaultValue,a),deprecationReason:Nt(o),astNode:o}}return r}function H(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a],u=B(s.type);t[s.name.value]={type:u,description:At(s,n),defaultValue:(0,N.u)(s.defaultValue,u),deprecationReason:Nt(s),astNode:s}}return t}function Z(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var s=o[a];t[s.name.value]={description:At(s,n),deprecationReason:Nt(s),astNode:s}}return t}function W(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(U(a))}return t}function G(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(U(a))}return t}function Q(e){var t,r=e.name.value,i=At(e,n),o=null!==(t=f[r])&&void 0!==t?t:[];switch(e.kind){case y.h.OBJECT_TYPE_DEFINITION:var a=o,s=[e].concat(a);return new E.h6({name:r,description:i,interfaces:function(){return W(s)},fields:function(){return z(s)},astNode:e,extensionASTNodes:a});case y.h.INTERFACE_TYPE_DEFINITION:var u=o,p=[e].concat(u);return new E.oW({name:r,description:i,interfaces:function(){return W(p)},fields:function(){return z(p)},astNode:e,extensionASTNodes:u});case y.h.ENUM_TYPE_DEFINITION:var d=o,h=[e].concat(d);return new E.mR({name:r,description:i,values:Z(h),astNode:e,extensionASTNodes:d});case y.h.UNION_TYPE_DEFINITION:var v=o,m=[e].concat(v);return new E.Gp({name:r,description:i,types:function(){return G(m)},astNode:e,extensionASTNodes:v});case y.h.SCALAR_TYPE_DEFINITION:var g=o;return new E.n2({name:r,description:i,specifiedByUrl:Ot(e),astNode:e,extensionASTNodes:g});case y.h.INPUT_OBJECT_TYPE_DEFINITION:var b=o,w=[e].concat(b);return new E.sR({name:r,description:i,fields:function(){return H(w)},astNode:e,extensionASTNodes:b})}(0,c.Z)(0,"Unexpected type definition node: "+(0,l.Z)(e))}}var Ct=(0,_.Z)(fe.HS.concat(b.introspectionTypes),(function(e){return e.name}));function Nt(e){var t=P(w.fg,e);return null===t||void 0===t?void 0:t.reason}function Ot(e){var t=P(w.df,e);return null===t||void 0===t?void 0:t.url}function At(e,t){if(e.description)return e.description.value;if(!0===(null===t||void 0===t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(!t)return;var n=[],r=t.startToken.prev;for(;null!=r&&r.kind===ge.T.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}(e);if(void 0!==n)return(0,Et.W7)("\n"+n)}}function Dt(e,t){null!=e&&e.kind===y.h.DOCUMENT||(0,f.Z)(0,"Must provide valid Document AST."),!0!==(null===t||void 0===t?void 0:t.assumeValid)&&!0!==(null===t||void 0===t?void 0:t.assumeValidSDL)&&(0,s.zo)(e);var n=Tt({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}for(var a=n.directives,u=function(e){var t=w.V4[e];a.every((function(e){return e.name!==t.name}))&&a.push(t)},l=0;l<w.V4.length;l++)u(l);return new ce.XO(n)}function It(e,t){return Dt((0,a.Qc)(e,{noLocation:null===t||void 0===t?void 0:t.noLocation,allowLegacySDLEmptyFields:null===t||void 0===t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null===t||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null===t||void 0===t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null===t||void 0===t?void 0:t.commentDescriptions,assumeValidSDL:null===t||void 0===t?void 0:t.assumeValidSDL,assumeValid:null===t||void 0===t?void 0:t.assumeValid})}var Lt=n(7494),Mt=n(5293);function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e){var t=e.toConfig(),n=(0,Lt.Z)(Ut(t.types),(function(e){return e.name}),(function(e){if((0,E.KA)(e)||(0,b.isIntrospectionType)(e))return e;if((0,E.lp)(e)){var t=e.toConfig();return new E.h6(Rt(Rt({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return s(t.fields)}}))}if((0,E.oT)(e)){var n=e.toConfig();return new E.oW(Rt(Rt({},n),{},{interfaces:function(){return u(n.interfaces)},fields:function(){return s(n.fields)}}))}if((0,E.EN)(e)){var i=e.toConfig();return new E.Gp(Rt(Rt({},i),{},{types:function(){return u(i.types)}}))}if((0,E.EM)(e)){var o=e.toConfig();return new E.mR(Rt(Rt({},o),{},{values:Vt(o.values)}))}if((0,E.hL)(e)){var a=e.toConfig();return new E.sR(Rt(Rt({},a),{},{fields:function(){return Vt(a.fields,(function(e){return Rt(Rt({},e),{},{type:r(e.type)})}))}}))}(0,c.Z)(0,"Unexpected type: "+(0,l.Z)(e))}));return new ce.XO(Rt(Rt({},t),{},{types:(0,O.Z)(n),directives:Ut(t.directives).map((function(e){var t=e.toConfig();return new w.NZ(Rt(Rt({},t),{},{locations:Bt(t.locations,(function(e){return e})),args:a(t.args)}))})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return(0,E.HG)(e)?new E.p2(r(e.ofType)):(0,E.zM)(e)?new E.bM(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return Vt(e,(function(e){return Rt(Rt({},e),{},{type:r(e.type)})}))}function s(e){return Vt(e,(function(e){return Rt(Rt({},e),{},{type:r(e.type),args:a(e.args)})}))}function u(e){return Ut(e).map(i)}}function Vt(e,t){for(var n=Object.create(null),r=Bt(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function Ut(e){return Bt(e,(function(e){return e.name}))}function Bt(e,t){return e.slice().sort((function(e,n){var r=t(e),i=t(n);return(0,Mt.Z)(r,i)}))}var zt=n(4244);function qt(e,t){return Wt(e,(function(e){return!(0,w.xg)(e)}),Zt,t)}function Ht(e,t){return Wt(e,w.xg,b.isIntrospectionType,t)}function Zt(e){return!(0,fe.u1)(e)&&!(0,b.isIntrospectionType)(e)}function Wt(e,t,n,r){var i=e.getDirectives().filter(t),o=(0,O.Z)(e.getTypeMap()).filter(n);return[Gt(e)].concat(i.map((function(e){return function(e,t){return tn(t,e)+"directive @"+e.name+Jt(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),o.map((function(e){return Qt(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function Gt(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),tn({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function Qt(e,t){return(0,E.KA)(e)?function(e,t){return tn(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=e.specifiedByUrl,n=(0,zt.J)(t,fe.kH);return n||(0,c.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,C.S)(n)+")"}(e)}(e,t):(0,E.lp)(e)?function(e,t){return tn(t,e)+"type ".concat(e.name)+$t(e)+Yt(t,e)}(e,t):(0,E.oT)(e)?function(e,t){return tn(t,e)+"interface ".concat(e.name)+$t(e)+Yt(t,e)}(e,t):(0,E.EN)(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return tn(t,e)+"union "+e.name+r}(e,t):(0,E.EM)(e)?function(e,t){var n=e.getValues().map((function(e,n){return tn(t,e," ",!n)+" "+e.name+en(e.deprecationReason)}));return tn(t,e)+"enum ".concat(e.name)+Kt(n)}(e,t):(0,E.hL)(e)?function(e,t){var n=(0,O.Z)(e.getFields()).map((function(e,n){return tn(t,e," ",!n)+" "+Xt(e)}));return tn(t,e)+"input ".concat(e.name)+Kt(n)}(e,t):void(0,c.Z)(0,"Unexpected type: "+(0,l.Z)(e))}function $t(e){var t=e.getInterfaces();return t.length?" implements "+t.map((function(e){return e.name})).join(" & "):""}function Yt(e,t){return Kt((0,O.Z)(t.getFields()).map((function(t,n){return tn(e,t," ",!n)+" "+t.name+Jt(e,t.args," ")+": "+String(t.type)+en(t.deprecationReason)})))}function Kt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(Xt).join(", ")+")":"(\n"+t.map((function(t,r){return tn(e,t," "+n,!r)+" "+n+Xt(t)})).join("\n")+"\n"+n+")"}function Xt(e){var t=(0,zt.J)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat((0,C.S)(t))),n+en(e.deprecationReason)}function en(e){if(null==e)return"";var t=(0,zt.J)(e,fe.kH);return t&&e!==w.SY?" @deprecated(reason: "+(0,C.S)(t)+")":" @deprecated"}function tn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null===e||void 0===e?void 0:e.commentDescriptions))return nn(i,n,r);var o=i.length>70,a=(0,Et.LZ)(i,"",o),s=n&&!r?"\n"+n:n;return s+a.replace(/\n/g,"\n"+n)+"\n"}function nn(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}function rn(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t=t.concat(r.definitions)}return{kind:"Document",definitions:t}}function on(e){for(var t=[],n=Object.create(null),r=0,i=e.definitions;r<i.length;r++){var o=i[r];switch(o.kind){case y.h.OPERATION_DEFINITION:t.push(o);break;case y.h.FRAGMENT_DEFINITION:n[o.name.value]=sn(o.selectionSet)}}for(var a=Object.create(null),s=function(r){for(var i=t[r],o=new Set,s=0,u=sn(i.selectionSet);s<u.length;s++){var l=u[s];an(o,n,l)}var c=i.name?i.name.value:"";a[c]={kind:y.h.DOCUMENT,definitions:e.definitions.filter((function(e){return e===i||e.kind===y.h.FRAGMENT_DEFINITION&&o.has(e.name.value)}))}},u=0;u<t.length;u++)s(u);return a}function an(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r)for(var i=0;i<r.length;i++){an(e,t,r[i])}}}function sn(e){var t=[];return(0,ye.Vn)(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function un(e){for(var t=(0,de.T)(e)?e:new de.H(e),n=t.body,r=new me.h(t),i="",o=!1;r.advance().kind!==ge.T.EOF;){var a=r.token,s=a.kind,u=!(0,me.u)(a.kind);o&&(u||a.kind===ge.T.SPREAD)&&(i+=" ");var l=n.slice(a.start,a.end);s===ge.T.BLOCK_STRING?i+=ln(l):i+=l,o=u}return i}function ln(e){var t=e.slice(3,-3),n=(0,Et.W7)(t);(0,Et.Z2)(n)>0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),hn=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function vn(e,t){return gn(e,t).filter((function(e){return e.type in dn}))}function mn(e,t){return gn(e,t).filter((function(e){return e.type in hn}))}function gn(e,t){return[].concat(function(e,t){for(var n=[],r=Nn((0,O.Z)(e.getTypeMap()),(0,O.Z)(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:dn.TYPE_REMOVED,description:(0,fe.u1)(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var l=u[s],c=l[0],f=l[1];(0,E.EM)(c)&&(0,E.EM)(f)?n.push.apply(n,wn(c,f)):(0,E.EN)(c)&&(0,E.EN)(f)?n.push.apply(n,bn(c,f)):(0,E.hL)(c)&&(0,E.hL)(f)?n.push.apply(n,yn(c,f)):(0,E.lp)(c)&&(0,E.lp)(f)||(0,E.oT)(c)&&(0,E.oT)(f)?n.push.apply(n,kn(c,f).concat(En(c,f))):c.constructor!==f.constructor&&n.push({type:dn.TYPE_CHANGED_KIND,description:"".concat(c.name," changed from ")+"".concat(Tn(c)," to ").concat(Tn(f),".")})}return n}(e,t),function(e,t){for(var n=[],r=Nn(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:dn.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){for(var l=u[s],c=l[0],f=l[1],p=Nn(c.args,f.args),d=0,h=p.added;d<h.length;d++){var v=h[d];(0,E.dK)(v)&&n.push({type:dn.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(v.name," on directive ").concat(c.name," was added.")})}for(var m=0,g=p.removed;m<g.length;m++){var y=g[m];n.push({type:dn.DIRECTIVE_ARG_REMOVED,description:"".concat(y.name," was removed from ").concat(c.name,".")})}c.isRepeatable&&!f.isRepeatable&&n.push({type:dn.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(c.name,".")});for(var b=0,w=c.locations;b<w.length;b++){var k=w[b];-1===f.locations.indexOf(k)&&n.push({type:dn.DIRECTIVE_LOCATION_REMOVED,description:"".concat(k," was removed from ").concat(c.name,".")})}}return n}(e,t))}function yn(e,t){for(var n=[],r=Nn((0,O.Z)(e.getFields()),(0,O.Z)(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];(0,E.Wd)(a)?n.push({type:dn.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:hn.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var s=0,u=r.removed;s<u.length;s++){var l=u[s];n.push({type:dn.FIELD_REMOVED,description:"".concat(e.name,".").concat(l.name," was removed.")})}for(var c=0,f=r.persisted;c<f.length;c++){var p=f[c],d=p[0],h=p[1];_n(d.type,h.type)||n.push({type:dn.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(d.name," changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}return n}function bn(e,t){for(var n=[],r=Nn(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:hn.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var l=u[s];n.push({type:dn.TYPE_REMOVED_FROM_UNION,description:"".concat(l.name," was removed from union type ").concat(e.name,".")})}return n}function wn(e,t){for(var n=[],r=Nn(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:hn.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var l=u[s];n.push({type:dn.VALUE_REMOVED_FROM_ENUM,description:"".concat(l.name," was removed from enum type ").concat(e.name,".")})}return n}function En(e,t){for(var n=[],r=Nn(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:hn.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var s=0,u=r.removed;s<u.length;s++){var l=u[s];n.push({type:dn.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(l.name,".")})}return n}function kn(e,t){for(var n=[],r=Nn((0,O.Z)(e.getFields()),(0,O.Z)(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:dn.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var s=0,u=r.persisted;s<u.length;s++){var l=u[s],c=l[0],f=l[1];n.push.apply(n,Sn(e,c,f)),xn(c.type,f.type)||n.push({type:dn.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(c.name," changed type from ")+"".concat(String(c.type)," to ").concat(String(f.type),".")})}return n}function Sn(e,t,n){for(var r=[],i=Nn(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var s=a[o];r.push({type:dn.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(s.name," was removed.")})}for(var u=0,l=i.persisted;u<l.length;u++){var c=l[u],f=c[0],p=c[1];if(_n(f.type,p.type)){if(void 0!==f.defaultValue)if(void 0===p.defaultValue)r.push({type:hn.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," defaultValue was removed.")});else{var d=Cn(f.defaultValue,f.type),h=Cn(p.defaultValue,p.type);d!==h&&r.push({type:hn.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed defaultValue from ").concat(d," to ").concat(h,".")})}}else r.push({type:dn.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}for(var v=0,m=i.added;v<m.length;v++){var g=m[v];(0,E.dK)(g)?r.push({type:dn.REQUIRED_ARG_ADDED,description:"A required arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:hn.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function xn(e,t){return(0,E.HG)(e)?(0,E.HG)(t)&&xn(e.ofType,t.ofType)||(0,E.zM)(t)&&xn(e,t.ofType):(0,E.zM)(e)?(0,E.zM)(t)&&xn(e.ofType,t.ofType):(0,E.Zs)(t)&&e.name===t.name||(0,E.zM)(t)&&xn(e,t.ofType)}function _n(e,t){return(0,E.HG)(e)?(0,E.HG)(t)&&_n(e.ofType,t.ofType):(0,E.zM)(e)?(0,E.zM)(t)&&_n(e.ofType,t.ofType)||!(0,E.zM)(t)&&_n(e.ofType,t):(0,E.Zs)(t)&&e.name===t.name}function Tn(e){return(0,E.KA)(e)?"a Scalar type":(0,E.lp)(e)?"an Object type":(0,E.oT)(e)?"an Interface type":(0,E.EN)(e)?"a Union type":(0,E.EM)(e)?"an Enum type":(0,E.hL)(e)?"an Input type":void(0,c.Z)(0,"Unexpected type: "+(0,l.Z)(e))}function Cn(e,t){var n=(0,zt.J)(e,t);null!=n||(0,c.Z)(0);var r=(0,ye.Vn)(n,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort((function(e,t){return(0,Mt.Z)(e.name.value,t.name.value)})),fn(fn({},e),{},{fields:t})}});return(0,C.S)(r)}function Nn(e,t){for(var n=[],r=[],i=[],o=(0,_.Z)(e,(function(e){return e.name})),a=(0,_.Z)(t,(function(e){return e.name})),s=0;s<e.length;s++){var u=e[s],l=a[u.name];void 0===l?r.push(u):i.push([u,l])}for(var c=0;c<t.length;c++){var f=t[c];void 0===o[f.name]&&n.push(f)}return{added:n,persisted:i,removed:r}}function On(e,t){return(0,s.Gu)(e,t,[pt.r])}var An=n(6749),Dn=n(4528),In=n(4277),Ln=n(6527),Mn=n(9739)},4328:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6205),i=n(4187);function o(e){var t=e.prototype.toJSON;"function"===typeof t||(0,r.Z)(0),e.prototype.inspect=t,i.Z&&(e.prototype[i.Z]=t)}},3943:function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{Z:function(){return r}})},4701:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){var n="string"===typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}},7173:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4187);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.Z)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(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;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(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}(e)+"]";var r=n.map((function(n){return n+": "+a(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},6480:function(e,t){"use strict";t.Z=function(e,t){return e instanceof t}},6205:function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{Z:function(){return r}})},7770:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,{Z:function(){return i}})},8651:function(e,t,n){"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,{Z:function(){return r}})},7494:function(e,t,n){"use strict";function r(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}n.d(t,{Z:function(){return r}})},94:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1961);function i(e,t){for(var n=Object.create(null),i=0,o=(0,r.Z)(e);i<o.length;i++){var a=o[i],s=a[0],u=a[1];n[s]=t(u,s)}return n}},5293:function(e,t,n){"use strict";function r(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var a=e.charCodeAt(n),s=t.charCodeAt(r);if(o(a)&&o(s)){var u=0;do{++n,u=10*u+a-i,a=e.charCodeAt(n)}while(o(a)&&u>0);var l=0;do{++r,l=10*l+s-i,s=t.charCodeAt(r)}while(o(s)&&l>0);if(u<l)return-1;if(u>l)return 1}else{if(a<s)return-1;if(a>s)return 1;++n,++r}}return e.length-t.length}n.d(t,{Z:function(){return r}});var i=48;function o(e){return!isNaN(e)&&i<=e&&e<=57}},4187:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},1672:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8969);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==i(e))return null;if(Array.isArray(e))return e.map(t);var n=e[r.Xr];if("function"===typeof n){for(var o,a=n.call(e),s=[],u=0;!(o=a.next()).done;++u)s.push(t(o.value,u));return s}var l=e.length;if("number"===typeof l&&l>=0&&l%1===0){for(var c=[],f=0;f<l;++f){if(!Object.prototype.hasOwnProperty.call(e,f))return null;c.push(t(e[String(f)],f))}return c}return null}},4696:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5293);function i(e,t){for(var n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1,s=0;s<t.length;s++){var u=t[s],l=i.measure(u,a);void 0!==l&&(n[u]=l)}return Object.keys(n).sort((function(e,t){var i=n[e]-n[t];return 0!==i?i:(0,r.Z)(e,t)}))}var o=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=a(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var s=r.length,u=i.length;if(!(s-u>t)){for(var l=this._rows,c=0;c<=u;c++)l[0][c]=c;for(var f=1;f<=s;f++){for(var p=l[(f-1)%3],d=l[f%3],h=d[0]=f,v=1;v<=u;v++){var m=r[f-1]===i[v-1]?0:1,g=Math.min(p[v]+1,d[v-1]+1,p[v-1]+m);if(f>1&&v>1&&r[f-1]===i[v-2]&&r[f-2]===i[v-1]){var y=l[(f-2)%3][v-2];g=Math.min(g,y+1)}g<h&&(h=g),d[v]=g}if(h>t)return}var b=l[s%3][u];return b<=t?b:void 0}},e}();function a(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},9677:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1961);function i(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=(0,r.Z)(e);n<i.length;n++){var o=i[n],a=o[0],s=o[1];t[a]=s}return t}},365:function(e,t,n){"use strict";n.d(t,{UG:function(){return a},WU:function(){return o},Ye:function(){return i}});var r=n(4328),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();(0,r.Z)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"===typeof e.kind}(0,r.Z)(o)},7810:function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var s=t.length;s>a&&i(t[s-1]);)--s;return t.slice(a,s).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{LZ:function(){return a},W7:function(){return r},Z2:function(){return o}})},9145:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},3208:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},5150:function(e,t,n){"use strict";n.d(t,{h:function(){return s},u:function(){return u}});var r=n(777),i=n(365),o=n(5850),a=n(7810),s=function(){function e(e){var t=new i.WU(o.T.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.T.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=c(this,e)}while(e.kind===o.T.COMMENT);return e},e}();function u(e){return e===o.T.BANG||e===o.T.DOLLAR||e===o.T.AMP||e===o.T.PAREN_L||e===o.T.PAREN_R||e===o.T.SPREAD||e===o.T.COLON||e===o.T.EQUALS||e===o.T.AT||e===o.T.BRACKET_L||e===o.T.BRACKET_R||e===o.T.BRACE_L||e===o.T.PIPE||e===o.T.BRACE_R}function l(e){return isNaN(e)?o.T.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function c(e,t){for(var n=e.source,a=n.body,s=a.length,u=t.end;u<s;){var l=a.charCodeAt(u),c=e.line,h=1+u-e.lineStart;switch(l){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:10===a.charCodeAt(u+1)?u+=2:++u,++e.line,e.lineStart=u;continue;case 33:return new i.WU(o.T.BANG,u,u+1,c,h,t);case 35:return p(n,u,c,h,t);case 36:return new i.WU(o.T.DOLLAR,u,u+1,c,h,t);case 38:return new i.WU(o.T.AMP,u,u+1,c,h,t);case 40:return new i.WU(o.T.PAREN_L,u,u+1,c,h,t);case 41:return new i.WU(o.T.PAREN_R,u,u+1,c,h,t);case 46:if(46===a.charCodeAt(u+1)&&46===a.charCodeAt(u+2))return new i.WU(o.T.SPREAD,u,u+3,c,h,t);break;case 58:return new i.WU(o.T.COLON,u,u+1,c,h,t);case 61:return new i.WU(o.T.EQUALS,u,u+1,c,h,t);case 64:return new i.WU(o.T.AT,u,u+1,c,h,t);case 91:return new i.WU(o.T.BRACKET_L,u,u+1,c,h,t);case 93:return new i.WU(o.T.BRACKET_R,u,u+1,c,h,t);case 123:return new i.WU(o.T.BRACE_L,u,u+1,c,h,t);case 124:return new i.WU(o.T.PIPE,u,u+1,c,h,t);case 125:return new i.WU(o.T.BRACE_R,u,u+1,c,h,t);case 34:return 34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)?m(n,u,c,h,t,e):v(n,u,c,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d(n,u,l,c,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return y(n,u,c,h,t)}throw(0,r.h)(n,u,f(l))}var g=e.line,b=1+u-e.lineStart;return new i.WU(o.T.EOF,s,s,g,b,t)}function f(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(l(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(l(e),".")}function p(e,t,n,r,a){var s,u=e.body,l=t;do{s=u.charCodeAt(++l)}while(!isNaN(s)&&(s>31||9===s));return new i.WU(o.T.COMMENT,t,l,n,r,a,u.slice(t+1,l))}function d(e,t,n,a,s,u){var c=e.body,f=n,p=t,d=!1;if(45===f&&(f=c.charCodeAt(++p)),48===f){if((f=c.charCodeAt(++p))>=48&&f<=57)throw(0,r.h)(e,p,"Invalid number, unexpected digit after 0: ".concat(l(f),"."))}else p=h(e,p,f),f=c.charCodeAt(p);if(46===f&&(d=!0,f=c.charCodeAt(++p),p=h(e,p,f),f=c.charCodeAt(p)),69!==f&&101!==f||(d=!0,43!==(f=c.charCodeAt(++p))&&45!==f||(f=c.charCodeAt(++p)),p=h(e,p,f),f=c.charCodeAt(p)),46===f||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(f))throw(0,r.h)(e,p,"Invalid number, expected digit but got: ".concat(l(f),"."));return new i.WU(d?o.T.FLOAT:o.T.INT,t,p,a,s,u,c.slice(t,p))}function h(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw(0,r.h)(e,o,"Invalid number, expected digit but got: ".concat(l(a),"."))}function v(e,t,n,a,s){for(var u,c,f,p,d=e.body,h=t+1,v=h,m=0,y="";h<d.length&&!isNaN(m=d.charCodeAt(h))&&10!==m&&13!==m;){if(34===m)return y+=d.slice(v,h),new i.WU(o.T.STRING,t,h+1,n,a,s,y);if(m<32&&9!==m)throw(0,r.h)(e,h,"Invalid character within String: ".concat(l(m),"."));if(++h,92===m){switch(y+=d.slice(v,h-1),m=d.charCodeAt(h)){case 34:y+='"';break;case 47:y+="/";break;case 92:y+="\\";break;case 98:y+="\b";break;case 102:y+="\f";break;case 110:y+="\n";break;case 114:y+="\r";break;case 116:y+="\t";break;case 117:var b=(u=d.charCodeAt(h+1),c=d.charCodeAt(h+2),f=d.charCodeAt(h+3),p=d.charCodeAt(h+4),g(u)<<12|g(c)<<8|g(f)<<4|g(p));if(b<0){var w=d.slice(h+1,h+5);throw(0,r.h)(e,h,"Invalid character escape sequence: \\u".concat(w,"."))}y+=String.fromCharCode(b),h+=4;break;default:throw(0,r.h)(e,h,"Invalid character escape sequence: \\".concat(String.fromCharCode(m),"."))}v=++h}}throw(0,r.h)(e,h,"Unterminated string.")}function m(e,t,n,s,u,c){for(var f=e.body,p=t+3,d=p,h=0,v="";p<f.length&&!isNaN(h=f.charCodeAt(p));){if(34===h&&34===f.charCodeAt(p+1)&&34===f.charCodeAt(p+2))return v+=f.slice(d,p),new i.WU(o.T.BLOCK_STRING,t,p+3,n,s,u,(0,a.W7)(v));if(h<32&&9!==h&&10!==h&&13!==h)throw(0,r.h)(e,p,"Invalid character within String: ".concat(l(h),"."));10===h?(++p,++c.line,c.lineStart=p):13===h?(10===f.charCodeAt(p+1)?p+=2:++p,++c.line,c.lineStart=p):92===h&&34===f.charCodeAt(p+1)&&34===f.charCodeAt(p+2)&&34===f.charCodeAt(p+3)?(v+=f.slice(d,p)+'"""',d=p+=4):++p}throw(0,r.h)(e,p,"Unterminated string.")}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y(e,t,n,r,a){for(var s=e.body,u=s.length,l=t+1,c=0;l!==u&&!isNaN(c=s.charCodeAt(l))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++l;return new i.WU(o.T.NAME,t,l,n,r,a,s.slice(t,l))}},2282:function(e,t,n){"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,{k:function(){return r}})},4027:function(e,t,n){"use strict";n.d(t,{H2:function(){return f},Qc:function(){return c},gZ:function(){return p}});var r=n(777),i=n(3208),o=n(365),a=n(5850),s=n(2978),u=n(9145),l=n(5150);function c(e,t){return new d(e,t).parseDocument()}function f(e,t){var n=new d(e,t);n.expectToken(a.T.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(a.T.EOF),r}function p(e,t){var n=new d(e,t);n.expectToken(a.T.SOF);var r=n.parseTypeReference();return n.expectToken(a.T.EOF),r}var d=function(){function e(e,t){var n=(0,s.T)(e)?e:new s.H(e);this._lexer=new l.h(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(a.T.NAME);return{kind:i.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:i.h.DOCUMENT,definitions:this.many(a.T.SOF,this.parseDefinition,a.T.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(a.T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(a.T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(a.T.BRACE_L))return{kind:i.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(a.T.NAME)&&(t=this.parseName()),{kind:i.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(a.T.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(a.T.PAREN_L,this.parseVariableDefinition,a.T.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(a.T.DOLLAR),{kind:i.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.h.SELECTION_SET,selections:this.many(a.T.BRACE_L,this.parseSelection,a.T.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(a.T.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.T.COLON)?(e=r,t=this.parseName()):t=r,{kind:i.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.T.PAREN_L,t,a.T.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(a.T.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(a.T.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(a.T.NAME)?{kind:i.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:i.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case a.T.BRACKET_L:return this.parseList(e);case a.T.BRACE_L:return this.parseObject(e);case a.T.INT:return this._lexer.advance(),{kind:i.h.INT,value:t.value,loc:this.loc(t)};case a.T.FLOAT:return this._lexer.advance(),{kind:i.h.FLOAT,value:t.value,loc:this.loc(t)};case a.T.STRING:case a.T.BLOCK_STRING:return this.parseStringLiteral();case a.T.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:i.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:i.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:i.h.NULL,loc:this.loc(t)};default:return{kind:i.h.ENUM,value:t.value,loc:this.loc(t)}}case a.T.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.h.STRING,value:e.value,block:e.kind===a.T.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:i.h.LIST,values:this.any(a.T.BRACKET_L,(function(){return t.parseValueLiteral(e)}),a.T.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:i.h.OBJECT,fields:this.any(a.T.BRACE_L,(function(){return t.parseObjectField(e)}),a.T.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(a.T.COLON),{kind:i.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(a.T.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(a.T.AT),{kind:i.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(a.T.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(a.T.BRACKET_R),e={kind:i.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(a.T.BANG)?{kind:i.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:i.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===a.T.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(a.T.STRING)||this.peek(a.T.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);return{kind:i.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.T.COLON);var n=this.parseNamedType();return{kind:i.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(a.T.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(a.T.AMP)||this.peek(a.T.NAME));return t}return this.delimitedMany(a.T.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(a.T.BRACE_L)&&this._lexer.lookahead().kind===a.T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(a.T.BRACE_L,this.parseFieldDefinition,a.T.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.T.COLON);var o=this.parseTypeReference(),s=this.parseDirectives(!0);return{kind:i.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:s,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(a.T.PAREN_L,this.parseInputValueDef,a.T.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.T.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(a.T.EQUALS)&&(r=this.parseValueLiteral(!0));var s=this.parseDirectives(!0);return{kind:i.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:s,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:i.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(a.T.EQUALS)?this.delimitedMany(a.T.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:i.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseEnumValueDefinition,a.T.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:i.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(a.T.BRACE_L,this.parseInputValueDef,a.T.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===a.T.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(a.T.BRACE_L,this.parseOperationTypeDefinition,a.T.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:i.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:i.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.T.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var s=this.parseDirectiveLocations();return{kind:i.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:s,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(a.T.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==u.B[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new o.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.h)(this._lexer.source,t.start,"Expected ".concat(v(e),", found ").concat(h(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==a.T.NAME||t.value!==e)throw(0,r.h)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(h(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===a.T.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return(0,r.h)(this._lexer.source,t.start,"Unexpected ".concat(h(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function h(e){var t=e.value;return v(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function v(e){return(0,l.u)(e)?'"'.concat(e,'"'):e}},8635:function(e,t,n){"use strict";n.d(t,{D$:function(){return p},G4:function(){return l},Ir:function(){return i},VB:function(){return u},Wk:function(){return o},aU:function(){return f},nr:function(){return s},pO:function(){return a},zT:function(){return c}});var r=n(3208);function i(e){return o(e)||l(e)||f(e)}function o(e){return e.kind===r.h.OPERATION_DEFINITION||e.kind===r.h.FRAGMENT_DEFINITION}function a(e){return e.kind===r.h.FIELD||e.kind===r.h.FRAGMENT_SPREAD||e.kind===r.h.INLINE_FRAGMENT}function s(e){return e.kind===r.h.VARIABLE||e.kind===r.h.INT||e.kind===r.h.FLOAT||e.kind===r.h.STRING||e.kind===r.h.BOOLEAN||e.kind===r.h.NULL||e.kind===r.h.ENUM||e.kind===r.h.LIST||e.kind===r.h.OBJECT}function u(e){return e.kind===r.h.NAMED_TYPE||e.kind===r.h.LIST_TYPE||e.kind===r.h.NON_NULL_TYPE}function l(e){return e.kind===r.h.SCHEMA_DEFINITION||c(e)||e.kind===r.h.DIRECTIVE_DEFINITION}function c(e){return e.kind===r.h.SCALAR_TYPE_DEFINITION||e.kind===r.h.OBJECT_TYPE_DEFINITION||e.kind===r.h.INTERFACE_TYPE_DEFINITION||e.kind===r.h.UNION_TYPE_DEFINITION||e.kind===r.h.ENUM_TYPE_DEFINITION||e.kind===r.h.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.h.SCHEMA_EXTENSION||p(e)}function p(e){return e.kind===r.h.SCALAR_TYPE_EXTENSION||e.kind===r.h.OBJECT_TYPE_EXTENSION||e.kind===r.h.INTERFACE_TYPE_EXTENSION||e.kind===r.h.UNION_TYPE_EXTENSION||e.kind===r.h.ENUM_TYPE_EXTENSION||e.kind===r.h.INPUT_OBJECT_TYPE_EXTENSION}},1224:function(e,t,n){"use strict";n.d(t,{Q:function(){return i},z:function(){return o}});var r=n(2282);function i(e){return o(e.source,(0,r.k)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=s(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,u=t.line+o,l=1===t.line?n:0,c=t.column+l,f="".concat(e.name,":").concat(u,":").concat(c,"\n"),p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(c/80),v=c%80,m=[],g=0;g<d.length;g+=80)m.push(d.slice(g,g+80));return f+a([["".concat(u),m[0]]].concat(m.slice(1,h+1).map((function(e){return["",e]})),[[" ",s(v-1)+"^"],["",m[h+1]]]))}return f+a([["".concat(u-1),p[i-1]],["".concat(u),d],["",s(c-1)+"^"],["".concat(u+1),p[i+1]]])}function a(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return s(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function s(e){return Array(e+1).join(" ")}},2615:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(344),i=n(7810);function o(e){return(0,r.Vn)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=c("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?u([t,u([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+c(" = ",r)+c(" ",u(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=c("",t,": ")+n,s=a+c("(",u(r,", "),")");return s.length>80&&(s=a+c("(\n",f(u(r,"\n")),"\n)")),u([s,u(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",u(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return u(["...",c("on ",t),u(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(c("(",u(r,", "),")")," ")+"on ".concat(n," ").concat(c("",u(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+u(e.values,", ")+"]"},ObjectValue:function(e){return"{"+u(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",u(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:s((function(e){var t=e.directives,n=e.operationTypes;return u(["schema",u(t," "),l(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:s((function(e){return u(["scalar",e.name,u(e.directives," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["type",t,c("implements ",u(n," & ")),u(r," "),l(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?c("(\n",f(u(n,"\n")),"\n)"):c("(",u(n,", "),")"))+": "+r+c(" ",u(i," "))})),InputValueDefinition:s((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return u([t+": "+n,c("= ",r),u(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["interface",t,c("implements ",u(n," & ")),u(r," "),l(i)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.types;return u(["union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.values;return u(["enum",t,u(n," "),l(r)]," ")})),EnumValueDefinition:s((function(e){return u([e.name,u(e.directives," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,n=e.directives,r=e.fields;return u(["input",t,u(n," "),l(r)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?c("(\n",f(u(n,"\n")),"\n)"):c("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return u(["extend schema",u(t," "),l(n)]," ")},ScalarTypeExtension:function(e){return u(["extend scalar",e.name,u(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend type",t,c("implements ",u(n," & ")),u(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return u(["extend interface",t,c("implements ",u(n," & ")),u(r," "),l(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return u(["extend union",t,u(n," "),r&&0!==r.length?"= "+u(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return u(["extend enum",t,u(n," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return u(["extend input",t,u(n," "),l(r)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(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 l(e){return c("{\n",f(u(e,"\n")),"\n}")}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function f(e){return c(" ",e.replace(/\n/g,"\n "))}function p(e){return-1!==e.indexOf("\n")}function d(e){return null!=e&&e.some(p)}},2978:function(e,t,n){"use strict";n.d(t,{H:function(){return u},T:function(){return l}});var r=n(8969),i=n(7173),o=n(3943),a=n(6480);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||(0,o.Z)(0,"Body must be a string. Received: ".concat((0,i.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,o.Z)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,o.Z)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,a;return t=e,(n=[{key:r.YF,get:function(){return"Source"}}])&&s(t.prototype,n),a&&s(t,a),e}();function l(e){return(0,a.Z)(e,u)}},5850:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},344:function(e,t,n){"use strict";n.d(t,{$_:function(){return a},CK:function(){return l},Vn:function(){return s},j1:function(){return u}});var r=n(7173),i=n(365),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),c=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,m=[],g=[],y=e;do{var b=++f===c.length,w=b&&0!==p.length;if(b){if(h=0===g.length?void 0:m[m.length-1],d=v,v=g.pop(),w){if(u)d=d.slice();else{for(var E={},k=0,S=Object.keys(d);k<S.length;k++){var x=S[k];E[x]=d[x]}d=E}for(var _=0,T=0;T<p.length;T++){var C=p[T][0],N=p[T][1];u&&(C-=_),u&&null===N?(d.splice(C,1),_++):d[C]=N}}f=s.index,c=s.keys,p=s.edits,u=s.inArray,s=s.prev}else{if(h=v?u?f:c[f]:void 0,null===(d=v?v[h]:y)||void 0===d)continue;v&&m.push(h)}var O,A=void 0;if(!Array.isArray(d)){if(!(0,i.UG)(d))throw new Error("Invalid AST Node: ".concat((0,r.Z)(d),"."));var D=l(t,d.kind,b);if(D){if((A=D.call(t,d,h,v,m,g))===a)break;if(!1===A){if(!b){m.pop();continue}}else if(void 0!==A&&(p.push([h,A]),!b)){if(!(0,i.UG)(A)){m.pop();continue}d=A}}}if(void 0===A&&w&&p.push([h,d]),b)m.pop();else s={inArray:u,index:f,keys:c,edits:p,prev:s},c=(u=Array.isArray(d))?d:null!==(O=n[d.kind])&&void 0!==O?O:[],f=-1,p=[],v&&g.push(v),v=d}while(void 0!==s);return 0!==p.length&&(y=p[p.length-1][1]),y}function u(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=l(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function l(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}},2379:function(e,t,n){"use strict";var r=n(8969),i=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[r.Xr];if("function"===typeof i){for(var o,a=i.call(e),s=[],u=0;!(o=a.next()).done;++u)if(s.push(t.call(n,o.value,u)),u>9999999)throw new TypeError("Near-infinite iteration.");return s}var l=e.length;if("number"===typeof l&&l>=0&&l%1===0){for(var c=[],f=0;f<l;++f)Object.prototype.hasOwnProperty.call(e,f)&&c.push(t.call(n,e[f],f));return c}return[]};t.Z=i},5171:function(e,t){"use strict";var n=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}};t.Z=n},1794:function(e,t){"use strict";var n=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)};t.Z=n},1961:function(e,t){"use strict";var n=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};t.Z=n},6158:function(e,t){"use strict";var n=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};t.Z=n},8969:function(e,t,n){"use strict";n.d(t,{PA:function(){return i},Xr:function(){return r},YF:function(){return o}});var r="function"===typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"===typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},2572:function(e,t,n){"use strict";n.d(t,{mR:function(){return we},sR:function(){return ke},oW:function(){return ge},p2:function(){return K},bM:function(){return J},h6:function(){return ce},n2:function(){return le},Gp:function(){return ye},DM:function(){return ve},fU:function(){return Y},M_:function(){return Q},Zu:function(){return M},U8:function(){return R},qT:function(){return z},k2:function(){return A},H5:function(){return W},kS:function(){return j},rM:function(){return oe},E$:function(){return U},i_:function(){return ne},Z6:function(){return N},Gt:function(){return H},Pt:function(){return T},p_:function(){return x},rc:function(){return I},vX:function(){return ee},xC:function(){return ae},tf:function(){return re},m0:function(){return $},Gv:function(){return G},EM:function(){return L},hL:function(){return F},j$:function(){return B},oT:function(){return O},UT:function(){return Z},HG:function(){return P},Zs:function(){return ie},zM:function(){return V},zP:function(){return te},lp:function(){return C},SZ:function(){return q},dK:function(){return me},Wd:function(){return xe},KA:function(){return _},P9:function(){return S},EN:function(){return D},fw:function(){return X}});var r=n(1961),i=n(8969),o=n(7173),a=n(8651),s=n(94),u=n(9677),l=n(3943),c=n(7494),f=n(6480),p=n(4701),d=n(7770);function h(e){return e}var v=n(4328),m=n(4696),g=n(2343),y=n(3208),b=n(2615),w=n(4528);function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function S(e){return _(e)||C(e)||O(e)||D(e)||L(e)||F(e)||P(e)||V(e)}function x(e){if(!S(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL type."));return e}function _(e){return(0,f.Z)(e,le)}function T(e){if(!_(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Scalar type."));return e}function C(e){return(0,f.Z)(e,ce)}function N(e){if(!C(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Object type."));return e}function O(e){return(0,f.Z)(e,ge)}function A(e){if(!O(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Interface type."));return e}function D(e){return(0,f.Z)(e,ye)}function I(e){if(!D(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Union type."));return e}function L(e){return(0,f.Z)(e,we)}function M(e){if(!L(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Enum type."));return e}function F(e){return(0,f.Z)(e,ke)}function R(e){if(!F(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Input Object type."));return e}function P(e){return(0,f.Z)(e,K)}function j(e){if(!P(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL List type."));return e}function V(e){return(0,f.Z)(e,J)}function U(e){if(!V(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL Non-Null type."));return e}function B(e){return _(e)||L(e)||F(e)||X(e)&&B(e.ofType)}function z(e){if(!B(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL input type."));return e}function q(e){return _(e)||C(e)||O(e)||D(e)||L(e)||X(e)&&q(e.ofType)}function H(e){if(!q(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL output type."));return e}function Z(e){return _(e)||L(e)}function W(e){if(!Z(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL leaf type."));return e}function G(e){return C(e)||O(e)||D(e)}function Q(e){if(!G(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL composite type."));return e}function $(e){return O(e)||D(e)}function Y(e){if(!$(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL abstract type."));return e}function K(e){if(!(this instanceof K))return new K(e);this.ofType=x(e)}function J(e){if(!(this instanceof J))return new J(e);this.ofType=ne(e)}function X(e){return P(e)||V(e)}function ee(e){if(!X(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL wrapping type."));return e}function te(e){return S(e)&&!V(e)}function ne(e){if(!te(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL nullable type."));return e}function re(e){if(e)return V(e)?e.ofType:e}function ie(e){return _(e)||C(e)||O(e)||D(e)||L(e)||F(e)}function oe(e){if(!ie(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL named type."));return e}function ae(e){if(e){for(var t=e;X(t);)t=t.ofType;return t}}function se(e){return"function"===typeof e?e():e}function ue(e){return e&&e.length>0?e:void 0}K.prototype.toString=function(){return"["+String(this.ofType)+"]"},K.prototype.toJSON=function(){return this.toString()},Object.defineProperty(K.prototype,i.YF,{get:function(){return"GraphQLList"}}),(0,v.Z)(K),J.prototype.toString=function(){return String(this.ofType)+"!"},J.prototype.toJSON=function(){return this.toString()},Object.defineProperty(J.prototype,i.YF,{get:function(){return"GraphQLNonNull"}}),(0,v.Z)(J);var le=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:h;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:h,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i((0,w.M)(e,t))},this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),"string"===typeof e.name||(0,l.Z)(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||(0,l.Z)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,o.Z)(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||(0,l.Z)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,l.Z)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLScalarType"}}]),e}();(0,v.Z)(le);var ce=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._fields=pe.bind(void 0,e),this._interfaces=fe.bind(void 0,e),"string"===typeof e.name||(0,l.Z)(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,l.Z)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,o.Z)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLObjectType"}}]),e}();function fe(e){var t,n=null!==(t=se(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||(0,l.Z)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function pe(e){var t=se(e.fields);return de(t)||(0,l.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,s.Z)(t,(function(t,n){var i;de(t)||(0,l.Z)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||(0,l.Z)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||(0,l.Z)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,o.Z)(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};de(a)||(0,l.Z)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,r.Z)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,u.Z)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,u.Z)(t.extensions),astNode:t.astNode}}))}function de(e){return(0,d.Z)(e)&&!Array.isArray(e)}function he(e){return(0,s.Z)(e,(function(e){return{description:e.description,type:e.type,args:ve(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ve(e){return(0,c.Z)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function me(e){return V(e.type)&&void 0===e.defaultValue}(0,v.Z)(ce);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._fields=pe.bind(void 0,e),this._interfaces=fe.bind(void 0,e),"string"===typeof e.name||(0,l.Z)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||(0,l.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,o.Z)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLInterfaceType"}}]),e}();(0,v.Z)(ge);var ye=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._types=be.bind(void 0,e),"string"===typeof e.name||(0,l.Z)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||(0,l.Z)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,o.Z)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLUnionType"}}]),e}();function be(e){var t=se(e.types);return Array.isArray(t)||(0,l.Z)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}(0,v.Z)(ye);var we=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._values=(t=this.name,de(n=e.values)||(0,l.Z)(0,"".concat(t," values must be an object with value names as keys.")),(0,r.Z)(n).map((function(e){var n=e[0],r=e[1];return de(r)||(0,l.Z)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,o.Z)(r),".")),!("isDeprecated"in r)||(0,l.Z)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,u.Z)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,a.Z)(this._values,(function(e){return e.name})),"string"===typeof e.name||(0,l.Z)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g._('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,o.Z)(e)));return t.name},t.parseValue=function(e){if("string"!==typeof e){var t=(0,o.Z)(e);throw new g._('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ee(this,t))}var n=this.getValue(e);if(null==n)throw new g._('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==y.h.ENUM){var n=(0,b.S)(e);throw new g._('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ee(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=(0,b.S)(e);throw new g._('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,i),e)}return r.value},t.toConfig=function(){var e,t=(0,c.Z)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLEnumType"}}]),e}();function Ee(e,t){var n=e.getValues().map((function(e){return e.name})),r=(0,m.Z)(t,n);return(0,p.Z)("the enum value",r)}(0,v.Z)(we);var ke=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=ue(e.extensionASTNodes),this._fields=Se.bind(void 0,e),"string"===typeof e.name||(0,l.Z)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=(0,s.Z)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},k(e,[{key:i.YF,get:function(){return"GraphQLInputObjectType"}}]),e}();function Se(e){var t=se(e.fields);return de(t)||(0,l.Z)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,s.Z)(t,(function(t,n){return!("resolve"in t)||(0,l.Z)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,u.Z)(t.extensions),astNode:t.astNode}}))}function xe(e){return V(e.type)&&void 0===e.defaultValue}(0,v.Z)(ke)},4083:function(e,t,n){"use strict";n.d(t,{CO:function(){return m},NZ:function(){return g},QE:function(){return b},SY:function(){return w},V4:function(){return S},Yf:function(){return y},df:function(){return k},fg:function(){return E},wX:function(){return v},xg:function(){return x}});var r=n(1961),i=n(8969),o=n(7173),a=n(9677),s=n(3943),u=n(6480),l=n(7770),c=n(4328),f=n(9145),p=n(3940),d=n(2572);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(0,u.Z)(e,g)}function m(e){if(!v(e))throw new Error("Expected ".concat((0,o.Z)(e)," to be a GraphQL directive."));return e}var g=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&(0,a.Z)(e.extensions),this.astNode=e.astNode,e.name||(0,s.Z)(0,"Directive must be named."),Array.isArray(e.locations)||(0,s.Z)(0,"@".concat(e.name," locations must be an Array."));var i=null!==(n=e.args)&&void 0!==n?n:{};(0,l.Z)(i)&&!Array.isArray(i)||(0,s.Z)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=(0,r.Z)(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,a.Z)(n.extensions),astNode:n.astNode}}))}var t,n,o,u=e.prototype;return u.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:(0,d.DM)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},u.toString=function(){return"@"+this.name},u.toJSON=function(){return this.toString()},t=e,(n=[{key:i.YF,get:function(){return"GraphQLDirective"}}])&&h(t.prototype,n),o&&h(t,o),e}();(0,c.Z)(g);var y=new g({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[f.B.FIELD,f.B.FRAGMENT_SPREAD,f.B.INLINE_FRAGMENT],args:{if:{type:new d.bM(p.EZ),description:"Included when true."}}}),b=new g({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[f.B.FIELD,f.B.FRAGMENT_SPREAD,f.B.INLINE_FRAGMENT],args:{if:{type:new d.bM(p.EZ),description:"Skipped when true."}}}),w="No longer supported",E=new g({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[f.B.FIELD_DEFINITION,f.B.ARGUMENT_DEFINITION,f.B.INPUT_FIELD_DEFINITION,f.B.ENUM_VALUE],args:{reason:{type:p.kH,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:w}}}),k=new g({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[f.B.SCALAR],args:{url:{type:new d.bM(p.kH),description:"The URL that specifies the behaviour of this scalar."}}}),S=Object.freeze([y,b,E,k]);function x(e){return S.some((function(t){return t.name===e.name}))}},8979:function(e,t,n){"use strict";n.r(t),n.d(t,{SchemaMetaFieldDef:function(){return w},TypeKind:function(){return y},TypeMetaFieldDef:function(){return E},TypeNameMetaFieldDef:function(){return k},__Directive:function(){return p},__DirectiveLocation:function(){return d},__EnumValue:function(){return g},__Field:function(){return v},__InputValue:function(){return m},__Schema:function(){return f},__Type:function(){return h},__TypeKind:function(){return b},introspectionTypes:function(){return S},isIntrospectionType:function(){return x}});var r=n(6158),i=n(7173),o=n(6205),a=n(2615),s=n(9145),u=n(4244),l=n(3940),c=n(2572),f=new c.h6({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:l.kH,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new c.bM(new c.p2(new c.bM(h))),resolve:function(e){return(0,r.Z)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new c.bM(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new c.bM(new c.p2(new c.bM(p))),resolve:function(e){return e.getDirectives()}}}}}),p=new c.h6({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},isRepeatable:{type:new c.bM(l.EZ),resolve:function(e){return e.isRepeatable}},locations:{type:new c.bM(new c.p2(new c.bM(d))),resolve:function(e){return e.locations}},args:{type:new c.bM(new c.p2(new c.bM(m))),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),d=new c.mR({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:s.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:s.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:s.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:s.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:s.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:s.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:s.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:s.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:s.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:s.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:s.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:s.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:s.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:s.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:s.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:s.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:s.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:s.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:s.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new c.h6({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new c.bM(b),resolve:function(e){return(0,c.KA)(e)?y.SCALAR:(0,c.lp)(e)?y.OBJECT:(0,c.oT)(e)?y.INTERFACE:(0,c.EN)(e)?y.UNION:(0,c.EM)(e)?y.ENUM:(0,c.hL)(e)?y.INPUT_OBJECT:(0,c.HG)(e)?y.LIST:(0,c.zM)(e)?y.NON_NULL:void(0,o.Z)(0,'Unexpected type: "'.concat((0,i.Z)(e),'".'))}},name:{type:l.kH,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:l.kH,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:l.kH,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new c.p2(new c.bM(v)),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.lp)(e)||(0,c.oT)(e)){var i=(0,r.Z)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new c.p2(new c.bM(h)),resolve:function(e){if((0,c.lp)(e)||(0,c.oT)(e))return e.getInterfaces()}},possibleTypes:{type:new c.p2(new c.bM(h)),resolve:function(e,t,n,r){var i=r.schema;if((0,c.m0)(e))return i.getPossibleTypes(e)}},enumValues:{type:new c.p2(new c.bM(g)),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.EM)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new c.p2(new c.bM(m)),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.hL)(e)){var i=(0,r.Z)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),v=new c.h6({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},args:{type:new c.bM(new c.p2(new c.bM(m))),args:{includeDeprecated:{type:l.EZ,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new c.bM(h),resolve:function(e){return e.type}},isDeprecated:{type:new c.bM(l.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:l.kH,resolve:function(e){return e.deprecationReason}}}}}),m=new c.h6({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},type:{type:new c.bM(h),resolve:function(e){return e.type}},defaultValue:{type:l.kH,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=e.defaultValue,r=(0,u.J)(n,t);return r?(0,a.S)(r):null}},isDeprecated:{type:new c.bM(l.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:l.kH,resolve:function(e){return e.deprecationReason}}}}}),g=new c.h6({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new c.bM(l.kH),resolve:function(e){return e.name}},description:{type:l.kH,resolve:function(e){return e.description}},isDeprecated:{type:new c.bM(l.EZ),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:l.kH,resolve:function(e){return e.deprecationReason}}}}}),y=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new c.mR({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),w={name:"__schema",type:new c.bM(f),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},E={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new c.bM(l.kH),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},k={name:"__typename",type:new c.bM(l.kH),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},S=Object.freeze([f,p,d,h,v,m,g,b]);function x(e){return S.some((function(t){var n=t.name;return e.name===n}))}},3940:function(e,t,n){"use strict";n.d(t,{EZ:function(){return g},av:function(){return h},km:function(){return y},_o:function(){return d},kH:function(){return m},u1:function(){return w},HS:function(){return b}});var r=n(1794),i=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},o=n(7173),a=n(7770),s=n(3208),u=n(2615),l=n(2343),c=n(2572),f=2147483647,p=-2147483648;var d=new c.n2({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=v(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!i(n))throw new l._("Int cannot represent non-integer value: ".concat((0,o.Z)(t)));if(n>f||n<p)throw new l._("Int cannot represent non 32-bit signed integer value: "+(0,o.Z)(t));return n},parseValue:function(e){if(!i(e))throw new l._("Int cannot represent non-integer value: ".concat((0,o.Z)(e)));if(e>f||e<p)throw new l._("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==s.h.INT)throw new l._("Int cannot represent non-integer value: ".concat((0,u.S)(e)),e);var t=parseInt(e.value,10);if(t>f||t<p)throw new l._("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}});var h=new c.n2({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=v(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!(0,r.Z)(n))throw new l._("Float cannot represent non numeric value: ".concat((0,o.Z)(t)));return n},parseValue:function(e){if(!(0,r.Z)(e))throw new l._("Float cannot represent non numeric value: ".concat((0,o.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==s.h.FLOAT&&e.kind!==s.h.INT)throw new l._("Float cannot represent non numeric value: ".concat((0,u.S)(e)),e);return parseFloat(e.value)}});function v(e){if((0,a.Z)(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!(0,a.Z)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}var m=new c.n2({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=v(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if((0,r.Z)(t))return t.toString();throw new l._("String cannot represent value: ".concat((0,o.Z)(e)))},parseValue:function(e){if("string"!==typeof e)throw new l._("String cannot represent a non string value: ".concat((0,o.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==s.h.STRING)throw new l._("String cannot represent a non string value: ".concat((0,u.S)(e)),e);return e.value}});var g=new c.n2({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=v(e);if("boolean"===typeof t)return t;if((0,r.Z)(t))return 0!==t;throw new l._("Boolean cannot represent a non boolean value: ".concat((0,o.Z)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new l._("Boolean cannot represent a non boolean value: ".concat((0,o.Z)(e)));return e},parseLiteral:function(e){if(e.kind!==s.h.BOOLEAN)throw new l._("Boolean cannot represent a non boolean value: ".concat((0,u.S)(e)),e);return e.value}});var y=new c.n2({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=v(e);if("string"===typeof t)return t;if(i(t))return String(t);throw new l._("ID cannot represent value: ".concat((0,o.Z)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(i(e))return e.toString();throw new l._("ID cannot represent value: ".concat((0,o.Z)(e)))},parseLiteral:function(e){if(e.kind!==s.h.STRING&&e.kind!==s.h.INT)throw new l._("ID cannot represent a non-string and non-integer value: "+(0,u.S)(e),e);return e.value}}),b=Object.freeze([m,d,h,g,y]);function w(e){return b.some((function(t){var n=t.name;return e.name===n}))}},3004:function(e,t,n){"use strict";n.d(t,{EO:function(){return g},XO:function(){return y},nN:function(){return m}});var r=n(5171),i=n(2379),o=n(6158),a=n(8969),s=n(7173),u=n(9677),l=n(3943),c=n(6480),f=n(7770),p=n(8979),d=n(4083),h=n(2572);function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(0,c.Z)(e,y)}function g(e){if(!m(e))throw new Error("Expected ".concat((0,s.Z)(e)," to be a GraphQL schema."));return e}var y=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,f.Z)(e)||(0,l.Z)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,l.Z)(0,'"types" must be Array if provided but got: '.concat((0,s.Z)(e.types),".")),!e.directives||Array.isArray(e.directives)||(0,l.Z)(0,'"directives" must be Array if provided but got: '+"".concat((0,s.Z)(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&(0,u.Z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:d.V4;var n=new Set(e.types);if(null!=e.types)for(var r=0,o=e.types;r<o.length;r++){var a=o[r];n.delete(a),b(a,n)}null!=this._queryType&&b(this._queryType,n),null!=this._mutationType&&b(this._mutationType,n),null!=this._subscriptionType&&b(this._subscriptionType,n);for(var c=0,v=this._directives;c<v.length;c++){var m=v[c];if((0,d.wX)(m))for(var g=0,y=m.args;g<y.length;g++){b(y[g].type,n)}}b(p.__Schema,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var w=0,E=(0,i.Z)(n);w<E.length;w++){var k=E[w];if(null!=k){var S=k.name;if(S||(0,l.Z)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[S])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(S,'".'));if(this._typeMap[S]=k,(0,h.oT)(k))for(var x=0,_=k.getInterfaces();x<_.length;x++){var T=_[x];if((0,h.oT)(T)){var C=this._implementationsMap[T.name];void 0===C&&(C=this._implementationsMap[T.name]={objects:[],interfaces:[]}),C.interfaces.push(k)}}else if((0,h.lp)(k))for(var N=0,O=k.getInterfaces();N<O.length;N++){var A=O[N];if((0,h.oT)(A)){var D=this._implementationsMap[A.name];void 0===D&&(D=this._implementationsMap[A.name]={objects:[],interfaces:[]}),D.objects.push(k)}}}}}var t,n,c,m=e.prototype;return m.getQueryType=function(){return this._queryType},m.getMutationType=function(){return this._mutationType},m.getSubscriptionType=function(){return this._subscriptionType},m.getTypeMap=function(){return this._typeMap},m.getType=function(e){return this.getTypeMap()[e]},m.getPossibleTypes=function(e){return(0,h.EN)(e)?e.getTypes():this.getImplementations(e).objects},m.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}},m.isPossibleType=function(e,t){return this.isSubType(e,t)},m.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,h.EN)(e))for(var r=0,i=e.getTypes();r<i.length;r++){n[i[r].name]=!0}else{for(var o=this.getImplementations(e),a=0,s=o.objects;a<s.length;a++){n[s[a].name]=!0}for(var u=0,l=o.interfaces;u<l.length;u++){n[l[u].name]=!0}}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},m.getDirectives=function(){return this._directives},m.getDirective=function(e){return(0,r.Z)(this.getDirectives(),(function(t){return t.name===e}))},m.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:(0,o.Z)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:a.YF,get:function(){return"GraphQLSchema"}}])&&v(t.prototype,n),c&&v(t,c),e}();function b(e,t){var n=(0,h.xC)(e);if(!t.has(n))if(t.add(n),(0,h.EN)(n))for(var r=0,i=n.getTypes();r<i.length;r++){b(i[r],t)}else if((0,h.lp)(n)||(0,h.oT)(n)){for(var a=0,s=n.getInterfaces();a<s.length;a++){b(s[a],t)}for(var u=0,l=(0,o.Z)(n.getFields());u<l.length;u++){var c=l[u];b(c.type,t);for(var f=0,p=c.args;f<p.length;f++){b(p[f].type,t)}}}else if((0,h.hL)(n))for(var d=0,v=(0,o.Z)(n.getFields());d<v.length;d++){b(v[d].type,t)}return t}},7477:function(e,t,n){"use strict";n.d(t,{F:function(){return h},J:function(){return v}});var r=n(5171),i=n(6158),o=n(7173),a=n(2343),s=n(8425),u=n(9739),l=n(6527),c=n(3004),f=n(8979),p=n(4083),d=n(2572);function h(e){if((0,c.EO)(e),e.__validationErrors)return e.__validationErrors;var t=new m(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!(0,d.lp)(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat((0,o.Z)(n),"."),null!==(r=g(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,a=t.getMutationType();a&&!(0,d.lp)(a)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,o.Z)(a),"."),null!==(i=g(t,"mutation"))&&void 0!==i?i:a.astNode);var s,u=t.getSubscriptionType();u&&!(0,d.lp)(u)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,o.Z)(u),"."),null!==(s=g(t,"subscription"))&&void 0!==s?s:u.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if((0,p.wX)(r)){y(e,r);for(var i=0,a=r.args;i<a.length;i++){var s,u=a[i];if(y(e,u),(0,d.j$)(u.type)||e.reportError("The type of @".concat(r.name,"(").concat(u.name,":) must be Input Type ")+"but got: ".concat((0,o.Z)(u.type),"."),u.astNode),(0,d.dK)(u)&&null!=u.deprecationReason)e.reportError("Required argument @".concat(r.name,"(").concat(u.name,":) cannot be deprecated."),[A(u.astNode),null===(s=u.astNode)||void 0===s?void 0:s.type])}}else e.reportError("Expected directive but got: ".concat((0,o.Z)(r),"."),null===r||void 0===r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return o;function o(a){if(!t[a.name]){t[a.name]=!0,r[a.name]=n.length;for(var s=(0,i.Z)(a.getFields()),u=0;u<s.length;u++){var l=s[u];if((0,d.zM)(l.type)&&(0,d.hL)(l.type.ofType)){var c=l.type.ofType,f=r[c.name];if(n.push(l),void 0===f)o(c);else{var p=n.slice(f),h=p.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(h,'".'),p.map((function(e){return e.astNode})))}n.pop()}}r[a.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,a=(0,i.Z)(n);r<a.length;r++){var s=a[r];(0,d.Zs)(s)?((0,f.isIntrospectionType)(s)||y(e,s),(0,d.lp)(s)||(0,d.oT)(s)?(b(e,s),w(e,s)):(0,d.EN)(s)?S(e,s):(0,d.EM)(s)?x(e,s):(0,d.hL)(s)&&(_(e,s),t(s))):e.reportError("Expected GraphQL named type but got: ".concat((0,o.Z)(s),"."),s.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function v(e){var t=h(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var m=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new a._(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function g(e,t){for(var n=C(e,(function(e){return e.operationTypes})),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function y(e,t){var n=(0,u.u)(t.name);n&&e.addError((0,s.y)(n,t.astNode))}function b(e,t){var n=(0,i.Z)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),T(t));for(var r=0;r<n.length;r++){var a,s=n[r];if(y(e,s),!(0,d.SZ)(s.type))e.reportError("The type of ".concat(t.name,".").concat(s.name," must be Output Type ")+"but got: ".concat((0,o.Z)(s.type),"."),null===(a=s.astNode)||void 0===a?void 0:a.type);for(var u=0,l=s.args;u<l.length;u++){var c,f,p=l[u],h=p.name;if(y(e,p),!(0,d.j$)(p.type))e.reportError("The type of ".concat(t.name,".").concat(s.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat((0,o.Z)(p.type),"."),null===(c=p.astNode)||void 0===c?void 0:c.type);if((0,d.dK)(p)&&null!=p.deprecationReason)e.reportError("Required argument ".concat(t.name,".").concat(s.name,"(").concat(h,":) cannot be deprecated."),[A(p.astNode),null===(f=p.astNode)||void 0===f?void 0:f.type])}}}function w(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var a=i[r];(0,d.oT)(a)?t!==a?n[a.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(a.name," once."),N(t,a)):(n[a.name]=!0,k(e,t,a),E(e,t,a)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),N(t,a)):e.reportError("Type ".concat((0,o.Z)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,o.Z)(a),"."),N(t,a))}}function E(e,t,n){for(var a=t.getFields(),s=0,u=(0,i.Z)(n.getFields());s<u.length;s++){var c=u[s],f=c.name,p=a[f];if(p){var h,v;if(!(0,l.uJ)(e.schema,p.type,c.type))e.reportError("Interface field ".concat(n.name,".").concat(f," expects type ")+"".concat((0,o.Z)(c.type)," but ").concat(t.name,".").concat(f," ")+"is type ".concat((0,o.Z)(p.type),"."),[null===(h=c.astNode)||void 0===h?void 0:h.type,null===(v=p.astNode)||void 0===v?void 0:v.type]);for(var m=function(i,a){var s,u,c=a[i],d=c.name,h=(0,r.Z)(p.args,(function(e){return e.name===d}));if(!h)return e.reportError("Interface field argument ".concat(n.name,".").concat(f,"(").concat(d,":) expected but ").concat(t.name,".").concat(f," does not provide it."),[c.astNode,p.astNode]),"continue";(0,l._7)(c.type,h.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(f,"(").concat(d,":) ")+"expects type ".concat((0,o.Z)(c.type)," but ")+"".concat(t.name,".").concat(f,"(").concat(d,":) is type ")+"".concat((0,o.Z)(h.type),"."),[null===(s=c.astNode)||void 0===s?void 0:s.type,null===(u=h.astNode)||void 0===u?void 0:u.type])},g=0,y=c.args;g<y.length;g++)m(g,y);for(var b=function(i,o){var a=o[i],s=a.name;!(0,r.Z)(c.args,(function(e){return e.name===s}))&&(0,d.dK)(a)&&e.reportError("Object field ".concat(t.name,".").concat(f," includes required argument ").concat(s," that is missing from the Interface field ").concat(n.name,".").concat(f,"."),[a.astNode,c.astNode])},w=0,E=p.args;w<E.length;w++)b(w,E)}else e.reportError("Interface field ".concat(n.name,".").concat(f," expected but ").concat(t.name," does not provide it."),[c.astNode].concat(T(t)))}}function k(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(N(n,a),N(t,n)))}}function S(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),T(t));for(var r=Object.create(null),i=0;i<n.length;i++){var a=n[i];r[a.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(a.name," once."),O(t,a.name)):(r[a.name]=!0,(0,d.lp)(a)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,o.Z)(a),"."),O(t,String(a))))}}function x(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),T(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;y(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function _(e,t){var n=(0,i.Z)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),T(t));for(var r=0;r<n.length;r++){var a,s,u=n[r];if(y(e,u),!(0,d.j$)(u.type))e.reportError("The type of ".concat(t.name,".").concat(u.name," must be Input Type ")+"but got: ".concat((0,o.Z)(u.type),"."),null===(a=u.astNode)||void 0===a?void 0:a.type);if((0,d.Wd)(u)&&null!=u.deprecationReason)e.reportError("Required input field ".concat(t.name,".").concat(u.name," cannot be deprecated."),[A(u.astNode),null===(s=u.astNode)||void 0===s?void 0:s.type])}}function T(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!==n&&void 0!==n?n:[]}function C(e,t){for(var n=[],r=0,i=T(e);r<i.length;r++){var o,a=i[r];n=n.concat(null!==(o=t(a))&&void 0!==o?o:[])}return n}function N(e,t){return C(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function O(e,t){return C(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}function A(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return e.name.value===p.fg.name}))}},4277:function(e,t,n){"use strict";n.d(t,{a:function(){return c},y:function(){return p}});var r=n(5171),i=n(3208),o=n(365),a=n(344),s=n(2572),u=n(8979),l=n(3696),c=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==t&&void 0!==t?t:f,n&&((0,s.j$)(n)&&this._inputTypeStack.push(n),(0,s.Gv)(n)&&this._parentTypeStack.push(n),(0,s.SZ)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case i.h.SELECTION_SET:var n=(0,s.xC)(this.getType());this._parentTypeStack.push((0,s.Gv)(n)?n:void 0);break;case i.h.FIELD:var o,a,u=this.getParentType();u&&(o=this._getFieldDef(t,u,e))&&(a=o.type),this._fieldDefStack.push(o),this._typeStack.push((0,s.SZ)(a)?a:void 0);break;case i.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.h.OPERATION_DEFINITION:var c;switch(e.operation){case"query":c=t.getQueryType();break;case"mutation":c=t.getMutationType();break;case"subscription":c=t.getSubscriptionType()}this._typeStack.push((0,s.lp)(c)?c:void 0);break;case i.h.INLINE_FRAGMENT:case i.h.FRAGMENT_DEFINITION:var f=e.typeCondition,p=f?(0,l._)(t,f):(0,s.xC)(this.getType());this._typeStack.push((0,s.SZ)(p)?p:void 0);break;case i.h.VARIABLE_DEFINITION:var d=(0,l._)(t,e.type);this._inputTypeStack.push((0,s.j$)(d)?d:void 0);break;case i.h.ARGUMENT:var h,v,m,g=null!==(h=this.getDirective())&&void 0!==h?h:this.getFieldDef();g&&(v=(0,r.Z)(g.args,(function(t){return t.name===e.name.value})))&&(m=v.type),this._argument=v,this._defaultValueStack.push(v?v.defaultValue:void 0),this._inputTypeStack.push((0,s.j$)(m)?m:void 0);break;case i.h.LIST:var y=(0,s.tf)(this.getInputType()),b=(0,s.HG)(y)?y.ofType:y;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,s.j$)(b)?b:void 0);break;case i.h.OBJECT_FIELD:var w,E,k=(0,s.xC)(this.getInputType());(0,s.hL)(k)&&(E=k.getFields()[e.name.value])&&(w=E.type),this._defaultValueStack.push(E?E.defaultValue:void 0),this._inputTypeStack.push((0,s.j$)(w)?w:void 0);break;case i.h.ENUM:var S,x=(0,s.xC)(this.getInputType());(0,s.EM)(x)&&(S=x.getValue(e.value)),this._enumValue=S}},t.leave=function(e){switch(e.kind){case i.h.SELECTION_SET:this._parentTypeStack.pop();break;case i.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.h.DIRECTIVE:this._directive=null;break;case i.h.OPERATION_DEFINITION:case i.h.INLINE_FRAGMENT:case i.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.h.LIST:case i.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.h.ENUM:this._enumValue=null}},e}();function f(e,t,n){var r=n.name.value;return r===u.SchemaMetaFieldDef.name&&e.getQueryType()===t?u.SchemaMetaFieldDef:r===u.TypeMetaFieldDef.name&&e.getQueryType()===t?u.TypeMetaFieldDef:r===u.TypeNameMetaFieldDef.name&&(0,s.Gv)(t)?u.TypeNameMetaFieldDef:(0,s.lp)(t)||(0,s.oT)(t)?t.getFields()[r]:void 0}function p(e,t){return{enter:function(n){e.enter(n);var r=(0,a.CK)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),(0,o.UG)(i)&&e.enter(i)),i}},leave:function(n){var r,i=(0,a.CK)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}},9739:function(e,t,n){"use strict";n.d(t,{k:function(){return a},u:function(){return s}});var r=n(3943),i=n(2343),o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function a(e){var t=s(e);if(t)throw t;return e}function s(e){return"string"===typeof e||(0,r.Z)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new i._('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):o.test(e)?void 0:new i._('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}},4244:function(e,t,n){"use strict";n.d(t,{J:function(){return p}});var r=n(1794),i=n(6158),o=n(7173),a=n(6205),s=n(7770),u=n(1672),l=n(3208),c=n(3940),f=n(2572);function p(e,t){if((0,f.zM)(t)){var n=p(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===l.h.NULL?null:n}if(null===e)return{kind:l.h.NULL};if(void 0===e)return null;if((0,f.HG)(t)){var h=t.ofType,v=(0,u.Z)(e);if(null!=v){for(var m=[],g=0;g<v.length;g++){var y=p(v[g],h);null!=y&&m.push(y)}return{kind:l.h.LIST,values:m}}return p(e,h)}if((0,f.hL)(t)){if(!(0,s.Z)(e))return null;for(var b=[],w=0,E=(0,i.Z)(t.getFields());w<E.length;w++){var k=E[w],S=p(e[k.name],k.type);S&&b.push({kind:l.h.OBJECT_FIELD,name:{kind:l.h.NAME,value:k.name},value:S})}return{kind:l.h.OBJECT,fields:b}}if((0,f.UT)(t)){var x=t.serialize(e);if(null==x)return null;if("boolean"===typeof x)return{kind:l.h.BOOLEAN,value:x};if("number"===typeof x&&(0,r.Z)(x)){var _=String(x);return d.test(_)?{kind:l.h.INT,value:_}:{kind:l.h.FLOAT,value:_}}if("string"===typeof x)return(0,f.EM)(t)?{kind:l.h.ENUM,value:x}:t===c.km&&d.test(x)?{kind:l.h.INT,value:x}:{kind:l.h.STRING,value:x};throw new TypeError("Cannot convert value to AST: ".concat((0,o.Z)(x),"."))}(0,a.Z)(0,"Unexpected input type: "+(0,o.Z)(t))}var d=/^-?(?:0|[1-9][0-9]*)$/},6749:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(6158),i=n(7173),o=n(3943),a=n(7494),s=n(7770),u=n(4027),l=n(3004),c=n(4083),f=n(3940),p=n(8979),d=n(2572),h=n(5848);function v(e,t){(0,s.Z)(e)&&(0,s.Z)(e.__schema)||(0,o.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,i.Z)(e),"."));for(var n=e.__schema,v=(0,a.Z)(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case p.TypeKind.SCALAR:return r=e,new d.n2({name:r.name,description:r.description,specifiedByUrl:r.specifiedByUrl});case p.TypeKind.OBJECT:return n=e,new d.h6({name:n.name,description:n.description,interfaces:function(){return C(n)},fields:function(){return N(n)}});case p.TypeKind.INTERFACE:return t=e,new d.oW({name:t.name,description:t.description,interfaces:function(){return C(t)},fields:function(){return N(t)}});case p.TypeKind.UNION:return function(e){if(!e.possibleTypes){var t=(0,i.Z)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new d.Gp({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(_)}})}(e);case p.TypeKind.ENUM:return function(e){if(!e.enumValues){var t=(0,i.Z)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new d.mR({name:e.name,description:e.description,values:(0,a.Z)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case p.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=(0,i.Z)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new d.sR({name:e.name,description:e.description,fields:function(){return A(e.inputFields)}})}(e)}var t;var n;var r;var o=(0,i.Z)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(o,"."))}(e)})),m=0,g=[].concat(f.HS,p.introspectionTypes);m<g.length;m++){var y=g[m];v[y.name]&&(v[y.name]=y)}var b=n.queryType?_(n.queryType):null,w=n.mutationType?_(n.mutationType):null,E=n.subscriptionType?_(n.subscriptionType):null,k=n.directives?n.directives.map((function(e){if(!e.args){var t=(0,i.Z)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=(0,i.Z)(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new c.NZ({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:A(e.args)})})):[];return new l.XO({description:n.description,query:b,mutation:w,subscription:E,types:(0,r.Z)(v),directives:k,assumeValid:null===t||void 0===t?void 0:t.assumeValid});function S(e){if(e.kind===p.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new d.p2(S(t))}if(e.kind===p.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=S(n);return new d.bM((0,d.i_)(r))}return x(e)}function x(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat((0,i.Z)(e),"."));var n=v[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function _(e){return(0,d.Z6)(x(e))}function T(e){return(0,d.k2)(x(e))}function C(e){if(null===e.interfaces&&e.kind===p.TypeKind.INTERFACE)return[];if(!e.interfaces){var t=(0,i.Z)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(T)}function N(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat((0,i.Z)(e),"."));return(0,a.Z)(e.fields,(function(e){return e.name}),O)}function O(e){var t=S(e.type);if(!(0,d.SZ)(t)){var n=(0,i.Z)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=(0,i.Z)(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:A(e.args)}}function A(e){return(0,a.Z)(e,(function(e){return e.name}),D)}function D(e){var t=S(e.type);if(!(0,d.j$)(t)){var n=(0,i.Z)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?(0,h.u)((0,u.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}},9710:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",o=t.specifiedByUrl?"specifiedByUrl":"",a=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function u(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(s,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(a,"\n locations\n args").concat(u("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(o,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(u("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(u("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(u("isDeprecated"),"\n ").concat(u("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}n.d(t,{K:function(){return o}})},6527:function(e,t,n){"use strict";n.d(t,{_7:function(){return i},uJ:function(){return o},zR:function(){return a}});var r=n(2572);function i(e,t){return e===t||((0,r.zM)(e)&&(0,r.zM)(t)||!(!(0,r.HG)(e)||!(0,r.HG)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.zM)(n)?!!(0,r.zM)(t)&&o(e,t.ofType,n.ofType):(0,r.zM)(t)?o(e,t.ofType,n):(0,r.HG)(n)?!!(0,r.HG)(t)&&o(e,t.ofType,n.ofType):!(0,r.HG)(t)&&((0,r.m0)(n)&&((0,r.oT)(t)||(0,r.lp)(t))&&e.isSubType(n,t)))}function a(e,t,n){return t===n||((0,r.m0)(t)?(0,r.m0)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!(0,r.m0)(n)&&e.isSubType(n,t))}},3696:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(7173),i=n(6205),o=n(3208),a=n(2572);function s(e,t){var n;return t.kind===o.h.LIST_TYPE?(n=s(e,t.type))&&new a.p2(n):t.kind===o.h.NON_NULL_TYPE?(n=s(e,t.type))&&new a.bM(n):t.kind===o.h.NAMED_TYPE?e.getType(t.name.value):void(0,i.Z)(0,"Unexpected type node: "+(0,r.Z)(t))}},5848:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var r=n(6158),i=n(8651),o=n(7173),a=n(6205),s=n(3208),u=n(2572);function l(e,t,n){if(e){if(e.kind===s.h.VARIABLE){var f=e.name.value;if(null==n||void 0===n[f])return;var p=n[f];if(null===p&&(0,u.zM)(t))return;return p}if((0,u.zM)(t)){if(e.kind===s.h.NULL)return;return l(e,t.ofType,n)}if(e.kind===s.h.NULL)return null;if((0,u.HG)(t)){var d=t.ofType;if(e.kind===s.h.LIST){for(var h=[],v=0,m=e.values;v<m.length;v++){var g=m[v];if(c(g,n)){if((0,u.zM)(d))return;h.push(null)}else{var y=l(g,d,n);if(void 0===y)return;h.push(y)}}return h}var b=l(e,d,n);if(void 0===b)return;return[b]}if((0,u.hL)(t)){if(e.kind!==s.h.OBJECT)return;for(var w=Object.create(null),E=(0,i.Z)(e.fields,(function(e){return e.name.value})),k=0,S=(0,r.Z)(t.getFields());k<S.length;k++){var x=S[k],_=E[x.name];if(_&&!c(_.value,n)){var T=l(_.value,x.type,n);if(void 0===T)return;w[x.name]=T}else if(void 0!==x.defaultValue)w[x.name]=x.defaultValue;else if((0,u.zM)(x.type))return}return w}if((0,u.UT)(t)){var C;try{C=t.parseLiteral(e,n)}catch(N){return}if(void 0===C)return;return C}(0,a.Z)(0,"Unexpected input type: "+(0,o.Z)(t))}}function c(e,t){return e.kind===s.h.VARIABLE&&(null==t||void 0===t[e.name.value])}},4528:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(7173),i=n(6205),o=n(7494),a=n(3208);function s(e,t){switch(e.kind){case a.h.NULL:return null;case a.h.INT:return parseInt(e.value,10);case a.h.FLOAT:return parseFloat(e.value);case a.h.STRING:case a.h.ENUM:case a.h.BOOLEAN:return e.value;case a.h.LIST:return e.values.map((function(e){return s(e,t)}));case a.h.OBJECT:return(0,o.Z)(e.fields,(function(e){return e.name.value}),(function(e){return s(e.value,t)}));case a.h.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}(0,i.Z)(0,"Unexpected value node: "+(0,r.Z)(e))}},3623:function(e,t,n){"use strict";n.d(t,{_t:function(){return l},yv:function(){return u}});var r=n(3208),i=n(344),o=n(4277);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===r.h.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var i=0,o=n.pop().selections;i<o.length;i++){var a=o[i];a.kind===r.h.FRAGMENT_SPREAD?t.push(a):a.selectionSet&&n.push(a.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var s=a[o].name.value;if(!0!==n[s]){n[s]=!0;var u=this.getFragment(s);u&&(t.push(u),r.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),u=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return a(t,e),t.prototype.getSchema=function(){return this._schema},t}(s),l=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}a(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new o.a(this._schema);(0,i.Vn)(e,(0,o.y)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(s)},9289:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(2343),i=n(3208),o=n(8635);function a(e){return{Document:function(t){for(var n=0,a=t.definitions;n<a.length;n++){var s=a[n];if(!(0,o.Wk)(s)){var u=s.kind===i.h.SCHEMA_DEFINITION||s.kind===i.h.SCHEMA_EXTENSION?"schema":'"'+s.name.value+'"';e.reportError(new r._("The ".concat(u," definition is not executable."),s))}}return!1}}}},51:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(2379),i=n(4701),o=n(4696),a=n(5293),s=n(2343),u=n(2572);function l(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var l=e.getSchema(),c=t.name.value,f=(0,i.Z)("to use an inline fragment on",function(e,t,n){if(!(0,u.m0)(t))return[];for(var i=new Set,o=Object.create(null),s=0,l=e.getPossibleTypes(t);s<l.length;s++){var c=l[s];if(c.getFields()[n]){i.add(c),o[c.name]=1;for(var f=0,p=c.getInterfaces();f<p.length;f++){var d,h=p[f];h.getFields()[n]&&(i.add(h),o[h.name]=(null!==(d=o[h.name])&&void 0!==d?d:0)+1)}}}return(0,r.Z)(i).sort((function(t,n){var r=o[n.name]-o[t.name];return 0!==r?r:(0,u.oT)(t)&&e.isSubType(t,n)?-1:(0,u.oT)(n)&&e.isSubType(n,t)?1:(0,a.Z)(t.name,n.name)})).map((function(e){return e.name}))}(l,n,c));""===f&&(f=(0,i.Z)(function(e,t){if((0,u.lp)(e)||(0,u.oT)(e)){var n=Object.keys(e.getFields());return(0,o.Z)(t,n)}return[]}(n,c))),e.reportError(new s._('Cannot query field "'.concat(c,'" on type "').concat(n.name,'".')+f,t))}}}}},3972:function(e,t,n){"use strict";n.d(t,{T:function(){return s}});var r=n(2343),i=n(2615),o=n(2572),a=n(3696);function s(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var s=(0,a._)(e.getSchema(),n);if(s&&!(0,o.Gv)(s)){var u=(0,i.S)(n);e.reportError(new r._('Fragment cannot condition on non composite type "'.concat(u,'".'),n))}}},FragmentDefinition:function(t){var n=(0,a._)(e.getSchema(),t.typeCondition);if(n&&!(0,o.Gv)(n)){var s=(0,i.S)(t.typeCondition);e.reportError(new r._('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(s,'".'),t.typeCondition))}}}}},9481:function(e,t,n){"use strict";n.d(t,{e:function(){return f},o:function(){return p}});var r=n(4701),i=n(4696),o=n(2343),a=n(3208),s=n(4083);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return l(l({},p(e)),{},{Argument:function(t){var n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){var u=t.name.value,l=a.args.map((function(e){return e.name})),c=(0,i.Z)(u,l);e.reportError(new o._('Unknown argument "'.concat(u,'" on field "').concat(s.name,".").concat(a.name,'".')+(0,r.Z)(c),t))}}})}function p(e){for(var t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():s.V4,l=0;l<u.length;l++){var c=u[l];t[c.name]=c.args.map((function(e){return e.name}))}for(var f=e.getDocument().definitions,p=0;p<f.length;p++){var d=f[p];if(d.kind===a.h.DIRECTIVE_DEFINITION){var h,v=null!==(h=d.arguments)&&void 0!==h?h:[];t[d.name.value]=v.map((function(e){return e.name.value}))}}return{Directive:function(n){var a=n.name.value,s=t[a];if(n.arguments&&s)for(var u=0,l=n.arguments;u<l.length;u++){var c=l[u],f=c.name.value;if(-1===s.indexOf(f)){var p=(0,i.Z)(f,s);e.reportError(new o._('Unknown argument "'.concat(f,'" on directive "@').concat(a,'".')+(0,r.Z)(p),c))}}return!1}}}},8623:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(7173),i=n(6205),o=n(2343),a=n(3208),s=n(9145),u=n(4083);function l(e){for(var t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():u.V4,c=0;c<l.length;c++){var f=l[c];t[f.name]=f.locations}for(var p=e.getDocument().definitions,d=0;d<p.length;d++){var h=p[d];h.kind===a.h.DIRECTIVE_DEFINITION&&(t[h.name.value]=h.locations.map((function(e){return e.value})))}return{Directive:function(n,u,l,c,f){var p=n.name.value,d=t[p];if(d){var h=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||(0,i.Z)(0),t.kind){case a.h.OPERATION_DEFINITION:return function(e){switch(e){case"query":return s.B.QUERY;case"mutation":return s.B.MUTATION;case"subscription":return s.B.SUBSCRIPTION}(0,i.Z)(0,"Unexpected operation: "+(0,r.Z)(e))}(t.operation);case a.h.FIELD:return s.B.FIELD;case a.h.FRAGMENT_SPREAD:return s.B.FRAGMENT_SPREAD;case a.h.INLINE_FRAGMENT:return s.B.INLINE_FRAGMENT;case a.h.FRAGMENT_DEFINITION:return s.B.FRAGMENT_DEFINITION;case a.h.VARIABLE_DEFINITION:return s.B.VARIABLE_DEFINITION;case a.h.SCHEMA_DEFINITION:case a.h.SCHEMA_EXTENSION:return s.B.SCHEMA;case a.h.SCALAR_TYPE_DEFINITION:case a.h.SCALAR_TYPE_EXTENSION:return s.B.SCALAR;case a.h.OBJECT_TYPE_DEFINITION:case a.h.OBJECT_TYPE_EXTENSION:return s.B.OBJECT;case a.h.FIELD_DEFINITION:return s.B.FIELD_DEFINITION;case a.h.INTERFACE_TYPE_DEFINITION:case a.h.INTERFACE_TYPE_EXTENSION:return s.B.INTERFACE;case a.h.UNION_TYPE_DEFINITION:case a.h.UNION_TYPE_EXTENSION:return s.B.UNION;case a.h.ENUM_TYPE_DEFINITION:case a.h.ENUM_TYPE_EXTENSION:return s.B.ENUM;case a.h.ENUM_VALUE_DEFINITION:return s.B.ENUM_VALUE;case a.h.INPUT_OBJECT_TYPE_DEFINITION:case a.h.INPUT_OBJECT_TYPE_EXTENSION:return s.B.INPUT_OBJECT;case a.h.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===a.h.INPUT_OBJECT_TYPE_DEFINITION?s.B.INPUT_FIELD_DEFINITION:s.B.ARGUMENT_DEFINITION}}(f);h&&-1===d.indexOf(h)&&e.reportError(new o._('Directive "@'.concat(p,'" may not be used on ').concat(h,"."),n))}else e.reportError(new o._('Unknown directive "@'.concat(p,'".'),n))}}}},6861:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(2343);function i(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r._('Unknown fragment "'.concat(n,'".'),t.name))}}}},2754:function(e,t,n){"use strict";n.d(t,{I:function(){return l}});var r=n(4701),i=n(4696),o=n(2343),a=n(8635),s=n(3940),u=n(8979);function l(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null),u=0,l=e.getDocument().definitions;u<l.length;u++){var f=l[u];(0,a.zT)(f)&&(s[f.name.value]=!0)}var p=Object.keys(n).concat(Object.keys(s));return{NamedType:function(t,u,l,f,d){var h,v=t.name.value;if(!n[v]&&!s[v]){var m,g=null!==(m=d[2])&&void 0!==m?m:l,y=null!=g&&(h=g,!Array.isArray(h)&&((0,a.G4)(h)||(0,a.aU)(h)));if(y&&function(e){return-1!==c.indexOf(e)}(v))return;var b=(0,i.Z)(v,y?c.concat(p):p);e.reportError(new o._('Unknown type "'.concat(v,'".')+(0,r.Z)(b),t))}}}}var c=[].concat(s.HS,u.introspectionTypes).map((function(e){return e.name}))},187:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(2343),i=n(3208);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===i.h.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r._("This anonymous operation must be the only defined operation.",n))}}}},5399:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(2343);function i(e){var t,n,i,o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null===o||void 0===o?void 0:o.astNode)&&void 0!==i?i:null===o||void 0===o?void 0:o.getQueryType())&&void 0!==n?n:null===o||void 0===o?void 0:o.getMutationType())&&void 0!==t?t:null===o||void 0===o?void 0:o.getSubscriptionType(),s=0;return{SchemaDefinition:function(t){a?e.reportError(new r._("Cannot define a new schema within a schema extension.",t)):(s>0&&e.reportError(new r._("Must provide only one schema definition.",t)),++s)}}}},2605:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return o(e),!1}};function o(a){if(!t[a.name.value]){var s=a.name.value;t[s]=!0;var u=e.getFragmentSpreads(a.selectionSet);if(0!==u.length){i[s]=n.length;for(var l=0;l<u.length;l++){var c=u[l],f=c.name.value,p=i[f];if(n.push(c),void 0===p){var d=e.getFragment(f);d&&o(d)}else{var h=n.slice(p),v=h.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new r._('Cannot spread fragment "'.concat(f,'" within itself')+(""!==v?" via ".concat(v,"."):"."),h))}n.pop()}i[s]=void 0}}}}},657:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++){var a=i[o].node,s=a.name.value;!0!==t[s]&&e.reportError(new r._(n.name?'Variable "$'.concat(s,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(s,'" is not defined.'),[a,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}},5130:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(2343);function i(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o<t.length;o++)for(var a=t[o],s=0,u=e.getRecursivelyReferencedFragments(a);s<u.length;s++){i[u[s].name.value]=!0}for(var l=0;l<n.length;l++){var c=n[l],f=c.name.value;!0!==i[f]&&e.reportError(new r._('Fragment "'.concat(f,'" is never used.'),c))}}}}}},9565:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(2343);function i(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),a=0;a<o.length;a++){i[o[a].node.name.value]=!0}for(var s=0,u=t;s<u.length;s++){var l=u[s],c=l.variable.name.value;!0!==i[c]&&e.reportError(new r._(n.name?'Variable "$'.concat(c,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(c,'" is never used.'),l))}}},VariableDefinition:function(e){t.push(e)}}}},6142:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var r=n(5171),i=n(1961),o=n(7173),a=n(2343),s=n(3208),u=n(2615),l=n(2572),c=n(3696);function f(e){return Array.isArray(e)?e.map((function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+f(n)})).join(" and "):e}function p(e){var t=new E,n=new Map;return{SelectionSet:function(r){for(var o=function(e,t,n,r,o){var a=[],s=y(e,t,r,o),u=s[0],l=s[1];if(function(e,t,n,r,o){for(var a=0,s=(0,i.Z)(o);a<s.length;a++){var u=s[a],l=u[0],c=u[1];if(c.length>1)for(var f=0;f<c.length;f++)for(var p=f+1;p<c.length;p++){var d=m(e,n,r,!1,l,c[f],c[p]);d&&t.push(d)}}}(e,a,t,n,u),0!==l.length)for(var c=0;c<l.length;c++){d(e,a,t,n,!1,u,l[c]);for(var f=c+1;f<l.length;f++)h(e,a,t,n,!1,l[c],l[f])}return a}(e,n,t,e.getParentType(),r),s=0;s<o.length;s++){var u=o[s],l=u[0],c=l[0],p=l[1],v=u[1],g=u[2],b=f(p);e.reportError(new a._('Fields "'.concat(c,'" conflict because ').concat(b,". Use different aliases on the fields to fetch both if this was intentional."),v.concat(g)))}}}}function d(e,t,n,r,i,o,a){var s=e.getFragment(a);if(s){var u=b(e,n,s),l=u[0],c=u[1];if(o!==l){v(e,t,n,r,i,o,l);for(var f=0;f<c.length;f++)d(e,t,n,r,i,o,c[f])}}}function h(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=e.getFragment(o),u=e.getFragment(a);if(s&&u){var l=b(e,n,s),c=l[0],f=l[1],p=b(e,n,u),d=p[0],m=p[1];v(e,t,n,r,i,c,d);for(var g=0;g<m.length;g++)h(e,t,n,r,i,o,m[g]);for(var y=0;y<f.length;y++)h(e,t,n,r,i,f[y],a)}}}function v(e,t,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var l=u[s],c=a[l];if(c)for(var f=o[l],p=0;p<f.length;p++)for(var d=0;d<c.length;d++){var h=m(e,n,r,i,l,f[p],c[d]);h&&t.push(h)}}}function m(e,t,n,i,a,s,c){var f=s[0],p=s[1],m=s[2],b=c[0],w=c[1],E=c[2],k=i||f!==b&&(0,l.lp)(f)&&(0,l.lp)(b);if(!k){var S,x,_=p.name.value,T=w.name.value;if(_!==T)return[[a,'"'.concat(_,'" and "').concat(T,'" are different fields')],[p],[w]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every((function(e){var n,i,o=(0,r.Z)(t,(function(t){return t.name.value===e.name.value}));return!!o&&(n=e.value,i=o.value,(0,u.S)(n)===(0,u.S)(i))}))}(null!==(S=p.arguments)&&void 0!==S?S:[],null!==(x=w.arguments)&&void 0!==x?x:[]))return[[a,"they have differing arguments"],[p],[w]]}var C=null===m||void 0===m?void 0:m.type,N=null===E||void 0===E?void 0:E.type;if(C&&N&&g(C,N))return[[a,'they return conflicting types "'.concat((0,o.Z)(C),'" and "').concat((0,o.Z)(N),'"')],[p],[w]];var O=p.selectionSet,A=w.selectionSet;if(O&&A){var D=function(e,t,n,r,i,o,a,s){var u=[],l=y(e,t,i,o),c=l[0],f=l[1],p=y(e,t,a,s),m=p[0],g=p[1];if(v(e,u,t,n,r,c,m),0!==g.length)for(var b=0;b<g.length;b++)d(e,u,t,n,r,c,g[b]);if(0!==f.length)for(var w=0;w<f.length;w++)d(e,u,t,n,r,m,f[w]);for(var E=0;E<f.length;E++)for(var k=0;k<g.length;k++)h(e,u,t,n,r,f[E],g[k]);return u}(e,t,n,k,(0,l.xC)(C),O,(0,l.xC)(N),A);return function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(D,a,p,w)}}function g(e,t){return(0,l.HG)(e)?!(0,l.HG)(t)||g(e.ofType,t.ofType):!!(0,l.HG)(t)||((0,l.zM)(e)?!(0,l.zM)(t)||g(e.ofType,t.ofType):!!(0,l.zM)(t)||!(!(0,l.UT)(e)&&!(0,l.UT)(t))&&e!==t)}function y(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);w(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function b(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=(0,c._)(e.getSchema(),n.typeCondition);return y(e,t,i,n.selectionSet)}function w(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var u=a[o];switch(u.kind){case s.h.FIELD:var f=u.name.value,p=void 0;((0,l.lp)(t)||(0,l.oT)(t))&&(p=t.getFields()[f]);var d=u.alias?u.alias.value:f;r[d]||(r[d]=[]),r[d].push([t,u,p]);break;case s.h.FRAGMENT_SPREAD:i[u.name.value]=!0;break;case s.h.INLINE_FRAGMENT:var h=u.typeCondition,v=h?(0,c._)(e.getSchema(),h):t;w(e,v,u.selectionSet,r,i)}}}var E=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){this._pairSetAdd(e,t,n),this._pairSetAdd(t,e,n)},t._pairSetAdd=function(e,t,n){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[t]=n},e}()},9012:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var r=n(7173),i=n(2343),o=n(2572),a=n(3696),s=n(6527);function u(e){return{InlineFragment:function(t){var n=e.getType(),a=e.getParentType();if((0,o.Gv)(n)&&(0,o.Gv)(a)&&!(0,s.zR)(e.getSchema(),n,a)){var u=(0,r.Z)(a),l=(0,r.Z)(n);e.reportError(new i._('Fragment cannot be spread here as objects of type "'.concat(u,'" can never be of type "').concat(l,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,u=function(e,t){var n=e.getFragment(t);if(n){var r=(0,a._)(e.getSchema(),n.typeCondition);if((0,o.Gv)(r))return r}}(e,n),l=e.getParentType();if(u&&l&&!(0,s.zR)(e.getSchema(),u,l)){var c=(0,r.Z)(l),f=(0,r.Z)(u);e.reportError(new i._('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(c,'" can never be of type "').concat(f,'".'),t))}}}}},2202:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var r,i=n(7173),o=n(6205),a=n(4701),s=n(4696),u=n(2343),l=n(3208),c=n(8635),f=n(2572);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=e.getSchema(),n=Object.create(null),r=0,p=e.getDocument().definitions;r<p.length;r++){var d=p[r];(0,c.zT)(d)&&(n[d.name.value]=d)}return{ScalarTypeExtension:v,ObjectTypeExtension:v,InterfaceTypeExtension:v,UnionTypeExtension:v,EnumTypeExtension:v,InputObjectTypeExtension:v};function v(r){var c,p=r.name.value,d=n[p],v=null===t||void 0===t?void 0:t.getType(p);if(d?c=h[d.kind]:v&&(c=function(e){if((0,f.KA)(e))return l.h.SCALAR_TYPE_EXTENSION;if((0,f.lp)(e))return l.h.OBJECT_TYPE_EXTENSION;if((0,f.oT)(e))return l.h.INTERFACE_TYPE_EXTENSION;if((0,f.EN)(e))return l.h.UNION_TYPE_EXTENSION;if((0,f.EM)(e))return l.h.ENUM_TYPE_EXTENSION;if((0,f.hL)(e))return l.h.INPUT_OBJECT_TYPE_EXTENSION;(0,o.Z)(0,"Unexpected type: "+(0,i.Z)(e))}(v)),c){if(c!==r.kind){var m=function(e){switch(e){case l.h.SCALAR_TYPE_EXTENSION:return"scalar";case l.h.OBJECT_TYPE_EXTENSION:return"object";case l.h.INTERFACE_TYPE_EXTENSION:return"interface";case l.h.UNION_TYPE_EXTENSION:return"union";case l.h.ENUM_TYPE_EXTENSION:return"enum";case l.h.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,o.Z)(0,"Unexpected kind: "+(0,i.Z)(e))}(r.kind);e.reportError(new u._("Cannot extend non-".concat(m,' type "').concat(p,'".'),d?[d,r]:r))}}else{var g=Object.keys(n);t&&(g=g.concat(Object.keys(t.getTypeMap())));var y=(0,s.Z)(p,g);e.reportError(new u._('Cannot extend type "'.concat(p,'" because it is not defined.')+(0,a.Z)(y),r.name))}}}var h=(p(r={},l.h.SCALAR_TYPE_DEFINITION,l.h.SCALAR_TYPE_EXTENSION),p(r,l.h.OBJECT_TYPE_DEFINITION,l.h.OBJECT_TYPE_EXTENSION),p(r,l.h.INTERFACE_TYPE_DEFINITION,l.h.INTERFACE_TYPE_EXTENSION),p(r,l.h.UNION_TYPE_DEFINITION,l.h.UNION_TYPE_EXTENSION),p(r,l.h.ENUM_TYPE_DEFINITION,l.h.ENUM_TYPE_EXTENSION),p(r,l.h.INPUT_OBJECT_TYPE_DEFINITION,l.h.INPUT_OBJECT_TYPE_EXTENSION),r)},186:function(e,t,n){"use strict";n.d(t,{c:function(){return h},s:function(){return d}});var r=n(7173),i=n(8651),o=n(2343),a=n(3208),s=n(2615),u=n(4083),l=n(2572);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return f(f({},h(e)),{},{Field:{leave:function(t){var n,a=e.getFieldDef();if(!a)return!1;for(var s=null!==(n=t.arguments)&&void 0!==n?n:[],u=(0,i.Z)(s,(function(e){return e.name.value})),c=0,f=a.args;c<f.length;c++){var p=f[c];if(!u[p.name]&&(0,l.dK)(p)){var d=(0,r.Z)(p.type);e.reportError(new o._('Field "'.concat(a.name,'" argument "').concat(p.name,'" of type "').concat(d,'" is required, but it was not provided.'),t))}}}}})}function h(e){for(var t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():u.V4,f=0;f<c.length;f++){var p=c[f];t[p.name]=(0,i.Z)(p.args.filter(l.dK),(function(e){return e.name}))}for(var d=e.getDocument().definitions,h=0;h<d.length;h++){var m=d[h];if(m.kind===a.h.DIRECTIVE_DEFINITION){var g,y=null!==(g=m.arguments)&&void 0!==g?g:[];t[m.name.value]=(0,i.Z)(y.filter(v),(function(e){return e.name.value}))}}return{Directive:{leave:function(n){var a=n.name.value,u=t[a];if(u)for(var c,f=null!==(c=n.arguments)&&void 0!==c?c:[],p=(0,i.Z)(f,(function(e){return e.name.value})),d=0,h=Object.keys(u);d<h.length;d++){var v=h[d];if(!p[v]){var m=u[v].type,g=(0,l.P9)(m)?(0,r.Z)(m):(0,s.S)(m);e.reportError(new o._('Directive "@'.concat(a,'" argument "').concat(v,'" of type "').concat(g,'" is required, but it was not provided.'),n))}}}}}}function v(e){return e.type.kind===a.h.NON_NULL_TYPE&&null==e.defaultValue}},8228:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(7173),i=n(2343),o=n(2572);function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;if(n)if((0,o.UT)((0,o.xC)(n))){if(a){var s=t.name.value,u=(0,r.Z)(n);e.reportError(new i._('Field "'.concat(s,'" must not have a selection since type "').concat(u,'" has no subfields.'),a))}}else if(!a){var l=t.name.value,c=(0,r.Z)(n);e.reportError(new i._('Field "'.concat(l,'" of type "').concat(c,'" must have a selection of subfields. Did you mean "').concat(l,' { ... }"?'),t))}}}}},2840:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2343);function i(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r._(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}},1698:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new r._('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},2873:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(null===n||void 0===n||!n.getDirective(o))return t[o]?e.reportError(new r._('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r._('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name))}}}},1681:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(2343),i=n(3208),o=n(8635),a=n(4083);function s(e){for(var t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.V4,u=0;u<s.length;u++){var l=s[u];t[l.name]=!l.isRepeatable}for(var c=e.getDocument().definitions,f=0;f<c.length;f++){var p=c[f];p.kind===i.h.DIRECTIVE_DEFINITION&&(t[p.name.value]=!p.repeatable)}var d=Object.create(null),h=Object.create(null);return{enter:function(n){if(null!=n.directives){var a;if(n.kind===i.h.SCHEMA_DEFINITION||n.kind===i.h.SCHEMA_EXTENSION)a=d;else if((0,o.zT)(n)||(0,o.D$)(n)){var s=n.name.value;void 0===(a=h[s])&&(h[s]=a=Object.create(null))}else a=Object.create(null);for(var u=0,l=n.directives;u<l.length;u++){var c=l[u],f=c.name.value;t[f]&&(a[f]?e.reportError(new r._('The directive "@'.concat(f,'" can only be used once at this location.'),[a[f],c])):a[f]=c)}}}}}},3848:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(2343),i=n(2572);function o(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a,s=t.name.value;o[s]||(o[s]=Object.create(null));for(var u=null!==(a=t.values)&&void 0!==a?a:[],l=o[s],c=0;c<u.length;c++){var f=u[c],p=f.name.value,d=n[s];(0,i.EM)(d)&&d.getValue(p)?e.reportError(new r._('Enum value "'.concat(s,".").concat(p,'" already exists in the schema. It cannot also be defined in this type extension.'),f.name)):l[p]?e.reportError(new r._('Enum value "'.concat(s,".").concat(p,'" can only be defined once.'),[l[p],f.name])):l[p]=f.name}return!1}}},7546:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var r=n(2343),i=n(2572);function o(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o,s=t.name.value;i[s]||(i[s]=Object.create(null));for(var u=null!==(o=t.fields)&&void 0!==o?o:[],l=i[s],c=0;c<u.length;c++){var f=u[c],p=f.name.value;a(n[s],p)?e.reportError(new r._('Field "'.concat(s,".").concat(p,'" already exists in the schema. It cannot also be defined in this type extension.'),f.name)):l[p]?e.reportError(new r._('Field "'.concat(s,".").concat(p,'" can only be defined once.'),[l[p],f.name])):l[p]=f.name}return!1}}function a(e,t){return!!((0,i.lp)(e)||(0,i.oT)(e)||(0,i.hL)(e))&&null!=e.getFields()[t]}},8233:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new r._('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},9494:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(2343);function i(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var i=t.name.value;n[i]?e.reportError(new r._('There can be only one input field named "'.concat(i,'".'),[n[i],t.name])):n[i]=t.name}}}},8097:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new r._('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}},1863:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(2343);function i(e){var t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){for(var o,a=null!==(o=t.operationTypes)&&void 0!==o?o:[],s=0;s<a.length;s++){var u=a[s],l=u.operation,c=n[l];i[l]?e.reportError(new r._("Type for ".concat(l," already defined in the schema. It cannot be redefined."),u)):c?e.reportError(new r._("There can be only one ".concat(l," type in schema."),[c,u])):n[l]=u}return!1}}},8548:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){var o=i.name.value;if(null===n||void 0===n||!n.getType(o))return t[o]?e.reportError(new r._('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r._('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name))}}},2260:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(2343);function i(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new r._('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}},2483:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var r=n(6158),i=n(8651),o=n(7173),a=n(4701),s=n(4696),u=n(2343),l=n(2615),c=n(2572);function f(e){return{ListValue:function(t){var n=(0,c.tf)(e.getParentInputType());if(!(0,c.HG)(n))return p(e,t),!1},ObjectValue:function(t){var n=(0,c.xC)(e.getInputType());if(!(0,c.hL)(n))return p(e,t),!1;for(var a=(0,i.Z)(t.fields,(function(e){return e.name.value})),s=0,l=(0,r.Z)(n.getFields());s<l.length;s++){var f=l[s];if(!a[f.name]&&(0,c.Wd)(f)){var d=(0,o.Z)(f.type);e.reportError(new u._('Field "'.concat(n.name,".").concat(f.name,'" of required type "').concat(d,'" was not provided.'),t))}}},ObjectField:function(t){var n=(0,c.xC)(e.getParentInputType());if(!e.getInputType()&&(0,c.hL)(n)){var r=(0,s.Z)(t.name.value,Object.keys(n.getFields()));e.reportError(new u._('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+(0,a.Z)(r),t))}},NullValue:function(t){var n=e.getInputType();(0,c.zM)(n)&&e.reportError(new u._('Expected value of type "'.concat((0,o.Z)(n),'", found ').concat((0,l.S)(t),"."),t))},EnumValue:function(t){return p(e,t)},IntValue:function(t){return p(e,t)},FloatValue:function(t){return p(e,t)},StringValue:function(t){return p(e,t)},BooleanValue:function(t){return p(e,t)}}}function p(e,t){var n=e.getInputType();if(n){var r=(0,c.xC)(n);if((0,c.UT)(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=(0,o.Z)(n);e.reportError(new u._('Expected value of type "'.concat(i,'", found ').concat((0,l.S)(t),"."),t))}}catch(f){var a=(0,o.Z)(n);f instanceof u._?e.reportError(f):e.reportError(new u._('Expected value of type "'.concat(a,'", found ').concat((0,l.S)(t),"; ")+f.message,t,void 0,void 0,void 0,f))}else{var s=(0,o.Z)(n);e.reportError(new u._('Expected value of type "'.concat(s,'", found ').concat((0,l.S)(t),"."),t))}}}},3642:function(e,t,n){"use strict";n.d(t,{I:function(){return s}});var r=n(2343),i=n(2615),o=n(2572),a=n(3696);function s(e){return{VariableDefinition:function(t){var n=(0,a._)(e.getSchema(),t.type);if(n&&!(0,o.j$)(n)){var s=t.variable.name.value,u=(0,i.S)(t.type);e.reportError(new r._('Variable "$'.concat(s,'" cannot be non-input type "').concat(u,'".'),t.type))}}}}},6267:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(7173),i=n(2343),o=n(3208),a=n(2572),s=n(3696),u=n(6527);function l(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),a=0;a<o.length;a++){var u=o[a],l=u.node,f=u.type,p=u.defaultValue,d=l.name.value,h=t[d];if(h&&f){var v=e.getSchema(),m=(0,s._)(v,h.type);if(m&&!c(v,m,h.defaultValue,f,p)){var g=(0,r.Z)(m),y=(0,r.Z)(f);e.reportError(new i._('Variable "$'.concat(d,'" of type "').concat(g,'" used in position expecting type "').concat(y,'".'),[h,l]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function c(e,t,n,r,i){if((0,a.zM)(r)&&!(0,a.zM)(t)){if(!(null!=n&&n.kind!==o.h.NULL)&&!(void 0!==i))return!1;var s=r.ofType;return(0,u.uJ)(e,t,s)}return(0,u.uJ)(e,t,r)}},663:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(6205),i=n(2343),o=n(2572);function a(e){return{Field:function(t){var n=e.getFieldDef(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getParentType();null!=a||(0,r.Z)(0),e.reportError(new i._("The field ".concat(a.name,".").concat(n.name," is deprecated. ").concat(o),t))}},Argument:function(t){var n=e.getArgument(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getDirective();if(null!=a)e.reportError(new i._('Directive "@'.concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),t));else{var s=e.getParentType(),u=e.getFieldDef();null!=s&&null!=u||(0,r.Z)(0),e.reportError(new i._('Field "'.concat(s.name,".").concat(u.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),t))}}},ObjectField:function(t){var n=(0,o.xC)(e.getParentInputType());if((0,o.hL)(n)){var r=n.getFields()[t.name.value],a=null===r||void 0===r?void 0:r.deprecationReason;null!=a&&e.reportError(new i._("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(a),t))}},EnumValue:function(t){var n=e.getEnumValue(),a=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=a){var s=(0,o.xC)(e.getInputType());null!=s||(0,r.Z)(0),e.reportError(new i._('The enum value "'.concat(s.name,".").concat(n.name,'" is deprecated. ').concat(a),t))}}}}},2593:function(e,t,n){"use strict";n.d(t,{M:function(){return P},i:function(){return R}});var r=n(9289),i=n(8097),o=n(187),a=n(2840),s=n(2754),u=n(3972),l=n(3642),c=n(8228),f=n(51),p=n(8233),d=n(6861),h=n(5130),v=n(9012),m=n(2605),g=n(2260),y=n(657),b=n(9565),w=n(8623),E=n(1681),k=n(9481),S=n(1698),x=n(2483),_=n(186),T=n(6267),C=n(6142),N=n(9494),O=n(5399),A=n(1863),D=n(8548),I=n(3848),L=n(7546),M=n(2873),F=n(2202),R=Object.freeze([r.i,i.H,o.F,a.Z,s.I,u.T,l.I,c.O,f.A,p.N,d.a,h.J,v.a,m.H,g.H,y.$,b.p,w.J,E.k,k.e,S.L,x.j,_.s,T.w,C.y,N.P]),P=Object.freeze([O.t,A.q,D.P,I.L,L.y,M.o,s.I,w.J,E.k,F.g,k.o,S.L,N.P,_.c])},6665:function(e,t,n){"use strict";n.d(t,{ED:function(){return d},Gu:function(){return c},zo:function(){return p}});var r=n(3943),i=n(2343),o=n(344),a=n(7477),s=n(4277),u=n(2593),l=n(3623);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new s.a(e),f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||(0,r.Z)(0,"Must provide document."),(0,a.J)(e);var p=Object.freeze({}),d=[],h=new l._t(e,t,c,(function(e){if(null!=f.maxErrors&&d.length>=f.maxErrors)throw d.push(new i._("Too many validation errors, error limit reached. Validation aborted.")),p;d.push(e)})),v=(0,o.j1)(n.map((function(e){return e(h)})));try{(0,o.Vn)(t,(0,s.y)(c,v))}catch(m){if(m!==p)throw m}return d}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.M,r=[],i=new l.yv(e,t,(function(e){r.push(e)})),a=n.map((function(e){return e(i)}));return(0,o.Vn)(e,(0,o.j1)(a)),r}function p(e){var t=f(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}function d(e,t){var n=f(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}},3437:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return p=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i},p.apply(null,arguments)}function d(e){var t="function"===typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},d(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?h(e):t}function m(e){var t=f();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function g(e,t,n){return g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}},g(e,t,n||e)}function y(e,t){return w(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||E(e,t)||S()}function b(e){return w(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||E(e)||S()}function w(e){if(Array.isArray(e))return e}function E(e,t){if(e){if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=E(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(t,{YAML:function(){return kn}});var _="&",T="#",C="!",N="-",O=".",A="ALIAS",D="BLANK_LINE",I="BLOCK_FOLDED",L="BLOCK_LITERAL",M="COMMENT",F="DIRECTIVE",R="DOCUMENT",P="FLOW_MAP",j="FLOW_SEQ",V="MAP",U="MAP_KEY",B="MAP_VALUE",z="PLAIN",q="QUOTE_DOUBLE",H="QUOTE_SINGLE",Z="SEQ",W="SEQ_ITEM",G="tag:yaml.org,2002:",Q={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function $(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function Y(e){var t,n;return"string"===typeof e?(t=$(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=$(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function K(e,t){if("number"!==typeof e||e<0)return null;var n=Y(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o<r.length;++o){var a=r[o];if(e<a)return{line:o,col:e-r[o-1]+1};if(e===a)return{line:o+1,col:1}}var s=r.length;return{line:s,col:e-r[s-1]+1}}function J(e,t){var n=Y(t),r=n.lineStarts,i=n.src;if(!r||!(e>=1)||e>r.length)return null;for(var o=r[e-1],a=r[e];a&&a>o&&"\n"===i[a-1];)--a;return i.slice(o,a)}var X=function(){function e(t,n){i(this,e),this.start=t,this.end=n||t}return a(e,[{key:"isEmpty",value:function(){return"number"!==typeof this.start||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(e,t){var n=this.start,r=this.end;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;for(var i=t;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;for(var o=i;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,o}}],[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),e}(),ee=function(){function e(t,n,r){i(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return a(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,_,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,T,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===T)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==T)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[P,j,q,H].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=K(this.range.start,this.context.root);if(e)return{start:e,end:K(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,C,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=y(t.match(/^(.*!)([^!]*)$/),3);return n[0],{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=t;i<n;++i)if("\n"===r[i])return!0;return!1}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===T){var r=e.endOfLine(n,t+1),i=new X(t,r);return this.props.push(i),r}return t}},{key:"setOrigRanges",value:function(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((function(n){return n.setOrigRange(e,t)})),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}}],[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var i=e[t-1];if(i&&"\n"!==i)return!1;if(n){if(r!==n)return!1}else if(r!==N&&r!==O)return!1;var o=e[t+1],a=e[t+2];if(o!==r||a!==r)return!1;var s=e[t+3];return!s||"\n"===s||"\t"===s||" "===s}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var i=e.endOfIndent(t,r);if(i>r+n)return i;var o=e.endOfWhiteSpace(t,i),a=t[o];return a&&"\n"!==a?null:o}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var i=0,o=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":i=0,n+=1,a+="\n";break;case"\t":i<=r&&(o=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&i<=r&&(o=!0),{fold:a,offset:n,error:o}}}]),e}(),te=function(e){u(n,e);var t=m(n);function n(e,r,o){var a;if(i(this,n),!o||!(r instanceof ee))throw new Error("Invalid arguments for new ".concat(e));return(a=t.call(this)).name=e,a.message=o,a.source=r,a}return a(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"===typeof this.offset){this.range=new X(this.offset,this.offset+1);var t=e&&K(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var r=this.linePos.start,i=r.line,o=r.col;this.message+=" at line ".concat(i,", column ").concat(o);var a=e&&function(e,t){var n=e.start,r=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,o=J(n.line,t);if(!o)return null;var a=n.col;if(o.length>i)if(a<=i-10)o=o.substr(0,i-1)+"\u2026";else{var s=Math.round(i/2);o.length>a+s&&(o=o.substr(0,a+s-1)+"\u2026"),a-=o.length-i,o="\u2026"+o.substr(1-i)}var u=1,l="";r&&(r.line===n.line&&a+(r.col-n.col)<=i+1?u=r.col-n.col:(u=Math.min(o.length+1,i)-a,l="\u2026"));var c=a>1?" ".repeat(a-1):"",f="^".repeat(u);return"".concat(o,"\n").concat(c).concat(f).concat(l)}(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),n}(d(Error)),ne=function(e){u(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLReferenceError",e,r)}return n}(te),re=function(e){u(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLSemanticError",e,r)}return n}(te),ie=function(e){u(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLSyntaxError",e,r)}return n}(te),oe=function(e){u(n,e);var t=m(n);function n(e,r){return i(this,n),t.call(this,"YAMLWarning",e,r)}return n}(te),ae=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,i=r[n-1];t<n&&("\n"===i||"\t"===i||" "===i);)i=r[--n-1];for(var o="",a=t;a<n;++a){var s=r[a];if("\n"===s){var u=ee.foldNewline(r,a,-1);o+=u.fold,a=u.offset}else if(" "===s||"\t"===s){for(var l=a,c=r[a+1];a<n&&(" "===c||"\t"===c);)c=r[(a+=1)+1];"\n"!==c&&(o+=a>l?r.slice(l,a+1):s)}else o+=s}var f=r[t];switch(f){case"\t":return{errors:[new re(this,"Plain value cannot start with a tab character")],str:o};case"@":case"`":var p="Plain value cannot start with reserved character ".concat(f);return{errors:[new re(this,p)],str:o};default:return o}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,r=t.indent,i=t.inFlow,o=t.src,a=e,s=e,u=o[a];"\n"===u&&!ee.atDocumentBoundary(o,a+1);u=o[a]){var l=ee.endOfBlockIndent(o,r,a+1);if(null===l||"#"===o[l])break;a="\n"===o[l]?l:s=n.endOfLine(o,l,i)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,t){this.context=e;var r=e.inFlow,i=e.src,o=t,a=i[o];return a&&"#"!==a&&"\n"!==a&&(o=n.endOfLine(i,t,r)),this.valueRange=new X(t,o),o=ee.endOfWhiteSpace(i,o),o=this.parseComment(o),this.hasComment&&!this.valueRange.isEmpty()||(o=this.parseBlockValue(o)),o}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],i=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var o=e[i+1];if(":"===r&&(!o||"\n"===o||"\t"===o||" "===o||n&&","===o))break;if((" "===r||"\t"===r)&&"#"===o)break;i+=1,r=o}return i}}]),n}(ee),se=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.call(this,D)}return a(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(e,t){return this.context=e,this.range=new X(t,t+1),t+1}}]),n}(ee),ue=function(e){u(n,e);var t=m(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).node=null,o}return a(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,i=e.atLineStart,o=e.lineStart;i||this.type!==W||(this.error=new re(this,"Sequence items must not have preceding content on the same line"));for(var a=i?t-o:e.indent,s=ee.endOfWhiteSpace(r,t+1),u=r[s],l="#"===u,c=[],f=null;"\n"===u||"#"===u;){if("#"===u){var p=ee.endOfLine(r,s+1);c.push(new X(s,p)),s=p}else{i=!0,o=s+1,"\n"===r[ee.endOfWhiteSpace(r,o)]&&0===c.length&&(o=(f=new se).parse({src:r},o)),s=ee.endOfIndent(r,o)}u=r[s]}if(ee.nextNodeIsIndented(u,s-(o+a),this.type!==W)?this.node=n({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},s):u&&o>t+1&&(s=o-1),this.node){if(f){var d=e.parent.items||e.parent.contents;d&&d.push(f)}c.length&&Array.prototype.push.apply(this.props,c),s=this.node.range.end}else if(l){var h=c[0];this.props.push(h),s=h.end}else s=ee.endOfLine(r,t+1);var v=this.node?this.node.valueRange.end:s;return this.valueRange=new X(t,v),s}},{key:"setOrigRanges",value:function(e,t){return t=g(l(n.prototype),"setOrigRanges",this).call(this,e,t),this.node?this.node.setOrigRanges(e,t):t}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var i=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return ee.addStringTerminator(e,n.end,i)}}]),n}(ee),le=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.call(this,M)}return a(n,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new X(t,n),n}}]),n}(ee);function ce(e){for(var t=e;t instanceof ue;)t=t.node;if(!(t instanceof fe))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===M){var a=o.context,s=a.indent,u=a.lineStart;if(s>0&&o.range.start>=u+s)break;r=i}else{if(o.type!==D)break;r=i}}if(-1===r)return null;for(var l=t.items.splice(r,n-r),c=l[0].range.start;t.range.end=c,t.valueRange&&t.valueRange.end>c&&(t.valueRange.end=c),t!==e;)t=t.context.parent;return l}var fe=function(e){u(n,e);var t=m(n);function n(e){var r;i(this,n),r=t.call(this,e.type===W?Z:V);for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){r.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}r.items=[e];var s=ce(e);return s&&Array.prototype.push.apply(r.items,s),r}return a(n,[{key:"includesTrailingLines",get:function(){return this.items.length>0}},{key:"parse",value:function(e,t){this.context=e;var r=e.parseNode,i=e.src,o=ee.startOfLine(i,t),a=this.items[0];a.context.parent=this,this.valueRange=X.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,u=t,l=i[u=ee.normalizeOffset(i,u)],c=ee.endOfWhiteSpace(i,o)===u,f=!1;l;){for(;"\n"===l||"#"===l;){if(c&&"\n"===l&&!f){var p=new se;if(u=p.parse({src:i},u),this.valueRange.end=u,u>=i.length){l=null;break}this.items.push(p),u-=1}else if("#"===l){if(u<o+s&&!n.nextContentHasIndent(i,u,s))return u;var d=new le;if(u=d.parse({indent:s,lineStart:o,src:i},u),this.items.push(d),this.valueRange.end=u,u>=i.length){l=null;break}}if(o=u+1,u=ee.endOfIndent(i,o),ee.atBlank(i,u)){var h=ee.endOfWhiteSpace(i,u),v=i[h];v&&"\n"!==v&&"#"!==v||(u=h)}l=i[u],c=!0}if(!l)break;if(u!==o+s&&(c||":"!==l)){if(u<o+s){o>t&&(u=o);break}if(!this.error){this.error=new ie(this,"All collection items must start at the same column")}}if(a.type===W){if("-"!==l){o>t&&(u=o);break}}else if("-"===l&&!this.error){var m=i[u+1];if(!m||"\n"===m||"\t"===m||" "===m){this.error=new ie(this,"A collection cannot be both a mapping and a sequence")}}var g=r({atLineStart:c,inCollection:!0,indent:s,lineStart:o,parent:this},u);if(!g)return u;if(this.items.push(g),this.valueRange.end=g.valueRange.end,l=i[u=ee.normalizeOffset(i,g.range.end)],c=!1,f=g.includesTrailingLines,l){for(var y=u-1,b=i[y];" "===b||"\t"===b;)b=i[--y];"\n"===b&&(o=y+1,c=!0)}var w=ce(g);w&&Array.prototype.push.apply(this.items,w)}return u}},{key:"setOrigRanges",value:function(e,t){return t=g(l(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){t=n.setOrigRanges(e,t)})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var i=e.slice(n.start,t[0].range.start)+String(t[0]),o=1;o<t.length;++o){var a=t[o],s=a.context,u=s.atLineStart,l=s.indent;if(u)for(var c=0;c<l;++c)i+=" ";i+=String(a)}return ee.addStringTerminator(e,n.end,i)}}],[{key:"nextContentHasIndent",value:function(e,t,r){var i=ee.endOfLine(e,t)+1,o=e[t=ee.endOfWhiteSpace(e,i)];return!!o&&(t>=i+r||("#"===o||"\n"===o)&&n.nextContentHasIndent(e,t,r))}}]),n}(ee),pe=function(e){u(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.call(this,F)).name=null,e}return a(n,[{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new X(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new X(t,n),n}}]),n}(ee),de=function(e){u(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.call(this,R)).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return a(n,[{key:"parseDirectives",value:function(e){var t=this.context.src;this.directives=[];for(var r=!0,i=!1,o=e;!ee.atDocumentBoundary(t,o,N);)switch(t[o=n.startCommentOrEndBlankLine(t,o)]){case"\n":if(r){var a=new se;(o=a.parse({src:t},o))<t.length&&this.directives.push(a)}else o+=1,r=!0;break;case"#":var s=new le;o=s.parse({src:t},o),this.directives.push(s),r=!1;break;case"%":var u=new pe;o=u.parse({parent:this,src:t},o),this.directives.push(u),i=!0,r=!1;break;default:return i?this.error=new re(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o}return t[o]?(this.directivesEndMarker=new X(o,o+3),o+3):(i?this.error=new re(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),o)}},{key:"parseContents",value:function(e){var t=this.context,r=t.parseNode,i=t.src;this.contents||(this.contents=[]);for(var o=e;"-"===i[o-1];)o-=1;var a=ee.endOfWhiteSpace(i,e),s=o===e;for(this.valueRange=new X(a);!ee.atDocumentBoundary(i,a,O);){switch(i[a]){case"\n":if(s){var u=new se;(a=u.parse({src:i},a))<i.length&&this.contents.push(u)}else a+=1,s=!0;o=a;break;case"#":var l=new le;a=l.parse({src:i},a),this.contents.push(l),s=!1;break;default:var c=ee.endOfIndent(i,a),f=r({atLineStart:s,indent:-1,inFlow:!1,inCollection:!1,lineStart:o,parent:this},c);if(!f)return this.valueRange.end=c;this.contents.push(f),a=f.range.end,s=!1;var p=ce(f);p&&Array.prototype.push.apply(this.contents,p)}a=n.startCommentOrEndBlankLine(i,a)}if(this.valueRange.end=a,i[a]&&(this.documentEndMarker=new X(a,a+3),i[a+=3])){if("#"===i[a=ee.endOfWhiteSpace(i,a)]){var d=new le;a=d.parse({src:i},a),this.contents.push(d)}switch(i[a]){case"\n":a+=1;break;case void 0:break;default:this.error=new ie(this,"Document end marker line cannot have a non-comment suffix")}}return a}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"setOrigRanges",value:function(e,t){return t=g(l(n.prototype),"setOrigRanges",this).call(this,e,t),this.directives.forEach((function(n){t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((function(n){t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===M)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}],[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=ee.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),n}(ee),he=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=ee.endOfIdentifier(n,t+1);return this.valueRange=new X(t+1,r),r=ee.endOfWhiteSpace(n,r),r=this.parseComment(r)}}]),n}(ee),ve="CLIP",me="KEEP",ge="STRIP",ye=function(e){u(n,e);var t=m(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).blockIndent=null,o.chomping=ve,o.header=null,o}return a(n,[{key:"includesTrailingLines",get:function(){return this.chomping===me}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,i=r.indent,o=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=o[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===me)break;return""}"\n"===s&&(a=n),s=o[n-1]}var u=n+1;a&&(this.chomping===me?(u=a,n=this.valueRange.end):n=a);for(var l=i+this.blockIndent,c=this.type===I,f=!0,p="",d="",h=!1,v=t;v<n;++v){for(var m=0;m<l&&" "===o[v];++m)v+=1;var g=o[v];if("\n"===g)"\n"===d?p+="\n":d="\n";else{var y=ee.endOfLine(o,v),b=o.slice(v,y);v=y,c&&(" "===g||"\t"===g)&&v<u?(" "===d?d="\n":h||f||"\n"!==d||(d="\n\n"),p+=d+b,d=y<n&&o[y]||"",h=!0):(p+=d+b,d=c&&v<u?" ":"\n",h=!1),f&&""!==b&&(f=!1)}}return this.chomping===ge?p:p+"\n"}},{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var i=t[n];switch(i){case"-":this.chomping=ge;break;case"+":this.chomping=me;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=i;break;default:return this.blockIndent=Number(r)||null,this.header=new X(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,i=!!this.blockIndent,o=e,a=e,s=1,u=r[o];"\n"===u&&(o+=1,!ee.atDocumentBoundary(r,o));u=r[o]){var l=ee.endOfBlockIndent(r,n,o);if(null===l)break;var c=r[l],f=l-(o+n);if(this.blockIndent){if(c&&"\n"!==c&&f<this.blockIndent){if("#"===r[l])break;if(!this.error){var p="Block scalars must not be less indented than their ".concat(i?"explicit indentation indicator":"first line");this.error=new re(this,p)}}}else if("\n"!==r[l]){if(f<s){this.error=new re(this,"Block scalars with more-indented leading empty lines must use an explicit indentation indicator")}this.blockIndent=f}else f>s&&(s=f);o="\n"===r[l]?l:a=ee.endOfLine(r,l)}return this.chomping!==me&&(o=r[a]?a+1:a),this.valueRange=new X(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=ee.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,t){return t=g(l(n.prototype),"setOrigRanges",this).call(this,e,t),this.header?this.header.setOrigRange(e,t):t}}]),n}(ee),be=function(e){u(n,e);var t=m(n);function n(e,r){var o;return i(this,n),(o=t.call(this,e,r)).items=null,o}return a(n,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===M&&this.prevNodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,i=e.indent,o=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=ee.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(o=s+1,"\n"===r[ee.endOfWhiteSpace(r,o)]){var u=new se;o=u.parse({src:r},o),this.items.push(u)}if((s=ee.endOfIndent(r,o))<=o+i&&(a=r[s],s<o+i||"]"!==a&&"}"!==a)){this.error=new re(this,"Insufficient indentation in flow collection")}break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":var l=new le;s=l.parse({src:r},s),this.items.push(l);break;case"?":case":":var c=r[s+1];if("\n"===c||"\t"===c||" "===c||","===c||":"===a&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:s}),s+=1;break}default:var f=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},s);if(!f)return this.valueRange=new X(t,s),s;this.items.push(f),s=ee.normalizeOffset(r,f.range.end)}a=r[s=ee.endOfWhiteSpace(r,s)]}return this.valueRange=new X(t,s+1),a&&(this.items.push({char:a,offset:s}),s=ee.endOfWhiteSpace(r,s+1),s=this.parseComment(s)),s}},{key:"setOrigRanges",value:function(e,t){return t=g(l(n.prototype),"setOrigRanges",this).call(this,e,t),this.items.forEach((function(n){if(n instanceof ee)t=n.setOrigRanges(e,t);else if(0===e.length)n.origOffset=n.offset;else{for(var r=t;r<e.length&&!(e[r]>n.offset);)++r;n.origOffset=n.offset+r,t=r}})),t}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var i=t.filter((function(e){return e instanceof ee})),o="",a=n.start;return i.forEach((function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(o+=n+String(t))[o.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),o+=e.slice(a,n.end),ee.addStringTerminator(e,n.end,o)}}]),n}(ee),we=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,i=this.context,o=i.indent,a=i.src;'"'!==a[r-1]&&e.push(new ie(this,'Missing closing "quote'));for(var s="",u=n+1;u<r-1;++u){var l=a[u];if("\n"===l){ee.atDocumentBoundary(a,u+1)&&e.push(new re(this,"Document boundary indicators are not allowed within string values"));var c=ee.foldNewline(a,u,o);s+=c.fold,u=c.offset,c.error&&e.push(new re(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===l)switch(a[u+=1]){case"0":s+="\0";break;case"a":s+="\x07";break;case"b":s+="\b";break;case"e":s+="\x1b";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":case"\t":s+="\t";break;case"v":s+="\v";break;case"N":s+="\x85";break;case"_":s+="\xa0";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"x":s+=this.parseCharCode(u+1,2,e),u+=2;break;case"u":s+=this.parseCharCode(u+1,4,e),u+=4;break;case"U":s+=this.parseCharCode(u+1,8,e),u+=8;break;case"\n":for(;" "===a[u+1]||"\t"===a[u+1];)u+=1;break;default:e.push(new ie(this,"Invalid escape sequence ".concat(a.substr(u-1,2)))),s+="\\"+a[u]}else if(" "===l||"\t"===l){for(var f=u,p=a[u+1];" "===p||"\t"===p;)p=a[(u+=1)+1];"\n"!==p&&(s+=u>f?a.slice(f,u+1):l)}else s+=l}return e.length>0?{errors:e,str:s}:s}},{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,i=r.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(o)?(n.push(new ie(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(o)}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,i=n.endOfQuote(r,t+1);return this.valueRange=new X(t,i),i=ee.endOfWhiteSpace(r,i),i=this.parseComment(i)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),n}(ee),Ee=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,i=this.context,o=i.indent,a=i.src;"'"!==a[r-1]&&e.push(new ie(this,"Missing closing 'quote"));for(var s="",u=n+1;u<r-1;++u){var l=a[u];if("\n"===l){ee.atDocumentBoundary(a,u+1)&&e.push(new re(this,"Document boundary indicators are not allowed within string values"));var c=ee.foldNewline(a,u,o);s+=c.fold,u=c.offset,c.error&&e.push(new re(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===l)s+=l,"'"!==a[u+=1]&&e.push(new ie(this,"Unescaped single quote? This should not happen."));else if(" "===l||"\t"===l){for(var f=u,p=a[u+1];" "===p||"\t"===p;)p=a[(u+=1)+1];"\n"!==p&&(s+=u>f?a.slice(f,u+1):l)}else s+=l}return e.length>0?{errors:e,str:s}:s}},{key:"parse",value:function(e,t){this.context=e;var r=e.src,i=n.endOfQuote(r,t+1);return this.valueRange=new X(t,i),i=ee.endOfWhiteSpace(r,i),i=this.parseComment(i)}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),n}(ee);function ke(e,t){switch(e){case A:return new he(e,t);case I:case L:return new ye(e,t);case P:case j:return new be(e,t);case U:case B:case W:return new ue(e,t);case M:case z:return new ae(e,t);case q:return new we(e,t);case H:return new Ee(e,t);default:return null}}var Se=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.atLineStart,a=r.inCollection,u=r.inFlow,l=r.indent,c=r.lineStart,f=r.parent;i(this,e),s(this,"parseNode",(function(n,r){if(ee.atDocumentBoundary(t.src,r))return null;var i=new e(t,n),o=i.parseProps(r),a=o.props,s=o.type,u=o.valueStart,l=ke(s,a),c=l.parse(i,u);if(l.range=new X(r,c),c<=r&&(l.error=new Error("Node#parse consumed no characters"),l.error.parseEnd=c,l.error.source=l,l.range.end=r+1),i.nodeStartsCollection(l)){l.error||i.atLineStart||i.parent.type!==R||(l.error=new ie(l,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var f=new fe(l);return c=f.parse(new e(i),c),f.range=new X(r,c),f}return l})),this.atLineStart=null!=o?o:n.atLineStart||!1,this.inCollection=null!=a?a:n.inCollection||!1,this.inFlow=null!=u?u:n.inFlow||!1,this.indent=null!=l?l:n.indent,this.lineStart=null!=c?c:n.lineStart,this.parent=null!=f?f:n.parent||{},this.root=n.root,this.src=n.src}return a(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof ue)return!0;var i=e.range.end;return"\n"!==r[i]&&"\n"!==r[i-1]&&":"===r[i=ee.endOfWhiteSpace(r,i)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,i=this.src,o=[],a=!1,s=i[t=this.atLineStart?ee.endOfIndent(i,t):ee.endOfWhiteSpace(i,t)];s===_||s===T||s===C||"\n"===s;){if("\n"===s){var u=t,l=void 0;do{l=u+1,u=ee.endOfIndent(i,l)}while("\n"===i[u]);var c=u-(l+this.indent),f=r.type===W&&r.context.atLineStart;if("#"!==i[u]&&!ee.nextNodeIsIndented(i[u],c,!f))break;this.atLineStart=!0,this.lineStart=l,a=!1,t=u}else if(s===T){var p=ee.endOfLine(i,t+1);o.push(new X(t,p)),t=p}else{var d=ee.endOfIdentifier(i,t+1);s===C&&","===i[d]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(t+1,d+13))&&(d=ee.endOfIdentifier(i,d+5)),o.push(new X(t,d)),a=!0,t=ee.endOfWhiteSpace(i,d)}s=i[t]}return a&&":"===s&&ee.atBlank(i,t+1,!0)&&(t-=1),{props:o,type:e.parseType(i,t,n),valueStart:t}}}],[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return A;case">":return I;case"|":return L;case"{":return P;case"[":return j;case"?":return!n&&ee.atBlank(e,t+1,!0)?U:z;case":":return!n&&ee.atBlank(e,t+1,!0)?B:z;case"-":return!n&&ee.atBlank(e,t+1,!0)?W:z;case'"':return q;case"'":return H;default:return z}}}]),e}();function xe(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,(function(e,n){return e.length>1&&t.push(n),"\n"})));var n=[],r=0;do{var i=new de,o=new Se({src:e});r=i.parse(o,r),n.push(i)}while(r<e.length);return n.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var r=0,i=0;i<n.length;++i)r=n[i].setOrigRanges(t,r);return t.splice(0,t.length),!0},n.toString=function(){return n.join("...\n")},n}function _e(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}var Te=function e(){i(this,e)};function Ce(e,t,n){if(Array.isArray(e))return e.map((function(e,t){return Ce(e,String(t),n)}));if(e&&"function"===typeof e.toJSON){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(e){r.res=e,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!==typeof e?e:Number(e)}var Ne=function(e){u(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this)).value=e,r}return a(n,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:Ce(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),n}(Te);function Oe(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var a=[];a[o]=r,r=a}else{var s={};Object.defineProperty(s,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=s}}return e.createNode(r,!1)}var Ae=function(e){return null==e||"object"===r(e)&&e[Symbol.iterator]().next().done},De=function(e){u(n,e);var t=m(n);function n(e){var r;return i(this,n),s(h(r=t.call(this)),"items",[]),r.schema=e,r}return a(n,[{key:"addIn",value:function(e,t){if(Ae(e))this.add(t);else{var r=b(e),i=r[0],o=r.slice(1),a=this.get(i,!0);if(a instanceof n)a.addIn(o,t);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o));this.set(i,Oe(this.schema,o,t))}}}},{key:"deleteIn",value:function(e){var t=b(e),r=t[0],i=t.slice(1);if(0===i.length)return this.delete(r);var o=this.get(r,!0);if(o instanceof n)return o.deleteIn(i);throw new Error("Expected YAML collection at ".concat(r,". Remaining path: ").concat(i))}},{key:"getIn",value:function(e,t){var r=b(e),i=r[0],o=r.slice(1),a=this.get(i,!0);return 0===o.length?!t&&a instanceof Ne?a.value:a:a instanceof n?a.getIn(o,t):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every((function(e){if(!e||"PAIR"!==e.type)return!1;var t=e.value;return null==t||t instanceof Ne&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}},{key:"hasIn",value:function(e){var t=b(e),r=t[0],i=t.slice(1);if(0===i.length)return this.has(r);var o=this.get(r,!0);return o instanceof n&&o.hasIn(i)}},{key:"setIn",value:function(e,t){var r=b(e),i=r[0],o=r.slice(1);if(0===o.length)this.set(i,t);else{var a=this.get(i,!0);if(a instanceof n)a.setIn(o,t);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(i,". Remaining path: ").concat(o));this.set(i,Oe(this.schema,o,t))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,t,r,i){var o=this,a=t.blockItem,s=t.flowChars,u=t.isMap,l=t.itemIndent,c=e,f=c.indent,p=c.indentStep,d=c.stringify,h=this.type===P||this.type===j||e.inFlow;h&&(l+=p);var v=u&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:v,indent:l,inFlow:h,type:null});var m,g=!1,y=!1,b=this.items.reduce((function(t,n,r){var i;n&&(!g&&n.spaceBefore&&t.push({type:"comment",str:""}),n.commentBefore&&n.commentBefore.match(/^.*$/gm).forEach((function(e){t.push({type:"comment",str:"#".concat(e)})})),n.comment&&(i=n.comment),h&&(!g&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(y=!0)),g=!1;var a=d(n,e,(function(){return i=null}),(function(){return g=!0}));return h&&!y&&a.includes("\n")&&(y=!0),h&&r<o.items.length-1&&(a+=","),a=_e(a,l,i),g&&(i||h)&&(g=!1),t.push({type:"item",str:a}),t}),[]);if(0===b.length)m=s.start+s.end;else if(h){var w=s.start,E=s.end,k=b.map((function(e){return e.str}));if(y||k.reduce((function(e,t){return e+t.length+2}),2)>n.maxFlowStringSingleLineLength){m=w;var S,_=x(k);try{for(_.s();!(S=_.n()).done;){var T=S.value;m+=T?"\n".concat(p).concat(f).concat(T):"\n"}}catch(D){_.e(D)}finally{_.f()}m+="\n".concat(f).concat(E)}else m="".concat(w," ").concat(k.join(" ")," ").concat(E)}else{var C=b.map(a);m=C.shift();var N,O=x(C);try{for(O.s();!(N=O.n()).done;){var A=N.value;m+=A?"\n".concat(f).concat(A):"\n"}}catch(D){O.e(D)}finally{O.f()}}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(f,"#")),r&&r()):g&&i&&i(),m}}]),n}(Te);function Ie(e){var t=e instanceof Ne?e.value:e;return t&&"string"===typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}s(De,"maxFlowStringSingleLineLength",60);var Le=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=Ie(e);return"number"===typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=Ie(e);if("number"===typeof n){var r=this.items[n];return!t&&r instanceof Ne?r.value:r}}},{key:"has",value:function(e){var t=Ie(e);return"number"===typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=Ie(e);if("number"!==typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var n=[];t&&t.onCreate&&t.onCreate(n);var r,i=0,o=x(this.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(Ce(a,String(i++),t))}}catch(s){o.e(s)}finally{o.f()}return n}},{key:"toString",value:function(e,t,r){return e?g(l(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,r):JSON.stringify(this)}}]),n}(De),Me=function(e){u(n,e);var t=m(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return i(this,n),(r=t.call(this)).key=e,r.value=o,r.type=n.Type.PAIR,r}return a(n,[{key:"commentBefore",get:function(){return this.key instanceof Te?this.key.commentBefore:void 0},set:function(e){if(null==this.key&&(this.key=new Ne(null)),!(this.key instanceof Te)){throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.")}this.key.commentBefore=e}},{key:"addToJSMap",value:function(e,t){var n=Ce(this.key,"",e);if(t instanceof Map){var i=Ce(this.value,n,e);t.set(n,i)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==r(t)?String(t):e instanceof Te&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t)}(this.key,n,e),a=Ce(this.value,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var i=e.doc.options,o=i.indent,a=i.indentSeq,s=i.simpleKeys,u=this.key,l=this.value,c=u instanceof Te&&u.comment;if(s){if(c)throw new Error("With simple keys, key nodes cannot have comments");if(u instanceof De){throw new Error("With simple keys, collection cannot be used as a key value")}}var f=!s&&(!u||c||(u instanceof Te?u instanceof De||u.type===I||u.type===L:"object"===r(u))),p=e,d=p.doc,h=p.indent,v=p.indentStep,m=p.stringify;e=Object.assign({},e,{implicitKey:!f,indent:h+v});var g=!1,y=m(u,e,(function(){return c=null}),(function(){return g=!0}));if(y=_e(y,e.indent,c),!f&&y.length>1024){if(s)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!s)return this.comment?(y=_e(y,e.indent,this.comment),t&&t()):g&&!c&&n&&n(),e.inFlow&&!f?y:"? ".concat(y);y=f?"? ".concat(y,"\n").concat(h,":"):"".concat(y,":"),this.comment&&(y=_e(y,e.indent,this.comment),t&&t());var b="",w=null;if(l instanceof Te){if(l.spaceBefore&&(b="\n"),l.commentBefore){var E=l.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));b+="\n".concat(E)}w=l.comment}else l&&"object"===r(l)&&(l=d.schema.createNode(l,!0));e.implicitKey=!1,!f&&!this.comment&&l instanceof Ne&&(e.indentAtStart=y.length+1),g=!1,!a&&o>=2&&!e.inFlow&&!f&&l instanceof Le&&l.type!==j&&!l.tag&&!d.anchors.getName(l)&&(e.indent=e.indent.substr(2));var k=m(l,e,(function(){return w=null}),(function(){return g=!0})),S=" ";if(b||this.comment)S="".concat(b,"\n").concat(e.indent);else if(!f&&l instanceof De){("["===k[0]||"{"===k[0])&&!k.includes("\n")||(S="\n".concat(e.indent))}else"\n"===k[0]&&(S="");return g&&!w&&n&&n(),_e(y+S+k,e.indent,w)}}]),n}(Te);s(Me,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Fe=function e(t,n){if(t instanceof Re){var r=n.get(t.source);return r.count*r.aliasCount}if(t instanceof De){var i,o=0,a=x(t.items);try{for(a.s();!(i=a.n()).done;){var s=e(i.value,n);s>o&&(o=s)}}catch(c){a.e(c)}finally{a.f()}return o}if(t instanceof Me){var u=e(t.key,n),l=e(t.value,n);return Math.max(u,l)}return 1},Re=function(e){u(n,e);var t=m(n);function n(e){var r;return i(this,n),(r=t.call(this)).source=e,r.type=A,r}return a(n,[{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(e,t){if(!t)return Ce(this.source,e,t);var n=t.anchors,r=t.maxAliasCount,i=n.get(this.source);if(!i||void 0===i.res){var o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new ne(this.cstNode,o):new ReferenceError(o)}if(r>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=Fe(this.source,n)),i.count*i.aliasCount>r)){var a="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new ne(this.cstNode,a):new ReferenceError(a)}return i.res}},{key:"toString",value:function(e){return n.stringify(this,e)}}],[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,i=t.anchors,o=t.doc,a=t.implicitKey,s=t.inStringifyKey,u=Object.keys(i).find((function(e){return i[e]===r}));if(!u&&s&&(u=o.anchors.getName(r)||o.anchors.newName()),u)return"*".concat(u).concat(a?" ":"");var l=o.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(l," [").concat(n,"]"))}}]),n}(Te);function Pe(e,t){var n,r=t instanceof Ne?t.value:t,i=x(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof Me){if(o.key===t||o.key===r)return o;if(o.key&&o.key.value===r)return o}}}catch(a){i.e(a)}finally{i.f()}}s(Re,"default",!0);var je=function(e){u(n,e);var t=m(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n,[{key:"add",value:function(e,t){e?e instanceof Me||(e=new Me(e.key||e,e.value)):e=new Me(e);var n=Pe(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error("Key ".concat(e.key," already set"));n.value=e.value}else if(r){var i=this.items.findIndex((function(t){return r(e,t)<0}));-1===i?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}},{key:"delete",value:function(e){var t=Pe(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=Pe(this.items,e),r=n&&n.value;return!t&&r instanceof Ne?r.value:r}},{key:"has",value:function(e){return!!Pe(this.items,e)}},{key:"set",value:function(e,t){this.add(new Me(e,t),!0)}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var i,o=x(this.items);try{for(o.s();!(i=o.n()).done;){i.value.addToJSMap(t,r)}}catch(a){o.e(a)}finally{o.f()}return r}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);var i,o=x(this.items);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!(a instanceof Me))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(a)," instead"))}}catch(s){o.e(s)}finally{o.f()}return g(l(n.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,r)}}]),n}(De),Ve=function(e){u(n,e);var t=m(n);function n(e){var r;if(i(this,n),e instanceof Me){var o=e.value;o instanceof Le||((o=new Le).items.push(e.value),o.range=e.value.range),(r=t.call(this,e.key,o)).range=e.range}else r=t.call(this,new Ne("<<"),new Le);return r.type=Me.Type.MERGE_PAIR,v(r)}return a(n,[{key:"addToJSMap",value:function(e,t){var n,r=x(this.value.items);try{for(r.s();!(n=r.n()).done;){var i=n.value.source;if(!(i instanceof je))throw new Error("Merge sources must be maps");var o,a=x(i.toJSON(null,e,Map));try{for(a.s();!(o=a.n()).done;){var s=y(o.value,2),u=s[0],l=s[1];t instanceof Map?t.has(u)||t.set(u,l):t instanceof Set?t.add(u):Object.prototype.hasOwnProperty.call(t,u)||Object.defineProperty(t,u,{value:l,writable:!0,enumerable:!0,configurable:!0})}}catch(c){a.e(c)}finally{a.f()}}}catch(c){r.e(c)}finally{r.f()}return t}},{key:"toString",value:function(e,t){var r=this.value;if(r.items.length>1)return g(l(n.prototype),"toString",this).call(this,e,t);this.value=r.items[0];var i=g(l(n.prototype),"toString",this).call(this,e,t);return this.value=r,i}}]),n}(Me),Ue={defaultType:L,lineWidth:76},Be={trueStr:"true",falseStr:"false"},ze={asBigInt:!1},qe={nullStr:"null"},He={defaultType:z,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Ze(e,t,n){var r,i=x(t);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.format,s=o.test,u=o.resolve;if(s){var l=e.match(s);if(l){var c=u.apply(null,l);return c instanceof Ne||(c=new Ne(c)),a&&(c.format=a),c}}}}catch(f){i.e(f)}finally{i.f()}return n&&(e=n(e)),new Ne(e)}var We="flow",Ge="block",Qe="quoted",$e=function(e,t){for(var n=e[t+1];" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function Ye(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,a=void 0===o?80:o,s=r.minContentWidth,u=void 0===s?20:s,l=r.onFold,c=r.onOverflow;if(!a||a<0)return e;var f=Math.max(1+u,1+a-t.length);if(e.length<=f)return e;var p=[],d={},h=a-t.length;"number"===typeof i&&(i>a-Math.max(2,u)?p.push(0):h=a-i);var v,m=void 0,g=void 0,y=!1,b=-1,w=-1,E=-1;for(n===Ge&&-1!==(b=$e(e,b))&&(h=b+f);v=e[b+=1];){if(n===Qe&&"\\"===v){switch(w=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}E=b}if("\n"===v)n===Ge&&(b=$e(e,b)),h=b+f,m=void 0;else{if(" "===v&&g&&" "!==g&&"\n"!==g&&"\t"!==g){var k=e[b+1];k&&" "!==k&&"\n"!==k&&"\t"!==k&&(m=b)}if(b>=h)if(m)p.push(m),h=m+f,m=void 0;else if(n===Qe){for(;" "===g||"\t"===g;)g=v,v=e[b+=1],y=!0;var S=b>E+1?b-2:w-1;if(d[S])return e;p.push(S),d[S]=!0,h=S+f,m=void 0}else y=!0}g=v}if(y&&c&&c(),0===p.length)return e;l&&l();for(var x=e.slice(0,p[0]),_=0;_<p.length;++_){var T=p[_],C=p[_+1]||e.length;0===T?x="\n".concat(t).concat(e.slice(0,C)):(n===Qe&&d[T]&&(x+="".concat(e[T],"\\")),x+="\n".concat(t).concat(e.slice(T+1,C)))}return x}var Ke=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},He.fold):He.fold},Je=function(e){return/^(%|---|\.\.\.)/m.test(e)};function Xe(e,t){var n=t.implicitKey,r=He.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,a=JSON.stringify(e);if(i)return a;for(var s=t.indent||(Je(e)?" ":""),u="",l=0,c=0,f=a[c];f;f=a[++c])if(" "===f&&"\\"===a[c+1]&&"n"===a[c+2]&&(u+=a.slice(l,c)+"\\ ",l=c+=1,f="\\"),"\\"===f)switch(a[c+1]){case"u":u+=a.slice(l,c);var p=a.substr(c+2,4);switch(p){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:"00"===p.substr(0,2)?u+="\\x"+p.substr(2):u+=a.substr(c,6)}l=(c+=5)+1;break;case"n":if(n||'"'===a[c+2]||a.length<o)c+=1;else{for(u+=a.slice(l,c)+"\n\n";"\\"===a[c+2]&&"n"===a[c+3]&&'"'!==a[c+4];)u+="\n",c+=2;u+=s," "===a[c+2]&&(u+="\\"),l=(c+=1)+1}break;default:c+=1}return u=l?u+a.slice(l):a,n?u:Ye(u,s,Qe,Ke(t))}function et(e,t){if(t.implicitKey){if(/\n/.test(e))return Xe(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Xe(e,t);var n=t.indent||(Je(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return t.implicitKey?r:Ye(r,n,We,Ke(t))}function tt(e,t,n,r){var i=e.comment,o=e.type,a=e.value;if(/\n[\t ]+$/.test(a)||/^\s*$/.test(a))return Xe(a,t);var s=t.indent||(t.forceBlockIndent||Je(a)?" ":""),u=s?"2":"1",l=o!==I&&(o===L||!function(e,t,n){if(!t||t<0)return!1;var r=t-n,i=e.length;if(i<=r)return!1;for(var o=0,a=0;o<i;++o)if("\n"===e[o]){if(o-a>r)return!0;if(i-(a=o+1)<=r)return!1}return!0}(a,He.fold.lineWidth,s.length)),c=l?"|":">";if(!a)return c+"\n";var f="",p="";if(a=a.replace(/[\n\t ]*$/,(function(e){var t=e.indexOf("\n");return-1===t?c+="-":a!==e&&t===e.length-1||(c+="+",r&&r()),p=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(function(e){-1!==e.indexOf(" ")&&(c+=u);var t=e.match(/ +$/);return t?(f=e.slice(0,-t[0].length),t[0]):(f=e,"")})),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(s))),f&&(f=f.replace(/\n+/g,"$&".concat(s))),i&&(c+=" #"+i.replace(/ ?[\r\n]+/g," "),n&&n()),!a)return"".concat(c).concat(u,"\n").concat(s).concat(p);if(l)return a=a.replace(/\n+/g,"$&".concat(s)),"".concat(c,"\n").concat(s).concat(f).concat(a).concat(p);a=a.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(s));var d=Ye("".concat(f).concat(a).concat(p),s,Ge,He.fold);return"".concat(c,"\n").concat(s).concat(d)}function nt(e,t,n,r){var i=He.defaultType,o=t.implicitKey,a=t.inFlow,s=e,u=s.type,l=s.value;"string"!==typeof l&&(l=String(l),e=Object.assign({},e,{value:l}));var c=function(i){switch(i){case I:case L:return tt(e,t,n,r);case q:return Xe(l,t);case H:return et(l,t);case z:return function(e,t,n,r){var i=e.comment,o=e.type,a=e.value,s=t.actualString,u=t.implicitKey,l=t.indent,c=t.inFlow;if(u&&/[\n[\]{},]/.test(a)||c&&/[[\]{},]/.test(a))return Xe(a,t);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return u||c||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?et(a,t):Xe(a,t):tt(e,t,n,r);if(!u&&!c&&o!==z&&-1!==a.indexOf("\n"))return tt(e,t,n,r);if(""===l&&Je(a))return t.forceBlockIndent=!0,tt(e,t,n,r);var f=a.replace(/\n+/g,"$&\n".concat(l));if(s){var p=t.doc.schema.tags;if("string"!==typeof Ze(f,p,p.scalarFallback).value)return Xe(a,t)}var d=u?f:Ye(f,l,We,Ke(t));return!i||c||-1===d.indexOf("\n")&&-1===i.indexOf("\n")?d:(n&&n(),function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}(d,l,i))}(e,t,n,r);default:return null}};u!==q&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)?u=q:!o&&!a||u!==I&&u!==L||(u=q);var f=c(u);if(null===f&&null===(f=c(i)))throw new Error("Unsupported default string type ".concat(i));return f}function rt(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if("bigint"===typeof i)return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||"tag:yaml.org,2002:float"===r)&&/^\d/.test(o)){var a=o.indexOf(".");a<0&&(a=o.length,o+=".");for(var s=n-(o.length-a-1);s-- >0;)o+="0"}return o}function it(e,t){var n,r,i;switch(t.type){case P:n="}",r="flow map";break;case j:n="]",r="flow sequence";break;default:return void e.push(new re(t,"Not a flow collection!?"))}for(var o=t.items.length-1;o>=0;--o){var a=t.items[o];if(!a||a.type!==M){i=a;break}}if(i&&i.char!==n){var s,u="Expected ".concat(r," to end with ").concat(n);"number"===typeof i.offset?(s=new re(t,u)).offset=i.offset+1:(s=new re(i,u),i.range&&i.range.end&&(s.offset=i.range.end-i.range.start)),e.push(s)}}function ot(e,t){var n=t.context.src[t.range.start-1];if("\n"!==n&&"\t"!==n&&" "!==n){e.push(new re(t,"Comments must be separated from other tokens by white space characters"))}}function at(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new re(e,'The "'.concat(r,'" key is too long'))}function st(e,t){var n,r=x(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.afterKey,a=i.before,s=i.comment,u=e.items[a];u?(o&&u.value&&(u=u.value),void 0===s?!o&&u.commentBefore||(u.spaceBefore=!0):u.commentBefore?u.commentBefore+="\n"+s:u.commentBefore=s):void 0!==s&&(e.comment?e.comment+="\n"+s:e.comment=s)}}catch(l){r.e(l)}finally{r.f()}}function ut(e,t){var n=t.strValue;return n?"string"===typeof n?n:(n.errors.forEach((function(n){n.source||(n.source=t),e.errors.push(n)})),n.str):""}function lt(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,a=n.suffix,s=n.verbatim;if(s){if("!"!==s&&"!!"!==s)return s;var u="Verbatim tags aren't resolved, so ".concat(s," is invalid.");e.errors.push(new re(t,u))}else if("!"!==o||a)try{return function(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find((function(e){return e.handle===r}));if(!o){var a=e.getDefaults().tagPrefixes;if(a&&(o=a.find((function(e){return e.handle===r}))),!o)throw new re(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new re(t,"The ".concat(r," tag has no suffix."));if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new oe(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var s=i.match(/^([a-z0-9-]+)\/(.*)/i);return s?"tag:".concat(s[1],".yaml.org,2002:").concat(s[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}(e,t)}catch(l){e.errors.push(l)}else i=!0}switch(r){case I:case L:case q:case H:return Q.STR;case P:case V:return Q.MAP;case j:case Z:return Q.SEQ;case z:return i?Q.STR:null;default:return null}}function ct(e,t,n){var r,i=e.schema.tags,o=[],a=x(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s.tag===n){if(!s.test){var u=s.resolve(e,t);return u instanceof De?u:new Ne(u)}o.push(s)}}}catch(c){a.e(c)}finally{a.f()}var l=ut(e,t);return"string"===typeof l&&o.length>0?Ze(l,o,i.scalarFallback):null}function ft(e,t,n){try{var r=ct(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(u){return u.source||(u.source=t),e.errors.push(u),null}try{var i=function(e){switch(e.type){case P:case V:return Q.MAP;case j:case Z:return Q.SEQ;default:return Q.STR}}(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new oe(t,o));var a=ct(e,t,i);return a.tag=n,a}catch(u){var s=new ne(t,u.message);return s.stack=u.stack,e.errors.push(s),null}}function pt(e,t){var n,r={before:[],after:[]},i=!1,o=!1,a=x(function(e){if(!e)return!1;var t=e.type;return t===U||t===B||t===W}(t.context.parent)?t.context.parent.props.concat(t.props):t.props);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=s.start,l=s.end;switch(t.context.src[u]){case T:if(!t.commentHasRequiredWhitespace(u)){e.push(new re(t,"Comments must be separated from other tokens by white space characters"))}var c=t.header,f=t.valueRange;(f&&(u>f.start||c&&u>c.start)?r.after:r.before).push(t.context.src.slice(u+1,l));break;case _:if(i){e.push(new re(t,"A node can have at most one anchor"))}i=!0;break;case C:if(o){e.push(new re(t,"A node can have at most one tag"))}o=!0}}}catch(p){a.e(p)}finally{a.f()}return{comments:r,hasAnchor:i,hasTag:o}}function dt(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=pt(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var a=e.anchors,s=t.anchor,u=a.getNode(s);u&&(a.map[a.newName(s)]=u),a.map[s]=t}if(t.type===A&&(i||o)){e.errors.push(new re(t,"An alias node must not specify any properties"))}var l=function(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===A){var o=t.rawValue,a=n.getNode(o);if(!a){var s="Aliased anchor not found: ".concat(o);return r.push(new ne(t,s)),null}var u=new Re(a);return n._cstAliases.push(u),u}var l=lt(e,t);if(l)return ft(e,t,l);if(t.type!==z){var c="Failed to resolve ".concat(t.type," node here");return r.push(new ie(t,c)),null}try{return Ze(ut(e,t),i.tags,i.tags.scalarFallback)}catch(f){return f.source||(f.source=t),r.push(f),null}}(e,t);if(l){l.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(l.cstNode=t),e.options.keepNodeTypes&&(l.type=t.type);var c=r.before.join("\n");c&&(l.commentBefore=l.commentBefore?"".concat(l.commentBefore,"\n").concat(c):c);var f=r.after.join("\n");f&&(l.comment=l.comment?"".concat(l.comment,"\n").concat(f):f)}return t.resolved=l}function ht(e,t){if(t.type!==V&&t.type!==P){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new ie(t,n)),null}var r=t.type===P?function(e,t){for(var n=[],r=[],i=void 0,o=!1,a="{",s=0;s<t.items.length;++s){var u=t.items[s];if("string"===typeof u.char){var l=u.char,c=u.offset;if("?"===l&&void 0===i&&!o){o=!0,a=":";continue}if(":"===l){if(void 0===i&&(i=null),":"===a){a=",";continue}}else if(o&&(void 0===i&&","!==l&&(i=null),o=!1),void 0!==i&&(r.push(new Me(i)),i=void 0,","===l)){a=":";continue}if("}"===l){if(s===t.items.length-1)continue}else if(l===a){a=":";continue}var f="Flow map contains an unexpected ".concat(l),p=new ie(t,f);p.offset=c,e.errors.push(p)}else u.type===D?n.push({afterKey:!!i,before:r.length}):u.type===M?(ot(e.errors,u),n.push({afterKey:!!i,before:r.length,comment:u.comment})):void 0===i?(","===a&&e.errors.push(new re(u,"Separator , missing in flow map")),i=dt(e,u)):(","!==a&&e.errors.push(new re(u,"Indicator : missing in flow map entry")),r.push(new Me(i,dt(e,u))),i=void 0,o=!1)}it(e.errors,t),void 0!==i&&r.push(new Me(i));return{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],i=void 0,o=null,a=0;a<t.items.length;++a){var s=t.items[a];switch(s.type){case D:n.push({afterKey:!!i,before:r.length});break;case M:n.push({afterKey:!!i,before:r.length,comment:s.comment});break;case U:void 0!==i&&r.push(new Me(i)),s.error&&e.errors.push(s.error),i=dt(e,s.node),o=null;break;case B:if(void 0===i&&(i=null),s.error&&e.errors.push(s.error),!s.context.atLineStart&&s.node&&s.node.type===V&&!s.node.context.atLineStart){var u="Nested mappings are not allowed in compact mappings";e.errors.push(new re(s.node,u))}var l=s.node;if(!l&&s.props.length>0){(l=new ae(z,[])).context={parent:s,src:s.context.src};var c=s.range.start+1;if(l.range={start:c,end:c},l.valueRange={start:c,end:c},"number"===typeof s.range.origStart){var f=s.range.origStart+1;l.range.origStart=l.range.origEnd=f,l.valueRange.origStart=l.valueRange.origEnd=f}}var p=new Me(i,dt(e,l));vt(s,p),r.push(p),i&&"number"===typeof o&&s.range.start>o+1024&&e.errors.push(at(t,i)),i=void 0,o=null;break;default:void 0!==i&&r.push(new Me(i)),i=dt(e,s),o=s.range.start,s.error&&e.errors.push(s.error);e:for(var d=a+1;;++d){var h=t.items[d];switch(h&&h.type){case D:case M:continue e;case B:break e;default:var v="Implicit map keys need to be followed by map values";e.errors.push(new re(s,v));break e}}if(s.valueRangeContainsNewline){var m="Implicit map keys need to be on a single line";e.errors.push(new re(s,m))}}}void 0!==i&&r.push(new Me(i));return{comments:n,items:r}}(e,t),i=r.comments,o=r.items,a=new je;a.items=o,st(a,i);for(var s=!1,u=0;u<o.length;++u){var l=o[u].key;if(l instanceof De&&(s=!0),e.schema.merge&&l&&"<<"===l.value){o[u]=new Ve(o[u]);var c=o[u].value.items,f=null;c.some((function(e){if(e instanceof Re){var t=e.source.type;return t!==V&&t!==P&&(f="Merge nodes aliases can only point to maps")}return f="Merge nodes can only have Alias nodes as values"})),f&&e.errors.push(new re(t,f))}else for(var p=u+1;p<o.length;++p){var d=o[p].key;if(l===d||l&&d&&Object.prototype.hasOwnProperty.call(l,"value")&&l.value===d.value){var h='Map keys must be unique; "'.concat(l,'" is repeated');e.errors.push(new re(t,h));break}}}if(s&&!e.options.mapAsMap){e.warnings.push(new oe(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=a,a}function vt(e,t){if(function(e){var t=e.context,n=t.lineStart,r=t.node,i=t.src,o=e.props;if(0===o.length)return!1;var a=o[0].start;if(r&&a>r.valueRange.start)return!1;if(i[a]!==T)return!1;for(var s=n;s<a;++s)if("\n"===i[s])return!1;return!0}(e)){var n=e.getPropValue(0,T,!0),r=!1,i=t.value.commentBefore;if(i&&i.startsWith(n))t.value.commentBefore=i.substr(n.length+1),r=!0;else{var o=t.value.comment;!e.node&&o&&o.startsWith(n)&&(t.value.comment=o.substr(n.length+1),r=!0)}r&&(t.comment=n)}}function mt(e,t){if(t.type!==Z&&t.type!==j){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new ie(t,n)),null}var r=t.type===j?function(e,t){for(var n=[],r=[],i=!1,o=void 0,a=null,s="[",u=null,l=0;l<t.items.length;++l){var c=t.items[l];if("string"===typeof c.char){var f=c.char,p=c.offset;if(":"===f||!i&&void 0===o||(i&&void 0===o&&(o=s?r.pop():null),r.push(new Me(o)),i=!1,o=void 0,a=null),f===s)s=null;else if(s||"?"!==f){if("["!==s&&":"===f&&void 0===o){if(","===s){if((o=r.pop())instanceof Me){var d=new re(t,"Chaining flow sequence pairs is invalid");d.offset=p,e.errors.push(d)}if(!i&&"number"===typeof a){var h=c.range?c.range.start:c.offset;h>a+1024&&e.errors.push(at(t,o));for(var v=u.context.src,m=a;m<h;++m)if("\n"===v[m]){var g="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new re(u,g));break}}}else o=null;a=null,i=!1,s=null}else if("["===s||"]"!==f||l<t.items.length-1){var y="Flow sequence contains an unexpected ".concat(f),b=new ie(t,y);b.offset=p,e.errors.push(b)}}else i=!0}else if(c.type===D)n.push({before:r.length});else if(c.type===M)ot(e.errors,c),n.push({comment:c.comment,before:r.length});else{if(s){var w="Expected a ".concat(s," in flow sequence");e.errors.push(new re(c,w))}var E=dt(e,c);void 0===o?(r.push(E),u=c):(r.push(new Me(o,E)),o=void 0),a=c.range.start,s=","}}it(e.errors,t),void 0!==o&&r.push(new Me(o));return{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],i=0;i<t.items.length;++i){var o=t.items[i];switch(o.type){case D:n.push({before:r.length});break;case M:n.push({comment:o.comment,before:r.length});break;case W:if(o.error&&e.errors.push(o.error),r.push(dt(e,o.node)),o.hasProps){var a="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new re(o,a))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new ie(o,"Unexpected ".concat(o.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=r.comments,o=r.items,a=new Le;if(a.items=o,st(a,i),!e.options.mapAsMap&&o.some((function(e){return e instanceof Me&&e.key instanceof De}))){e.warnings.push(new oe(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=a,a}var gt={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=ut(e,t);if("function"===typeof Buffer)return Buffer.from(n,"base64");if("function"===typeof atob){for(var r=atob(n.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length),o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}return e.errors.push(new ne(t,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:Ue,stringify:function(e,t,n,r){var i,o=e.comment,a=e.type,s=e.value;if("function"===typeof Buffer)i=s instanceof Buffer?s.toString("base64"):Buffer.from(s.buffer).toString("base64");else{if("function"!==typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");for(var u="",l=0;l<s.length;++l)u+=String.fromCharCode(s[l]);i=btoa(u)}if(a||(a=Ue.defaultType),a===q)s=i;else{for(var c=Ue.lineWidth,f=Math.ceil(i.length/c),p=new Array(f),d=0,h=0;d<f;++d,h+=c)p[d]=i.substr(h,c);s=p.join(a===L?"\n":" ")}return nt({comment:o,type:a,value:s},t,n,r)}};function yt(e,t){for(var n=mt(e,t),r=0;r<n.items.length;++r){var i=n.items[r];if(!(i instanceof Me)){if(i instanceof je){if(i.items.length>1){throw new re(t,"Each pair must have its own sequence indicator")}var o=i.items[0]||new Me;i.commentBefore&&(o.commentBefore=o.commentBefore?"".concat(i.commentBefore,"\n").concat(o.commentBefore):i.commentBefore),i.comment&&(o.comment=o.comment?"".concat(i.comment,"\n").concat(o.comment):i.comment),i=o}n.items[r]=i instanceof Me?i:new Me(i)}}return n}function bt(e,t,n){var r=new Le(e);r.tag="tag:yaml.org,2002:pairs";var i,o=x(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=void 0,u=void 0;if(Array.isArray(a)){if(2!==a.length)throw new TypeError("Expected [key, value] tuple: ".concat(a));s=a[0],u=a[1]}else if(a&&a instanceof Object){var l=Object.keys(a);if(1!==l.length)throw new TypeError("Expected { key: value } tuple: ".concat(a));u=a[s=l[0]]}else s=a;var c=e.createPair(s,u,n);r.items.push(c)}}catch(f){o.e(f)}finally{o.f()}return r}var wt={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:yt,createNode:bt},Et=function(e){u(n,e);var t=m(n);function n(){var e;return i(this,n),s(h(e=t.call(this)),"add",je.prototype.add.bind(h(e))),s(h(e),"delete",je.prototype.delete.bind(h(e))),s(h(e),"get",je.prototype.get.bind(h(e))),s(h(e),"has",je.prototype.has.bind(h(e))),s(h(e),"set",je.prototype.set.bind(h(e))),e.tag=n.tag,e}return a(n,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r,i=x(this.items);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=void 0,s=void 0;if(o instanceof Me?(a=Ce(o.key,"",t),s=Ce(o.value,a,t)):a=Ce(o,"",t),n.has(a))throw new Error("Ordered maps must not include duplicate keys");n.set(a,s)}}catch(u){i.e(u)}finally{i.f()}return n}}]),n}(Le);s(Et,"tag","tag:yaml.org,2002:omap");var kt={identify:function(e){return e instanceof Map},nodeClass:Et,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n,r=yt(e,t),i=[],o=x(r.items);try{for(o.s();!(n=o.n()).done;){var a=n.value.key;if(a instanceof Ne){if(i.includes(a.value)){throw new re(t,"Ordered maps must not include duplicate keys")}i.push(a.value)}}}catch(s){o.e(s)}finally{o.f()}return Object.assign(new Et,r)},createNode:function(e,t,n){var r=bt(e,t,n),i=new Et;return i.items=r.items,i}},St=function(e){u(n,e);var t=m(n);function n(){var e;return i(this,n),(e=t.call(this)).tag=n.tag,e}return a(n,[{key:"add",value:function(e){var t=e instanceof Me?e:new Me(e);Pe(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=Pe(this.items,e);return!t&&n instanceof Me?n.key instanceof Ne?n.key.value:n.key:n}},{key:"set",value:function(e,t){if("boolean"!==typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(r(t)));var n=Pe(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Me(e))}},{key:"toJSON",value:function(e,t){return g(l(n.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return g(l(n.prototype),"toString",this).call(this,e,t,r);throw new Error("Set items must all have null values")}}]),n}(je);s(St,"tag","tag:yaml.org,2002:set");var xt={identify:function(e){return e instanceof Set},nodeClass:St,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=ht(e,t);if(!n.hasAllNullValues())throw new re(t,"Set items must all have null values");return Object.assign(new St,n)},createNode:function(e,t,n){var r,i=new St,o=x(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.items.push(e.createPair(a,null,n))}}catch(s){o.e(s)}finally{o.f()}return i}},_t=function(e,t){var n=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-n:n},Tt=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return rt(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},Ct={identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return _t(t,n.replace(/_/g,""))},stringify:Tt},Nt={identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return _t(t,n.replace(/_/g,""))},stringify:Tt},Ot={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,i,o,a,s,u){s&&(s=(s+"00").substr(1,3));var l=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(u&&"Z"!==u){var c=_t(u[0],u.slice(1));Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function At(e){var t="undefined"!==typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}||{};return e?"undefined"!==typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!==typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function Dt(e,t){if(At(!1)){var n="undefined"!==typeof process&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var It={};var Lt={createNode:function(e,t,n){var i=new je(e);if(t instanceof Map){var o,a=x(t);try{for(a.s();!(o=a.n()).done;){var s=y(o.value,2),u=s[0],l=s[1];i.items.push(e.createPair(u,l,n))}}catch(d){a.e(d)}finally{a.f()}}else if(t&&"object"===r(t))for(var c=0,f=Object.keys(t);c<f.length;c++){var p=f[c];i.items.push(e.createPair(p,t[p],n))}return"function"===typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:je,tag:"tag:yaml.org,2002:map",resolve:ht};var Mt={createNode:function(e,t,n){var r=new Le(e);if(t&&t[Symbol.iterator]){var i,o=x(t);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e.createNode(a,n.wrapScalars,null,n);r.items.push(s)}}catch(u){o.e(u)}finally{o.f()}}return r},default:!0,nodeClass:Le,tag:"tag:yaml.org,2002:seq",resolve:mt},Ft=[Lt,Mt,{identify:function(e){return"string"===typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:ut,stringify:function(e,t,n,r){return nt(e,t=Object.assign({actualString:!0},t),n,r)},options:He}],Rt=function(e){return"bigint"===typeof e||Number.isInteger(e)},Pt=function(e,t,n){return ze.asBigInt?BigInt(e):parseInt(t,n)};function jt(e,t,n){var r=e.value;return Rt(r)&&r>=0?n+r.toString(t):rt(e)}var Vt={identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new Ne(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:qe,stringify:function(){return qe.nullStr}},Ut={identify:function(e){return"boolean"===typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:Be,stringify:function(e){return e.value?Be.trueStr:Be.falseStr}},Bt={identify:function(e){return Rt(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return Pt(e,t,8)},options:ze,stringify:function(e){return jt(e,8,"0o")}},zt={identify:Rt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return Pt(e,e,10)},options:ze,stringify:rt},qt={identify:function(e){return Rt(e)&&e>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return Pt(e,t,16)},options:ze,stringify:function(e){return jt(e,16,"0x")}},Ht={identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:rt},Zt={identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},Wt={identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,n){var r=t||n,i=new Ne(parseFloat(e));return r&&"0"===r[r.length-1]&&(i.minFractionDigits=r.length),i},stringify:rt},Gt=Ft.concat([Vt,Ut,Bt,zt,qt,Ht,Zt,Wt]),Qt=function(e){return"bigint"===typeof e||Number.isInteger(e)},$t=function(e){var t=e.value;return JSON.stringify(t)},Yt=[Lt,Mt,{identify:function(e){return"string"===typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:ut,stringify:$t},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new Ne(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:$t},{identify:function(e){return"boolean"===typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:$t},{identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return ze.asBigInt?BigInt(e):parseInt(e,10)},stringify:function(e){var t=e.value;return Qt(t)?t.toString():JSON.stringify(t)}},{identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:$t}];Yt.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var Kt=function(e){return e.value?Be.trueStr:Be.falseStr},Jt=function(e){return"bigint"===typeof e||Number.isInteger(e)};function Xt(e,t,n){var r=t.replace(/_/g,"");if(ze.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r)}var i=BigInt(r);return"-"===e?BigInt(-1)*i:i}var o=parseInt(r,n);return"-"===e?-1*o:o}function en(e,t,n){var r=e.value;if(Jt(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return rt(e)}var tn=Ft.concat([{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new Ne(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:qe,stringify:function(){return qe.nullStr}},{identify:function(e){return"boolean"===typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:Be,stringify:Kt},{identify:function(e){return"boolean"===typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:Be,stringify:Kt},{identify:Jt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(e,t,n){return Xt(t,n,2)},stringify:function(e){return en(e,2,"0b")}},{identify:Jt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(e,t,n){return Xt(t,n,8)},stringify:function(e){return en(e,8,"0")}},{identify:Jt,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(e,t,n){return Xt(t,n,10)},stringify:rt},{identify:Jt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(e,t,n){return Xt(t,n,16)},stringify:function(e){return en(e,16,"0x")}},{identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:rt},{identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"===typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var n=new Ne(parseFloat(e.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");"0"===r[r.length-1]&&(n.minFractionDigits=r.length)}return n},stringify:rt}],gt,kt,wt,xt,Ct,Nt,Ot),nn={core:Gt,failsafe:Ft,json:Yt,yaml11:tn},rn={binary:gt,bool:Ut,float:Wt,floatExp:Zt,floatNaN:Ht,floatTime:Nt,int:zt,intHex:qt,intOct:Bt,intTime:Ct,map:Lt,null:Vt,omap:kt,pairs:wt,seq:Mt,set:xt,timestamp:Ot};function on(e,t,n){if(e instanceof Te)return e;var i=n.defaultPrefix,o=n.onTagObj,a=n.prevObjects,s=n.schema,u=n.wrapScalars;t&&t.startsWith("!!")&&(t=i+t.slice(2));var l=function(e,t,n){if(t){var r=n.filter((function(e){return e.tag===t})),i=r.find((function(e){return!e.format}))||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find((function(t){return(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format}))}(e,t,s.tags);if(!l){if("function"===typeof e.toJSON&&(e=e.toJSON()),!e||"object"!==r(e))return u?new Ne(e):e;l=e instanceof Map?Lt:e[Symbol.iterator]?Mt:Lt}o&&(o(l),delete n.onTagObj);var c={value:void 0,node:void 0};if(e&&"object"===r(e)&&a){var f=a.get(e);if(f){var p=new Re(f);return n.aliasNodes.push(p),p}c.value=e,a.set(e,c)}return c.node=l.createNode?l.createNode(n.schema,e,n):u?new Ne(e):e,t&&c.node instanceof Te&&(c.node.tag=t),c.node}var an=function(e,t){return e.key<t.key?-1:e.key>t.key?1:0},sn=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.sortMapEntries,s=t.tags;i(this,e),this.merge=!!r,this.name=o,this.sortMapEntries=!0===a?an:a||null,!n&&s&&function(e,t){if(!It[e]&&At(!0)){It[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");Dt(n+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}("tags","customTags"),this.tags=function(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var a,s=x(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;i=i.concat(u)}}catch(d){s.e(d)}finally{s.f()}}else"function"===typeof n&&(i=n(i.slice()));for(var l=0;l<i.length;++l){var c=i[l];if("string"===typeof c){var f=t[c];if(!f){var p=Object.keys(t).map((function(e){return JSON.stringify(e)})).join(", ");throw new Error('Unknown custom tag "'.concat(c,'"; use one of ').concat(p))}i[l]=f}}return i}(nn,rn,n||s,o)}return a(e,[{key:"createNode",value:function(t,n,r,i){var o={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:n};return on(t,r,i?Object.assign(i,o):o)}},{key:"createPair",value:function(e,t,n){n||(n={wrapScalars:!0});var r=this.createNode(e,n.wrapScalars,null,n),i=this.createNode(t,n.wrapScalars,null,n);return new Me(r,i)}}]),e}();s(sn,"defaultPrefix",G),s(sn,"defaultTags",Q);var un={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},ln={get binary(){return Ue},set binary(e){Object.assign(Ue,e)},get bool(){return Be},set bool(e){Object.assign(Be,e)},get int(){return ze},set int(e){Object.assign(ze,e)},get null(){return qe},set null(e){Object.assign(qe,e)},get str(){return He},set str(e){Object.assign(He,e)}},cn={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:G},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:G}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:G}]}};function fn(e,t){if("1.0"===(e.version||e.options.version)){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find((function(e){return 0===t.indexOf(e.prefix)}));if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find((function(e){return 0===t.indexOf(e.prefix)}))}if(!i)return"!"===t[0]?t:"!<".concat(t,">");var a=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,(function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]}));return i.handle+a}function pn(e,t,n,i){var o,a=t.doc,s=a.anchors,u=a.schema;if(!(e instanceof Te)){var l={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:new Map};e=u.createNode(e,!0,null,l);var c,f=x(l.aliasNodes);try{for(f.s();!(c=f.n()).done;){var p=c.value;p.source=p.source.node;var d=s.getName(p.source);d||(d=s.newName(),s.map[d]=p.source)}}catch(m){f.e(m)}finally{f.f()}}if(e instanceof Me)return e.toString(t,n,i);o||(o=function(e,t){if(t instanceof Re)return Re;if(t.tag){var n=e.filter((function(e){return e.tag===t.tag}));if(n.length>0)return n.find((function(e){return e.format===t.format}))||n[0]}var i,o;if(t instanceof Ne){o=t.value;var a=e.filter((function(e){return e.identify&&e.identify(o)||e.class&&o instanceof e.class}));i=a.find((function(e){return e.format===t.format}))||a.find((function(e){return!e.format}))}else o=t,i=e.find((function(e){return e.nodeClass&&o instanceof e.nodeClass}));if(!i){var s=o&&o.constructor?o.constructor.name:r(o);throw new Error("Tag not resolved for ".concat(s," value"))}return i}(u.tags,e));var h=function(e,t,n){var r=n.anchors,i=n.doc,o=[],a=i.anchors.getName(e);return a&&(r[a]=e,o.push("&".concat(a))),e.tag?o.push(fn(i,e.tag)):t.default||o.push(fn(i,t.tag)),o.join(" ")}(e,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart||0)+h.length+1);var v="function"===typeof o.stringify?o.stringify(e,t,n,i):e instanceof Ne?nt(e,t,n,i):e.toString(t,n,i);return h?e instanceof Ne||"{"===v[0]||"["===v[0]?"".concat(h," ").concat(v):"".concat(h,"\n").concat(t.indent).concat(v):v}var dn=function(){function e(t){i(this,e),s(this,"map",Object.create(null)),this.prefix=t}return a(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new Re(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new Ve,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.value.items=r.map((function(t){if(t instanceof Re){if(t.source instanceof je)return t}else if(t instanceof je)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find((function(n){return t[n]===e}))}},{key:"getNames",value:function(){return Object.keys(this.map)}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach((function(t){e[t]=e[t].resolved})),t.forEach((function(e){e.source=e.source.resolved})),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,i=t&&Object.keys(r).find((function(e){return r[e]===t}));if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}],[{key:"validAnchorNode",value:function(e){return e instanceof Ne||e instanceof Le||e instanceof je}}]),e}(),hn=function e(t,n){if(t&&"object"===r(t)){var i=t.tag;t instanceof De?(i&&(n[i]=!0),t.items.forEach((function(t){return e(t,n)}))):t instanceof Me?(e(t.key,n),e(t.value,n)):t instanceof Ne&&i&&(n[i]=!0)}return n},vn=function(e){return Object.keys(hn(e,{}))};function mn(e,t){var n=e.tagPrefixes,r=y(t.parameters,2),i=r[0],o=r[1];if(!i||!o){throw new re(t,"Insufficient parameters given for %TAG directive")}if(n.some((function(e){return e.handle===i}))){throw new re(t,"The %TAG directive must only be given at most once per handle in the same document.")}return{handle:i,prefix:o}}function gn(e,t){var n=y(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),!n){throw new re(t,"Insufficient parameters given for %YAML directive")}if(!cn[n]){var r=e.version||e.options.version,i="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);e.warnings.push(new oe(t,i))}return n}function yn(e){if(e instanceof De)return!0;throw new Error("Expected a YAML collection as document contents")}var bn=function(){function e(t){i(this,e),this.anchors=new dn(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return a(e,[{key:"add",value:function(e){return yn(this.contents),this.contents.add(e)}},{key:"addIn",value:function(e,t){yn(this.contents),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return yn(this.contents),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return Ae(e)?null!=this.contents&&(this.contents=null,!0):(yn(this.contents),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof De?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return Ae(e)?!t&&this.contents instanceof Ne?this.contents.value:this.contents:this.contents instanceof De?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof De&&this.contents.has(e)}},{key:"hasIn",value:function(e){return Ae(e)?void 0!==this.contents:this.contents instanceof De&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){yn(this.contents),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){Ae(e)?this.contents=t:(yn(this.contents),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"===typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"===typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new sn(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,i=e.contents,o=void 0===i?[]:i,a=e.directivesEndMarker,s=e.error,u=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),function(e,t,n){var r,i=[],o=!1,a=x(t);try{for(a.s();!(r=a.n()).done;){var u=r.value,l=u.comment,c=u.name;switch(c){case"TAG":try{e.tagPrefixes.push(mn(e,u))}catch(s){e.errors.push(s)}o=!0;break;case"YAML":case"YAML:1.0":e.version&&e.errors.push(new re(u,"The %YAML directive must only be given at most once per document."));try{e.version=gn(e,u)}catch(s){e.errors.push(s)}o=!0;break;default:if(c){var f="YAML only supports %TAG and %YAML directives, and not %".concat(c);e.warnings.push(new oe(u,f))}}l&&i.push(l)}}catch(p){a.e(p)}finally{a.f()}n&&!o&&"1.1"===(e.version||n.version||e.options.version)&&(e.tagPrefixes=n.tagPrefixes.map((function(e){return{handle:e.handle,prefix:e.prefix}})),e.version=n.version);e.commentBefore=i.join("\n")||null}(this,r,t),a&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,t){var n,r={before:[],after:[]},i=void 0,o=!1,a=x(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.valueRange){if(void 0!==i){e.errors.push(new ie(s,"Document contains trailing content not separated by a ... or --- line"));break}var u=dt(e,s);o&&(u.spaceBefore=!0,o=!1),i=u}else null!==s.comment?(void 0===i?r.before:r.after).push(s.comment):s.type===D&&(o=!0,void 0===i&&r.before.length>0&&!e.commentBefore&&(e.commentBefore=r.before.join("\n"),r.before=[]))}}catch(f){a.e(f)}finally{a.f()}if(e.contents=i||null,i){var l=r.before.join("\n");if(l){var c=i instanceof De&&i.items[0]?i.items[0]:i;c.commentBefore=c.commentBefore?"".concat(l,"\n").concat(c.commentBefore):l}e.comment=r.after.join("\n")||null}else e.comment=r.before.concat(r.after).join("\n")||null}(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){var l,c=x(this.errors);try{for(c.s();!(l=c.n()).done;){var f=l.value;f instanceof te&&f.makePretty()}}catch(v){c.e(v)}finally{c.f()}var p,d=x(this.warnings);try{for(d.s();!(p=d.n()).done;){var h=p.value;h instanceof te&&h.makePretty()}}catch(v){d.e(v)}finally{d.f()}}return this}},{key:"listNonDefaultTags",value:function(){return vn(this.contents).filter((function(e){return 0!==e.indexOf(sn.defaultPrefix)}))}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find((function(t){return t.handle===e}));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((function(t){return t.handle!==e}))}},{key:"toJSON",value:function(e,t){var n=this,r=this.options,i=r.keepBlobsInJSON,o=r.mapAsMap,a=r.maxAliasCount,s=i&&("string"!==typeof e||!(this.contents instanceof Ne)),u={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!o,maxAliasCount:a,stringify:pn},l=Object.keys(this.anchors.map);l.length>0&&(u.anchors=new Map(l.map((function(e){return[n.anchors.map[e],{alias:[],aliasCount:0,count:1}]}))));var c=Ce(this.contents,e,u);if("function"===typeof t&&u.anchors){var f,p=x(u.anchors.values());try{for(p.s();!(f=p.n()).done;){var d=f.value,h=d.count;t(d.res,h)}}catch(v){p.e(v)}finally{p.f()}}return c}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var e=this.options.indent;if(!Number.isInteger(e)||e<=0){var t=JSON.stringify(e);throw new Error('"indent" option must be a positive integer, not '.concat(t))}this.setSchema();var n=[],r=!1;if(this.version){var i="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?i="%YAML:1.0":"1.1"===this.version&&(i="%YAML 1.1")),n.push(i),r=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach((function(e){var t=e.handle,i=e.prefix;o.some((function(e){return 0===e.indexOf(i)}))&&(n.push("%TAG ".concat(t," ").concat(i)),r=!0)})),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&(!r&&this.directivesEndMarker||n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));var a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:pn},s=!1,u=null;if(this.contents){this.contents instanceof Te&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,u=this.contents.comment);var l=u?null:function(){return s=!0},c=pn(this.contents,a,(function(){return u=null}),l);n.push(_e(c,"",u))}else void 0!==this.contents&&n.push(pn(this.contents,a));return this.comment&&(s&&!u||""===n[n.length-1]||n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join("\n")+"\n"}}]),e}();s(bn,"defaults",cn);var wn=function(e){u(n,e);var t=m(n);function n(e){return i(this,n),t.call(this,Object.assign({},un,e))}return n}(bn);function En(e,t){var n=xe(e),r=new wn(t).parse(n[0]);if(n.length>1){r.errors.unshift(new re(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return r}var kn={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"===typeof t&&(n=t,t=!0);var r=Object.assign({},bn.defaults[un.version],un),i=new sn(r);return i.createNode(e,t,n)},defaultOptions:un,Document:wn,parse:function(e,t){var n=En(e,t);if(n.warnings.forEach((function(e){return Dt(e)})),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r,i=[],o=x(xe(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=new wn(t);s.parse(a,n),i.push(s),n=s}}catch(u){o.e(u)}finally{o.f()}return i},parseCST:xe,parseDocument:En,scalarOptions:ln,stringify:function(e,t){var n=new wn(t);return n.contents=e,String(n)}}},5485:function(e){"use strict";e.exports=JSON.parse('{"Aacute":"\xc1","aacute":"\xe1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223e","acd":"\u223f","acE":"\u223e\u0333","Acirc":"\xc2","acirc":"\xe2","acute":"\xb4","Acy":"\u0410","acy":"\u0430","AElig":"\xc6","aelig":"\xe6","af":"\u2061","Afr":"\ud835\udd04","afr":"\ud835\udd1e","Agrave":"\xc0","agrave":"\xe0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03b1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2a3f","amp":"&","AMP":"&","andand":"\u2a55","And":"\u2a53","and":"\u2227","andd":"\u2a5c","andslope":"\u2a58","andv":"\u2a5a","ang":"\u2220","ange":"\u29a4","angle":"\u2220","angmsdaa":"\u29a8","angmsdab":"\u29a9","angmsdac":"\u29aa","angmsdad":"\u29ab","angmsdae":"\u29ac","angmsdaf":"\u29ad","angmsdag":"\u29ae","angmsdah":"\u29af","angmsd":"\u2221","angrt":"\u221f","angrtvb":"\u22be","angrtvbd":"\u299d","angsph":"\u2222","angst":"\xc5","angzarr":"\u237c","Aogon":"\u0104","aogon":"\u0105","Aopf":"\ud835\udd38","aopf":"\ud835\udd52","apacir":"\u2a6f","ap":"\u2248","apE":"\u2a70","ape":"\u224a","apid":"\u224b","apos":"\'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224a","Aring":"\xc5","aring":"\xe5","Ascr":"\ud835\udc9c","ascr":"\ud835\udcb6","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224d","Atilde":"\xc3","atilde":"\xe3","Auml":"\xc4","auml":"\xe4","awconint":"\u2233","awint":"\u2a11","backcong":"\u224c","backepsilon":"\u03f6","backprime":"\u2035","backsim":"\u223d","backsimeq":"\u22cd","Backslash":"\u2216","Barv":"\u2ae7","barvee":"\u22bd","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23b5","bbrktbrk":"\u23b6","bcong":"\u224c","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201e","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29b0","bepsi":"\u03f6","bernou":"\u212c","Bernoullis":"\u212c","Beta":"\u0392","beta":"\u03b2","beth":"\u2136","between":"\u226c","Bfr":"\ud835\udd05","bfr":"\ud835\udd1f","bigcap":"\u22c2","bigcirc":"\u25ef","bigcup":"\u22c3","bigodot":"\u2a00","bigoplus":"\u2a01","bigotimes":"\u2a02","bigsqcup":"\u2a06","bigstar":"\u2605","bigtriangledown":"\u25bd","bigtriangleup":"\u25b3","biguplus":"\u2a04","bigvee":"\u22c1","bigwedge":"\u22c0","bkarow":"\u290d","blacklozenge":"\u29eb","blacksquare":"\u25aa","blacktriangle":"\u25b4","blacktriangledown":"\u25be","blacktriangleleft":"\u25c2","blacktriangleright":"\u25b8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20e5","bnequiv":"\u2261\u20e5","bNot":"\u2aed","bnot":"\u2310","Bopf":"\ud835\udd39","bopf":"\ud835\udd53","bot":"\u22a5","bottom":"\u22a5","bowtie":"\u22c8","boxbox":"\u29c9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250c","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252c","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229f","boxplus":"\u229e","boxtimes":"\u22a0","boxul":"\u2518","boxuL":"\u255b","boxUl":"\u255c","boxUL":"\u255d","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255a","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253c","boxvH":"\u256a","boxVh":"\u256b","boxVH":"\u256c","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251c","boxvR":"\u255e","boxVr":"\u255f","boxVR":"\u2560","bprime":"\u2035","breve":"\u02d8","Breve":"\u02d8","brvbar":"\xa6","bscr":"\ud835\udcb7","Bscr":"\u212c","bsemi":"\u204f","bsim":"\u223d","bsime":"\u22cd","bsolb":"\u29c5","bsol":"\\\\","bsolhsub":"\u27c8","bull":"\u2022","bullet":"\u2022","bump":"\u224e","bumpE":"\u2aae","bumpe":"\u224f","Bumpeq":"\u224e","bumpeq":"\u224f","Cacute":"\u0106","cacute":"\u0107","capand":"\u2a44","capbrcup":"\u2a49","capcap":"\u2a4b","cap":"\u2229","Cap":"\u22d2","capcup":"\u2a47","capdot":"\u2a40","CapitalDifferentialD":"\u2145","caps":"\u2229\ufe00","caret":"\u2041","caron":"\u02c7","Cayleys":"\u212d","ccaps":"\u2a4d","Ccaron":"\u010c","ccaron":"\u010d","Ccedil":"\xc7","ccedil":"\xe7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2a4c","ccupssm":"\u2a50","Cdot":"\u010a","cdot":"\u010b","cedil":"\xb8","Cedilla":"\xb8","cemptyv":"\u29b2","cent":"\xa2","centerdot":"\xb7","CenterDot":"\xb7","cfr":"\ud835\udd20","Cfr":"\u212d","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03a7","chi":"\u03c7","circ":"\u02c6","circeq":"\u2257","circlearrowleft":"\u21ba","circlearrowright":"\u21bb","circledast":"\u229b","circledcirc":"\u229a","circleddash":"\u229d","CircleDot":"\u2299","circledR":"\xae","circledS":"\u24c8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25cb","cirE":"\u29c3","cire":"\u2257","cirfnint":"\u2a10","cirmid":"\u2aef","cirscir":"\u29c2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201d","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2a74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2a6d","Congruent":"\u2261","conint":"\u222e","Conint":"\u222f","ContourIntegral":"\u222e","copf":"\ud835\udd54","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xa9","COPY":"\xa9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21b5","cross":"\u2717","Cross":"\u2a2f","Cscr":"\ud835\udc9e","cscr":"\ud835\udcb8","csub":"\u2acf","csube":"\u2ad1","csup":"\u2ad0","csupe":"\u2ad2","ctdot":"\u22ef","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22de","cuesc":"\u22df","cularr":"\u21b6","cularrp":"\u293d","cupbrcap":"\u2a48","cupcap":"\u2a46","CupCap":"\u224d","cup":"\u222a","Cup":"\u22d3","cupcup":"\u2a4a","cupdot":"\u228d","cupor":"\u2a45","cups":"\u222a\ufe00","curarr":"\u21b7","curarrm":"\u293c","curlyeqprec":"\u22de","curlyeqsucc":"\u22df","curlyvee":"\u22ce","curlywedge":"\u22cf","curren":"\xa4","curvearrowleft":"\u21b6","curvearrowright":"\u21b7","cuvee":"\u22ce","cuwed":"\u22cf","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232d","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21a1","dArr":"\u21d3","dash":"\u2010","Dashv":"\u2ae4","dashv":"\u22a3","dbkarow":"\u290f","dblac":"\u02dd","Dcaron":"\u010e","dcaron":"\u010f","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21ca","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2a77","deg":"\xb0","Del":"\u2207","Delta":"\u0394","delta":"\u03b4","demptyv":"\u29b1","dfisht":"\u297f","Dfr":"\ud835\udd07","dfr":"\ud835\udd21","dHar":"\u2965","dharl":"\u21c3","dharr":"\u21c2","DiacriticalAcute":"\xb4","DiacriticalDot":"\u02d9","DiacriticalDoubleAcute":"\u02dd","DiacriticalGrave":"`","DiacriticalTilde":"\u02dc","diam":"\u22c4","diamond":"\u22c4","Diamond":"\u22c4","diamondsuit":"\u2666","diams":"\u2666","die":"\xa8","DifferentialD":"\u2146","digamma":"\u03dd","disin":"\u22f2","div":"\xf7","divide":"\xf7","divideontimes":"\u22c7","divonx":"\u22c7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231e","dlcrop":"\u230d","dollar":"$","Dopf":"\ud835\udd3b","dopf":"\ud835\udd55","Dot":"\xa8","dot":"\u02d9","DotDot":"\u20dc","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22a1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222f","DoubleDot":"\xa8","DoubleDownArrow":"\u21d3","DoubleLeftArrow":"\u21d0","DoubleLeftRightArrow":"\u21d4","DoubleLeftTee":"\u2ae4","DoubleLongLeftArrow":"\u27f8","DoubleLongLeftRightArrow":"\u27fa","DoubleLongRightArrow":"\u27f9","DoubleRightArrow":"\u21d2","DoubleRightTee":"\u22a8","DoubleUpArrow":"\u21d1","DoubleUpDownArrow":"\u21d5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21d3","DownArrowUpArrow":"\u21f5","DownBreve":"\u0311","downdownarrows":"\u21ca","downharpoonleft":"\u21c3","downharpoonright":"\u21c2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295e","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21bd","DownRightTeeVector":"\u295f","DownRightVectorBar":"\u2957","DownRightVector":"\u21c1","DownTeeArrow":"\u21a7","DownTee":"\u22a4","drbkarow":"\u2910","drcorn":"\u231f","drcrop":"\u230c","Dscr":"\ud835\udc9f","dscr":"\ud835\udcb9","DScy":"\u0405","dscy":"\u0455","dsol":"\u29f6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22f1","dtri":"\u25bf","dtrif":"\u25be","duarr":"\u21f5","duhar":"\u296f","dwangle":"\u29a6","DZcy":"\u040f","dzcy":"\u045f","dzigrarr":"\u27ff","Eacute":"\xc9","eacute":"\xe9","easter":"\u2a6e","Ecaron":"\u011a","ecaron":"\u011b","Ecirc":"\xca","ecirc":"\xea","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042d","ecy":"\u044d","eDDot":"\u2a77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\ud835\udd08","efr":"\ud835\udd22","eg":"\u2a9a","Egrave":"\xc8","egrave":"\xe8","egs":"\u2a96","egsdot":"\u2a98","el":"\u2a99","Element":"\u2208","elinters":"\u23e7","ell":"\u2113","els":"\u2a95","elsdot":"\u2a97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25fb","emptyv":"\u2205","EmptyVerySmallSquare":"\u25ab","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014a","eng":"\u014b","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\ud835\udd3c","eopf":"\ud835\udd56","epar":"\u22d5","eparsl":"\u29e3","eplus":"\u2a71","epsi":"\u03b5","Epsilon":"\u0395","epsilon":"\u03b5","epsiv":"\u03f5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2a96","eqslantless":"\u2a95","Equal":"\u2a75","equals":"=","EqualTilde":"\u2242","equest":"\u225f","Equilibrium":"\u21cc","equiv":"\u2261","equivDD":"\u2a78","eqvparsl":"\u29e5","erarr":"\u2971","erDot":"\u2253","escr":"\u212f","Escr":"\u2130","esdot":"\u2250","Esim":"\u2a73","esim":"\u2242","Eta":"\u0397","eta":"\u03b7","ETH":"\xd0","eth":"\xf0","Euml":"\xcb","euml":"\xeb","euro":"\u20ac","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\ufb03","fflig":"\ufb00","ffllig":"\ufb04","Ffr":"\ud835\udd09","ffr":"\ud835\udd23","filig":"\ufb01","FilledSmallSquare":"\u25fc","FilledVerySmallSquare":"\u25aa","fjlig":"fj","flat":"\u266d","fllig":"\ufb02","fltns":"\u25b1","fnof":"\u0192","Fopf":"\ud835\udd3d","fopf":"\ud835\udd57","forall":"\u2200","ForAll":"\u2200","fork":"\u22d4","forkv":"\u2ad9","Fouriertrf":"\u2131","fpartint":"\u2a0d","frac12":"\xbd","frac13":"\u2153","frac14":"\xbc","frac15":"\u2155","frac16":"\u2159","frac18":"\u215b","frac23":"\u2154","frac25":"\u2156","frac34":"\xbe","frac35":"\u2157","frac38":"\u215c","frac45":"\u2158","frac56":"\u215a","frac58":"\u215d","frac78":"\u215e","frasl":"\u2044","frown":"\u2322","fscr":"\ud835\udcbb","Fscr":"\u2131","gacute":"\u01f5","Gamma":"\u0393","gamma":"\u03b3","Gammad":"\u03dc","gammad":"\u03dd","gap":"\u2a86","Gbreve":"\u011e","gbreve":"\u011f","Gcedil":"\u0122","Gcirc":"\u011c","gcirc":"\u011d","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2a8c","gel":"\u22db","geq":"\u2265","geqq":"\u2267","geqslant":"\u2a7e","gescc":"\u2aa9","ges":"\u2a7e","gesdot":"\u2a80","gesdoto":"\u2a82","gesdotol":"\u2a84","gesl":"\u22db\ufe00","gesles":"\u2a94","Gfr":"\ud835\udd0a","gfr":"\ud835\udd24","gg":"\u226b","Gg":"\u22d9","ggg":"\u22d9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2aa5","gl":"\u2277","glE":"\u2a92","glj":"\u2aa4","gnap":"\u2a8a","gnapprox":"\u2a8a","gne":"\u2a88","gnE":"\u2269","gneq":"\u2a88","gneqq":"\u2269","gnsim":"\u22e7","Gopf":"\ud835\udd3e","gopf":"\ud835\udd58","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22db","GreaterFullEqual":"\u2267","GreaterGreater":"\u2aa2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2a7e","GreaterTilde":"\u2273","Gscr":"\ud835\udca2","gscr":"\u210a","gsim":"\u2273","gsime":"\u2a8e","gsiml":"\u2a90","gtcc":"\u2aa7","gtcir":"\u2a7a","gt":">","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(o,a),o}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+"."+{0:"a1da3266",39:"dd9b3202",76:"0a014434",88:"b5b4cd91",136:"7849911c",170:"27296619",190:"e088a175",267:"962ef6a4",306:"cb66dc99",316:"7c2be1f0",322:"5ada89eb",344:"e6b10333",430:"de05cf2b",503:"a3ba392a",580:"b48b02d9",587:"f2cbe2fb",619:"cd709ae5",658:"916c9abf",756:"a915a97e",804:"118a9243",849:"f850f73b",983:"df163755"}[e]+".chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="dashboard:";n.l=function(r,i,o,a){if(e[r])e[r].push(i);else{var s,u;if(void 0!==o)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[i];var p=function(t,n){s.onerror=s.onload=null,clearTimeout(d);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),u&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var o=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,o,a=r[0],s=r[1],u=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(u)u(n)}for(t&&t(r);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkdashboard=self.webpackChunkdashboard||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";function e(t,n){return e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e(t,n)}function t(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,e(t,n)}var r=n(2791);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var s=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],s=e&&o(e),u=t&&o(t),l=s||u;if(e&&o(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var f=0,p=i.length;p>=0;p--){var d=i[p];"."===d?a(i,p):".."===d?(a(i,p),f++):f&&(a(i,p),f--)}if(!l)for(;f--;f)i.unshift("..");!l||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h},u="Invariant failed";function l(e,t){if(!e)throw new Error(u)}function c(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function v(e,t,n,r){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=i({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}var b="popstate",w="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function k(e){void 0===e&&(e={}),g||l(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,f=void 0===u?y:u,k=o.keyLength,S=void 0===k?6:k,x=e.basename?d(c(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return x&&(o=p(o,x)),v(o,r,n)}function T(){return Math.random().toString(36).substr(2,S)}var C=m();function N(e){i(U,e),U.length=t.length,C.notifyListeners(U.location,U.action)}function O(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(_(e.state))}function A(){I(_(E()))}var D=!1;function I(e){if(D)D=!1,N();else{C.confirmTransitionTo(e,"POP",f,(function(t){t?N({action:"POP",location:e}):function(e){var t=U.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(D=!0,R(i))}(e)}))}}var L=_(E()),M=[L.key];function F(e){return x+h(e)}function R(e){t.go(e)}var P=0;function j(e){1===(P+=e)&&1===e?(window.addEventListener(b,O),r&&window.addEventListener(w,A)):0===P&&(window.removeEventListener(b,O),r&&window.removeEventListener(w,A))}var V=!1;var U={length:t.length,action:"POP",location:L,createHref:F,push:function(e,r){var i="PUSH",o=v(e,r,T(),U.location);C.confirmTransitionTo(o,i,f,(function(e){if(e){var r=F(o),a=o.key,u=o.state;if(n)if(t.pushState({key:a,state:u},null,r),s)window.location.href=r;else{var l=M.indexOf(U.location.key),c=M.slice(0,l+1);c.push(o.key),M=c,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=v(e,r,T(),U.location);C.confirmTransitionTo(o,i,f,(function(e){if(e){var r=F(o),a=o.key,u=o.state;if(n)if(t.replaceState({key:a,state:u},null,r),s)window.location.replace(r);else{var l=M.indexOf(U.location.key);-1!==l&&(M[l]=o.key),N({action:i,location:o})}else window.location.replace(r)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return V||(j(1),V=!0),function(){return V&&(V=!1,j(-1)),t()}},listen:function(e){var t=C.appendListener(e);return j(1),function(){j(-1),t()}}};return U}var S="hashchange",x={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:c},slash:{encodePath:c,decodePath:c}};function _(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(_(window.location.href)+"#"+e)}function N(e){void 0===e&&{},g||l(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?y:r,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?d(c(e.basename)):"",f=x[s],b=f.encodePath,w=f.decodePath;function E(){var e=w(T());return u&&p(e,u),v(e)}var k=m();function N(e){i(U,e),U.length=t.length,k.notifyListeners(U.location,U.action)}var O=!1,A=null;function D(){var e,t,n=T(),r=b(n);if(n!==r)C(r);else{var i=E(),a=U.location;if(!O&&(i,a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;null,function(e){if(O)!1,N();else{var t="POP";k.confirmTransitionTo(e,t,o,(function(n){n?N({action:t,location:e}):function(e){var t=U.location,n=F.lastIndexOf(h(t));-1===n&&0;var r=F.lastIndexOf(h(e));-1===r&&0;var i=n-r;i&&(!0,R(i))}(e)}))}}(i)}}var I=T(),L=b(I);I!==L&&C(L);var M=E(),F=[h(M)];function R(e){t.go(e)}var P=0;function j(e){1===(P+=e)&&1===e?window.addEventListener(S,D):0===P&&window.removeEventListener(S,D)}var V=!1;var U={length:t.length,action:"POP",location:M,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&_(window.location.href),n+"#"+b(u+h(e))},push:function(e,t){var n="PUSH",r=v(e,void 0,void 0,U.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=b(u+t);if(T()!==i){t,function(e){window.location.hash=e}(i);var o=F.lastIndexOf(h(U.location)),a=F.slice(0,o+1);a.push(t),a,N({action:n,location:r})}else N()}}))},replace:function(e,t){var n="REPLACE",r=v(e,void 0,void 0,U.location);k.confirmTransitionTo(r,n,o,(function(e){if(e){var t=h(r),i=b(u+t);T()!==i&&(t,C(i));var o=F.indexOf(h(U.location));-1!==o&&(F[o]=t),N({action:n,location:r})}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&!1;var t=k.setPrompt(e);return V||(j(1),!0),function(){return V&&(!1,j(-1)),t()}},listen:function(e){var t=k.appendListener(e);return j(1),function(){j(-1),t()}}};return U}function O(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&{};var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,c=m();function f(e){i(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function p(){return Math.random().toString(36).substr(2,l)}var d=O(s,0,o.length-1),g=o.map((function(e){return v(e,void 0,"string"===typeof e?p():e.key||p())})),y=h;function b(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:g.length,action:"POP",location:g[d],index:d,entries:g,createHref:y,push:function(e,t){var r="PUSH",i=v(e,t,p(),w.location);c.confirmTransitionTo(i,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=v(e,t,p(),w.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,f({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&!1,c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}var D=n(9843),I=n.n(D),L=1073741823,M="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};function F(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var R=r.createContext||function(e,n){var i,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return M[e]=(M[e]||0)+1}()+"__",s=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).emitter=F(t.props.value),t}t(r,e);var i=r.prototype;return i.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?t=0:(t="function"===typeof n?n(r,i):L,0!==(t|=0)&&this.emitter.set(e.value,t))}var o,a},i.render=function(){return this.props.children},r}(r.Component);s.childContextTypes=((i={})[a]=I().object.isRequired,i);var u=function(n){function r(){var e;return(e=n.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}t(r,n);var i=r.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?L:t},i.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?L:e},i.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},i.getValue=function(){return this.context[a]?this.context[a].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(r.Component);return u.contextTypes=((o={})[a]=I().object,o),{Provider:s,Consumer:u}},P=R,j=n(6151),V=n.n(j);n(7441);function U(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n(2110);var B=function(e){var t=P();return t.displayName=e,t},z=B("Router-History"),q=B("Router"),H=function(e){function n(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}t(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var i=n.prototype;return i.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},i.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},i.render=function(){return r.createElement(q.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(z.Provider,{children:this.props.children||null,value:this.props.history}))},n}(r.Component);r.Component;r.Component;var Z={},W=0;function G(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Z[n]||(Z[n]={});if(r[e])return r[e];var i=[],o={regexp:V()(e,i,t),keys:i};return W<1e4&&(r[e]=o,W++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],f=u.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var Q=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e=this;return r.createElement(q.Consumer,null,(function(t){t||l(!1);var n=e.props.location||t.location,o=i({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?G(n.pathname,e.props):t.match}),a=e.props,s=a.children,u=a.component,c=a.render;return Array.isArray(s)&&function(e){return 0===r.Children.count(e)}(s)&&(s=null),r.createElement(q.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?r.createElement(u,o):c?c(o):null:"function"===typeof s?s(o):null)}))},n}(r.Component);function $(e){return"/"===e.charAt(0)?e:"/"+e}function Y(e,t){if(!e)return t;var n=$(e);return 0!==t.pathname.indexOf(n)?t:i({},t,{pathname:t.pathname.substr(n.length)})}function K(e){return"string"===typeof e?e:h(e)}function J(e){return function(){l(!1)}}function X(){}r.Component;var ee=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e=this;return r.createElement(q.Consumer,null,(function(t){t||l(!1);var n,o,a=e.props.location||t.location;return r.Children.forEach(e.props.children,(function(e){if(null==o&&r.isValidElement(e)){n=e;var s=e.props.path||e.props.from;o=s?G(a.pathname,i({},e.props,{path:s})):t.match}})),o?r.cloneElement(n,{location:a,computedMatch:o}):null}))},n}(r.Component);var te=r.useContext;function ne(){return te(q).location}function re(){var e=te(q).match;return e?e.params:{}}var ie=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=k(t.props),t}return t(n,e),n.prototype.render=function(){return r.createElement(H,{history:this.history,children:this.props.children})},n}(r.Component);r.Component;var oe=function(e,t){return"function"===typeof e?e(t):e},ae=function(e,t){return"string"===typeof e?v(e,null,null,t):e},se=function(e){return e},ue=r.forwardRef;"undefined"===typeof ue&&(ue=se);var le=ue((function(e,t){var n=e.innerRef,o=e.navigate,a=e.onClick,s=U(e,["innerRef","navigate","onClick"]),u=s.target,l=i({},s,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),o())}});return l.ref=se!==ue&&t||n,r.createElement("a",l)}));var ce=ue((function(e,t){var n=e.component,o=void 0===n?le:n,a=e.replace,s=e.to,u=e.innerRef,c=U(e,["component","replace","to","innerRef"]);return r.createElement(q.Consumer,null,(function(e){e||l(!1);var n=e.history,f=ae(oe(s,e.location),e.location),p=f?n.createHref(f):"",d=i({},c,{href:p,navigate:function(){var t=oe(s,e.location),r=h(e.location)===h(ae(t));(a||r?n.replace:n.push)(t)}});return se!==ue?d.ref=t||u:d.innerRef=u,r.createElement(o,d)}))})),fe=function(e){return e},pe=r.forwardRef;"undefined"===typeof pe&&(pe=fe);pe((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,s=void 0===a?"active":a,u=e.activeStyle,c=e.className,f=e.exact,p=e.isActive,d=e.location,h=e.sensitive,v=e.strict,m=e.style,g=e.to,y=e.innerRef,b=U(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r.createElement(q.Consumer,null,(function(e){e||l(!1);var n=d||e.location,a=ae(oe(g,n),n),w=a.pathname,E=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=E?G(n.pathname,{path:E,exact:f,sensitive:h,strict:v}):null,S=!!(p?p(k,n):k),x="function"===typeof c?c(S):c,_="function"===typeof m?m(S):m;S&&(x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(x,s),_=i({},_,u));var T=i({"aria-current":S&&o||null,className:x,style:_,to:a},b);return fe!==pe?T.ref=t||y:T.innerRef=y,r.createElement(ce,T)}))}));var de=n(4164);function he(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function ve(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){he(o,r,i,a,s,"next",e)}function s(e){he(o,r,i,a,s,"throw",e)}a(void 0)}))}}var me=n(885),ge=n(7757),ye=n.n(ge),be=n(9710),we=n(6749),Ee=n(2343),ke=n(2615),Se=n(4027),xe=n(344),_e=n(6998),Te=n.n(_e),Ce=n(6304),Ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oe=function(e){function t(t){var n=e.call(this,t)||this;return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(e){n.setState({optionsOpen:!1}),n.props.onRun(e.name&&e.name.value)},n._onOptionsOpen=function(e){var t=!0,r=e.currentTarget;n.setState({highlight:null,optionsOpen:!0});var i=function(e){var o;t&&e.target===r?t=!1:(document.removeEventListener("mouseup",i),i=null,e.currentTarget&&(null===(o=r.parentNode)||void 0===o?void 0:o.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||n.setState({optionsOpen:!1}))};document.addEventListener("mouseup",i)},n.state={optionsOpen:!1,highlight:null},n}return Ne(t,e),t.prototype.render=function(){var e,t=this,n=this.props.operations||[],i=this.state.optionsOpen,o=n&&n.length>1,a=null;if(o&&i){var s=this.state.highlight;a=r.createElement("ul",{className:"execute-options"},n.map((function(e,n){var i=e.name?e.name.value:"<Unnamed "+e.operation+">";return r.createElement("li",{key:i+"-"+n,className:e===s?"selected":void 0,onMouseOver:function(){return t.setState({highlight:e})},onMouseOut:function(){return t.setState({highlight:null})},onMouseUp:function(){return t._onOptionSelected(e)}},i)})))}!this.props.isRunning&&o||(e=this._onClick);var u=function(){};this.props.isRunning||!o||i||(u=this._onOptionsOpen);var l=this.props.isRunning?r.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):r.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return r.createElement("div",{className:"execute-button-wrap"},r.createElement("button",{type:"button",className:"execute-button",onMouseDown:u,onClick:e,title:"Execute Query (Ctrl-Enter)"},r.createElement("svg",{width:"34",height:"34"},l)),a)},t}(r.Component),Ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function De(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}}}var Ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._node=null,t.state={width:null,height:null,src:null,mime:null},t}return Ae(t,e),t.shouldRender=function(e){var t=De(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var e,t=this,n=null;if(null!==this.state.width&&null!==this.state.height){var i=this.state.width+"x"+this.state.height;null!==this.state.mime&&(i+=" "+this.state.mime),n=r.createElement("div",null,i)}return r.createElement("div",null,r.createElement("img",{onLoad:function(){return t._updateMetadata()},ref:function(e){t._node=e},src:null===(e=De(this.props.token))||void 0===e?void 0:e.href}),n)},t.prototype._updateMetadata=function(){var e=this;if(this._node){var t=this._node.naturalWidth,n=this._node.naturalHeight,r=this._node.src;r!==this.state.src&&(this.setState({src:r}),fetch(r,{method:"HEAD"}).then((function(t){e.setState({mime:t.headers.get("Content-Type")})}))),t===this.state.width&&n===this.state.height||this.setState({height:n,width:t})}},t}(r.Component),Le=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(e){n.setState({error:e})}},n.state={error:null},n}return Le(t,e),t.prototype.render=function(){var e=this.state.error;return r.createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)},t}(r.Component);function Fe(e){var t=e.children;return r.createElement("div",{className:"toolbar-button-group"},t)}var Re=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pe=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Ve(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return Re(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return r.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Ve,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,r.createElement("svg",{width:"14",height:"8"},r.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),r.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())},t}(r.Component),je=function(e){var t=e.onSelect,n=e.title,i=e.label;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:Ve,onMouseUp:t,title:n},i)};function Ve(e){e.preventDefault()}var Ue=n(3534),Be=n.n(Ue),ze=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029","\u202f","\xa0"]),qe=new RegExp("["+ze.join("")+"]","g");function He(e){return e.replace(qe," ")}var Ze,We=n(2572),Ge=n(1584),Qe=n.n(Ge),$e=new(Be());function Ye(e,t,r){Promise.resolve().then(n.t.bind(n,3668,23)).then((function(e){var n,i;e.default.on(t,"select",(function(e,t){if(!n){var o,a=t.parentNode;(n=document.createElement("div")).className="CodeMirror-hint-information",a.appendChild(n),(i=document.createElement("div")).className="CodeMirror-hint-deprecation",a.appendChild(i),a.addEventListener("DOMNodeRemoved",o=function(e){e.target===a&&(a.removeEventListener("DOMNodeRemoved",o),n=null,i=null,o=null)})}var s=e.description?$e.render(e.description):"Self descriptive.",u=e.type?'<span class="infoType">'+Ke(e.type)+"</span>":"";if(n.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+u+s.slice(3):u+s)+"</div>",e&&i&&e.deprecationReason){var l=e.deprecationReason?$e.render(e.deprecationReason):"";i.innerHTML='<span class="deprecation-label">Deprecated</span>'+l,i.style.display="block"}else i&&(i.style.display="none");r&&r(n)}))}))}function Ke(e){return e instanceof We.bM?Ke(e.ofType)+"!":e instanceof We.p2?"["+Ke(e.ofType)+"]":'<a class="typeName">'+Qe()(e.name)+"</a>"}var Je=!1;"object"===typeof window&&(Je="MacIntel"===window.navigator.platform);var Xe=((Ze={})[Je?"Cmd-F":"Ctrl-F"]="findPersistent",Ze["Cmd-G"]="findPersistent",Ze["Ctrl-G"]="findPersistent",Ze["Ctrl-Left"]="goSubwordLeft",Ze["Ctrl-Right"]="goSubwordRight",Ze["Alt-Left"]="goGroupLeft",Ze["Alt-Right"]="goGroupRight",Ze),et=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},tt=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},nt=[n.e(322).then(n.t.bind(n,2322,23)),n.e(756).then(n.t.bind(n,2756,23)),n.e(88).then(n.t.bind(n,2088,23)),n.e(804).then(n.t.bind(n,1804,23)),n.e(430).then(n.t.bind(n,7430,23)),n.e(983).then(n.t.bind(n,4983,23)),n.e(849).then(n.t.bind(n,6849,23)),n.e(619).then(n.t.bind(n,6619,23)),n.e(170).then(n.t.bind(n,3170,23)),n.e(306).then(n.t.bind(n,8306,23))];function rt(e,t){return et(this,void 0,void 0,(function(){var r,i;return tt(this,(function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,3668,23))];case 1:return r=o.sent().default,i=!1===(null===t||void 0===t?void 0:t.useCommonAddons)?e:nt.concat(e),[4,Promise.all(i.map((function(e){return e})))];case 2:return o.sent(),[2,r]}}))}))}var it=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot=function(){return ot=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ot.apply(this,arguments)},at=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},st=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},ut=new(Be()),lt=/^[a-zA-Z0-9_@(]$/,ct=function(e){function t(t){var r=e.call(this,t)||this;return r.editor=null,r.ignoreChangeEvent=!1,r._node=null,r.addonModules=function(){return[n.e(503).then(n.t.bind(n,9503,23)),n.e(136).then(n.t.bind(n,7136,23)),n.e(190).then(n.t.bind(n,8190,23)),n.e(658).then(n.t.bind(n,2658,23)),n.e(267).then(n.t.bind(n,4267,23)),n.e(587).then(n.t.bind(n,7587,23)),n.e(39).then(n.t.bind(n,9039,23))]},r._onKeyUp=function(e,t){lt.test(t.key)&&r.editor&&r.editor.execCommand("autocomplete")},r._onEdit=function(){!r.ignoreChangeEvent&&r.editor&&(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue))},r._onHasCompletion=function(e,t){Ye(0,t,r.props.onHintInformationRender)},r.cachedValue=t.value||"",r}return it(t,e),t.prototype.componentDidMount=function(){var e=this;this.initializeEditor().then((function(t){t&&(t.on("change",e._onEdit),t.on("keyup",e._onKeyUp),t.on("hasCompletion",e._onHasCompletion),t.on("beforeChange",e._onBeforeChange))})).catch(console.error)},t.prototype.componentDidUpdate=function(e){this.ignoreChangeEvent=!0;var t=!1;this.props.schema!==e.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,t=!0),this.props.externalFragments!==e.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,t=!0),t&&this.CodeMirror.signal(this.editor,"change",this.editor),this.props.value!==e.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion))},t.prototype.render=function(){var e=this;return r.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(t){e._node=t}})},t.prototype.initializeEditor=function(){var e,t,n,r;return at(this,void 0,void 0,(function(){var i,o,a,s=this;return st(this,(function(u){switch(u.label){case 0:return o=this,[4,rt(this.addonModules())];case 1:return i=o.CodeMirror=u.sent(),[2,a=this.editor=i(this._node,{value:null!==(e=this.props.value)&&void 0!==e?e:"",lineNumbers:!0,tabSize:2,foldGutter:{minFoldSize:4},mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",lint:{schema:this.props.schema,validationRules:null!==(t=this.props.validationRules)&&void 0!==t?t:null,externalFragments:null===(n=this.props)||void 0===n?void 0:n.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:null===(r=this.props)||void 0===r?void 0:r.externalFragments},info:{schema:this.props.schema,renderDescription:function(e){return ut.render(e)},onClick:function(e){return s.props.onClickReference&&s.props.onClickReference(e)}},jump:{schema:this.props.schema,onClick:function(e){return s.props.onClickReference&&s.props.onClickReference(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:ot(ot({"Cmd-Space":function(){return a.showHint({completeSingle:!0,container:s._node})},"Ctrl-Space":function(){return a.showHint({completeSingle:!0,container:s._node})},"Alt-Space":function(){return a.showHint({completeSingle:!0,container:s._node})},"Shift-Space":function(){return a.showHint({completeSingle:!0,container:s._node})},"Shift-Alt-Space":function(){return a.showHint({completeSingle:!0,container:s._node})},"Cmd-Enter":function(){s.props.onRunQuery&&s.props.onRunQuery()},"Ctrl-Enter":function(){s.props.onRunQuery&&s.props.onRunQuery()},"Shift-Ctrl-C":function(){s.props.onCopyQuery&&s.props.onCopyQuery()},"Shift-Ctrl-P":function(){s.props.onPrettifyQuery&&s.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){s.props.onPrettifyQuery&&s.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){s.props.onMergeQuery&&s.props.onMergeQuery()}},Xe),{"Cmd-S":function(){s.props.onRunQuery},"Ctrl-S":function(){s.props.onRunQuery}})})]}}))}))},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t.prototype._onBeforeChange=function(e,t){if("paste"===t.origin){var n=t.text.map(He);t.update(t.from,t.to,n)}},t}(r.Component),ft=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(){return pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pt.apply(this,arguments)},dt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},ht=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},vt=function(e){function t(t){var r=e.call(this,t)||this;return r.editor=null,r._node=null,r.ignoreChangeEvent=!1,r.addonModules=function(){return[n.e(316).then(n.t.bind(n,2316,23)),n.e(344).then(n.t.bind(n,3344,23)),n.e(76).then(n.t.bind(n,6076,23))]},r._onKeyUp=function(e,t){var n=t.keyCode;r.editor&&(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&r.editor.execCommand("autocomplete")},r._onEdit=function(){r.editor&&(r.ignoreChangeEvent||(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue)))},r._onHasCompletion=function(e,t){Ye(0,t,r.props.onHintInformationRender)},r.cachedValue=t.value||"",r}return ft(t,e),t.prototype.componentDidMount=function(){var e=this;this.initializeEditor().then((function(t){t.on("change",e._onEdit),t.on("keyup",e._onKeyUp),t.on("hasCompletion",e._onHasCompletion)})).catch(console.error)},t.prototype.componentDidUpdate=function(e){if(this.editor&&this.CodeMirror){if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var e=this;return r.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.initializeEditor=function(){return dt(this,void 0,void 0,(function(){var e,t=this;return ht(this,(function(n){switch(n.label){case 0:return e=this,[4,rt(this.addonModules())];case 1:return e.CodeMirror=n.sent(),[2,this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:pt({"Cmd-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Ctrl-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Alt-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Shift-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Cmd-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Ctrl-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Shift-Ctrl-P":function(){t.props.onPrettifyQuery&&t.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){t.props.onMergeQuery&&t.props.onMergeQuery()}},Xe)})]}}))}))},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(r.Component),mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gt.apply(this,arguments)},yt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},bt=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},wt=function(e){function t(t){var r=e.call(this,t)||this;return r.editor=null,r._node=null,r.ignoreChangeEvent=!1,r.addonModules=function(){return[Promise.resolve().then(n.t.bind(n,5683,23))]},r._onKeyUp=function(e,t){var n=t.keyCode;r.editor&&(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&r.editor.execCommand("autocomplete")},r._onEdit=function(){r.editor&&(r.ignoreChangeEvent||(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue)))},r._onHasCompletion=function(e,t){Ye(0,t,r.props.onHintInformationRender)},r.cachedValue=t.value||"",r}return mt(t,e),t.prototype.componentDidMount=function(){var e=this;this.initializeEditor().then((function(t){t.on("change",e._onEdit),t.on("keyup",e._onKeyUp),t.on("hasCompletion",e._onHasCompletion)})).catch(console.error)},t.prototype.componentDidUpdate=function(e){if(this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==e.value&&this.props.value!==this.cachedValue){var t=this.props.value||"";this.cachedValue=t,this.editor.setValue(t)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var e=this;return r.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(t){e._node=t}})},t.prototype.initializeEditor=function(){return yt(this,void 0,void 0,(function(){var e,t=this;return bt(this,(function(n){switch(n.label){case 0:return e=this,[4,rt(this.addonModules())];case 1:return e.CodeMirror=n.sent(),[2,this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:gt({"Cmd-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Ctrl-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Alt-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Shift-Space":function(){return t.editor.showHint({completeSingle:!1,container:t._node})},"Cmd-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Ctrl-Enter":function(){t.props.onRunQuery&&t.props.onRunQuery()},"Shift-Ctrl-P":function(){t.props.onPrettifyQuery&&t.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){t.props.onMergeQuery&&t.props.onMergeQuery()}},Xe)})]}}))}))},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(r.Component),Et=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},St=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},xt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewer=null,t._node=null,t.allAddons=function(){return[n.e(430).then(n.t.bind(n,7430,23)),n.e(804).then(n.t.bind(n,1804,23)),n.e(170).then(n.t.bind(n,3170,23)),n.e(136).then(n.t.bind(n,7136,23)),n.e(849).then(n.t.bind(n,6849,23)),n.e(619).then(n.t.bind(n,6619,23)),n.e(306).then(n.t.bind(n,8306,23)),n.e(580).then(n.t.bind(n,7580,23))]},t}return Et(t,e),t.prototype.componentDidMount=function(){this.initializeEditor()},t.prototype.shouldComponentUpdate=function(e){return this.props.value!==e.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var e=this;return r.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(t){t&&(e.props.registerRef(t),e._node=t)}})},t.prototype.initializeEditor=function(){return kt(this,void 0,void 0,(function(){var e,t,i,o;return St(this,(function(a){switch(a.label){case 0:return[4,rt(this.allAddons(),{useCommonAddons:!1})];case 1:return e=a.sent(),t=this.props.ResultsTooltip,i=this.props.ImagePreview,t||i?[4,n.e(0).then(n.t.bind(n,9e3,23))]:[3,3];case 2:a.sent(),o=document.createElement("div"),e.registerHelper("info","graphql-results",(function(e,n,a,s){var u=[];return t&&u.push(r.createElement(t,{pos:s})),i&&"function"===typeof i.shouldRender&&i.shouldRender(e)&&u.push(r.createElement(i,{token:e})),u.length?(de.render(r.createElement("div",null,u),o),o):(de.unmountComponentAtNode(o),null)})),a.label=3;case 3:return this.viewer=e(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Xe}),[2]}}))}))},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(r.Component);function _t(e){var t=e.onClick?e.onClick:function(){return null};return Tt(e.type,t)}function Tt(e,t){return e instanceof We.bM?r.createElement("span",null,Tt(e.ofType,t),"!"):e instanceof We.p2?r.createElement("span",null,"[",Tt(e.ofType,t),"]"):r.createElement("a",{className:"type-name",onClick:function(n){n.preventDefault(),t(e,n)},href:"#"},null===e||void 0===e?void 0:e.name)}var Ct=n(4244);function Nt(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?r.createElement("span",null," = ",r.createElement("span",{className:"arg-default-value"},(t=(0,Ct.J)(n.defaultValue,n.type))?(0,ke.S)(t):"")):null}function Ot(e){var t=e.arg,n=e.onClickType,i=e.showDefaultValue;return r.createElement("span",{className:"arg"},r.createElement("span",{className:"arg-name"},t.name),": ",r.createElement(_t,{type:t.type,onClick:n}),!1!==i&&r.createElement(Nt,{field:t}))}function At(e){var t=e.directive;return r.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Dt=new(Be())({breaks:!0,linkify:!0});function It(e){var t=e.markdown,n=e.className;return t?r.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:Dt.render(t)}}):r.createElement("div",null)}var Lt=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Mt(e){var t,n,i,o=e.field,a=e.onClickType,s=Lt(r.useState(!1),2),u=s[0],l=s[1];if(o&&"args"in o&&o.args.length>0){t=r.createElement("div",{id:"doc-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"arguments"),o.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement("div",null,r.createElement(Ot,{arg:e,onClickType:a})),r.createElement(It,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(It,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})));var c=o.args.filter((function(e){return Boolean(e.deprecationReason)}));c.length>0&&(n=r.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated arguments"),u?c.map((function(e,t){return r.createElement("div",{key:t},r.createElement("div",null,r.createElement(Ot,{arg:e,onClickType:a})),r.createElement(It,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(It,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})):r.createElement("button",{className:"show-btn",onClick:function(){return l(!u)}},"Show deprecated arguments...")))}return o&&o.astNode&&o.astNode.directives&&o.astNode.directives.length>0&&(i=r.createElement("div",{id:"doc-directives",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"directives"),o.astNode.directives.map((function(e){return r.createElement("div",{key:e.name.value,className:"doc-category-item"},r.createElement("div",null,r.createElement(At,{directive:e})))})))),r.createElement("div",null,r.createElement(It,{className:"doc-type-description",markdown:(null===o||void 0===o?void 0:o.description)||"No Description"}),o&&"deprecationReason"in o&&r.createElement(It,{className:"doc-deprecation",markdown:null===o||void 0===o?void 0:o.deprecationReason}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"type"),r.createElement(_t,{type:null===o||void 0===o?void 0:o.type,onClick:a})),t,i,n)}function Ft(e){var t=e.schema,n=e.onClickType,i=t.getQueryType(),o=t.getMutationType&&t.getMutationType(),a=t.getSubscriptionType&&t.getSubscriptionType();return r.createElement("div",null,r.createElement(It,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"root types"),r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"query"),": ",r.createElement(_t,{type:i,onClick:n})),o&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"mutation"),": ",r.createElement(_t,{type:o,onClick:n})),a&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"subscription"),": ",r.createElement(_t,{type:a,onClick:n}))))}function Rt(e,t){var n;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout((function(){n=null,t.apply(r,i)}),e)}}var Pt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jt=function(e){function t(t){var n=e.call(this,t)||this;return n.handleChange=function(e){var t=e.currentTarget.value;n.setState({value:t}),n.debouncedOnSearch(t)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:t.value||""},n.debouncedOnSearch=Rt(200,n.props.onSearch),n}return Pt(t,e),t.prototype.render=function(){return r.createElement("label",{className:"search-box"},r.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"\u26b2"),r.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&r.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"\u2715"))},t}(r.Component),Vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vt(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue},t.prototype.render=function(){var e,t,n=this.props.searchValue,i=this.props.withinType,o=this.props.schema,a=this.props.onClickType,s=this.props.onClickField,u=[],l=[],c=[],f=o.getTypeMap(),p=Object.keys(f);i&&(p=p.filter((function(e){return e!==i.name}))).unshift(i.name);var d=function(e){if(u.length+l.length+c.length>=100)return"break";var t=f[e];if(i!==t&&qt(e,n)&&l.push(r.createElement("div",{className:"doc-category-item",key:e},r.createElement(_t,{type:t,onClick:a}))),t&&"getFields"in t){var o=t.getFields();Object.keys(o).forEach((function(l){var f,p=o[l];if(!qt(l,n)){if(!("args"in p)||!p.args.length)return;if(0===(f=p.args.filter((function(e){return qt(e.name,n)}))).length)return}var d=r.createElement("div",{className:"doc-category-item",key:e+"."+l},i!==t&&[r.createElement(_t,{key:"type",type:t,onClick:a}),"."],r.createElement("a",{className:"field-name",onClick:function(e){return s(p,t,e)}},p.name),f&&["(",r.createElement("span",{key:"args"},f.map((function(e){return r.createElement(Ot,{key:e.name,arg:e,onClickType:a,showDefaultValue:!1})}))),")"]);i===t?u.push(d):c.push(d)}))}};try{for(var h=Ut(p),v=h.next();!v.done;v=h.next()){if("break"===d(v.value))break}}catch(m){e={error:m}}finally{try{v&&!v.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return u.length+l.length+c.length===0?r.createElement("span",{className:"doc-alert-text"},"No results found."):i&&l.length+c.length>0?r.createElement("div",null,u,r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"other results"),l,c)):r.createElement("div",{className:"doc-search-items"},u,l,c)},t}(r.Component),zt=Bt;function qt(e,t){try{var n=t.replace(/[^_0-9A-Za-z]/g,(function(e){return"\\"+e}));return-1!==e.search(new RegExp(n,"i"))}catch(r){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}var Ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zt=function(e){function t(t){var n=e.call(this,t)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return Ht(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated},t.prototype.render=function(){var e,t,n,i,o,a=this.props.schema,s=this.props.type,u=this.props.onClickType,l=this.props.onClickField,c=null,f=[];if(s instanceof We.Gp?(c="possible types",f=a.getPossibleTypes(s)):s instanceof We.oW?(c="implementations",f=a.getPossibleTypes(s)):s instanceof We.h6&&(c="implements",f=s.getInterfaces()),f&&f.length>0&&(e=r.createElement("div",{id:"doc-types",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},c),f.map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement(_t,{type:e,onClick:u}))})))),s&&"getFields"in s){var p=s.getFields(),d=Object.keys(p).map((function(e){return p[e]}));t=r.createElement("div",{id:"doc-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"fields"),d.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(Wt,{key:e.name,type:s,field:e,onClickType:u,onClickField:l})})));var h=d.filter((function(e){return Boolean(e.deprecationReason)}));h.length>0&&(n=r.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?h.map((function(e){return r.createElement(Wt,{key:e.name,type:s,field:e,onClickType:u,onClickField:l})})):r.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(s instanceof We.mR){var v=s.getValues();i=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"values"),v.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return r.createElement(Gt,{key:e.name,value:e})})));var m=v.filter((function(e){return Boolean(e.deprecationReason)}));m.length>0&&(o=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?m.map((function(e){return r.createElement(Gt,{key:e.name,value:e})})):r.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return r.createElement("div",null,r.createElement(It,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),s instanceof We.h6&&e,t,n,i,o,!(s instanceof We.h6)&&e)},t}(r.Component);function Wt(e){var t=e.type,n=e.field,i=e.onClickType,o=e.onClickField;return r.createElement("div",{className:"doc-category-item"},r.createElement("a",{className:"field-name",onClick:function(e){return o(n,t,e)}},n.name),"args"in n&&n.args&&n.args.length>0&&["(",r.createElement("span",{key:"args"},n.args.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement(Ot,{key:e.name,arg:e,onClickType:i})}))),")"],": ",r.createElement(_t,{type:n.type,onClick:i}),r.createElement(Nt,{field:n}),n.description&&r.createElement(It,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&r.createElement(It,{className:"doc-deprecation",markdown:n.deprecationReason}))}function Gt(e){var t=e.value;return r.createElement("div",{className:"doc-category-item"},r.createElement("div",{className:"enum-value"},t.name),r.createElement(It,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&r.createElement(It,{className:"doc-deprecation",markdown:t.deprecationReason}))}var Qt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=function(){return $t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$t.apply(this,arguments)},Yt={name:"Schema",title:"Documentation Explorer"},Kt=function(e){function t(t){var n=e.call(this,t)||this;return n.handleNavBackClick=function(){n.state.navStack.length>1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(e){n.showDoc(e)},n.handleClickField=function(e){n.showDoc(e)},n.handleSearch=function(e){n.showSearch(e)},n.state={navStack:[Yt]},n}return Qt(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack||this.props.schemaErrors!==e.schemaErrors},t.prototype.render=function(){var e,t=this.props,n=t.schema,i=t.schemaErrors,o=this.state.navStack,a=o[o.length-1];e=i?r.createElement("div",{className:"error-container"},"Error fetching schema"):void 0===n?r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})):n?a.search?r.createElement(zt,{searchValue:a.search,withinType:a.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===o.length?r.createElement(Ft,{schema:n,onClickType:this.handleClickType}):(0,We.P9)(a.def)?r.createElement(Zt,{schema:n,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):r.createElement(Mt,{field:a.def,onClickType:this.handleClickType}):r.createElement("div",{className:"error-container"},"No Schema Available");var s,u=1===o.length||(0,We.P9)(a.def)&&"getFields"in a.def;return o.length>1&&(s=o[o.length-2].name),r.createElement("section",{className:"doc-explorer",key:a.name,"aria-label":"Documentation Explorer"},r.createElement("div",{className:"doc-explorer-title-bar"},s&&r.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+s},s),r.createElement("div",{className:"doc-explorer-title"},a.title||a.name),r.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),r.createElement("div",{className:"doc-explorer-contents"},u&&r.createElement(jt,{value:a.search,placeholder:"Search "+a.name+"...",onSearch:this.handleSearch}),e))},t.prototype.showDoc=function(e){var t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})},t.prototype.showDocForReference=function(e){e&&"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind||"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)},t.prototype.showSearch=function(e){var t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]=$t($t({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[Yt]})},t}(r.Component),Jt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return Jt(t,e),t.prototype.render=function(){var e,t=this,n=this.props.label||this.props.operationName||(null===(e=this.props.query)||void 0===e?void 0:e.split("\n").filter((function(e){return 0!==e.indexOf("#")})).join("")),i=this.props.favorite?"\u2605":"\u2606";return r.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?r.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(e){t.editField=e},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):r.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),r.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"\u270e"),r.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},i))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(e){var t=this;e.stopPropagation(),this.setState({editable:!0},(function(){t.editField&&t.editField.focus()}))},t}(r.Component),en=Xt,tn=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},nn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tn(arguments[t]));return e},rn=function(){function e(e,t,n){void 0===n&&(n=null),this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(e){return this.items.some((function(t){return t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName}))},e.prototype.edit=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())},e.prototype.delete=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())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]},e.prototype.push=function(e){var t,n=nn(this.items,[e]);this.maxSize&&n.length>this.maxSize&&n.shift();for(var r=0;r<5;r++){var i=this.storage.set(this.key,JSON.stringify(((t={})[this.key]=n,t)));if(i&&i.error){if(!i.isQuotaError||!this.maxSize)return;n.shift()}else this.items=n}},e.prototype.save=function(){var e;this.storage.set(this.key,JSON.stringify(((e={})[this.key]=this.items,e)))},e}(),on=rn,an=function(){return an=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},an.apply(this,arguments)},sn=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},un=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(sn(arguments[t]));return e},ln=function(e,t){var n=this;this.storage=e,this.maxHistoryLength=t,this.shouldSaveQuery=function(e,t,n,r){if(!e)return!1;try{(0,Se.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},this.fetchAllQueries=function(){var e=n.history.fetchAll(),t=n.favorite.fetchAll();return e.concat(t)},this.updateHistory=function(e,t,r,i){if(n.shouldSaveQuery(e,t,r,n.history.fetchRecent())){n.history.push({query:e,variables:t,headers:r,operationName:i});var o=n.history.items,a=n.favorite.items;n.queries=o.concat(a)}},this.toggleFavorite=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};n.favorite.contains(s)?a&&(s.favorite=!1,n.favorite.delete(s)):(s.favorite=!0,n.favorite.push(s)),n.queries=un(n.history.items,n.favorite.items)},this.editLabel=function(e,t,r,i,o,a){var s={query:e,variables:t,headers:r,operationName:i,label:o};a?n.favorite.edit(an(an({},s),{favorite:a})):n.history.edit(s),n.queries=un(n.history.items,n.favorite.items)},this.history=new on("queries",this.storage,this.maxHistoryLength),this.favorite=new on("favorites",this.storage,null),this.queries=this.fetchAllQueries()},cn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fn=function(){return fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},fn.apply(this,arguments)},pn=function(e){function t(t){var n=e.call(this,t)||this;n.onUpdateHistory=function(e,t,r,i){n.historyStore.updateHistory(e,t,r,i),n.setState({queries:n.historyStore.queries})},n.onHandleEditLabel=function(e,t,r,i,o,a){n.historyStore.editLabel(e,t,r,i,o,a),n.setState({queries:n.historyStore.queries})},n.onToggleFavorite=function(e,t,r,i,o,a){n.historyStore.toggleFavorite(e,t,r,i,o,a),n.setState({queries:n.historyStore.queries})},n.historyStore=new ln(n.props.storage,n.props.maxHistoryLength);var r=n.historyStore.queries;return n.state={queries:r},n}return cn(t,e),t.prototype.render=function(){var e=this,t=this.state.queries.slice().reverse().map((function(t,n){return r.createElement(en,fn({handleEditLabel:e.onHandleEditLabel,handleToggleFavorite:e.onToggleFavorite,key:n+":"+(t.label||t.query),onSelect:e.props.onSelectQuery},t))}));return r.createElement("section",{"aria-label":"History"},r.createElement("div",{className:"history-title-bar"},r.createElement("div",{className:"history-title"},"History"),r.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),r.createElement("ul",{className:"history-contents"},t))},t}(r.Component),dn=function(){function e(){this.sizes=[]}return e.prototype.updateSizes=function(e){var t=this;e.forEach((function(e,n){if(e){var r=e.getClientHeight();if(n<=t.sizes.length&&r!==t.sizes[n]){var i=e.getCodeMirror();i&&i.setSize(null,null)}t.sizes[n]=r}}))},e}(),hn=dn;var vn=function(){function e(e){this.storage=e||("undefined"!==typeof window?window.localStorage:null)}return e.prototype.get=function(e){if(this.storage){var t=this.storage.getItem("graphiql:"+e);if("null"===t||"undefined"===t)return this.storage.removeItem("graphiql:"+e),null;if(t)return t}return null},e.prototype.set=function(e,t){var n=!1,r=null;if(this.storage){var i="graphiql:"+e;if(t)try{this.storage.setItem(i,t)}catch(o){r=o,n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,o)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}},e}(),mn=vn;function gn(e,t,n){if(n&&!(n.length<1)){var r=n.map((function(e){return e.name&&e.name.value}));if(t&&-1!==r.indexOf(t))return t;if(t&&e){var i=e.map((function(e){return e.name&&e.name.value})).indexOf(t);if(-1!==i&&i<r.length)return r[i]}return r[0]}}function yn(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}var bn=n(4277),wn=n(3208);function En(e,t,n){var r,i=[];if(!e||!t)return{insertions:i,result:t};try{r=(0,Se.Qc)(t)}catch(s){return{insertions:i,result:t}}var o=n||kn,a=new bn.a(e);return(0,xe.Vn)(r,{leave:function(e){a.leave(e)},enter:function(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){var n=Sn(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){var r=function(e,t){var n=t,r=t;for(;n;){var i=e.charCodeAt(n-1);if(10===i||13===i||8232===i||8233===i)break;n--,9!==i&&11!==i&&12!==i&&32!==i&&160!==i&&(r=n)}return e.substring(n,r)}(t,e.loc.start);i.push({index:e.loc.end,string:" "+(0,ke.S)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:i,result:xn(t,i)}}function kn(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var n=[];return Object.keys(t).forEach((function(e){(0,We.UT)(t[e].type)&&n.push(e)})),n}function Sn(e,t){var n=(0,We.xC)(e);if(e&&!(0,We.UT)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:wn.h.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:wn.h.FIELD,name:{kind:wn.h.NAME,value:e},selectionSet:Sn(i,t)}}))}}}function xn(e,t){if(0===t.length)return e;var n="",r=0;return t.forEach((function(t){var i=t.index,o=t.string;n+=e.slice(r,i)+o,r=i})),n+=e.slice(r)}function _n(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t}function Tn(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Cn.apply(this,arguments)},Nn=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},On=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},An=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(On(arguments[t]));return e};function Dn(e,t,n){var r,i,o,a=n?(0,We.xC)(n).name:null,s=[],u=[];try{for(var l=Nn(t),c=l.next();!c.done;c=l.next()){var f=c.value;if("FragmentSpread"===f.kind){var p=f.name.value;if(!f.directives||0===f.directives.length){if(u.indexOf(p)>=0)continue;u.push(p)}var d=e[f.name.value];if(d){var h=d.typeCondition,v=d.directives,m=d.selectionSet;f={kind:wn.h.INLINE_FRAGMENT,typeCondition:h,directives:v,selectionSet:m}}}if(f.kind===wn.h.INLINE_FRAGMENT&&(!f.directives||0===(null===(o=f.directives)||void 0===o?void 0:o.length))){var g=f.typeCondition?f.typeCondition.name.value:null;if(!g||g===a){s.push.apply(s,An(Dn(e,f.selectionSet.selections,n)));continue}}s.push(f)}}catch(y){r={error:y}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return s}function In(e,t){var n,r,i=t?new bn.a(t):null,o=Object.create(null);try{for(var a=Nn(e.definitions),s=a.next();!s.done;s=a.next()){var u=s.value;u.kind===wn.h.FRAGMENT_DEFINITION&&(o[u.name.value]=u)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var l={SelectionSet:function(e){var t=i?i.getParentType():null,n=e.selections;return n=function(e,t){var n,r,i=new Map,o=[];try{for(var a=Nn(e),s=a.next();!s.done;s=a.next()){var u=s.value;if("Field"===u.kind){var l=t(u),c=i.get(l);if(u.directives&&u.directives.length){var f=Cn({},u);o.push(f)}else c&&c.selectionSet&&u.selectionSet?c.selectionSet.selections=An(c.selectionSet.selections,u.selectionSet.selections):c||(f=Cn({},u),i.set(l,f),o.push(f))}else o.push(u)}}catch(p){n={error:p}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}(n=Dn(o,n,t),(function(e){return e.alias?e.alias.value:e.name.value})),Cn(Cn({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,xe.Vn)(e,i?(0,bn.y)(i,l):l)}var Ln=n(7809),Mn=n.n(Ln),Fn=n(7477),Rn=function(){return Rn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Rn.apply(this,arguments)};function Pn(e){return r.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(t){t.stopPropagation(),e.onClick()}})}function jn(e){return r.createElement("button",Rn({},e.tabProps,{role:"tab",type:"button","aria-selected":e.isActive,title:e.title,className:"tab"+(e.isActive?" active":""),onClick:e.onSelect}),e.title,e.isCloseable?r.createElement(Pn,{onClick:function(){return e.onClose()}}):null)}function Vn(e){return r.createElement("button",{onClick:e.onClick,className:"tab-add",title:"Create new tab"},r.createElement("span",null,"+"))}function Un(e){return r.createElement("div",Rn({role:"tablist",className:"tabs"},e.tabsProps),e.children)}function Bn(e){var t,n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/.exec(e);return null!==(t=null===n||void 0===n?void 0:n[2])&&void 0!==t?t:"<untitled>"}function zn(e){var t,n,r;return[null!==(t=e.query)&&void 0!==t?t:"",null!==(n=e.variables)&&void 0!==n?n:"",null!==(r=e.headers)&&void 0!==r?r:""].join("|")}function qn(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var Hn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(){return Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zn.apply(this,arguments)},Wn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Gn=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Qn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},$n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof Jn?Jn(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}},Yn=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Kn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Yn(arguments[t]));return e},Jn=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};if(parseInt(r.version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));var Xn=function(e){return JSON.stringify(e,null,2)},er=function(e){return e instanceof Ee._?e.toString():e instanceof Error?function(e){return Zn(Zn({},e),{message:e.message,stack:e.stack})}(e):e},tr=function(e){function t(n){var r,i,o,a,s,u,l,c,f,p,d,h=e.call(this,n)||this;if(h._editorQueryID=0,h.safeSetState=function(e,t){h.componentIsMounted&&h.setState(e,t)},h.persistTabsState=function(){var e,t;h.props.tabs&&(h._storage.set("tabState",JSON.stringify(h.state.tabs,(function(e,t){return"response"===e||h.state.shouldPersistHeaders&&"headers"===e?void 0:t}))),"object"===typeof h.props.tabs&&(null===(t=(e=h.props.tabs).onTabChange)||void 0===t||t.call(e,h.state.tabs)))},h.makeHandleOnSelectTab=function(e){return function(){h.handleStopQuery(),h.setState((function(t){return function(e,t){var n=t.tabs.activeTabIndex,r=t.tabs.tabs.map((function(e,r){return r!==n?e:Zn(Zn({},e),{query:t.query,variables:t.variables,operationName:t.operationName,headers:t.headers,response:t.response,hash:zn({query:t.query,variables:t.variables,headers:t.headers})})})),i=t.tabs.tabs[e];return Zn(Zn({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:Zn(Zn({},t.tabs),{tabs:r,activeTabIndex:e})})}(e,t)}),(function(){h.persistTabsState(),h.state.query&&h.handleEditQuery(h.state.query)}))}},h.makeHandleOnCloseTab=function(e){return function(){h.state.tabs.activeTabIndex===e&&h.handleStopQuery(),h.setState((function(t){return function(e,t){var n=t.tabs.activeTabIndex>0?t.tabs.activeTabIndex-1:0,r=Zn(Zn({},t.tabs),{activeTabIndex:n,tabs:t.tabs.tabs.filter((function(t,n){return e!==n}))}),i=r.tabs[n];return Zn(Zn({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:r})}(e,t)}),h.persistTabsState)}},h.handleOnAddTab=function(){h.setState((function(e){return function(e){var t=e.tabs.activeTabIndex,n={id:qn(),title:"<untitled>",headers:"",variables:"",query:"",operationName:"",response:"",hash:zn({query:"",variables:"",headers:""})},r=e.tabs.tabs.map((function(n,r){return r!==t?n:Zn(Zn({},n),{headers:e.headers,variables:e.variables,query:e.query,operationName:e.operationName,response:e.response})}));return Zn(Zn({},e),{headers:n.headers,variables:n.variables,query:n.query,operationName:n.operationName,response:n.response,tabs:Zn(Zn({},e.tabs),{activeTabIndex:e.tabs.tabs.length,tabs:Kn(r,[n])})})}(e)}),h.persistTabsState)},h.handleClickReference=function(e){h.setState({docExplorerOpen:!0},(function(){h.docExplorerComponent&&h.docExplorerComponent.showDocForReference(e)})),h._storage.set("docExplorerOpen",JSON.stringify(h.state.docExplorerOpen))},h.handleRunQuery=function(e){return Wn(h,void 0,void 0,(function(){var n,r,i,o,a,s,u,l,c,f=this;return Gn(this,(function(p){switch(p.label){case 0:this._editorQueryID++,n=this._editorQueryID,r=this.autoCompleteLeafs()||this.state.query||"",i=this.state.variables,o=this.state.headers,a=this.state.shouldPersistHeaders,s=this.state.operationName,e&&e!==s&&(s=e,this.handleEditOperationName(s)),p.label=1;case 1:return p.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:s}),this._storage.set("operationName",s),this._queryHistory?this._queryHistory.onUpdateHistory(r,i,o,s):this._historyStore&&this._historyStore.updateHistory(r,i,o,s),u={data:{}},[4,this._fetchQuery(r,i,o,s,a,(function(e){var r,i;if(n===f._editorQueryID){var o=!!Array.isArray(e)&&e;if(!o&&"string"!==typeof e&&null!==e&&"hasNext"in e&&(o=[e]),o){var a={data:u.data},s=Kn((null===u||void 0===u?void 0:u.errors)||[],o.map((function(e){return e.errors})).flat().filter(Boolean));s.length&&(a.errors=s);try{for(var l=Jn(o),c=l.next();!c.done;c=l.next()){var p=c.value,d=p.path,h=p.data,v=(p.errors,Qn(p,["path","data","errors"]));if(d){if(!h)throw new Error("Expected part to contain a data property, but got "+p);Mn()(a.data,d,h,{merge:!0})}else h&&(a.data=p.data);u=Zn(Zn({},a),v)}}catch(g){r={error:g}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}f.setState({isWaitingForResponse:!1,response:t.formatResult(u)})}else{var m=t.formatResult(e);f.setState((function(e){return Zn(Zn({},e),{tabs:Zn(Zn({},e.tabs),{tabs:e.tabs.tabs.map((function(t,n){return n!==e.tabs.activeTabIndex?t:Zn(Zn({},t),{response:m})}))}),isWaitingForResponse:!1,response:m})}),f.persistTabsState)}}}))];case 2:return l=p.sent(),this.setState({subscription:l}),[3,4];case 3:return c=p.sent(),this.setState({isWaitingForResponse:!1,response:c.message}),[3,4];case 4:return[2]}}))}))},h.handleStopQuery=function(){var e=h.state.subscription;h.setState({isWaitingForResponse:!1,subscription:null}),e&&e.unsubscribe()},h.handlePrettifyQuery=function(){var e,t,n,r=h.getQueryEditor(),i=null!==(e=null===r||void 0===r?void 0:r.getValue())&&void 0!==e?e:"",o=(0,ke.S)((0,Se.Qc)(i));o!==i&&(null===r||void 0===r||r.setValue(o));var a=h.getVariableEditor(),s=null!==(t=null===a||void 0===a?void 0:a.getValue())&&void 0!==t?t:"";try{var c=JSON.stringify(JSON.parse(s),null,2);c!==s&&(null===a||void 0===a||a.setValue(c))}catch(u){}var f=h.getHeaderEditor(),p=null!==(n=null===f||void 0===f?void 0:f.getValue())&&void 0!==n?n:"";try{var d=JSON.stringify(JSON.parse(p),null,2);d!==p&&(null===f||void 0===f||f.setValue(d))}catch(l){}},h.handleMergeQuery=function(){var e=h.getQueryEditor();if(e.getValue()){var t=h.state.documentAST;e.setValue((0,ke.S)(In(t,h.state.schema)))}},h.handleEditQuery=Rt(100,(function(e){var t=h._updateQueryFacts(e,h.state.operationName,h.state.operations,h.state.schema);if(h.setState((function(n){return Zn(Zn(Zn(Zn({},n),{query:e}),t),{tabs:dr(e,n.tabs,null===t||void 0===t?void 0:t.operationName)})}),h.persistTabsState),h._storage.set("query",e),h.props.onEditQuery)return h.props.onEditQuery(e,null===t||void 0===t?void 0:t.documentAST)})),h.handleCopyQuery=function(){var e=h.getQueryEditor(),t=e&&e.getValue();if(t)return Te()(t),h.props.onCopyQuery?h.props.onCopyQuery(t):void 0},h._updateQueryFacts=function(e,t,n,r){var i=(0,Ce.getOperationFacts)(r,e);if(i){var o=gn(n,t,i.operations),a=h.props.onEditOperationName;return a&&o&&t!==o&&a(o),Zn({operationName:o},i)}},h.handleEditVariables=function(e){h.setState((function(t){return Zn(Zn({},t),{variables:e,tabs:pr(e,t.tabs)})}),h.persistTabsState),Rt(500,(function(){return h._storage.set("variables",e)}))(),h.props.onEditVariables&&h.props.onEditVariables(e)},h.handleEditHeaders=function(e){h.setState((function(t){return Zn(Zn({},t),{headers:e,tabs:fr(e,t.tabs)})}),h.persistTabsState),h.props.shouldPersistHeaders&&Rt(500,(function(){return h._storage.set("headers",e)}))(),h.props.onEditHeaders&&h.props.onEditHeaders(e)},h.handleEditOperationName=function(e){var t=h.props.onEditOperationName;t&&t(e)},h.handleHintInformationRender=function(e){var t;e.addEventListener("click",h._onClickHintInformation),e.addEventListener("DOMNodeRemoved",t=function(){e.removeEventListener("DOMNodeRemoved",t),e.removeEventListener("click",h._onClickHintInformation)})},h.handleEditorRunQuery=function(){h._runQueryAtCursor()},h._onClickHintInformation=function(e){if((null===e||void 0===e?void 0:e.currentTarget)&&"className"in e.currentTarget&&"typeName"===e.currentTarget.className){var t=e.currentTarget.innerHTML,n=h.state.schema;if(n){var r=n.getType(t);r&&(h.setState({docExplorerOpen:!0},(function(){h.docExplorerComponent&&h.docExplorerComponent.showDoc(r)})),Rt(500,(function(){return h._storage.set("docExplorerOpen",JSON.stringify(h.state.docExplorerOpen))}))())}}},h.handleToggleDocs=function(){"function"===typeof h.props.onToggleDocs&&h.props.onToggleDocs(!h.state.docExplorerOpen),h._storage.set("docExplorerOpen",JSON.stringify(!h.state.docExplorerOpen)),h.setState({docExplorerOpen:!h.state.docExplorerOpen})},h.handleToggleHistory=function(){"function"===typeof h.props.onToggleHistory&&h.props.onToggleHistory(!h.state.historyPaneOpen),h._storage.set("historyPaneOpen",JSON.stringify(!h.state.historyPaneOpen)),h.setState({historyPaneOpen:!h.state.historyPaneOpen})},h.handleSelectHistoryQuery=function(e,t,n,r){e&&h.handleEditQuery(e),t&&h.handleEditVariables(t),n&&h.handleEditHeaders(n),r&&h.handleEditOperationName(r)},h.handleResizeStart=function(e){if(h._didClickDragBar(e)){e.preventDefault();var t=e.clientX-_n(e.target),n=function(e){if(0===e.buttons)return r();var n=h.editorBarComponent,i=e.clientX-_n(n)-t,o=n.clientWidth-i;h.setState({editorFlex:i/o}),Rt(500,(function(){return h._storage.set("editorFlex",JSON.stringify(h.state.editorFlex))}))()},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),n=null,r=null};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}},h.handleResetResize=function(){h.setState({editorFlex:1}),h._storage.set("editorFlex",JSON.stringify(h.state.editorFlex))},h.handleDocsResizeStart=function(e){e.preventDefault();var t=h.state.docExplorerWidth,n=e.clientX-_n(e.target),r=function(e){if(0===e.buttons)return i();var t=h.graphiqlContainer,r=e.clientX-_n(t)-n,o=t.clientWidth-r;o<100?("function"===typeof h.props.onToggleDocs&&h.props.onToggleDocs(!h.state.docExplorerOpen),h._storage.set("docExplorerOpen",JSON.stringify(h.state.docExplorerOpen)),h.setState({docExplorerOpen:!1})):(h.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(o,650)}),Rt(500,(function(){return h._storage.set("docExplorerWidth",JSON.stringify(h.state.docExplorerWidth))}))()),h._storage.set("docExplorerOpen",JSON.stringify(h.state.docExplorerOpen))},i=function(){h.state.docExplorerOpen||(h.setState({docExplorerWidth:t}),Rt(500,(function(){return h._storage.set("docExplorerWidth",JSON.stringify(h.state.docExplorerWidth))}))()),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)},h.handleDocsResetResize=function(){h.setState({docExplorerWidth:350}),Rt(500,(function(){return h._storage.set("docExplorerWidth",JSON.stringify(h.state.docExplorerWidth))}))()},h.handleTabClickPropogation=function(e){e.preventDefault(),e.stopPropagation()},h.handleOpenHeaderEditorTab=function(e){h.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},h.handleOpenVariableEditorTab=function(e){h.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},h.handleSecondaryEditorResizeStart=function(e){e.preventDefault();var t=!1,n=h.state.secondaryEditorOpen,r=h.state.secondaryEditorHeight,i=e.clientY-Tn(e.target),o=function(e){if(0===e.buttons)return a();t=!0;var n=h.editorBarComponent,o=e.clientY-Tn(n)-i,s=n.clientHeight-o;s<60?h.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):h.setState({secondaryEditorOpen:!0,secondaryEditorHeight:s}),Rt(500,(function(){return h._storage.set("secondaryEditorHeight",JSON.stringify(h.state.secondaryEditorHeight))}))()},a=function(){t||h.setState({secondaryEditorOpen:!n}),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a),o=null,a=null};document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)},"function"!==typeof n.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");h._storage=new mn(n.storage);var v=null!==(s=n.maxHistoryLength)&&void 0!==s?s:20;h._historyStore=new ln(h._storage,v),h.componentIsMounted=!1;var m,g=void 0!==n.query?n.query:h._storage.get("query")?h._storage.get("query"):void 0!==n.defaultQuery?n.defaultQuery:or,y=(0,Ce.getOperationFacts)(n.schema,g),b=void 0!==n.variables?n.variables:h._storage.get("variables"),w=void 0!==n.headers?n.headers:h._storage.get("headers"),E=void 0!==n.operationName?n.operationName:gn(void 0,h._storage.get("operationName"),y&&y.operations),k=n.docExplorerOpen||!1;h._storage.get("docExplorerOpen")&&(k="true"===h._storage.get("docExplorerOpen")),m=void 0!==n.defaultVariableEditorOpen?n.defaultVariableEditorOpen:void 0!==n.defaultSecondaryEditorOpen?n.defaultSecondaryEditorOpen:Boolean(b||w);var S=null===(u=n.headerEditorEnabled)||void 0===u||u,x=null!==(l=n.shouldPersistHeaders)&&void 0!==l&&l,_=n.schema,T=n.response,C=void 0;if(_&&!h.props.dangerouslyAssumeSchemaIsValid){var N=(0,Fn.F)(_);N&&N.length>0&&(T=t.formatError(N),_=void 0,C=N)}h._introspectionQuery=(0,be.K)({schemaDescription:null!==(c=n.schemaDescription)&&void 0!==c?c:void 0,inputValueDeprecation:null!==(f=n.inputValueDeprecation)&&void 0!==f?f:void 0}),h._introspectionQueryName=null!==(p=n.introspectionQueryName)&&void 0!==p?p:"IntrospectionQuery",h._introspectionQuerySansSubscriptions=h._introspectionQuery.replace("subscriptionType { name }","");var O,A=zn({query:g,variables:b,headers:w}),D={id:qn(),hash:A,title:null!==E&&void 0!==E?E:"<untitled>",query:g,variables:b,headers:w,operationName:E,response:void 0},I=null;if(h.props.tabs&&(I=h._storage.get("tabState")),null===I)O={activeTabIndex:0,tabs:[D]};else{O=JSON.parse(I);var L=!1;try{for(var M=Jn(O.tabs),F=M.next();!F.done;F=M.next()){(U=F.value).query=U.query,U.variables=U.variables,U.headers=x?U.headers:void 0,U.response=void 0,U.operationName=void 0,U.id=qn(),U.hash=zn(U),U.hash===A&&(L=!0)}}catch(B){r={error:B}}finally{try{F&&!F.done&&(i=M.return)&&i.call(M)}finally{if(r)throw r.error}}!1===L&&(O.tabs.push(D),O.activeTabIndex=O.tabs.length-1)}var R=O.tabs[0],P=0;try{for(var j=Jn(O.tabs),V=j.next();!V.done;V=j.next()){var U;if((U=V.value).hash===A){O.activeTabIndex=P,R=U;break}P++}}catch(z){o={error:z}}finally{try{V&&!V.done&&(a=j.return)&&a.call(j)}finally{if(o)throw o.error}}return h.state=Zn({tabs:O,schema:_,query:null===R||void 0===R?void 0:R.query,variables:null===R||void 0===R?void 0:R.variables,headers:null===R||void 0===R?void 0:R.headers,operationName:null===R||void 0===R?void 0:R.operationName,response:null!==(d=null===R||void 0===R?void 0:R.response)&&void 0!==d?d:T,docExplorerOpen:k,schemaErrors:C,editorFlex:Number(h._storage.get("editorFlex"))||1,secondaryEditorOpen:m,secondaryEditorHeight:Number(h._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==h._storage.get("variableEditorActive")&&!n.headerEditorEnabled||"true"!==h._storage.get("headerEditorActive"),headerEditorActive:"true"===h._storage.get("headerEditorActive"),headerEditorEnabled:S,shouldPersistHeaders:x,historyPaneOpen:"true"===h._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(h._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:v},y),h.state.query&&h.handleEditQuery(h.state.query),h}return Hn(t,e),t.formatResult=function(e){return JSON.stringify(e,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new hn,"undefined"!==typeof window&&(window.g=this)},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.operationName,s=this.state.response;if(void 0!==e.schema&&(n=e.schema),void 0!==e.query&&this.props.query!==e.query&&(r=e.query),void 0!==e.variables&&this.props.variables!==e.variables&&(i=e.variables),void 0!==e.headers&&this.props.headers!==e.headers&&(o=e.headers),void 0!==e.operationName&&(a=e.operationName),void 0!==e.response&&(s=e.response),r&&n&&(n!==this.state.schema||r!==this.state.query||a!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var u=(0,Fn.F)(n);u&&u.length>0&&(this.handleSchemaErrors(u),n=void 0)}var l=this._updateQueryFacts(r,a,this.state.operations,n);void 0!==l&&(a=l.operationName,this.setState(l))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(n=void 0),this._storage.set("operationName",a),this.setState({schema:n,query:r,variables:i,headers:o,operationName:a,response:s},(function(){void 0===t.state.schema&&(t.docExplorerComponent&&t.docExplorerComponent.reset(),t.fetchSchema())}))},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var e,n=this,i=r.Children.toArray(this.props.children),o=yn(i,(function(e){return cr(e,t.Logo)}))||r.createElement(t.Logo,null),a=yn(i,(function(e){return cr(e,t.Toolbar)}))||r.createElement(t.Toolbar,null,r.createElement(Me,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),r.createElement(Me,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),r.createElement(Me,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),r.createElement(Me,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),(null===(e=this.props.toolbar)||void 0===e?void 0:e.additionalContent)?this.props.toolbar.additionalContent:null),s=yn(i,(function(e){return cr(e,t.Footer)})),u={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},l={display:"block",width:this.state.docExplorerWidth},c="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),f={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},p=this.state.secondaryEditorOpen,d={height:p?this.state.secondaryEditorHeight:void 0},h=this.state.tabs;return r.createElement("div",{ref:function(e){n.graphiqlContainer=e},"data-testid":"graphiql-container",className:"graphiql-container"},this.state.historyPaneOpen&&r.createElement("div",{className:"historyPaneWrap",style:f},r.createElement(pn,{ref:function(e){n._queryHistory=e},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID},r.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"\u2715"))),r.createElement("div",{className:"editorWrap"},r.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,r.createElement("div",{className:"topBar"},o,r.createElement(Oe,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),a),!this.state.docExplorerOpen&&r.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?r.createElement(Un,{tabsProps:{"aria-label":"Select active operation"}},h.tabs.map((function(e,t){return r.createElement(jn,{key:e.id,isActive:t===h.activeTabIndex,title:e.title,isCloseable:h.tabs.length>1,onSelect:n.makeHandleOnSelectTab(t),onClose:n.makeHandleOnCloseTab(t),tabProps:{"aria-controls":"sessionWrap",id:"session-tab-"+t}})})),r.createElement(Vn,{onClick:this.handleOnAddTab})):null,r.createElement("div",{ref:function(e){n.editorBarComponent=e},role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-"+h.activeTabIndex,onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},r.createElement("div",{className:"queryWrap",style:u},r.createElement(ct,{ref:function(e){n.queryEditorComponent=e},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),r.createElement("section",{className:"variable-editor secondary-editor",style:d,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},r.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:p?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},r.createElement("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&r.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),r.createElement(vt,{ref:function(e){n.variableEditorComponent=e},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&r.createElement(wt,{ref:function(e){n.headerEditorComponent=e},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),r.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&r.createElement("div",{className:"spinner-container"},r.createElement("div",{className:"spinner"})),r.createElement(xt,{registerRef:function(e){n.resultViewerElement=e},ref:function(e){n.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:Ie}),s))),this.state.docExplorerOpen&&r.createElement("div",{className:c,style:l},r.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),r.createElement(Kt,{ref:function(e){n.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},r.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"\u2715"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},t.prototype.autoCompleteLeafs=function(){var e=En(this.state.schema,this.state.query,this.props.getDefaultFieldNames),t=e.insertions,n=e.result;if(t&&t.length>0){var r=this.getQueryEditor();r&&r.operation((function(){var e=r.getCursor(),i=r.indexFromPos(e);r.setValue(n||"");var o=0,a=t.map((function(e){var t=e.index,n=e.string;return r.markText(r.posFromIndex(t+o),r.posFromIndex(t+(o+=n.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})}));setTimeout((function(){return a.forEach((function(e){return e.clear()}))}),7e3);var s=i;t.forEach((function(e){var t=e.index,n=e.string;t<i&&(s+=n.length)})),r.setCursor(r.posFromIndex(s))}))}return n},t.prototype.fetchSchema=function(){var e=this,n=this.props.fetcher,r={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};try{this.state.headers&&this.state.headers.trim().length>2?r.headers=JSON.parse(this.state.headers):this.props.headers&&(r.headers=JSON.parse(this.props.headers))}catch(o){return void this.setState({response:"Introspection failed as headers are invalid."})}var i=lr(n({query:this._introspectionQuery,operationName:this._introspectionQueryName},r));ar(i)?i.then((function(t){if("string"!==typeof t&&"data"in t)return t;var o=lr(n({query:e._introspectionQuerySansSubscriptions,operationName:e._introspectionQueryName},r));if(!ar(i))throw new Error("Fetcher did not return a Promise for introspection.");return o})).then((function(n){var r,i;if(void 0===e.state.schema)if(n&&n.data&&"__schema"in(null===n||void 0===n?void 0:n.data)){var o=(0,we.Z)(n.data);if(!e.props.dangerouslyAssumeSchemaIsValid){var a=(0,Fn.F)(o);a&&a.length>0&&(o=void 0,e.handleSchemaErrors(a))}if(o){var s=(0,Ce.getOperationFacts)(o,e.state.query);e.safeSetState(Zn(Zn({schema:o},s),{schemaErrors:void 0})),null===(i=(r=e.props).onSchemaChange)||void 0===i||i.call(r,o)}}else{var u="string"===typeof n?n:t.formatResult(n);e.handleSchemaErrors([u])}})).catch((function(t){e.handleSchemaErrors([t])})):this.setState({response:"Fetcher did not return a Promise for introspection."})},t.prototype.handleSchemaErrors=function(e){this.safeSetState({response:e?t.formatError(e):void 0,schema:void 0,schemaErrors:e})},t.prototype._fetchQuery=function(e,n,r,i,o,a){return Wn(this,void 0,void 0,(function(){var s,u,l,c,f,p,d=this;return Gn(this,(function(h){s=this.props.fetcher,u=null,l=null;try{u=n&&""!==n.trim()?JSON.parse(n):null}catch(v){throw new Error("Variables are invalid JSON: "+v.message+".")}if("object"!==typeof u)throw new Error("Variables are not a JSON object.");try{l=r&&""!==r.trim()?JSON.parse(r):null}catch(v){throw new Error("Headers are invalid JSON: "+v.message+".")}if("object"!==typeof l)throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(c=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach((function(e){c.set(e.name.value,e)})):(0,xe.Vn)((0,Se.Qc)(this.props.externalFragments,{}),{FragmentDefinition:function(e){c.set(e.name.value,e)}}),(f=(0,Ce.getFragmentDependenciesForAST)(this.state.documentAST,c)).length>0&&(e+="\n"+f.map((function(e){return(0,ke.S)(e)})).join("\n"))),p=s({query:e,variables:u,operationName:i},{headers:l,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(p).then((function(e){return sr(e)?e.subscribe({next:a,error:function(e){d.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0,subscription:null})},complete:function(){d.safeSetState({isWaitingForResponse:!1,subscription:null})}}):ur(e)?(Wn(d,void 0,void 0,(function(){var n,r,i,o,s,u,l;return Gn(this,(function(c){switch(c.label){case 0:c.trys.push([0,13,,14]),c.label=1;case 1:c.trys.push([1,6,7,12]),n=$n(e),c.label=2;case 2:return[4,n.next()];case 3:if((r=c.sent()).done)return[3,5];i=r.value,a(i),c.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o=c.sent(),u={error:o},[3,12];case 7:return c.trys.push([7,,10,11]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,9];case 8:c.sent(),c.label=9;case 9:return[3,11];case 10:if(u)throw u.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return s=c.sent(),this.safeSetState({isWaitingForResponse:!1,response:s?t.formatError(s):void 0,subscription:null}),[3,14];case 14:return[2]}}))})),{unsubscribe:function(){var t,n;return null===(n=(t=e[Symbol.asyncIterator]()).return)||void 0===n?void 0:n.call(t)}}):(a(e),null)})).catch((function(e){return d.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0}),null}))]}))}))},t.prototype._runQueryAtCursor=function(){if(this.state.subscription)this.handleStopQuery();else{var e,t=this.state.operations;if(t){var n=this.getQueryEditor();if(n&&n.hasFocus())for(var r=n.getCursor(),i=n.indexFromPos(r),o=0;o<t.length;o++){var a=t[o];if(a.loc&&a.loc.start<=i&&a.loc.end>=i){e=a.name&&a.name.value;break}}}this.handleRunQuery(e)}},t.prototype._didClickDragBar=function(e){if(0!==e.button||e.ctrlKey)return!1;var t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;for(var n=this.resultViewerElement;t;){if(t===n)return!0;t=t.parentNode}return!1},t.formatError=function(e){return Array.isArray(e)?Xn({errors:e.map((function(e){return er(e)}))}):Xn({errors:er(e)})},t.Logo=nr,t.Toolbar=rr,t.Footer=ir,t.QueryEditor=ct,t.VariableEditor=vt,t.HeaderEditor=wt,t.ResultViewer=xt,t.Button=Me,t.ToolbarButton=Me,t.Group=Fe,t.Menu=Pe,t.MenuItem=je,t}(r.Component);function nr(e){return r.createElement("div",{className:"title"},e.children||r.createElement("span",null,"Graph",r.createElement("em",null,"i"),"QL"))}function rr(e){return r.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function ir(e){return r.createElement("div",{className:"footer"},e.children)}nr.displayName="GraphiQLLogo",rr.displayName="GraphiQLToolbar",ir.displayName="GraphiQLFooter";var or='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify Query: Shift-Ctrl-P (or press the prettify button above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n';function ar(e){return"object"===typeof e&&"function"===typeof e.then}function sr(e){return"object"===typeof e&&"subscribe"in e&&"function"===typeof e.subscribe}function ur(e){return"object"===typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function lr(e){return Promise.resolve(e).then((function(e){return ur(e)?(n=e,new Promise((function(e,t){var r,i=null===(r=("return"in n?n:n[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(n);("next"in n?n:n[Symbol.asyncIterator]()).next.bind(n)().then((function(t){e(t.value),null===i||void 0===i||i()})).catch((function(e){t(e)}))}))):sr(e)?(t=e,new Promise((function(e,n){var r=t.subscribe({next:function(t){e(t),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})}))):e;var t,n}))}function cr(e,t){var n;return!(!(null===(n=null===e||void 0===e?void 0:e.type)||void 0===n?void 0:n.displayName)||e.type.displayName!==t.displayName)||e.type===t}function fr(e,t){return Zn(Zn({},t),{tabs:t.tabs.map((function(n,r){return r!==t.activeTabIndex?n:Zn(Zn({},n),{headers:e,hash:zn({query:n.query,headers:e,variables:n.variables})})}))})}function pr(e,t){return Zn(Zn({},t),{tabs:t.tabs.map((function(n,r){return r!==t.activeTabIndex?n:Zn(Zn({},n),{variables:e,hash:zn({query:n.query,headers:n.headers,variables:e})})}))})}function dr(e,t,n){return Zn(Zn({},t),{tabs:t.tabs.map((function(r,i){return i!==t.activeTabIndex?r:Zn(Zn({},r),{title:null!==n&&void 0!==n?n:Bn(e),query:e,hash:zn({query:e,headers:r.headers,variables:r.variables})})}))})}var hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vr=function(){return vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vr.apply(this,arguments)};!function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){gr(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}hr(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,i=r.Children.map(this.props.children,(function(n,i){if(!function(e){return!(!e||"object"!==typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var o=n.props.onSelect||t.props.onSelect&&t.props.onSelect.bind(null,n.props.value,i);return r.createElement(mr,vr({},n.props,{onSelect:o}))}));return r.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:gr,ref:function(e){t._node=e},title:this.props.title},null===e||void 0===e?void 0:e.props.label,r.createElement("svg",{width:"13",height:"10"},r.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),r.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),r.createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},i))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(e){this._node!==e.target&&(gr(e),this.setState({visible:!1}),this._release())}}(r.Component);function mr(e){var t=e.onSelect,n=e.label,i=e.selected;return r.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:gr,onMouseUp:t},n,i&&r.createElement("svg",{width:"13",height:"13"},r.createElement("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835\n 10.686,0 13,2.314 4.851,10.462"})))}function gr(e){e.preventDefault()}var yr=tr,br=n(3668),wr=n.n(br),Er=function(e,t){return e.find((function(e){return e.name===t}))};function kr(e,t,n,r,i){n[e.name]=!0;for(var o=e.fragmentDependencies,a=0;a<o.length;a+=1){var s=o[a],u=Er(r,s.name.value);u&&(n[u.name]?console.error("The operation graph has a cycle"):t[u.name]||kr(u,t,n,r,i))}n[e.name]=!1,t[e.name]=!0,i.push(e)}var Sr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Tr=function(){var e=Dr(ye().mark((function e(t){var n,r;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://codesandbox.io/api/v1/sandboxes/define?json=1",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({files:t})});case 2:return n=e.sent,e.next=5,n.json();case 5:if((r=e.sent).sandbox_id){e.next=10;break}throw new Error("Invalid response from Codesandbox API");case 10:return e.abrupt("return",{sandboxId:r.sandbox_id});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Or(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function Ar(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function Dr(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,o){try{var a=t[i](o),s=a.value}catch(u){return void n(u)}if(!a.done)return Promise.resolve(s).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(s)}("next")}))}}var Ir=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24"},r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"})),Lr=r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 256 296",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.createElement("g",null,r.createElement("path",{d:"M115.497674,261.08837 L115.497674,154.478845 L23.8139535,101.729261 L23.8139535,162.501763 L65.8104558,186.8486 L65.8104558,232.549219 L115.497674,261.08837 Z M139.311628,261.714907 L189.916577,232.563707 L189.916577,185.779949 L232.186047,161.285235 L232.186047,101.27387 L139.311628,154.895035 L139.311628,261.714907 Z M219.971965,80.8276886 L171.155386,52.5391067 L128.292316,77.4106841 L85.1040206,52.5141067 L35.8521355,81.1812296 L127.765737,134.063073 L219.971965,80.8276886 Z M0,222.211907 L0,74.4948807 L127.986799,0 L256,74.1820085 L256,221.978632 L127.983954,295.72283 L0,222.211907 Z",fill:"#000000"}))),Mr=function(e){var t=e.query,n=e.variables,r=function(e){if(Rr[0]===e&&Rr[1])return Rr[1];var t=[];try{var n=!0,r=!1,i=void 0;try{for(var o,a=(0,Se.Qc)(e).definitions[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;"FragmentDefinition"!==s.kind&&"OperationDefinition"!==s.kind||t.push(s)}}catch(u){r=!0,i=u}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}catch(l){}return Rr=[e,t],t}(t),i=[],o=!0,a=!1,s=void 0;try{for(var u,l=r[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var c=u.value;"FragmentDefinition"===c.kind&&i.push(c)}}catch(d){a=!0,s=d}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}var f=r.map((function(e){return{query:(0,ke.S)(e),name:jr(e),displayName:Vr(e),type:e.operation||"fragment",variableName:(t=jr(e),t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()),variables:Pr(n,e),operationDefinition:e,fragmentDependencies:Fr(i,e)};var t})),p=function(e){var t=[],n={},r={},i=!0,o=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var l=s.value;n[l.name]||r[l.name]||kr(l,n,r,e,t)}}catch(d){o=!0,a=d}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return t}(f);return{operationDefinitions:r,fragmentDefinitions:i,rawOperationDataList:f,operationDataList:p}},Fr=function(e,t){return function t(n){var r=n.selections,i=r.map((function(t){return"FragmentSpread"===t.kind?(n=t.name.value,e.find((function(e){return e.name.value===n}))):null;var n})).filter(Boolean),o=r.reduce((function(e,n){return"Field"!==n.kind&&"SelectionNode"!==n.kind&&"InlineFragment"!==n.kind||void 0===n.selectionSet?e:e.concat(t(n.selectionSet))}),[]);return i.concat(o)}(t.selectionSet)},Rr=[null,null];var Pr=function(e,t){return(t.variableDefinitions||[]).reduce((function(t,n){var r=n.variable.name.value;return e[r]&&(t[r]=e[r]),t}),{})},jr=function(e){return e.name?e.name.value:e.operation},Vr=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},Ur=function(e){function t(){var e,n,r;Nr(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Or(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={visible:!1},r.handleOpen=function(e){e.preventDefault(),r.setState({visible:!0}),r._subscribe()},Or(r,n)}return Ar(t,e),_r(t,[{key:"componentWillUnmount",value:function(){this._release()}},{key:"render",value:function(){var e=this,t=this.state.visible;return r.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen,onMouseDown:function(e){return e.preventDefault()},ref:function(t){e._node=t},title:this.props.title},this.props.label,r.createElement("svg",{width:"14",height:"8"},r.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),r.createElement("ul",{className:"toolbar-menu-items"+(t?" open":"")},this.props.children))}},{key:"_subscribe",value:function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}},{key:"_release",value:function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}},{key:"handleClick",value:function(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())}}]),t}(r.Component),Br=function(e){function t(){return Nr(this,t),Or(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ar(t,e),_r(t,[{key:"componentDidMount",value:function(){this.editor=wr()(this._node,{value:this.props.code.trim(),lineNumbers:!1,mode:this.props.mode,readOnly:!0,theme:this.props.theme})}},{key:"componentDidUpdate",value:function(e){this.props.code!==e.code&&this.editor.setValue(this.props.code),this.props.mode!==e.mode&&this.editor.setOption("mode",this.props.mode),this.props.theme!==e.theme&&this.editor.setOption("theme",this.props.theme)}},{key:"render",value:function(){var e=this;return r.createElement("div",{ref:function(t){return e._node=t}})}}]),t}(r.PureComponent),zr=function(e){function t(){var e,n,r,i=this;Nr(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=Or(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={showCopiedTooltip:!1,optionValuesBySnippet:new Map,snippet:null,codesandboxResult:null},r._activeSnippet=function(){return r.props.snippet||r.state.snippet||r.props.snippets[0]},r.setSnippet=function(e){r.props.onSelectSnippet&&r.props.onSelectSnippet(e),r.setState({snippet:e,codesandboxResult:null})},r.setLanguage=function(e){var t=r.props.snippets.find((function(t){return t.language===e}));t&&r.setSnippet(t)},r.handleSetOptionValue=function(e,t,n){r.props.onSetOptionValue&&r.props.onSetOptionValue(e,t,n);var i=r.state.optionValuesBySnippet,o=i.get(e)||{};return i.set(e,xr({},o,Cr({},t,n))),r.setState({optionValuesBySnippet:i})},r.getOptionValues=function(e){var t=e.options.reduce((function(e,t){return xr({},e,Cr({},t.id,t.initial))}),{});return xr({},t,r.state.optionValuesBySnippet.get(e)||{},r.props.optionValues)},r._generateCodesandbox=function(){var e=Dr(ye().mark((function e(t){var n,o,a;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.setState({codesandboxResult:{type:"loading"}}),n=r._activeSnippet()){e.next=5;break}return r.setState({codesandboxResult:{type:"error",error:"No active snippet"}}),e.abrupt("return");case 5:if(o=n.generateCodesandboxFiles){e.next=9;break}return r.setState({codesandboxResult:{type:"error",error:"Snippet does not support CodeSandbox"}}),e.abrupt("return");case 9:return e.prev=9,e.next=12,Tr(o(r._collectOptions(n,t,r.props.schema)));case 12:a=e.sent,r.setState({codesandboxResult:xr({type:"success"},a)}),r.props.onGenerateCodesandbox&&r.props.onGenerateCodesandbox(a),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(9),console.error("Error generating codesandbox",e.t0),r.setState({codesandboxResult:{type:"error",error:"Failed to generate CodeSandbox"}});case 21:case"end":return e.stop()}}),e,i,[[9,17]])})));return function(t){return e.apply(this,arguments)}}(),r._collectOptions=function(e,t,n){var i=r.props,o=i.serverUrl,a=i.context,s=void 0===a?{}:a,u=i.headers;return{serverUrl:o,headers:void 0===u?{}:u,context:s,operationDataList:t,options:r.getOptionValues(e),schema:n}},Or(r,n)}return Ar(t,e),_r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.query,i=t.snippets,o=t.variables,a=void 0===o?{}:o,s=this.state,u=s.showCopiedTooltip,l=s.codesandboxResult,c=this._activeSnippet(),f=c.name,p=c.language,d=c.generate,h=Mr({query:n,variables:a}),v=h.operationDefinitions,m=(h.fragmentDefinitions,h.rawOperationDataList,h.operationDataList),g=this.getOptionValues(c),y=v.length?d(this._collectOptions(c,m,this.props.schema)):null,b=c.generateCodesandboxFiles,w=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(new Set(i.map((function(e){return e.language}))))).sort((function(e,t){return e.localeCompare(t)}));return r.createElement("div",{className:"graphiql-code-exporter",style:{minWidth:410}},r.createElement("div",{style:{fontFamily:"system, -apple-system, San Francisco, Helvetica Neue, arial, sans-serif"}},r.createElement("div",{style:{padding:"12px 7px 8px"}},r.createElement(Ur,{label:p,title:"Language"},w.map((function(t){return r.createElement("li",{key:t,onClick:function(){return e.setLanguage(t)}},t)}))),r.createElement(Ur,{label:f,title:"Mode"},i.filter((function(e){return e.language===p})).map((function(t){return r.createElement("li",{key:t.name,onClick:function(){return e.setSnippet(t)}},t.name)})))),c.options.length>0?r.createElement("div",{style:{padding:"0px 11px 10px"}},r.createElement("div",{style:{fontWeight:700,color:"rgb(177, 26, 4)",fontVariant:"small-caps",textTransform:"lowercase"}},"Options"),c.options.map((function(t){return r.createElement("div",{key:t.id},r.createElement("input",{id:t.id,type:"checkbox",style:{position:"relative",top:-1},checked:g[t.id],onChange:function(){return e.handleSetOptionValue(c,t.id,!g[t.id])}}),r.createElement("label",{htmlFor:t.id,style:{paddingLeft:5}},t.label))}))):r.createElement("div",{style:{minHeight:8}}),b?r.createElement("div",{style:{padding:"0 7px 8px"}},r.createElement("button",{className:"toolbar-button",style:xr({backgroundColor:"white",border:"none",outline:"none",maxWidth:320,display:"flex"},y?{}:{opacity:.6,cursor:"default",background:"#ececec"}),type:"button",disabled:!y,onClick:function(){return e._generateCodesandbox(m)}},Lr," ",r.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),l?r.createElement("div",{style:{paddingLeft:5,paddingTop:5}},"loading"===l.type?"Loading...":"error"===l.type?"Error: "+l.error:r.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+l.sandboxId},"Visit CodeSandbox")):null):null),r.createElement("button",{className:"toolbar-button",style:{fontSize:"1.2em",padding:0,position:"absolute",left:340,marginTop:-20,width:40,height:40,backgroundColor:"white",borderRadius:40,border:"none",outline:"none"},type:"link",onClick:function(){Te()(y),e.setState({showCopiedTooltip:!0},(function(){return setTimeout((function(){return e.setState({showCopiedTooltip:!1})}),450)}))}},r.createElement("div",{style:{position:"absolute",top:"-30px",left:"-15px",fontSize:"small",padding:"6px 8px",color:"#fff",textAlign:"left",textDecoration:"none",wordWrap:"break-word",backgroundColor:"rgba(0,0,0,0.75)",borderRadius:"4px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:u?"block":"none"},pointerEvents:"none"},"Copied!"),Ir),r.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},y?r.createElement(Br,{code:y,mode:c.codeMirrorMode,theme:this.props.codeMirrorTheme}):r.createElement("div",null,"The query is invalid.",r.createElement("br",null),"The generated code will appear here once the errors in the query editor are resolved.")))}}]),t}(r.Component),qr=function(e){function t(){var e,n,r;Nr(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Or(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1},Or(r,n)}return Ar(t,e),_r(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?r.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Error generating code. Please"," ",r.createElement("a",{href:"https://spectrum.chat/onegraph",target:"_blank",rel:"noreferrer noopener"},"report your query on Spectrum"),"."):this.props.children}}]),t}(r.Component);n(5683),Object.assign;n(7830),Object.assign;var Hr=function(e){var t=e.query,n=e.serverUrl,i=e.variables,o=e.context,a=void 0===o?{}:o,s=e.headers,u=void 0===s?{}:s,l=e.hideCodeExporter,c=void 0===l?function(){}:l,f=e.snippets,p=e.snippet,d=e.codeMirrorTheme,h=e.onSelectSnippet,v=e.onSetOptionValue,m=e.optionValues,g=e.onGenerateCodesandbox,y=e.schema,b={};try{var w=JSON.parse(i);"object"===("undefined"===typeof w?"undefined":Sr(w))&&(b=w)}catch(E){}return r.createElement("div",{className:"docExplorerWrap",style:{width:440,minWidth:440,zIndex:7}},r.createElement("div",{className:"doc-explorer-title-bar"},r.createElement("div",{className:"doc-explorer-title"},"Code Exporter"),r.createElement("div",{className:"doc-explorer-rhs"},r.createElement("div",{className:"docExplorerHide",onClick:c},"\u2715"))),r.createElement("div",{className:"doc-explorer-contents",style:{borderTop:"1px solid #d6d6d6",padding:0}},f.length?r.createElement(qr,null,r.createElement(zr,{query:t,serverUrl:n,snippets:f,snippet:p,context:a,headers:u,variables:b,codeMirrorTheme:d,onSelectSnippet:h,onSetOptionValue:v,optionValues:m||{},onGenerateCodesandbox:g,schema:y})):r.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))},Zr=n(2560);var Wr=n.p+"static/media/logo.2fa5e016c31f1c335b07ff477d91ee9a.svg",Gr=n(184);var Qr=function(e){var t=e.text,n=void 0===t?"Loading":t;return(0,Gr.jsx)("div",{className:"loading",children:(0,Gr.jsxs)("div",{children:[(0,Gr.jsx)("img",{src:Wr,alt:"StepZen",className:"logo"}),(0,Gr.jsxs)("p",{children:[n,"..."]})]})})},$r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_IS_DEVELOPMENT;var Yr=function(){var e=re(),t=e.folder,n=e.name,i=te(z);return(0,r.useEffect)((function(){ve(ye().mark((function e(){var r,o,a,s,u;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=window.location.origin,$r&&(r=r.replace(":3000",":5000")),e.next=4,fetch("".concat(r,"/api/details"));case 4:return o=e.sent,e.next=7,o.json();case 7:a=e.sent,s=a.workspace.endpoint,(u=s.split("/"))[0]===t&&u[1]===n||i.push("/".concat(s));case 11:case"end":return e.stop()}}),e)})))()}),[t,i,n]),null};var Kr=function(){return(0,Gr.jsx)("div",{className:"server-status-overlay",children:(0,Gr.jsx)("div",{className:"server-status-pop",children:(0,Gr.jsxs)("p",{className:"pop-copy",children:["Run ",(0,Gr.jsx)("code",{children:"stepzen start"})," to re-enable this explorer."]})})})};var Jr=function(e){var t=e.body,n=e.className,r=void 0===n?"":n,i=e.footer,o=e.onTogglePanel,a=e.title,s=void 0===a?"Panel":a;return(0,Gr.jsxs)("div",{className:"graphiqlpanel-wrap ".concat(i?"has-footer":""," ").concat(r),children:[(0,Gr.jsxs)("div",{className:"graphiqlpanel-title-bar",children:[(0,Gr.jsx)("div",{className:"graphiqlpanel-title",children:s}),(0,Gr.jsx)("div",{className:"graphiqlpanel-rhs",children:(0,Gr.jsx)("div",{className:"graphiqlpanel-close",onClick:o,children:"\u2715"})})]}),(0,Gr.jsx)("div",{className:"graphiqlpanel-content",children:t}),i?(0,Gr.jsx)("div",{className:"graphiqlpanel-footer-bar",children:i}):null]})},Xr=n(2063),ei=n(9583),ti=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=e.disabled,o=void 0!==i&&i,a=e.id,s=e.onClick,u=void 0===s?function(){}:s,l=e.type,c=void 0===l?"button":l;return(0,Gr.jsx)("button",{className:"button ".concat(r),disabled:o,type:c,onClick:u,id:a,children:t})},ni=function(e){var t=e.disabled,n=void 0!==t&&t,r=e.id,i=e.label,o=e.name,a=e.onChange,s=void 0===a?function(){}:a,u=e.placeholder,l=void 0===u?"":u,c=e.readonly,f=void 0!==c&&c,p=e.required,d=void 0===p||p,h=e.rows,v=void 0===h?3:h,m=e.type,g=void 0===m?"text":m,y=e.value;return(0,Gr.jsxs)("div",{className:"field",children:[(0,Gr.jsx)("label",{htmlFor:r||o,children:i}),(0,Gr.jsx)("textarea",{defaultValue:y,disabled:n,onChange:s,name:o,id:r||o,type:g,placeholder:l,readOnly:f,required:d,rows:v})]})},ri={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_IS_DEVELOPMENT;var ii=function(){var e=(0,r.useState)(!0),t=(0,me.Z)(e,2),n=t[0],i=t[1],o=(0,r.useState)(!1),a=(0,me.Z)(o,2),s=a[0],u=a[1],l=(0,r.useState)(),c=(0,me.Z)(l,2),f=c[0],p=c[1],d=(0,r.useState)(!0),h=(0,me.Z)(d,2),v=h[0],m=h[1],g=(0,r.useState)(""),y=(0,me.Z)(g,2),b=y[0],w=y[1],E=window.location.origin;ri&&(E=E.replace(":3000",":5000")),(0,r.useEffect)((function(){ve(ye().mark((function e(){var t,n,r;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(E,"/api/predicates"));case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.sent,r=n.predicates,i(r.available),u(r.enabled),m(!1);case 10:case"end":return e.stop()}}),e)})))()}));var k=function(){var e=ve(ye().mark((function e(t){var n,r,i;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,fetch("".concat(E,"/api/predicates"),{body:JSON.stringify({enabled:t,headers:ei.parse(b)}),headers:{"Content-Type":"application/json"},method:"POST"});case 3:return n=e.sent,e.next=6,n.json();case 6:r=e.sent,i=r.predicates,u(i.enabled),m(!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=ve(ye().mark((function e(t){var n;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.target.checked,u(n),e.next=4,k(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=function(){var e=ve(ye().mark((function e(t){var n;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.target.value,w(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=ve(ye().mark((function e(t){return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.prev=1,ei.parse(b),p(null),m(!0),e.next=7,k(s);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),p("Headers must be valid JSON or YAML");case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}();return n?(0,Gr.jsxs)("div",{className:"predicates-toggle",children:[(0,Gr.jsxs)("label",{children:[(0,Gr.jsxs)("span",{children:["Rulesets / custom headers are ",s?"ON":"OFF"]}),(0,Gr.jsx)(Xr.Z,{checked:s,disabled:v,onChange:S})]}),s?(0,Gr.jsx)("div",{className:"predicates-settings",children:(0,Gr.jsxs)("form",{className:"form",onSubmit:_,children:[f||null,(0,Gr.jsx)("p",{children:"Please enter any authentication headers, e.g."}),(0,Gr.jsx)("pre",{children:'{"Authorization": "Apikey [token]"}'}),(0,Gr.jsx)(ni,{id:"predicates-headers",label:"Headers",name:"predicates-headers",onChange:x,required:!1,rows:12,value:b}),(0,Gr.jsx)("hr",{}),(0,Gr.jsx)(ti,{type:"submit",children:"Update"})]})}):null]}):null};var oi=function(e){var t=e.onTogglePanel;return(0,Gr.jsx)(Jr,{body:(0,Gr.jsx)(Gr.Fragment,{children:(0,Gr.jsx)("div",{className:"advanced-settings-container",children:(0,Gr.jsx)(ii,{})})}),title:"Settings",onTogglePanel:t})};var ai=function(e){var t=e.onClick;return(0,Gr.jsx)("button",{className:"settings-toggle",onClick:t,type:"button",children:"Settings"})},si=function(e,t){return{getItem:function(n){return window.localStorage.getItem("".concat(e,"-").concat(t,"-").concat(n))},removeItem:function(n){return window.localStorage.removeItem("".concat(e,"-").concat(t,"-").concat(n))},setItem:function(n,r){return window.localStorage.setItem("".concat(e,"-").concat(t,"-").concat(n),r)}}},ui=function(e,t){var n=e.operationDataList[0].query.replace(/query\s.+{/gim,"{");return" ".repeat(t)+n.replace(/\n/g,"\n"+" ".repeat(t))},li=[{name:"useQuery hook",language:"Apollo",codeMirrorMode:"jsx",options:[],generate:function(e){return"import { gql, useQuery } from '@apollo/client';\n\nconst GET_QUERY = gql`\n query MyQuery ".concat(ui(e,2),"\n`;\n\nfunction ComponentName() {\n const { loading, error, data } = useQuery(GET_QUERY);\n\n if (loading) return <p>Loading ...</p>;\n\n if (error) return (\n <pre>{JSON.stringify(error, null, 2)}</pre>\n );\n\n return (\n <pre>{JSON.stringify(data, null, 2)}</pre>\n );\n}\n\nexport default ComponentName\n\n")}},{name:"Page query",language:"Gatsby",codeMirrorMode:"jsx",options:[],generate:function(e){return'import React from "react"\nimport { graphql } from "gatsby"\n\nconst ComponentName = ({ data }) => <pre>{JSON.stringify(data, null, 4)}</pre>\n\nexport const query = graphql`\n'.concat(ui(e,2),"\n`\n\nexport default ComponentName\n\n")}},{name:"StaticQuery hook",language:"Gatsby",codeMirrorMode:"jsx",options:[],generate:function(e){return'import React from "react"\nimport { useStaticQuery, graphql } from "gatsby"\n\nconst ComponentName = () => {\nconst data = useStaticQuery(graphql`\n'.concat(ui(e,4),"\n`)\nreturn <pre>{JSON.stringify(data, null, 4)}</pre>\n}\n\nexport default ComponentName\n\n")}},{name:"StaticQuery",language:"Gatsby",codeMirrorMode:"jsx",options:[],generate:function(e){return'import React from "react"\nimport { StaticQuery, graphql } from "gatsby"\n\nconst ComponentName = () => (\n<StaticQuery\n query={graphql`\n'.concat(ui(e,6),"\n `}\n render={data => <pre>{JSON.stringify(data, null, 4)}</pre>}\n></StaticQuery>\n)\n\nexport default ComponentName\n\n")}}],ci={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_IS_DEVELOPMENT;var fi=function(){var e=re(),t=e.folder,n=e.name,i=ne().search,o=(0,r.useMemo)((function(){return si(t,n)}),[t,n]),a=(0,r.useState)(null),s=(0,me.Z)(a,2),u=s[0],l=s[1],c=(0,r.useState)("true"===o.getItem("is-explorer-open")),f=(0,me.Z)(c,2),p=f[0],d=f[1],h=(0,r.useState)("true"===o.getItem("is-exporter-open")),v=(0,me.Z)(h,2),m=v[0],g=v[1],y=(0,r.useState)(!1),b=(0,me.Z)(y,2),w=b[0],E=b[1],k=(0,r.useState)("true"===o.getItem("is-settings-open")),S=(0,me.Z)(k,2),x=S[0],_=S[1],T=(0,r.useState)(null),C=(0,me.Z)(T,2),N=C[0],O=C[1],A=(0,r.useState)(null),D=(0,me.Z)(A,2),I=D[0],L=D[1],M=(0,r.useState)(null),F=(0,me.Z)(M,2),R=F[0],P=F[1],j=(0,r.useState)(!0),V=(0,me.Z)(j,2),U=V[0],B=V[1],z=window.location.origin;ci&&(z=z.replace(":3000",":5000")),(0,r.useEffect)((function(){var e=setInterval(ve(ye().mark((function e(){return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(z,"/api/ping"));case 3:B(!0),console.log("stepzen start running"),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),B(!1),console.log("stepzen start NOT running");case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),5e3);return function(){clearInterval(e)}}),[]);var q=(0,r.useCallback)((function(e){return fetch("".concat(z,"/api/details")).then((function(e){return e.json()})).then((function(e){!o.getItem("graphiql:queries")&&e.samples&&L(e.samples),l(e)})),fetch("".concat(z,"/api/graphql"),{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()}))}),[z,o]);(0,r.useEffect)((function(){document.title="StepZen - ".concat(t,"/").concat(n),q({query:(0,be.K)()}).then((function(e){e.data?P((0,we.Z)(e.data)):E(!0)})).catch((function(){return E(!0)}))}),[q,t,n]),(0,r.useEffect)((function(){ve(ye().mark((function e(){var t,n,r,a,s,u,l,c,f;return ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=new URLSearchParams(i)).get("query")){e.next=4;break}return L(t.get("query")),e.abrupt("return");case 4:if(!(n=o.getItem("graphiql:queries"))){e.next=10;break}return r=JSON.parse(n),a=r.queries.slice(-1),s=(0,me.Z)(a,1),u=s[0],L(u.query),e.abrupt("return");case 10:return e.next=12,fetch("".concat(z,"/api/samples"));case 12:if(!(l=e.sent).ok){e.next=21;break}return e.next=16,l.json();case 16:if(c=e.sent,!(f=c.samples)){e.next=21;break}return L(f),e.abrupt("return");case 21:L('# Welcome to StepZen!\n# ===================\n#\n# - Explore your current schema by selecting "Explorer"\n# - Generate React components by selecting "Export"\n#\n# Read more at http://stepzen.com/docs\n#\n');case 22:case"end":return e.stop()}}),e)})))()}),[z,i,o]);var H=function(e){L(e)},Z=function(){var e=!p;d(e),o.setItem("is-explorer-open",e)},W=function(){var e=!m;g(e),o.setItem("is-exporter-open",e)},G=function(){var e=!x;_(e),o.setItem("is-settings-open",e)};return w?(0,Gr.jsx)("div",{className:"graphiql-container",children:(0,Gr.jsxs)("div",{className:"graphiql-container",children:[(0,Gr.jsx)(Yr,{}),(0,Gr.jsxs)("div",{className:"error-or-loading",children:[(0,Gr.jsx)("img",{src:Wr,alt:"StepZen",className:"logo"}),(0,Gr.jsxs)("p",{children:["Could not load ",(0,Gr.jsx)("code",{children:u.endpoint})]})]})]})}):R?(0,Gr.jsxs)("div",{className:"graphiql-container",children:[(0,Gr.jsx)(Yr,{}),U?null:(0,Gr.jsx)(Kr,{}),p?(0,Gr.jsx)(Zr.ZP,{explorerIsOpen:p,query:I,onEdit:H,onRunOperation:function(e){return N.handleRunQuery(e)},onToggleExplorer:Z,schema:R}):null,(0,Gr.jsx)("div",{className:"graphiql-container",children:(0,Gr.jsxs)(yr,{fetcher:q,query:I,onEditQuery:H,ref:function(e){return O(e)},schema:R,storage:o,children:[(0,Gr.jsx)(yr.Logo,{children:(0,Gr.jsx)("img",{src:Wr,alt:"StepZen"})}),u?(0,Gr.jsx)(yr.Footer,{children:(0,Gr.jsx)("p",{className:"endpoint",children:u.endpoint.replace(".io",".net")})}):null,(0,Gr.jsxs)(yr.Toolbar,{children:[(0,Gr.jsx)(yr.Button,{onClick:Z,label:"Explorer",title:"Toggle Explorer"}),(0,Gr.jsx)(yr.Button,{onClick:function(){return N.handlePrettifyQuery()},label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"}),(0,Gr.jsx)(yr.Button,{onClick:function(){return N.handleToggleHistory()},label:"History",title:"Show History"}),(0,Gr.jsx)(yr.Button,{onClick:W,label:"Export",title:"Toggle Export"}),x?null:(0,Gr.jsx)(ai,{onClick:G})]})]})}),m?(0,Gr.jsx)(Hr,{codeMirrorTheme:"default",hideCodeExporter:W,query:I,snippets:li}):null,x?(0,Gr.jsx)(oi,{onTogglePanel:G}):null]}):(0,Gr.jsx)("div",{className:"graphiql-container",children:(0,Gr.jsx)(Qr,{})})};de.render((0,Gr.jsx)(r.StrictMode,{children:(0,Gr.jsx)(ie,{children:(0,Gr.jsxs)(ee,{children:[(0,Gr.jsx)(Q,{exact:!0,path:"/:folder/:name",children:(0,Gr.jsx)(fi,{})}),(0,Gr.jsx)(Q,{component:Yr})]})})}),document.getElementById("root"))}()}();
3
+ //# sourceMappingURL=main.27cac1e6.js.map