@stepzen/graphiql-proxy 0.41.1 → 0.42.0-experimental.be01794

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 (87) hide show
  1. package/package.json +4 -4
  2. package/src/ui/build/asset-manifest.json +50 -50
  3. package/src/ui/build/index.html +1 -1
  4. package/src/ui/build/static/css/main.d8e5faf3.css +2 -0
  5. package/src/ui/build/static/css/main.d8e5faf3.css.map +1 -0
  6. package/src/ui/build/static/js/0.40f61b5b.chunk.js +2 -0
  7. package/src/ui/build/static/js/0.40f61b5b.chunk.js.map +1 -0
  8. package/src/ui/build/static/js/168.acd20778.chunk.js +2 -0
  9. package/src/ui/build/static/js/168.acd20778.chunk.js.map +1 -0
  10. package/src/ui/build/static/js/204.90ef58af.chunk.js +2 -0
  11. package/src/ui/build/static/js/{756.3530beeb.chunk.js.map → 204.90ef58af.chunk.js.map} +1 -1
  12. package/src/ui/build/static/js/239.cbbb9bf4.chunk.js +2 -0
  13. package/src/ui/build/static/js/239.cbbb9bf4.chunk.js.map +1 -0
  14. package/src/ui/build/static/js/260.62116343.chunk.js +2 -0
  15. package/src/ui/build/static/js/{503.c783958a.chunk.js.map → 260.62116343.chunk.js.map} +1 -1
  16. package/src/ui/build/static/js/301.be911487.chunk.js +2 -0
  17. package/src/ui/build/static/js/301.be911487.chunk.js.map +1 -0
  18. package/src/ui/build/static/js/339.45db1ad0.chunk.js +2 -0
  19. package/src/ui/build/static/js/{344.142d13e9.chunk.js.map → 339.45db1ad0.chunk.js.map} +1 -1
  20. package/src/ui/build/static/js/361.690552e0.chunk.js +2 -0
  21. package/src/ui/build/static/js/361.690552e0.chunk.js.map +1 -0
  22. package/src/ui/build/static/js/405.f706a566.chunk.js +2 -0
  23. package/src/ui/build/static/js/405.f706a566.chunk.js.map +1 -0
  24. package/src/ui/build/static/js/476.b8937827.chunk.js +2 -0
  25. package/src/ui/build/static/js/{322.28bfb0ce.chunk.js.map → 476.b8937827.chunk.js.map} +1 -1
  26. package/src/ui/build/static/js/563.faabcbb9.chunk.js +2 -0
  27. package/src/ui/build/static/js/{306.b76cda79.chunk.js.map → 563.faabcbb9.chunk.js.map} +1 -1
  28. package/src/ui/build/static/js/592.111c2c09.chunk.js +2 -0
  29. package/src/ui/build/static/js/{849.e36d6caf.chunk.js.map → 592.111c2c09.chunk.js.map} +1 -1
  30. package/src/ui/build/static/js/593.3508dfb0.chunk.js +2 -0
  31. package/src/ui/build/static/js/{190.89592804.chunk.js.map → 593.3508dfb0.chunk.js.map} +1 -1
  32. package/src/ui/build/static/js/601.8d60ebb5.chunk.js +2 -0
  33. package/src/ui/build/static/js/{619.f3523a4f.chunk.js.map → 601.8d60ebb5.chunk.js.map} +1 -1
  34. package/src/ui/build/static/js/622.3c296dc5.chunk.js +2 -0
  35. package/src/ui/build/static/js/{170.8d38f8f7.chunk.js.map → 622.3c296dc5.chunk.js.map} +1 -1
  36. package/src/ui/build/static/js/631.df085cd0.chunk.js +2 -0
  37. package/src/ui/build/static/js/631.df085cd0.chunk.js.map +1 -0
  38. package/src/ui/build/static/js/654.504b8830.chunk.js +2 -0
  39. package/src/ui/build/static/js/{804.9d9c6f3a.chunk.js.map → 654.504b8830.chunk.js.map} +1 -1
  40. package/src/ui/build/static/js/725.a57ff2f3.chunk.js +2 -0
  41. package/src/ui/build/static/js/{658.828eff8d.chunk.js.map → 725.a57ff2f3.chunk.js.map} +1 -1
  42. package/src/ui/build/static/js/743.cccf1a4a.chunk.js +2 -0
  43. package/src/ui/build/static/js/{430.23c55f04.chunk.js.map → 743.cccf1a4a.chunk.js.map} +1 -1
  44. package/src/ui/build/static/js/776.449af735.chunk.js +2 -0
  45. package/src/ui/build/static/js/776.449af735.chunk.js.map +1 -0
  46. package/src/ui/build/static/js/824.7fac1fde.chunk.js +2 -0
  47. package/src/ui/build/static/js/{580.0502adfe.chunk.js.map → 824.7fac1fde.chunk.js.map} +1 -1
  48. package/src/ui/build/static/js/866.803cb26d.chunk.js +2 -0
  49. package/src/ui/build/static/js/866.803cb26d.chunk.js.map +1 -0
  50. package/src/ui/build/static/js/main.72b6d86f.js +3 -0
  51. package/src/ui/build/static/js/main.72b6d86f.js.map +1 -0
  52. package/src/ui/build/static/css/main.e50ebcb1.css +0 -2
  53. package/src/ui/build/static/css/main.e50ebcb1.css.map +0 -1
  54. package/src/ui/build/static/js/0.5e30f0d2.chunk.js +0 -2
  55. package/src/ui/build/static/js/0.5e30f0d2.chunk.js.map +0 -1
  56. package/src/ui/build/static/js/136.f5cbe563.chunk.js +0 -2
  57. package/src/ui/build/static/js/136.f5cbe563.chunk.js.map +0 -1
  58. package/src/ui/build/static/js/170.8d38f8f7.chunk.js +0 -2
  59. package/src/ui/build/static/js/190.89592804.chunk.js +0 -2
  60. package/src/ui/build/static/js/267.91bc8020.chunk.js +0 -2
  61. package/src/ui/build/static/js/267.91bc8020.chunk.js.map +0 -1
  62. package/src/ui/build/static/js/306.b76cda79.chunk.js +0 -2
  63. package/src/ui/build/static/js/316.657bf0ad.chunk.js +0 -2
  64. package/src/ui/build/static/js/316.657bf0ad.chunk.js.map +0 -1
  65. package/src/ui/build/static/js/322.28bfb0ce.chunk.js +0 -2
  66. package/src/ui/build/static/js/344.142d13e9.chunk.js +0 -2
  67. package/src/ui/build/static/js/39.73440f40.chunk.js +0 -2
  68. package/src/ui/build/static/js/39.73440f40.chunk.js.map +0 -1
  69. package/src/ui/build/static/js/430.23c55f04.chunk.js +0 -2
  70. package/src/ui/build/static/js/503.c783958a.chunk.js +0 -2
  71. package/src/ui/build/static/js/580.0502adfe.chunk.js +0 -2
  72. package/src/ui/build/static/js/587.40adb4ae.chunk.js +0 -2
  73. package/src/ui/build/static/js/587.40adb4ae.chunk.js.map +0 -1
  74. package/src/ui/build/static/js/619.f3523a4f.chunk.js +0 -2
  75. package/src/ui/build/static/js/658.828eff8d.chunk.js +0 -2
  76. package/src/ui/build/static/js/756.3530beeb.chunk.js +0 -2
  77. package/src/ui/build/static/js/76.13bc4c09.chunk.js +0 -2
  78. package/src/ui/build/static/js/76.13bc4c09.chunk.js.map +0 -1
  79. package/src/ui/build/static/js/804.9d9c6f3a.chunk.js +0 -2
  80. package/src/ui/build/static/js/849.e36d6caf.chunk.js +0 -2
  81. package/src/ui/build/static/js/88.b61d66e1.chunk.js +0 -2
  82. package/src/ui/build/static/js/88.b61d66e1.chunk.js.map +0 -1
  83. package/src/ui/build/static/js/983.cfb8ccb4.chunk.js +0 -2
  84. package/src/ui/build/static/js/983.cfb8ccb4.chunk.js.map +0 -1
  85. package/src/ui/build/static/js/main.10372e50.js +0 -3
  86. package/src/ui/build/static/js/main.10372e50.js.map +0 -1
  87. /package/src/ui/build/static/js/{main.10372e50.js.LICENSE.txt → main.72b6d86f.js.LICENSE.txt} +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see main.72b6d86f.js.LICENSE.txt */
2
+ (()=>{var e={2207:(e,t,n)=>{e.exports=n(4368)},6246: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]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=d&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),E=/win/i.test(t),w=p&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(p=!1,l=!0);var k=y&&(u||p&&(null==w||w<12.11)),_=n||a&&s>=9;function T(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var x,S=function(e,t){var n=e.className,r=T(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;T(t).test(n)||(e.className+=(n?" ":"")+t)}function F(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=" "+n[r]);return t}x=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 R=function(e){e.select()};function M(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 V(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}}m?R=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(R=function(e){try{e.select()}catch(t){}});var j=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}j.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},j.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 $=50,z={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},B={origin:"*mouse"},H={origin:"+move"};function G(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 Q=[""];function Y(e){for(;Q.length<=e;)Q.push(W(Q)+" ");return Q[e]}function W(e){return e[e.length-1]}function K(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function J(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function X(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(X.prototype=e,n=new X),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 le(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 ue=null;function ce(e,t,n){var r;ue=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:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}var pe=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 l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,p=[],d=0;d<c;++d)p.push(n(e.charCodeAt(d)));for(var f=0,h=u;f<c;++f){var m=p[f];"m"==m?p[f]=h:h=m}for(var v=0,g=u;v<c;++v){var y=p[v];"1"==y&&"r"==g?p[v]="n":o.test(y)&&(g=y,"r"==y&&(p[v]="R"))}for(var b=1,E=p[0];b<c-1;++b){var w=p[b];"+"==w&&"1"==E&&"1"==p[b+1]?p[b]="1":","!=w||E!=p[b+1]||"1"!=E&&"n"!=E||(p[b]=E),E=w}for(var k=0;k<c;++k){var _=p[k];if(","==_)p[k]="N";else if("%"==_){var T=void 0;for(T=k+1;T<c&&"%"==p[T];++T);for(var x=k&&"!"==p[k-1]||T<c&&"1"==p[T]?"1":"N",S=k;S<T;++S)p[S]=x;k=T-1}}for(var C=0,N=u;C<c;++C){var O=p[C];"L"==N&&"1"==O?p[C]="L":o.test(O)&&(N=O)}for(var A=0;A<c;++A)if(i.test(p[A])){var D=void 0;for(D=A+1;D<c&&i.test(p[D]);++D);for(var I="L"==(A?p[A-1]:u),L=I==("L"==(D<c?p[D]:u))?I?"L":"R":u,F=A;F<D;++F)p[F]=L;A=D-1}for(var R,M=[],P=0;P<c;)if(a.test(p[P])){var V=P;for(++P;P<c&&a.test(p[P]);++P);M.push(new l(0,V,P))}else{var j=P,U=M.length,$="rtl"==t?1:0;for(++P;P<c&&"L"!=p[P];++P);for(var z=j;z<P;)if(s.test(p[z])){j<z&&(M.splice(U,0,new l(1,j,z)),U+=$);var q=z;for(++z;z<P&&s.test(p[z]);++z);M.splice(U,0,new l(2,q,z)),U+=$,j=z}else++z;j<P&&M.splice(U,0,new l(1,j,P))}return"ltr"==t&&(1==M[0].level&&(R=e.match(/^\s+/))&&(M[0].from=R[0].length,M.unshift(new l(0,0,R[0].length))),1==W(M).level&&(R=e.match(/\s+$/))&&(W(M).to-=R[0].length,M.push(new l(0,c-R[0].length,c)))),"rtl"==t?M.reverse():M}}();function de(e,t){var n=e.order;return null==n&&(n=e.order=pe(e.text,t)),n}var fe=[],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]||fe).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||fe}function ve(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=me(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),Te(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 Ee(e,t){return me(e,t).length>0}function we(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function xe(e){ke(e),_e(e)}function Se(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=x(t,0,1).getBoundingClientRect(),r=x(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/)},Fe=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)},Re=function(){var e=O("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Me=null;function Pe(e){if(null!=Me)return Me;var t=N(e,O("span","x")),n=t.getBoundingClientRect(),r=x(t,0,1).getBoundingClientRect();return Me=Math.abs(n.left-r.left)>1}var Ve={},je={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function $e(e,t){je[e]=t}function ze(e){if("string"==typeof e&&je.hasOwnProperty(e))e=je[e];else if(e&&"string"==typeof e.name&&je.hasOwnProperty(e.name)){var t=je[e.name];"string"==typeof t&&(t={name:t}),(e=Z(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=Ve[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(Be.hasOwnProperty(t.name)){var i=Be[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 Be={};function He(e,t){P(t,Be.hasOwnProperty(e)?Be[e]:Be[e]={})}function Ge(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 Qe(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 Ye(e,t,n){return!e.startState||e.startState(t,n)}var We=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 Ke(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 Je(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 Xe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ze(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 lt(e,t){return ot(e,t)<0?t:e}function ut(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 pt(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,Ke(e,n).text.length):dt(t,Ke(e,t.line).text.length)}function dt(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function ft(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=pt(e,t[r]);return n}We.prototype.eol=function(){return this.pos>=this.string.length},We.prototype.sol=function(){return this.pos==this.lineStart},We.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},We.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},We.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},We.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},We.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},We.prototype.skipToEnd=function(){this.pos=this.string.length},We.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},We.prototype.backUp=function(e){this.pos-=e},We.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},We.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},We.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},We.prototype.current=function(){return this.string.slice(this.start,this.pos)},We.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},We.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},We.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},mt=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 vt(e,t,n,r){var i=[e.state.modeGen],o={};xt(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],l=1,u=0;n.state=!0,xt(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);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&&Ge(e.doc.mode,r.state),o=vt(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 mt(r,!0,t);var o=St(e,t,n),a=o>r.first&&Ke(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,Ye(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 We(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Et(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function Et(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Qe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Qe(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.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.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}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof ht?new mt(e,Ge(e.mode,t.state),n,t.lookAhead):new mt(e,Ge(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ge(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 _t(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ke(a,(t=pt(a,t)).line),u=yt(e,t.line,n),c=new We(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=wt(s,c,u.state),r&&o.push(new kt(c,i,Ge(a.mode,u.state)));return r?o:new kt(c,i,u.state)}function Tt(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 xt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,p=new We(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&Tt(Et(n,r.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,a&&bt(e,t,r,p.pos),p.pos=t.length,l=null):l=Tt(wt(n,p,r.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||c!=l){for(;u<p.start;)i(u=Math.min(p.start,u+5e3),c);c=l}p.start=p.pos}for(;u<p.pos;){var h=Math.min(p.pos,u+5e3);i(h,c),u=h}}function St(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 l=Ke(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return s;var c=V(l.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=Ke(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 Ft(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Rt(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 Mt(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 Vt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Ke(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Ke(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=Mt(n,i,a),l=Pt(r,o,a),u=1==t.text.length,c=W(t.text).length+(u?i:0);if(s)for(var p=0;p<s.length;++p){var d=s[p];if(null==d.to){var f=Lt(l,d.marker);f?u&&(d.to=null==f.to?null:f.to+c):d.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Lt(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=jt(s)),l&&l!=s&&(l=jt(l));var v=[s];if(!u){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 E=0;E<y;++E)v.push(g);v.push(l)}return v}function jt(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),l=0;l<i.length;++l){var u=i[l];if(!(ot(u.to,s.from)<0||ot(u.from,s.to)>0)){var c=[l,1],p=ot(u.from,s.from),d=ot(u.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function $t(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 Bt(e){return e.inclusiveRight?1:0}function Ht(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)||Bt(e)-Bt(t);return a||t.id-e.id}function Gt(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||Ht(n,i.marker)<0)&&(n=i.marker);return n}function Qt(e){return Gt(e,!0)}function Yt(e){return Gt(e,!1)}function Wt(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||Ht(n,o.marker)<0)&&(n=o.marker)}return n}function Kt(e,t,n,r,i){var o=Ke(e,t),a=Ot&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ot(u.from,n)||qt(l.marker)-qt(i),p=ot(u.to,r)||Bt(l.marker)-Bt(i);if(!(c>=0&&p<=0||c<=0&&p>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function Jt(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function Xt(e){for(var t;t=Yt(e);)e=t.find(1,!0).line;return e}function Zt(e){for(var t,n;t=Yt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ke(e,t),r=Jt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ke(e,t);if(!nn(e,r))return t;for(;n=Yt(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=Jt(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=Qt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Yt(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=Ke(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 ln=function(e,t,n){this.text=e,zt(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),$t(e),zt(e,n);var i=r?r(e):1;i!=e.height&&Ze(e,i)}function cn(e){e.parent=null,$t(e)}ln.prototype.lineNo=function(){return et(this)},we(ln);var pn={},dn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:pn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=A("span",null,null,l?"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=vn,Ie(e.display.measure)&&(a=de(o,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],En(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(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(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function mn(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 vn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?gn(t,e.trailingSpace):t,p=e.cm.state.specialChars,d=!1;if(p.test(t)){u=document.createDocumentFragment();for(var f=0;;){p.lastIndex=f;var h=p.exec(t),m=h?h.index-f:t.length-f;if(m){var v=document.createTextNode(c.slice(f,f+m));a&&s<9?u.appendChild(O("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;f+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=u.appendChild(O("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=u.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?u.appendChild(O("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||l){var E=n||"";r&&(E+=r),i&&(E+=i);var w=O("span",[u],E,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,l[k]);return e.content.appendChild(w)}e.content.appendChild(u)}}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,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var p=void 0,d=0;d<t.length&&!((p=t[d]).to>u&&p.from<=u);d++);if(p.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,p.to-u),i,o,null,s,l),o=null,r=r.slice(p.to-u),u=p.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 En(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,p,d,f=i.length,h=0,m=1,v="",g=0;;){if(g==h){l=u=c=s="",d=null,p=null,g=1/0;for(var y=[],b=void 0,E=0;E<r.length;++E){var w=r[E],k=w.marker;if("bookmark"==k.type&&w.from==h&&k.widgetNode)y.push(k);else if(w.from<=h&&(null==w.to||w.to>h||k.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,u=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==h&&(c+=" "+k.startStyle),k.endStyle&&w.to==g&&(b||(b=[])).push(k.endStyle,w.to),k.title&&((d||(d={})).title=k.title),k.attributes)for(var _ in k.attributes)(d||(d={}))[_]=k.attributes[_];k.collapsed&&(!p||Ht(p.marker,k)<0)&&(p=w)}else w.from>h&&g>w.from&&(g=w.from)}if(b)for(var T=0;T<b.length;T+=2)b[T+1]==g&&(u+=" "+b[T]);if(!p||p.from==h)for(var x=0;x<y.length;++x)bn(t,0,y[x]);if(p&&(p.from||0)==h){if(bn(t,(null==p.to?f+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=f)break;for(var S=Math.min(f,g);;){if(v){var C=h+v.length;if(!p){var N=C>S?v.slice(0,S-h):v;t.addToken(t,N,a?a+l:l,c,h+N.length==g?u:"",s,d)}if(C>=S){v=v.slice(S-h),h=S;break}h=C,c=""}v=i.slice(o,o=n[m++]),a=fn(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),fn(n[O+1],t.cm.options))}function wn(e,t,n){this.line=t,this.rest=Zt(t),this.size=this.rest?et(W(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 wn(e.doc,Ke(e.doc,o),o);r=o+a.size,i.push(a)}return i}var _n=null;function Tn(e){_n?_n.ops.push(e):e.ownsGroup=_n={ops:[e],delayedCallbacks:[]}}function xn(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 Sn(e,t){var n=e.ownsGroup;if(n)try{xn(n)}finally{_n=null,t(n)}}var Cn=null;function Nn(e,t){var n=me(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);_n?r=_n.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?Fn(e,t):"gutter"==o?Mn(e,t,n,r):"class"==o?Rn(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 Fn(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,Rn(e,t)):n&&(t.text.className=n)}function Rn(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 Mn(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 l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(O("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function Pn(e,t,n){t.alignable&&(t.alignable=null);for(var r=T("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);jn(e,t,n)}function Vn(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),Rn(e,t),Mn(e,t,n,r),jn(e,t,r),t.node}function jn(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 l=s[a],u=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),$n(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),Nn(l,"redraw")}}function $n(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=Se(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 Bn(e){return e.lineSpace.offsetTop}function Hn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gn(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 Qn(e){return $-e.display.nativeBarWidth}function Yn(e){return e.display.scroller.clientWidth-Qn(e)-e.display.barWidth}function Wn(e){return e.display.scroller.clientHeight-Qn(e)-e.display.barHeight}function Kn(e,t,n){var r=e.options.lineWrapping,i=r&&Yn(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 l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(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 Xn(e,t){var n=et(t=Jt(t)),r=e.display.externalMeasured=new wn(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 Zn(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[Rr(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=Xn(e,t));var i=Jn(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||(Kn(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,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}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),l=o.node,u=o.start,c=o.end,p=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&oe(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ar(x(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,p="right"}a&&s<11&&(i=lr(e.display.measure,i))}else{var f;u>0&&(p=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Or(e.display),top:h.top,bottom:h.bottom}:ir}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var E=b?y[b-1]:0,w=y[b],k={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:E,bottom:w};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=m,k.rbottom=v),k}function lr(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 ur(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++)ur(e.display.view[t])}function pr(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 dr(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function fr(){return c&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hr(e){var t=Jt(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=zn(t[r]));return n}function mr(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+=Bn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:fr());var l=s.left+("window"==r?0:dr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=dr(),i-=fr();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=Ke(e.doc,t.line)),mr(e,r,Zn(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,mr(e,r,s,n)}r=r||Ke(e.doc,t.line),i||(i=tr(e,r));var s=de(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=ce(s,l,u),d=ue,f=c(l,p,"before"==u);return null!=d&&(f.other=c(l,d,"before"!=u)),f}function br(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=Or(e.display)*t.ch);var r=Ke(e.doc,t.line),i=on(r)+Bn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Er(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function wr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Er(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Er(r.first+r.size-1,Ke(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ke(r,i);;){var s=xr(e,a,i,t,n),l=Wt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ke(r,i=u.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 _r(e,t,n,r){return n||(n=tr(e,t)),kr(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function Tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function xr(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=hr(t),s=0,l=t.text.length,u=!0,c=de(t,e.doc.direction);if(c){var p=(e.options.lineWrapping?Cr:Sr)(e,t,n,o,c,r,i);s=(u=1!=p.level)?p.from:p.to-1,l=u?p.to:p.from-1}var d,f,h=null,m=null,v=se((function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!Tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var y=r-m.left<m.right-r,b=y==u;v=h+(b?0:1),f=b?"after":"before",d=y?m.left:m.right}else{u||v!=l&&v!=s||v++,f=0==v?"after":v==t.text.length?"before":nr(e,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var E=yr(e,it(n,v,f),"line",t,o);d=E.left,g=i<E.top?-1:i>=E.bottom?1:0}return Er(n,v=ae(t.text,v,1),f,g,r-d)}function Sr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],u=1!=l.level;return Tr(yr(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=yr(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Tr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function Cr(e,t,n,r,i,o,a){var s=kr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,p=null,d=0;d<i.length;d++){var f=i[d];if(!(f.from>=u||f.to<=l)){var h=nr(e,r,1!=f.level?Math.min(u,f.to)-1:Math.max(l,f.from)).right,m=h<o?o-h+1e9:h-o;(!c||p>m)&&(c=f,p=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,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&&Ze(e,t)}))}function Fr(e,t,n,r){var i=e.display;if(!n&&"true"==Se(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(p){return null}var l,u=wr(e,o,a);if(r&&u.xRel>0&&(l=Ke(e.doc,u.line).text).length==u.ch){var c=V(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-Gn(e.display).left)/Or(e.display))-c))}return u}function Rr(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 Mr(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&&Vr(e);else if(n<=i.viewFrom)Ot&&tn(e.doc,n+r)>i.viewFrom?Vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Vr(e);else if(t<=i.viewFrom){var o=jr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Vr(e)}else if(n>=i.viewTo){var a=jr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Vr(e)}else{var s=jr(e,t,t,-1),l=jr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(kn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Vr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.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[Rr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function Vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function jr(e,t,n,r){var i,o=Rr(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,l=0;l<o;l++)s+=a[l].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(Rr(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,Rr(e,n)))),r.viewTo=n}function $r(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 l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&Br(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&Br(e,l.head,i);u||Gr(e,l,o)}}return r}function Br(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 Hr(e,t){return e.top-t.top||e.left-t.left}function Gr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Gn(e.display),s=a.left,l=Math.max(r.sizerWidth,Yn(e)-r.sizer.offsetLeft)-a.right,u="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?l-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=Ke(i,t),d=p.text.length;function f(n,r){return gr(e,it(t,n),"div",p,r)}function h(t,n,r){var i=_r(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=de(p,i.direction);return le(m,n||0,null==r?d:r,(function(e,t,i,p){var v="ltr"==i,g=f(e,v?"left":"right"),y=f(t-1,v?"right":"left"),b=null==n&&0==e,E=null==r&&t==d,w=0==p,k=!m||p==m.length-1;if(y.top-g.top<=3){var _=(u?E:b)&&k,T=(u?b:E)&&w?s:(v?g:y).left,x=_?l:(v?y:g).right;c(T,g.top,x-T,g.bottom)}else{var S,C,N,O;v?(S=u&&b&&w?s:g.left,C=u?l:h(e,i,"before"),N=u?s:h(t,i,"after"),O=u&&E&&k?l:y.right):(S=u?h(e,i,"before"):s,C=!u&&b&&w?l:g.right,N=!u&&E&&k?s:y.left,O=u?h(t,i,"after"):l),c(S,g.top,C-S,g.bottom),g.bottom<y.top&&c(s,g.bottom,null,y.top),c(N,y.top,O-N,y.bottom)}(!o||Hr(g,o)<0)&&(o=g),Hr(y,o)<0&&(o=y),(!a||Hr(g,a)<0)&&(a=g),Hr(y,a)<0&&(a=y)})),{start:o,end:a}}var d=t.from(),f=t.to();if(d.line==f.line)p(d.line,d.ch,f.ch);else{var h=Ke(i,d.line),m=Ke(i,f.line),v=Jt(h)==Jt(m),g=p(d.line,d.ch,v?h.text.length+1:null).end,y=p(f.line,v?0:null,f.ch).start;v&&(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 Qr(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()||Jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Yr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Kr(e))}function Wr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Jr(e))}),100)}function Kr(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(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qr(e))}function Jr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Xr(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,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,p=void 0,d=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var f=u.node.offsetTop+u.node.offsetHeight;p=f-n,n=f}else{var h=u.node.getBoundingClientRect();p=h.bottom-h.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-p;if((m>.005||m<-.005)&&(i<r&&(o-=m),Ze(u.line,p),Zr(u.line),u.rest))for(var v=0;v<u.rest.length;v++)Zr(u.rest[v]);if(d>e.display.sizerWidth){var g=Math.ceil(d/Or(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Zr(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-Bn(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,l=n.ensure.to.line;s<o?(o=s,a=tt(t,on(Ke(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=tt(t,on(Ke(t,l))-e.wrapper.clientHeight),a=l)}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-Bn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(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),l=n&&n!=t?yr(e,n):s,u=ii(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=u.scrollTop&&(pi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(fi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&pi(e,n.scrollTop),null!=n.scrollLeft&&fi(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=Wn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Hn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,f=Yn(e)-n.gutters.offsetWidth,h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+p-(h?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function oi(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ui(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||ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ui(e),e.curOp.scrollToPos=t}function ui(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 pi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||zi(e,{top:t}),di(e,t,!0),n&&zi(e),Fi(e,100))}function di(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 fi(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,Gi(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+Hn(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+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mi=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")};mi.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}},mi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var e=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new j,this.disableVert=new j},mi.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)},mi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=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&&Xr(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=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){};var bi={native:mi,null:vi};function Ei(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(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?fi(e,t):pi(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var wi=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:++wi,markArrays:null},Tn(e.curOp)}function _i(e){var t=e.curOp;t&&Sn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ti(e)}))}function Ti(e){for(var t=e.ops,n=0;n<t.length;n++)xi(t[n]);for(var r=0;r<t.length;r++)Si(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 xi(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 Mi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Ci(e){var t=e.cm,n=t.display;e.updatedDisplay&&Xr(t),e.barMeasure=hi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Zn(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+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yn(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&&fi(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&&Hi(t,e.barMeasure),e.selectionChanged&&Qr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Yr(e.cm)}function Oi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&$i(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&di(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&fi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ti(t,ni(t,pt(r,e.scrollToPos.from),pt(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{_i(e)}}function Di(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ki(e);try{return t.apply(e,arguments)}finally{_i(e)}}}function Ii(e){return function(){if(this.curOp)return e.apply(this,arguments);ki(this);try{return e.apply(this,arguments)}finally{_i(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{_i(t)}}}function Fi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,M(Ri,e))}function Ri(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?Ge(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!p&&d<a.length;++d)p=a[d]!=o.styles[d];p&&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 Fi(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 Mi=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=Yn(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=Qn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Qn(e)+"px",t.scrollbarsClipped=!0)}function Vi(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 ji(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 Vr(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==$r(e))return!1;Qi(e)&&(Vr(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(Ke(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=$r(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Vi(e);return l>4&&(n.lineDiv.style.display="none"),qi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ji(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function $i(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Yn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Hn(e.display)-Wn(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;Xr(e);var i=hi(e);zr(e),gi(e,i),Hi(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 Mi(e,t);if(Ui(e,n)){Xr(e),$i(e,n);var r=hi(e);zr(e),gi(e,r),Hi(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 l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,p=0;p<u.length;p++){var d=u[p];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;a!=d.node;)a=s(a);var f=i&&null!=t&&t<=c&&d.lineNumber;d.changes&&(U(d.changes,"gutter")>-1&&(f=!1),An(e,d,c,n)),f&&(C(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=d.node.nextSibling}else{var h=Vn(e,d,c,n);o.insertBefore(h,a)}c+=d.size}for(;a;)a=s(a)}function Bi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nn(e,"gutterChanged",e)}function Hi(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+Qn(e)+"px"}function Gi(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 l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Qi(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",Bi(e.display),!0}return!1}function Yi(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 Wi(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",Bi(e)}function Ki(e){Wi(e.display),Mr(e),Gi(e)}function Ji(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 u=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[u],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+$+"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),l||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=Yi(i.gutters,i.lineNumbers),Wi(o),r.init(o)}Mi.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Mi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var Xi=0,Zi=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*=Zi,t.y*=Zi,t}function no(e,t){var r=eo(t),i=r.x,o=r.y,a=Zi;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,c=u.scrollWidth>u.clientWidth,d=u.scrollHeight>u.clientHeight;if(i&&c||o&&d){if(o&&y&&l)e:for(var f=t.target,h=s.view;f!=u;f=f.parentNode)for(var m=0;m<h.length;m++)if(h[m].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!p&&null!=a)return o&&d&&pi(e,Math.max(0,u.scrollTop+o*a)),fi(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&d)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var v=o*a,g=e.doc.scrollTop,b=g+s.wrapper.clientHeight;v<0?g=Math.max(0,g+v-50):b=Math.min(e.doc.height,b+v+50),zi(e,{top:g,bottom:b})}Xi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(Zi=(Zi*Xi+n)/(Xi+1),++Xi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?Zi=-.53:n?Zi=15:c?Zi=-.7:d&&(Zi=-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],l=ot(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(p?c:u,p?u: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,W(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(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 uo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new io(lo(i.anchor,t),lo(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 po(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=co(s.from,i,o),u=co(so(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],p=ot(c.head,c.anchor)<0;r[a]=new io(p?u:l,p?l:u)}else r[a]=new io(l,l)}return new ro(r,e.sel.primIndex)}function fo(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,Fi(e,100),e.state.modeGen++,e.curOp&&Mr(e)}function mo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==W(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){un(e,n,i,r),Nn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new ln(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Ke(e,s.line),p=Ke(e,l.line),d=W(u),f=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(mo(e,t)){var m=a(0,u.length-1);o(p,p.text,f),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==p)if(1==u.length)o(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),f);else{var v=a(1,u.length-1);v.push(new ln(d+c.text.slice(l.ch),f,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+p.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(p,d+p.text.slice(l.ch),f);var g=a(1,u.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 l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}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),fo(e),bo(e),e.options.direction=t.direction,e.options.lineWrapping||sn(e),e.options.mode=t.modeOption,Mr(e)}function bo(e){("rtl"==e.doc.direction?L:S)(e.display.lineDiv,"CodeMirror-rtl")}function Eo(e){Ai(e,(function(){bo(e),Mr(e)}))}function wo(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:Je(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 _o(e){for(;e.length&&W(e).ranges;)e.pop()}function To(e,t){return t?(_o(e.done),W(e.done)):e.done.length&&!W(e.done).ranges?W(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),W(e.done)):void 0}function xo(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=To(i,i.lastOp==r)))a=W(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 l=W(i.done);for(l&&l.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 So(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||So(e,o,W(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&&_o(i.undone)}function No(e,t){var n=W(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=Vt(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 l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}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 l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var p in u)(c=p.match(/^spans_(\d+)$/))&&U(t,Number(c[1]))>-1&&(W(s)[p]=u[p],delete u[p])}}}return r}function Fo(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 Ro(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$o(e,new ro([Fo(e.sel.primary(),t,n,i)],0),r)}function Mo(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]=Fo(e.sel.ranges[o],t[o],null,i);$o(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,$o(e,oo(e.cm,i,e.sel.primIndex),r)}function Vo(e,t,n,r){$o(e,ao(t,n),r)}function jo(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(pt(e,t[n].anchor),pt(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=W(r);i&&i.ranges?(r[r.length-1]=t,zo(e,t,n)):$o(e,t,n)}function $o(e,t,n){zo(e,t,n),Co(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function zo(e,t,n){(Ee(e,"beforeSelectionChange")||e.cm&&Ee(e.cm,"beforeSelectionChange"))&&(t=jo(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);qo(e,Ho(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 Bo(e){qo(e,Ho(e,e.sel,null,!1))}function Ho(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],l=Qo(e,a.anchor,s&&s.anchor,n,r),u=Qo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new io(l,u))}return i?oo(e.cm,i,t.primIndex):t}function Go(e,t,n,r,i){var o=Ke(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(ge(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(p=Yo(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(d=ot(p,n))&&(r<0?d<0:d>0))return Go(e,p,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?u:c)&&(f=Yo(e,f,r,f.line==t.line?o:null)),f?Go(e,f,t,r,i):null}}return t}function Qo(e,t,n,r,i){var o=r||1,a=Go(e,t,n,o,i)||!i&&Go(e,t,n,o,!0)||Go(e,t,n,-o,i)||!i&&Go(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function Yo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?pt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ke(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 Wo(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),q)}function Ko(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=pt(e,t)),n&&(r.to=pt(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 Jo(e,t,n){if(e.cm){if(!e.cm.curOp)return Di(e.cm,Jo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"))||(t=Ko(e,t,!0))){var r=Nt&&!n&&Ut(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Xo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Xo(e,t)}}function Xo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=uo(e,t);xo(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Vt(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,Vt(e,t))}))}}function Zo(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,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(No(i,l),n&&!i.equals(e.sel))return void $o(e,i,{clearRedo:!1});a=i}var c=[];No(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var p=Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=t,p&&!Ko(e,r,!1))return s.length=0,{};c.push(ko(e,r));var o=n?uo(e,r):W(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))}))},f=i.changes.length-1;f>=0;--f){var h=d(f);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(K(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)){Mr(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:[W(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Ke(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Je(e,t.from,t.to),n||(n=uo(e,t)),e.cm?na(e.cm,t,r):vo(e,t,r),zo(e,n,q),e.cantEdit&&Qo(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,l=o.line;e.options.lineWrapping||(l=et(Jt(Ke(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Ir(e)),e.options.lineWrapping||(r.iter(l,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),Fi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Mr(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Mr(e,o.line,a.line+1,u):Pr(e,o.line,"text");var c=Ee(e,"changes"),p=Ee(e,"change");if(p||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&Nn(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}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)),Jo(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 l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=it(u.from.line+r,u.from.ch),u.to=it(u.to.line+r,u.to.ch);else if(t<=u.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=Ke(e,ct(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&Pr(e.cm,i,n),o)}function la(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 ua(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 ut(this.anchor,this.head)},io.prototype.to=function(){return lt(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},la.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}},ua.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 la))){var s=[];this.collapse(s),this.children=[new la(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 l=new la(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.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 ua(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 ua(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 pa(e,t,n){on(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&oi(e,n)}function da(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;Ze(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);Ze(n,Math.max(0,n.height-o)),e&&(Ai(e,(function(){pa(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)||Ze(r,r.height+i),n&&Ai(n,(function(){n.curOp.forceUpdate=!0,pa(n,r,i),Nn(n,"lineWidgetChanged",n,e,et(r))})))},we(ca);var fa=0,ha=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++fa};function ma(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,ma)(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(Kt(e,t.line,t,n,o)||t.line!=n.line&&Kt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&xo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&Jt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ze(r,0),Rt(r,new It(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Ze(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=++fa,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Mr(u,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(u,c,"text");o.atomic&&Bo(u.doc),Nn(u,"markerAdded",u,o)}return o}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ki(e),Ee(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=Ft(a.markedSpans,s),null==s.from&&this.collapsed&&!nn(this.doc,a)&&e&&Ze(a,Nr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Jt(this.lines[l]),c=an(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Bo(e.doc)),e&&Nn(e,"markerCleared",e,this,r,i),t&&_i(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&&(ur(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 l=zn(n)-s;l&&Ze(i,i.height+l)}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)}},we(ha);var va=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=[ma(e,t,n,r,i)],a=o[0],s=r.widgetNode;return go(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ma(e,pt(e,t),pt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=W(o)})),new va(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=ma(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Ea(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)}va.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")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},we(va);var wa=0,ka=function(e,t,n,r,i){if(!(this instanceof ka))return new ka(e,t,n,r,i);null==n&&(n=0),ua.call(this,[new la([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=it(n,0);this.sel=ao(o),this.history=new wo(null),this.id=++wa,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vo(this,{from:o,to:o,text:e}),$o(this,ao(o),q)};ka.prototype=Z(ua.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=Xe(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;Jo(this,{from:t,to:it(n,Ke(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&si(this.cm,0,0),$o(this,ao(t),q)})),replaceRange:function(e,t,n,r){ra(this,e,t=pt(this,t),n=n?pt(this,n):t,r)},getRange:function(e,t,n){var r=Je(this,pt(this,e),pt(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 Ke(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ke(this,e)),Jt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pt(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){Vo(this,pt(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:Li((function(e,t,n){Vo(this,pt(this,e),pt(this,t||e),n)})),extendSelection:Li((function(e,t,n){Ro(this,pt(this,e),t&&pt(this,t),n)})),extendSelections:Li((function(e,t){Mo(this,ft(this,e),t)})),extendSelectionsBy:Li((function(e,t){Mo(this,ft(this,K(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(pt(this,e[i].anchor),pt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$o(this,oo(this.cm,r,t),n)}})),addSelection:Li((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new io(pt(this,e),pt(this,t||e))),$o(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=Je(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=Je(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&&po(this,r,t),l=r.length-1;l>=0;l--)Jo(this,r[l]);s?Uo(this,s):this.cm&&ai(this.cm)})),undo:Li((function(){Zo(this,"undo")})),redo:Li((function(){Zo(this,"redo")})),undoSelection:Li((function(){Zo(this,"undo",!0)})),redoSelection:Li((function(){Zo(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 wo(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 wo(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=Ke(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(T(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(T(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 da(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ma(this,pt(this,e),pt(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 ma(this,e=pt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ke(this,(e=pt(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=pt(this,e),t=pt(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 l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.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})),pt(this,it(n,t))},indexFromPos:function(e){var t=(e=pt(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(Xe(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(Xe(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 Ms&&(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),Ea(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 wo(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&&Eo(this.cm))}))}),ka.prototype.eachLine=ka.prototype.iter;var _a=0;function Ta(e){var t=this;if(Ca(t),!ye(t,e)&&!qn(t.display,e)){ke(e),a&&(_a=+new Date);var n=Fr(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,l=function(){++s==i&&Di(t,(function(){var e={from:n=pt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Jo(t.doc,e),Uo(t.doc,ao(pt(t.doc,n),pt(t.doc,so(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==U(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(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 p=e.dataTransfer.getData("Text");if(p){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),zo(t.doc,ao(n,n)),d)for(var f=0;f<d.length;++f)ra(t.doc,"",d[f].anchor,d[f].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(h){}}}}function xa(e,t){if(a&&(!e.state.draggingText||+new Date-_a<100))xe(t);else if(!ye(e,t)&&!qn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}function Sa(e,t){var n=Fr(e,t);if(n){var r=document.createDocumentFragment();Br(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(Jr)}))}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"},Fa=0;Fa<10;Fa++)La[Fa+48]=La[Fa+96]=String(Fa);for(var Ra=65;Ra<=90;Ra++)La[Ra]=String.fromCharCode(Ra);for(var Ma=1;Ma<=12;Ma++)La[Ma+111]=La[Ma+63235]="F"+Ma;var Pa={};function Va(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 ja(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=K(n.split(" "),Va),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 l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Ua(e,t,n,r){var i=(t=Ba(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 $a(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(p&&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 Ba(e){return"string"==typeof e?Pa[e]:e}function Ha(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,W(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 Ga(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qa(e,t,n){var r=Ga(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Ya(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=de(n,t.doc.direction);if(o){var a,s=i<0?W(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=tr(t,n);a=i<0?n.text.length-1:0;var c=nr(t,u,a).top;a=se((function(e){return nr(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ga(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function Wa(e,t,n,r){var i=de(t,e.doc.direction);if(!i)return Qa(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 Qa(t,n,r);var s,l=function(e,n){return Ga(t,e instanceof it?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||tr(e,t),_r(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,d=l(n,p?1:-1);if(null!=d&&(p?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var f=p?"before":"after";return new it(n.line,d,f)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(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),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var v=r>0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,u(v)))?null:m}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 Ka={selectAll:Wo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Ha(e,(function(t){if(t.empty()){var n=Ke(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 Ha(e,(function(t){return{from:it(t.from().line,0),to:pt(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return Ha(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ha(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 Ha(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 Ja(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Za(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Xa(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")}),H)},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")}),H)},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/)?Za(e,t.head):r}),H)},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=V(e.getLine(o.line),o.ch,r);t.push(Y(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=Ke(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=Ke(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 Ja(e,t){var n=Ke(e.doc,t),r=Jt(n);return r!=n&&(t=et(r)),Ya(!0,e,r,t,1)}function Xa(e,t){var n=Ke(e.doc,t),r=Xt(n);return r!=n&&(t=et(r)),Ya(!0,e,n,t,-1)}function Za(e,t){var n=Ja(e,t.line),r=Ke(e.doc,n.line),i=de(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=Ka[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 j;function rs(e,t,n,r){var i=e.state.keySeq;if(i){if($a(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),Qr(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 ls(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);p&&(ss=i?r:null,i||88!=r||Re||!(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)||us(t)}}function us(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(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 ps(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(p&&n==ss)return ss=null,void ke(e);if(!p||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 ds,fs,hs=400,ms=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vs(e,t){var n=+new Date;return fs&&fs.compare(n,e,t)?(ds=fs=null,"triple"):ds&&ds.compare(n,e,t)?(fs=new ms(n,e,t),ds=null,"double"):(ds=new ms(n,e,t),fs=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))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ss(t,e)){var r=Fr(t,e),i=Ce(e),o=r?vs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&ys(t,i,r,o,e)||(1==i?r?Es(t,r,o,e):Se(e)==n.scroller&&ke(e):2==i?(r&&Ro(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):Wr(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=Ka[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 Es(e,t,n,r){a?setTimeout(M(Yr,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)?ws(e,r,t,o):_s(e,r,t,o)}function ws(e,t,n,r){var i=e.display,o=!1,u=Di(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wr(e)),ve(i.wrapper.ownerDocument,"mouseup",u),ve(i.wrapper.ownerDocument,"mousemove",c),ve(i.scroller,"dragstart",p),ve(i.scroller,"drop",u),o||(ke(t),r.addNew||Ro(e.doc,n,null,null,r.extend),l&&!d||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},p=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",u),he(i.wrapper.ownerDocument,"mousemove",c),he(i.scroller,"dragstart",p),he(i.scroller,"drop",u),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),pt(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function _s(e,t,n,r){a&&Wr(e);var i=e.display,o=e.doc;ke(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new io(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new io(n,n)),n=Fr(e,t,!0,!0),l=-1;else{var p=ks(e,n,r.unit);s=r.extend?Fo(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=c.length,$o(o,oo(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?($o(o,oo(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Po(o,l,s,B):(l=0,$o(o,new ro([s],0),B),u=o.sel);var d=n;function f(t){if(0!=ot(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=V(Ke(o,n.line).text,n.ch,a),p=V(Ke(o,t.line).text,t.ch,a),f=Math.min(c,p),h=Math.max(c,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=Ke(o,m).text,y=G(g,f,a);f==h?i.push(new io(it(m,y),it(m,y))):g.length>y&&i.push(new io(it(m,y),it(m,G(g,h,a))))}i.length||i.push(new io(n,n)),$o(o,oo(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,w=ks(e,t,r.unit),k=E.anchor;ot(w.anchor,k)>0?(b=w.head,k=ut(E.from(),w.anchor)):(b=w.anchor,k=lt(E.to(),w.head));var _=u.ranges.slice(0);_[l]=Ts(e,new io(pt(o,k),b)),$o(o,oo(e,_,l),B)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,a=Fr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,d)){e.curOp.focus=I(),f(a);var s=ei(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Di(e,(function(){m==n&&v(t)})),150)}else{var l=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;l&&setTimeout(Di(e,(function(){m==n&&(i.scroller.scrollTop+=l,v(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(ke(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Di(e,(function(e){0!==e.buttons&&Ce(e)?v(e):g(e)})),b=Di(e,g);e.state.selectingText=b,he(i.wrapper.ownerDocument,"mousemove",y),he(i.wrapper.ownerDocument,"mouseup",b)}function Ts(e,t){var n=t.anchor,r=t.head,i=Ke(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=de(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 l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),p=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?p<0:p>0}var d=o[u+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,m=f?"after":"before";return n.ch==h&&n.sticky==m?t:new io(new it(n.line,h,m),r)}function xs(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||!Ee(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return ge(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function Ss(e,t){return xs(e,t,"gutterClick",!0)}function Cs(e,t){qn(e.display,t)||Ns(e,t)||ye(e,t,"contextmenu")||_||e.display.input.onContextMenu(t)}function Ns(e,t){return!!Ee(e,"gutterContextMenu")&&xs(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-"),pr(e)}ms.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,fo(e)}),!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){ho(e),pr(e),Mr(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",mn,(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",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Os(e),Ki(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ba(t),i=n!=As&&Ba(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Rs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Yi(t,e.options.lineNumbers),Ki(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){Ei(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=Yi(e.options.gutters,t),Ki(e)}),!0),n("firstLineNumber",1,Ki,!0),n("lineNumberFormatter",(function(e){return e}),Ki,!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&&(Jr(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,Fs),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 Fs(e,t,n){if(!t!=!(n&&n!=As)){var r=e.display.dragFunctions,i=t?he:ve;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 Rs(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Lr(e),Mr(e),pr(e),setTimeout((function(){return gi(e)}),100)}function Ms(e,t){var n=this;if(!(this instanceof Ms))return new Ms(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 Ms.inputStyles[t.inputStyle](this),o=this.display=new Ji(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Os(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ei(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 j,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&&Kr(n)}),20):Jr(this),Is)Is.hasOwnProperty(u)&&Is[u](this,t[u],As);Qi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Vs.length;++c)Vs[c](this);_i(this),l&&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=Fr(e,t);if(n&&!Ss(e,t)&&!qn(e.display,t)){ke(t);var r=e.findWordAt(n);Ro(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 l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}he(t.scroller,"touchstart",(function(i){if(!ye(e,i)&&!o(i)&&!Ss(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||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),pt(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&&(pi(e,t.scroller.scrollTop),fi(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)||xe(t)},over:function(t){ye(e,t)||(Sa(e,t),xe(t))},start:function(t){return xa(e,t)},drop:Di(e,Ta),leave:function(t){ye(e,t)||Ca(e)}};var u=t.input.getField();he(u,"keyup",(function(t){return cs.call(e,t)})),he(u,"keydown",Di(e,ls)),he(u,"keypress",Di(e,ps)),he(u,"focus",(function(t){return Kr(e,t)})),he(u,"blur",(function(t){return Jr(e,t)}))}Ms.defaults=Ds,Ms.optionHandlers=Is;var Vs=[];function js(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=Ke(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==z||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?V(Ke(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)d+=a,p+="\t";if(d<u&&(p+=Y(u-d)),p!=c)return ra(o,p,it(t,0),it(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var v=it(t,c.length);Po(o,h,new io(v,v));break}}}Ms.defineInitHook=function(e){return Vs.push(e)};var Us=null;function $s(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,l=Le(t),u=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\n")==t){if(r.ranges.length%Us.text.length==0){u=[];for(var c=0;c<Us.text.length;c++)u.push(o.splitLines(Us.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=K(l,(function(e){return[e]})));for(var p=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var f=r.ranges[d],h=f.from(),m=f.to();f.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Ke(o,m.line).text.length,m.ch+W(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var v={from:h,to:m,text:u?u[d%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Jo(e.doc,v),Nn(e,"inputRead",e,v)}t&&!s&&Bs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),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 Bs(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=js(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ke(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=js(e,i.head.line,"smart"));a&&Nn(e,"electricInput",e,i.head.line)}}}function Hs(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 Gs(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Qs(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Gs(e),t}function Ys(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"](Ba(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.");J(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Mr(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 Mr(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)&&js(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&&(js(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 l=s;l<n;++l)js(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Po(this.doc,r,new io(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return _t(this,e,t)},getLineTokens:function(e,t){return _t(this,it(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=gt(this,Ke(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 l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==U(r,u.val)&&r.push(u.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?pt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return gr(this,pt(this.doc,e),t||"page")},coordsChar:function(e,t){return wr(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(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=Ke(this.doc,e)}else r=e;return mr(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,pt(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 l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-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(ls),triggerOnKeyPress:Ii(ps),triggerOnKeyUp:cs,triggerOnMouseDown:Ii(gs),execCommand:function(e){if(Ka.hasOwnProperty(e))return Ka[e].call(null,this)},triggerElectric:Ii((function(e){Bs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=pt(this.doc,e),a=0;a<t&&!(o=Ws(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()?Ws(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),H)})),deleteH:Ii((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ha(this,(function(n){var i=Ws(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=pt(this.doc,e),s=0;s<t;++s){var l=yr(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ks(this,l,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 l=Ks(n,s,e,t);return"page"==t&&a==r.sel.primary()&&oi(n,gr(n,l,"div").top-s.top),l}),H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ke(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"):S(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-Qn(this)-this.display.barHeight,width:e.scrollWidth-Qn(this)-this.display.barWidth,clientHeight:Wn(this),clientWidth:Yn(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?li(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 _i(this)},refresh:Ii((function(){var e=this.display.cachedTextHeight;Mr(this),this.curOp.forceUpdate=!0,pr(this),si(this,this.doc.scrollLeft,this.doc.scrollTop),Bi(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),pr(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}},we(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 Ws(e,t,n,r,i){var o=t,a=n,s=Ke(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ke(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 p=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*(p?2:1))),-n)}}else a=i?Wa(e.cm,s,t,n):Qa(s,t,n);if(null==a){if(o||!u())return!1;t=Ya(i,e.cm,s,t.line,l)}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 p=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var m=s.text.charAt(t.ch)||"\n",v=ne(m,f)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||v||(v="s"),p&&p!=v){n<0&&(n=1,c(),t.sticky="after");break}if(v&&(p=v),n>0&&!c(!h))break}var g=Qo(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function Ks(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*Nr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=wr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Js=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new j,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Xs(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ke(e.doc,t.line),i=Jn(n,r,t.line),o=de(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 Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function p(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void p(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(it(r,0),it(i+1,0),u(+f));return void(h.length&&(o=h[0].find(0))&&p(Je(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var v=0;v<t.childNodes.length;v++)d(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}function nl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return el(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 rl(o,t,n)}}function rl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return el(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?W(e.rest):e.line;return el(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 l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[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]),p=o[a]+r;return(r<0||s!=t)&&(p=o[a+(r?1:0)]),it(c,p)}}}var p=c(a,s,n);if(p)return el(p,i);for(var d=s.nextSibling,f=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(p=c(d,d.firstChild,0))return el(it(p.line,p.ch-f),i);f+=d.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(p=c(h,h.firstChild,-1))return el(it(p.line,p.ch+m),i);m+=h.textContent.length}}Js.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())$s({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Hs(r);$s({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=Qs(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Us.text.join("\n");var u=I();R(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Gs(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)},Js.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var e=qr(this.cm,!1);return e.focus=I()==this.div,e},Js.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.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=nl(t,e.anchorNode,e.anchorOffset),s=nl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ot(ut(a,s),i)||0!=ot(lt(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Xs(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Xs(t,o);if(!c){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var f,h=e.rangeCount&&e.getRangeAt(0);try{f=x(u.node,u.offset,c.offset,c.node)}catch(m){}f&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Js.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)},Js.prototype.showMultipleSelections=function(e){N(this.cm.display.cursorDiv,e.cursors),N(this.cm.display.selectionDiv,e.selection)},Js.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Js.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.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)},Js.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&Zs(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=nl(t,e.anchorNode,e.anchorOffset),r=nl(t,e.focusNode,e.focusOffset);n&&r&&Ai(t,(function(){$o(t.doc,ao(n,r),q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Js.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,Ke(r.doc,a.line-1).length)),s.ch==Ke(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=Rr(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 l,u,c=Rr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(tl(r,n,u,t,l)),d=Je(r.doc,it(t,0),it(l,Ke(r.doc,l).text.length));p.length>1&&d.length>1;)if(W(p)==W(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),t++}for(var f=0,h=0,m=p[0],v=d[0],g=Math.min(m.length,v.length);f<g&&m.charCodeAt(f)==v.charCodeAt(f);)++f;for(var y=W(p),b=W(d),E=Math.min(y.length-(1==p.length?f:0),b.length-(1==d.length?f:0));h<E&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==d.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var w=it(t,f),k=it(l,d.length?W(d).length-h:0);return p.length>1||p[0]||ot(w,k)?(ra(r.doc,p,w,k,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.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))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ai(this.cm,(function(){return Mr(e.cm)}))},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.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))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var il=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new j,this.hasSelection=!1,this.composing=null};function ol(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(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ms((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function al(e){e.off=ve,e.on=he,e.wheelEventPixels=to,e.Doc=ka,e.splitLines=Le,e.countColumn=V,e.findColumn=G,e.isWordChar=te,e.Pass=z,e.signal=ge,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=Ve,e.mimeModes=je,e.resolveMode=ze,e.getMode=qe,e.modeExtensions=Be,e.extendMode=He,e.copyState=Ge,e.startState=Ye,e.innerMode=Qe,e.commands=Ka,e.keyMap=Pa,e.keyName=qa,e.isModifierKey=$a,e.lookupKey=Ua,e.normalizeKeyMap=ja,e.StringStream=We,e.SharedTextMarker=va,e.TextMarker=ha,e.LineWidget=ca,e.e_preventDefault=ke,e.e_stopPropagation=_e,e.e_stop=xe,e.addClass=L,e.contains=D,e.rmClass=S,e.keyNames=La}il.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())$s({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Hs(r);$s({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),R(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(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)}))},il.prototype.createField=function(e){this.wrapper=Qs(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.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},il.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")},il.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&&R(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.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)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Fe(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 l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Ai(t,(function(){zs(t,i.slice(l),r.length-l,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},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Fr(n,e),u=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Di(n,$o)(n.doc,ao(o),q);var c,d=i.style.cssText,f=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(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);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),_){xe(e);var m=function(){ve(window,"mouseup",m),setTimeout(g,20)};he(window,"mouseup",m)}else setTimeout(g,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 g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Di(n,Wo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ls(Ms),Ys(Ms);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in ka.prototype)ka.prototype.hasOwnProperty(ll)&&U(sl,ll)<0&&(Ms.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[ll]));return we(ka),Ms.inputStyles={textarea:il,contenteditable:Js},Ms.defineMode=function(e){Ms.defaults.mode||"null"==e||(Ms.defaults.mode=e),Ue.apply(this,arguments)},Ms.defineMIME=$e,Ms.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ms.defineMIME("text/plain","null"),Ms.defineExtension=function(e,t){Ms.prototype[e]=t},Ms.defineDocExtension=function(e,t){ka.prototype[e]=t},Ms.fromTextArea=ol,al(Ms),Ms.version="5.65.3",Ms}()},8287:(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,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),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}}(),f=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(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 v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=E,E(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(p))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(n)){e.eatWhile(p);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("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,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=g),v("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return v("comment","comment")}function E(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 v("quasi","string-2",e.current())}var w="([{}])";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),l=w.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(p.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 _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function T(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 x(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function S(e,t,n,r,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():l?H:q)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&x(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function N(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function 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",u){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 R(e,t.localVars));n.globalVars&&!A(e,t.globalVars)&&(t.globalVars=new R(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 F(n,t.vars,!0):null}return A(e,t.vars)?t:new F(t.prev,new R(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function F(e,t,n){this.prev=e,this.vars=t,this.block=n}function R(e,t){this.name=e,this.next=t}var M=new R("this",new R("arguments",null));function P(){C.state.context=new F(C.state.context,C.state.localVars,!1),C.state.localVars=M}function V(){C.state.context=new F(C.state.context,C.state.localVars,!0),C.state.localVars=null}function j(){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 T(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function $(){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(";"),$):"keyword a"==e?O(U("form"),Q,q,$):"keyword b"==e?O(U("form"),q,$):"keyword d"==e?C.stream.match(/^\s*$/,!1)?O():O(U("stat"),W,z(";"),$):"debugger"==e?O(z(";")):"{"==e?O(U("}"),V,de,$,j):";"==e?O():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==$&&C.state.cc.pop()(),O(U("form"),Q,q,$,Fe)):"function"==e?O(Ve):"for"==e?O(U("form"),V,Re,q,j,$):"class"==e||c&&"interface"==t?(C.marked="keyword",O(U("form","class"==e?e:t),qe,$)):"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("}"),de,$,$)):c&&"namespace"==t?(C.marked="keyword",O(U("form"),H,q,$)):c&&"abstract"==t?(C.marked="keyword",O(q)):O(U("stat"),oe):"switch"==e?O(U("form"),Q,z("{"),U("}","switch"),V,de,$,$,j):"case"==e?O(H,z(":")):"default"==e?O(z(":")):"catch"==e?O(U("form"),P,B,q,$,j):"export"==e?O(U("stat"),Qe,$):"import"==e?O(U("stat"),We,$):"async"==e?O(q):"@"==t?O(H,q):N(U("stat"),H,z(";"),$)}function B(e){if("("==e)return O($e,z(")"))}function H(e,t){return Y(e,t,!1)}function G(e,t){return Y(e,t,!0)}function Q(e){return"("!=e?N():O(U(")"),W,z(")"),$)}function Y(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?te:ee;if("("==e)return O(P,U(")"),ce($e,")"),$,z("=>"),r,j);if("variable"==e)return N(P,Oe,z("=>"),r,j)}var i=n?J:K;return _.hasOwnProperty(e)?O(i):"function"==e?O(Ve,i):"class"==e||c&&"interface"==t?(C.marked="keyword",O(U("form"),ze,$)):"keyword c"==e||"async"==e?O(n?G:H):"("==e?O(U(")"),W,z(")"),$,i):"operator"==e||"spread"==e?O(n?G:H):"["==e?O(U("]"),et,$,i):"{"==e?pe(se,"}",null,i):"quasi"==e?N(X,i):"new"==e?O(ne(n)):O()}function W(e){return e.match(/[;\}\)\],]/)?N():N(H)}function K(e,t){return","==e?O(W):J(e,t,!1)}function J(e,t,n){var r=0==n?K:J,i=0==n?H:G;return"=>"==e?O(P,n?te:ee,j):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?O(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(U(">"),ce(ge,">"),$,r):"?"==t?O(H,z(":"),i):O(i):"quasi"==e?N(X,r):";"!=e?"("==e?pe(G,")","call",r):"."==e?O(ae,r):"["==e?O(U("]"),W,z("]"),$,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 X(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(X):O(W,Z)}function Z(e){if("}"==e)return C.marked="string-2",C.state.tokenize=E,O(X)}function ee(e){return k(C.stream,C.state),N("{"==e?q:H)}function te(e){return k(C.stream,C.state),N("{"==e?q:G)}function ne(e){return function(t){return"."==t?O(e?ie:re):"variable"==t&&c?O(xe,e?J:K):N(e?G:H)}}function re(e,t){if("target"==t)return C.marked="keyword",O(K)}function ie(e,t){if("target"==t)return C.marked="keyword",O(J)}function oe(e){return":"==e?O($,q):N(K,z(";"),$)}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(le):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),O(ue))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",O(ue)):"jsonld-keyword"==e?O(ue):c&&L(t)?(C.marked="keyword",O(se)):"["==e?O(H,fe,z("]"),ue):"spread"==e?O(G,ue):"*"==t?(C.marked="keyword",O(se)):":"==e?N(ue):void 0;var n}function le(e){return"variable"!=e?N(ue):(C.marked="property",O(Ve))}function ue(e){return":"==e?O(G):"("==e?N(Ve):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 pe(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return O(U(t,n),ce(e,t),$)}function de(e){return"}"==e?O():N(q,de)}function fe(e,t){if(c){if(":"==e)return O(ge);if("?"==t)return O(fe)}}function he(e,t){if(c&&(":"==e||"in"==t))return O(ge)}function me(e){if(c&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?O(H,ve,ge):O(ge)}function ve(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?G:ge)):"variable"==e||"void"==t?(C.marked="type",O(Te)):"|"==t||"&"==t?O(ge):"string"==e||"number"==e||"atom"==e?O(Te):"["==e?O(U("]"),ce(ge,"]",","),$,Te):"{"==e?O(U("}"),be,$,Te):"("==e?O(ce(_e,")"),ye,Te):"<"==e?O(ce(ge,">"),ge):"quasi"==e?N(we,Te):void 0}function ye(e){if("=>"==e)return O(ge)}function be(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(be):N(Ee,be)}function Ee(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",O(Ee)):"?"==t||"number"==e||"string"==e?O(Ee):":"==e?O(ge):"["==e?O(z("variable"),he,z("]"),Ee):"("==e?N(je,Ee):e.match(/[;\}\)\],]/)?void 0:O()}function we(e,t){return"quasi"!=e?N():"${"!=t.slice(t.length-2)?O(we):O(ge,ke)}function ke(e){if("}"==e)return C.marked="string-2",C.state.tokenize=E,O(we)}function _e(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?O(_e):":"==e?O(ge):"spread"==e?O(_e):N(ge)}function Te(e,t){return"<"==t?O(U(">"),ce(ge,">"),$,Te):"|"==t||"."==e||"&"==t?O(ge):"["==e?O(ge,z("]"),Te):"extends"==t||"implements"==t?(C.marked="keyword",O(ge)):"?"==t?O(ge,z(":"),ge):void 0}function xe(e,t){if("<"==t)return O(U(">"),ce(ge,">"),$,Te)}function Se(){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,fe,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?pe(De,"]"):"{"==e?pe(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(H,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(G)}function Le(e){if(","==e)return O(Ne)}function Fe(e,t){if("keyword b"==e&&"else"==t)return O(U("form","else"),q,$)}function Re(e,t){return"await"==t?O(Re):"("==e?O(U(")"),Me,$):void 0}function Me(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(H,Pe)):N(H,Pe)}function Ve(e,t){return"*"==t?(C.marked="keyword",O(Ve)):"variable"==e?(D(t),O(Ve)):"("==e?O(P,U(")"),ce($e,")"),$,me,q,j):c&&"<"==t?O(U(">"),ce(Se,">"),$,Ve):void 0}function je(e,t){return"*"==t?(C.marked="keyword",O(je)):"variable"==e?(D(t),O(je)):"("==e?O(P,U(")"),ce($e,")"),$,me,j):c&&"<"==t?O(U(">"),ce(Se,">"),$,je):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(C.marked="type",O(Ue)):"<"==t?O(U(">"),ce(Se,">"),$):void 0}function $e(e,t){return"@"==t&&O(H,$e),"spread"==e?O($e):c&&L(t)?(C.marked="keyword",O($e)):c&&"this"==e?O(fe,Ie):N(Oe,fe,Ie)}function ze(e,t){return"variable"==e?qe(e,t):Be(e,t)}function qe(e,t){if("variable"==e)return D(t),O(Be)}function Be(e,t){return"<"==t?O(U(">"),ce(Se,">"),$,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),O(c?ge:H,Be)):"{"==e?O(U("}"),He,$):void 0}function He(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(He)):"variable"==e||"keyword"==C.style?(C.marked="property",O(Ge,He)):"number"==e||"string"==e?O(Ge,He):"["==e?O(H,fe,z("]"),Ge,He):"*"==t?(C.marked="keyword",O(He)):c&&"("==e?N(je,He):";"==e||","==e?O(He):"}"==e?O():"@"==t?O(H,He):void 0}function Ge(e,t){if("!"==t)return O(Ge);if("?"==t)return O(Ge);if(":"==e)return O(ge,Ie);if("="==t)return O(G);var n=C.state.lexical.prev;return N(n&&"interface"==n.info?je:Ve)}function Qe(e,t){return"*"==t?(C.marked="keyword",O(Ze,z(";"))):"default"==t?(C.marked="keyword",O(H,z(";"))):"{"==e?O(ce(Ye,"}"),Ze,z(";")):N(q)}function Ye(e,t){return"as"==t?(C.marked="keyword",O(z("variable"))):"variable"==e?N(G,Ye):void 0}function We(e){return"string"==e?O():"("==e?N(H):"."==e?N(K):N(Ke,Je,Ze)}function Ke(e,t){return"{"==e?pe(Ke,"}"):("variable"==e&&D(t),"*"==t&&(C.marked="keyword"),O(Xe))}function Je(e){if(","==e)return O(Ke,Je)}function Xe(e,t){if("as"==t)return C.marked="keyword",O(Ke)}function Ze(e,t){if("from"==t)return C.marked="keyword",O(H)}function et(e){return"]"==e?O():N(ce(G,"]"))}function tt(){return N(U("form"),Oe,z("{"),U("}"),ce(nt,"}"),$,$)}function nt(){return N(Oe,Ie)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||f.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=V.lex=!0,j.lex=!0,$.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new F(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),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",S(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==E)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==$)l=l.prev;else if(c!=Fe&&c!=j)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==K||i==J)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,d=s==p;return"vardef"==p?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==p&&"{"==s?l.indented:"form"==p?l.indented+o:"stat"==p?l.indented+(rt(t,r)?a||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:it,skipExpression:function(t){S(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(6246))},6847:(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 l(e,t){return t.context.mode==o?u(e,t,t.context):c(e,t,t.context)}function u(n,i,u){if(2==u.depth)return n.match(/^.*?\*\//)?u.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){o.skipAttribute(u.state);var c=s(u.state),p=u.state.context;if(p&&n.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?c-=r.indentUnit:u.prev.state.lexical&&(c=u.prev.state.lexical.indented)}else 1==u.depth&&(c+=r.indentUnit);return i.context=new t(e.startState(a,c),a,0,i.context),null}if(1==u.depth){if("<"==n.peek())return o.skipAttribute(u.state),i.context=new t(e.startState(o,s(u.state)),o,0,i.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return u.depth=2,l(n,i)}var d,f=o.token(n,u.state),h=n.current();return/\btag\b/.test(f)?/>$/.test(h)?u.state.context?u.depth=0:i.context=i.context.prev:/^</.test(h)&&(u.depth=1):!f&&(d=h.indexOf("{"))>-1&&n.backUp(h.length-d),f}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 l=n.current();"{"==l?i.depth++:"}"==l&&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:l,indent:function(e,t,n){return e.context.mode.indent(e.context.state,t,n)},innerMode:function(e){return e.context}}}),"xml","javascript"),e.defineMIME("text/jsx","jsx"),e.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(6246),n(5159),n(8287))},5159:(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,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function p(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=p,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=p,t.state=E,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=p;break}n.next()}return e}}function m(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=p;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function v(e){return e&&e.toLowerCase()}function g(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(v(n))||!l.contextGrabbers[v(n)].hasOwnProperty(v(t)))return;y(e)}}function E(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?k:E}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",x):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,t,n)):(a="error",w)}function k(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(v(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",T)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",T)}function _(e,t,n){return"endTag"!=e?(a="error",_):(y(n),E)}function T(e,t,n){return a="error",_(e,t,n)}function x(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(v(r))?b(n,r):(b(n,r),n.context=new g(n,r,i==n.indented)),E}return a="error",x}function S(e,t,n){return"equals"==e?C:(l.allowMissing||(a="error"),x(e,t,n))}function C(e,t,n){return"string"==e?N:"word"==e&&l.allowUnquoted?(a="string",x):(a="error",x(e,t,n))}function N(e,t,n){return"string"==e?N:x(e,t,n)}return p.isInText=!0,{startState:function(e){var t={tokenize:p,state:E,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!=d&&t.tokenize!=p)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(v(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[v(i.tagName)];if(!a||!a.hasOwnProperty(v(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:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=x)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(6246))},5270:(e,t,n)=>{"use strict";var r=n(139),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.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(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),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{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},2203: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}},1548:(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(l){i=!0,o=l}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=S;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5043)),l=n(8687);function u(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 p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function h(e){return e.charAt(0).toUpperCase()+e.slice(1)}var m={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},v=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 E(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function w(e){var t=e.getFields();if(t.id){var n=["id"];return t.email?n.push("email"):t.name&&n.push("name"),n}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];var r=[];return Object.keys(t).forEach((function(e){(0,l.isLeafType)(t[e].type)&&r.push(e)})),r.length?r.slice(0,2):["__typename"]}function k(e){return(0,l.isNonNullType)(e.type)&&void 0===e.defaultValue}function _(e){for(var t=e;(0,l.isWrappingType)(t);)t=t.ofType;return t}function T(e,t){if("string"!==typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,l.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{var n=JSON.parse(t);return"boolean"===typeof n?{kind:"BooleanValue",value:n}:{kind:"BooleanValue",value:!1}}catch(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 x=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return r.props.selection.fields.find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(){var e=r.props.selection,t=r._getArgSelection();r._previousArgSelection=t,r.props.modifyFields(e.fields.filter((function(e){return e!==t})),!0)},r._addArg=function(){var e=r.props,t=e.selection,n=e.arg,i=e.getDefaultScalarArgValue,o=e.parentField,a=e.makeDefaultArg,s=_(n.type),u=null;if(r._previousArgSelection)u=r._previousArgSelection;else if((0,l.isInputObjectType)(s)){var p=s.getFields();u={kind:"ObjectField",name:{kind:"Name",value:n.name},value:{kind:"ObjectValue",fields:L(i,a,o,Object.keys(p).map((function(e){return p[e]})))}}}else(0,l.isLeafType)(s)&&(u={kind:"ObjectField",name:{kind:"Name",value:n.name},value:i(o,n,s)});if(u)return r.props.modifyFields([].concat(c(t.fields||[]),[u]),!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(f){}var s=r.props.selection,u=r._getArgSelection();if(u){var c=_(r.props.arg.type);if((0,l.isLeafType)(c)||i||n||a){var p=void 0,d=void 0;return null===e||"undefined"===typeof e?d=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?d=(p=e).variable:"string"===typeof e.kind?d=e:e.target&&"string"===typeof e.target.value&&(p=e.target.value,d=T(c,p)),r.props.modifyFields((s.fields||[]).map((function(e){return e===u?o({},e,{value:d}):e})),t)}console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e)}else console.error("missing arg selection when setting arg value")},r._modifyChildFields=function(e){return r.props.modifyFields(r.props.selection.fields.map((function(t){return t.name.value===r.props.arg.name?o({},t,{value:{kind:"ObjectValue",fields:e}}):t})),!0)},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(A,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);function S(e){if((0,l.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}}function C(e,t,n){return S(n)}var N=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._getArgSelection=function(){return(r.props.selection.arguments||[]).find((function(e){return e.name.value===r.props.arg.name}))},r._removeArg=function(e){var t=r.props.selection,n=r._getArgSelection();return r._previousArgSelection=n,r.props.modifyArguments((t.arguments||[]).filter((function(e){return e!==n})),e)},r._addArg=function(e){var t=r.props,n=t.selection,i=t.getDefaultScalarArgValue,o=t.makeDefaultArg,a=t.parentField,s=t.arg,u=_(s.type),p=null;if(r._previousArgSelection)p=r._previousArgSelection;else if((0,l.isInputObjectType)(u)){var d=u.getFields();p={kind:"Argument",name:{kind:"Name",value:s.name},value:{kind:"ObjectValue",fields:L(i,o,a,Object.keys(d).map((function(e){return d[e]})))}}}else(0,l.isLeafType)(u)&&(p={kind:"Argument",name:{kind:"Name",value:s.name},value:i(a,s,u)});return p?r.props.modifyArguments([].concat(c(n.arguments||[]),[p]),e):(console.error("Unable to add arg for argType",u),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(f){}var s=r.props.selection,u=r._getArgSelection();if(u||i){var c=_(r.props.arg.type);if((0,l.isLeafType)(c)||i||n||a){var p=void 0,d=void 0;return null===e||"undefined"===typeof e?d=null:e.target&&"string"===typeof e.target.value?(p=e.target.value,d=T(c,p)):e.target||"VariableDefinition"!==e.kind?"string"===typeof e.kind&&(d=e):d=(p=e).variable,r.props.modifyArguments((s.arguments||[]).map((function(e){return e===u?o({},e,{value:d}):e})),t)}console.warn("Unable to handle non leaf types in ArgView._setArgValue")}else console.error("missing arg selection when setting arg value")},r._setArgFields=function(e,t){var n=r.props.selection,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")},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.arg,n=e.parentField,r=this._getArgSelection();return s.createElement(A,{argValue:r?r.value:null,arg:t,parentField:n,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(s.PureComponent);var O=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r._handleChange=function(e){r.props.setArgValue(e,!0)},d(r,n)}return f(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._ref,t=document.activeElement;!e||!t||t instanceof HTMLTextAreaElement||(e.focus(),e.setSelectionRange(0,e.value.length))}},{key:"render",value:function(){var e=this,t=this.props,n=t.arg,r=t.argValue,i=t.styleConfig,o=_(n.type),a="string"===typeof r.value?r.value:"",l="StringValue"===this.props.argValue.kind?i.colors.string:i.colors.number;return s.createElement("span",{style:{color:l}},"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:l},ref:function(t){e._ref=t},type:"text",onChange:this._handleChange,value:a}),"String"===o.name?'"':"")}}]),t}(s.PureComponent),A=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={displayArgActions:!1},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.argValue,r=t.arg,a=t.styleConfig,u=_(r.type),p=null;if(n)if("Variable"===n.kind)p=s.createElement("span",{style:{color:a.colors.variable}},"$",n.name.value);else if((0,l.isScalarType)(u))p="Boolean"===u.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(O,{setArgValue:this.props.setArgValue,arg:r,argValue:n,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(u))"EnumValue"===n.kind?p=s.createElement("select",{style:{backgroundColor:"white",color:a.colors.string2},onChange:this.props.setArgValue,value:n.value},u.getValues().map((function(e){return s.createElement("option",{key:e.name,value:e.name},e.name)}))):console.error("arg mismatch between arg and selection",u,n);else if((0,l.isInputObjectType)(u))if("ObjectValue"===n.kind){var d=u.getFields();p=s.createElement("div",{style:{marginLeft:16}},Object.keys(d).sort().map((function(t){return s.createElement(x,{key:t,arg:d[t],parentField:e.props.parentField,selection:n,modifyFields:e.props.setArgFields,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})))}else console.error("arg mismatch between arg and selection",u,n);var f=function(){var t=r.name,a=(e.props.definition.variableDefinitions||[]).filter((function(e){return e.variable.name.value.startsWith(t)})).length,s=void 0;s=a>0?""+t+a:t;var u=r.type.toString(),p={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:s}},type:(0,l.parseType)(u),directives:[]},d=void 0,f={};if("undefined"!==typeof n&&null!==n){var h=(0,l.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(f[r]=f[r]+1||1,i)return i.defaultValue}}),m="NonNullType"===p.type.kind?o({},p,{type:p.type.type}):p;d=o({},m,{defaultValue:h})}else d=p;var v=Object.entries(f).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(d){var g=e.props.setArgValue(d,!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||[]),[d]).filter((function(e){return-1===v.indexOf(e.variable.name.value)})),E=o({},y,{variableDefinitions:b}),w=g.definitions.map((function(e){return y===e?E:e})),k=o({},g,{definitions:w});e.props.onCommit(k)}}},h=n&&"Variable"===n.kind,m=this.state.displayArgActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:h?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(t){t.preventDefault(),t.stopPropagation(),h?function(){if(n&&n.name&&n.name.value){var t=n.name.value,r=(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===t}));if(r){var 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 u=0;(0,l.visit)(s,{Variable:function(e){e.name.value===t&&(u+=1)}});var c=s.variableDefinitions||[];u<2&&(c=c.filter((function(e){return e.variable.name.value!==t})));var p=o({},s,{variableDefinitions:c}),d=a.definitions.map((function(e){return s===e?p:e})),f=o({},a,{definitions:d});e.props.onCommit(f)}}}}():f()},style:a.styles.actionButtonStyle},s.createElement("span",{style:{color:a.colors.variable}},"$")):null;return s.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":r.name,"data-arg-type":u.name,className:"graphiql-explorer-"+r.name},s.createElement("span",{style:{cursor:"pointer"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,l.isInputObjectType)(u)?s.createElement("span",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(E,{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)?"*":"",": ",m," ")," "),p||s.createElement("span",null)," ")}}]),t}(s.PureComponent),D=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(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)},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.implementingType,r=t.schema,i=t.getDefaultFieldNames,o=t.styleConfig,a=this._getSelection(),l=n.getFields(),u=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(E,{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(l).sort().map((function(t){return s.createElement(R,{key:t,field:l[t],selections:u,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),I=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(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}))},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this.props.styleConfig,t=this._getSelection();return s.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},s.createElement("span",{style:{cursor:"pointer"},onClick:t?this._removeFragment:this._addFragment},s.createElement(E,{checked:!!t,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:e.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(s.PureComponent);function L(e,t,n,r){var i=[],o=!0,a=!1,s=void 0;try{for(var u,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var p=u.value;if((0,l.isRequiredInputField)(p)||t&&t(n,p)){var d=_(p.type);(0,l.isInputObjectType)(d)?function(){var r=d.getFields();i.push({kind:"ObjectField",name:{kind:"Name",value:p.name},value:{kind:"ObjectValue",fields:L(e,t,n,Object.keys(r).map((function(e){return r[e]})))}})}():(0,l.isLeafType)(d)&&i.push({kind:"ObjectField",name:{kind:"Name",value:p.name},value:e(n,p,d)})}}}catch(f){a=!0,s=f}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}return i}function F(e,t,n){var r=[],i=!0,o=!1,a=void 0;try{for(var s,u=n.args[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;if(k(c)||t&&t(n,c)){var p=_(c.type);(0,l.isInputObjectType)(p)?function(){var i=p.getFields();r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:{kind:"ObjectValue",fields:L(e,t,n,Object.keys(i).map((function(e){return i[e]})))}})}():(0,l.isLeafType)(p)&&r.push({kind:"Argument",name:{kind:"Name",value:c.name},value:e(n,c,p)})}}}catch(d){o=!0,a=d}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return r}var R=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(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:F(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:F(r.props.getDefaultScalarArgValue,r.props.makeDefaultArg,r.props.field)}]);r.props.modifySelections(t)},r._handleUpdateSelections=function(e){if(r._getSelection()&&!e.altKey)r._removeFieldFromSelections();else{var t=(0,l.getNamedType)(r.props.field.type),n=(0,l.isObjectType)(t)&&t.getFields();!!n&&e.altKey?r._addAllFieldsToSelections(n):r._addFieldToSelections(n)}},r._removeFieldFromSelections=function(){var e=r._getSelection();r._previousSelection=e,r.props.modifySelections(r.props.selections.filter((function(t){return t!==e})))},r._getSelection=function(){var e=r.props.selections.find((function(e){return"Field"===e.kind&&r.props.field.name===e.name.value}));return e?"Field"===e.kind?e:void 0:null},r._setArguments=function(e,t){var n=r._getSelection();if(n)return r.props.modifySelections(r.props.selections.map((function(t){return t===n?{alias:n.alias,arguments:e,directives:n.directives,kind:"Field",name:n.name,selectionSet:n.selectionSet}:t})),t);console.error("Missing selection when setting arguments",e)},r._modifyChildSelections=function(e,t){return r.props.modifySelections(r.props.selections.map((function(t){if("Field"===t.kind&&r.props.field.name===t.name.value){if("Field"!==t.kind)throw new Error("invalid selection");return{alias:t.alias,arguments:t.arguments,directives:t.directives,kind:"Field",name:t.name,selectionSet:{kind:"SelectionSet",selections:e}}}return t})),t)},d(r,n)}return f(t,e),a(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.field,i=n.schema,a=n.getDefaultFieldNames,u=n.styleConfig,p=this._getSelection(),d=function(e){for(var t=e;(0,l.isWrappingType)(t);)t=t.ofType;return t}(r.type),f=r.args.sort((function(e,t){return e.name.localeCompare(t.name)})),h="graphiql-explorer-node graphiql-explorer-"+r.name;r.isDeprecated&&(h+=" graphiql-explorer-deprecated");var m=(0,l.isObjectType)(d)||(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d)?this.props.availableFragments&&this.props.availableFragments[d.name]:null,v=s.createElement("div",{className:h},s.createElement("span",{title:r.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":r.name,"data-field-type":d.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){(0,l.isObjectType)(d)&&p&&p.selectionSet&&p.selectionSet.selections.filter((function(e){return"FragmentSpread"!==e.kind})).length>0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,l.isObjectType)(d)?s.createElement("span",null,p?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(d)?null:s.createElement(E,{checked:!!p,styleConfig:this.props.styleConfig}),s.createElement("span",{style:{color:u.colors.property},className:"graphiql-explorer-field-view"},r.name),this.state.displayFieldActions?s.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=d.name+"Fragment",r=(m||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=""+n+r);var i=p&&p.selectionSet?p.selectionSet.selections:[],a=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],s={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:d.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:i}},l=e._modifyChildSelections(a,!1);if(l){var u=o({},l,{definitions:[].concat(c(l.definitions),[s])});e.props.onCommit(u)}else console.warn("Unable to complete extractFragment operation")},style:o({},u.styles.actionButtonStyle)},s.createElement("span",null,"\u2026")):null),p&&f.length?s.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},f.map((function(t){return s.createElement(N,{key:t.name,parentField:r,arg:t,selection:p,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(p&&((0,l.isObjectType)(d)||(0,l.isInterfaceType)(d)||(0,l.isUnionType)(d))){var g=(0,l.isUnionType)(d)?{}:d.getFields(),y=p&&p.selectionSet?p.selectionSet.selections:[];return s.createElement("div",{className:"graphiql-explorer-"+r.name},v,s.createElement("div",{style:{marginLeft:16}},m?m.map((function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(I,{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,l.isInterfaceType)(d)||(0,l.isUnionType)(d)?i.getPossibleTypes(d).map((function(t){return s.createElement(D,{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 v}}]),t}(s.PureComponent);var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},P=null;function V(e){if(P&&P[0]===e)return P[1];var t=function(e){try{return e.trim()?(0,l.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}(e);return t?t instanceof Error?P?P[1]:M:(P=[e,t],t):M}var j={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"}},U=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={newOperationType:"query",displayTitleActions:!1},r._modifySelections=function(e,t){var n=r.props.definition;0===n.selectionSet.selections.length&&r._previousOperationDef&&(n=r._previousOperationDef);var 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){(function(e){return e.ctrlKey&&"Enter"===e.key})(e)&&"FragmentDefinition"!==r.props.definition.kind&&r.props.onRunOperation(r.props.name)},r._rootViewElId=function(){var e=r.props;return e.operationType+"-"+(e.name||"unknown")},d(r,n)}return f(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this._rootViewElId();this.props.onMount(e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.operationType,r=t.definition,i=t.schema,a=t.getDefaultFieldNames,l=t.styleConfig,u=this._rootViewElId(),c=this.props.fields||{},p=r.selectionSet.selections,d=this.props.name||h(n)+" Name";return s.createElement("div",{id:u,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},s.createElement("div",{style:{color:l.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return e.setState({displayTitleActions:!0})},onMouseLeave:function(){return e.setState({displayTitleActions:!1})}},n," ",s.createElement("span",{style:{color:l.colors.def}},s.createElement("input",{style:{color:l.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,d.length)+"ch"},autoComplete:"false",placeholder:h(n)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?s.createElement("span",null,s.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?s.createElement(s.Fragment,null,s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationDestroy()},style:o({},l.styles.actionButtonStyle)},s.createElement("span",null,"\u2715")),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.props.onOperationClone()},style:o({},l.styles.actionButtonStyle)},s.createElement("span",null,"\u2398"))):""),Object.keys(c).sort().map((function(t){return s.createElement(R,{key:t,field:c[t],selections:p,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 $(){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 z=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(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()}},d(r,n)}return f(t,e),a(t,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var e=this,t=this.props,n=t.schema,i=t.query,a=t.makeDefaultArg;if(!n)return s.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var p={colors:this.props.colors||m,checkboxChecked:this.props.checkboxChecked||y,checkboxUnchecked:this.props.checkboxUnchecked||b,arrowClosed:this.props.arrowClosed||g,arrowOpen:this.props.arrowOpen||v,styles:this.props.styles?o({},j,this.props.styles):j},d=n.getQueryType(),f=n.getMutationType(),E=n.getSubscriptionType();if(!d&&!f&&!E)return s.createElement("div",null,"Missing query type");var k=d&&d.getFields(),_=f&&f.getFields(),T=E&&E.getFields(),x=V(i),S=this.props.getDefaultFieldNames||w,N=this.props.getDefaultScalarArgValue||C,O=x.definitions.map((function(e){return"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null})).filter(Boolean),A=0===O.length?M.definitions:O,D=[k?s.createElement("option",{key:"query",className:"toolbar-button",style:p.styles.buttonStyle,type:"link",value:"query"},"Query"):null,_?s.createElement("option",{key:"mutation",className:"toolbar-button",style:p.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,T?s.createElement("option",{key:"subscription",className:"toolbar-button",style:p.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({},p.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(e){return e.preventDefault()}},s.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),s.createElement("select",{onChange:function(t){return e._setAddOperationType(t.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},D),s.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return e.state.newOperationType?function(t){var n=x.definitions,r=1===x.definitions.length&&x.definitions[0]===M.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},u=r?[s]:[].concat(c(x.definitions),[s]),p=o({},x,{definitions:u});e.setState({operationToScrollTo:t+"-"+a}),e.props.onEdit((0,l.print)(p))}(e.state.newOperationType):null},style:o({},p.styles.buttonStyle,{height:"22px",width:"22px"})},s.createElement("span",null,"+")))),L=this.props.externalFragments&&this.props.externalFragments.reduce((function(e,t){if("FragmentDefinition"===t.kind){var n=t.typeCondition.name.value,r=e[n]||[],i=[].concat(c(r),[t]).sort((function(e,t){return e.name.value.localeCompare(t.name.value)}));return o({},e,u({},n,i))}return e}),{}),F=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,u({},n,i))}return e}),{}),R=o({},F,L),P=this.props.showAttribution?s.createElement($,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 u=t&&t.name&&t.name.value,d="FragmentDefinition"===t.kind?"fragment":t&&t.operation||"query",f="FragmentDefinition"===t.kind&&"NamedType"===t.typeCondition.kind&&n.getType(t.typeCondition.name.value),h=f instanceof l.GraphQLObjectType?f.getFields():null,m="query"===d?k:"mutation"===d?_:"subscription"===d?T:"FragmentDefinition"===t.kind?h:null,v="FragmentDefinition"===t.kind?t.typeCondition.name.value:null,g=function(t){var n=(0,l.print)(t);e.props.onEdit(n)};return s.createElement(U,{key:i,isLast:i===A.length-1,fields:m,operationType:d,name:u,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=x.definitions.map((function(t){return e===t?n:t}));return o({},x,{definitions:r})}(t,n);e.props.onEdit((0,l.print)(r))},onOperationDestroy:function(){var n=function(e){var t=x.definitions.filter((function(t){return e!==t}));return o({},x,{definitions:t})}(t);e.props.onEdit((0,l.print)(n))},onOperationClone:function(){var n=function(t){var n=void 0;n="FragmentDefinition"===t.kind?"fragment":t.operation;var r=(t.name&&t.name.value||"")+"Copy",i=o({},t,{name:{kind:"Name",value:r,loc:void 0}}),a=x.definitions,s=[].concat(c(a),[i]);return e.setState({operationToScrollTo:n+"-"+r}),o({},x,{definitions:s})}(t);e.props.onEdit((0,l.print)(n))},onTypeName:v,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({},x,{definitions:x.definitions.map((function(n){return n===t?e:n}))});return i?(g(a),a):a}return x},schema:n,getDefaultFieldNames:S,getDefaultScalarArgValue:N,makeDefaultArg:a,onRunOperation:function(){e.props.onRunOperation&&e.props.onRunOperation(u)},styleConfig:p,availableFragments:R})})),P),I)}}]),t}(s.PureComponent);z.defaultProps={getDefaultFieldNames:w,getDefaultScalarArgValue:C};var q=function(e){function t(){var e,n,r;p(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1,error:null,errorInfo:null},d(r,n)}return f(t,e),a(t,[{key:"componentDidCatch",value:function(e,t){this.setState({hasError:!0,error:e,errorInfo:t}),console.error("Error in component",e,t)}},{key:"render",value:function(){return this.state.hasError?s.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},s.createElement("div",null,"Something went wrong"),s.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,s.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(s.Component),B=function(e){function t(){return p(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"render",value:function(){return s.createElement("div",{className:"docExplorerWrap",style:{height:"100%",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?"flex":"none",flexDirection:"column",overflow:"hidden"}},s.createElement("div",{className:"doc-explorer-title-bar"},s.createElement("div",{className:"doc-explorer-title"},this.props.title),s.createElement("div",{className:"doc-explorer-rhs"},s.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"\u2715"))),s.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},s.createElement(q,null,s.createElement(z,this.props))))}}]),t}(s.PureComponent);B.defaultValue=S,B.defaultProps={width:320,title:"Explorer"},t.default=B},9995:(e,t,n)=>{"use strict";var r,i=n(1548),o=(r=i)&&r.__esModule?r:{default:r};o.default,t.Ay=o.default},7350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CharacterStream:()=>ze,CompletionItemKind:()=>Vn,DIAGNOSTIC_SEVERITY:()=>yn,FileChangeTypeKind:()=>Pn,LexRules:()=>Ye,ParseRules:()=>We,Position:()=>Lt,Range:()=>It,RuleKinds:()=>st,SEVERITY:()=>gn,SuggestionCommand:()=>lt,canUseDirective:()=>yt,collectVariables:()=>tn,getASTNodeAtPosition:()=>At,getAutocompleteSuggestions:()=>ct,getDefinitionQueryResultForDefinitionNode:()=>fn,getDefinitionQueryResultForFragmentSpread:()=>dn,getDefinitionQueryResultForNamedType:()=>pn,getDefinitionState:()=>L,getDiagnostics:()=>En,getFieldDef:()=>F,getFragmentDefinitions:()=>mt,getFragmentDependencies:()=>kt,getFragmentDependenciesForAST:()=>_t,getHoverInformation:()=>Nn,getOperationASTFacts:()=>nn,getOperationFacts:()=>rn,getOutline:()=>Sn,getQueryFacts:()=>on,getRange:()=>Tn,getTokenAtPosition:()=>vt,getTypeInfo:()=>bt,getVariableCompletions:()=>ht,getVariablesJSONSchema:()=>Ot,isIgnored:()=>Qe,list:()=>Be,offsetToPosition:()=>Ft,onlineParser:()=>Ze,opt:()=>qe,p:()=>Ge,pointToOffset:()=>Dt,t:()=>He,validateQuery:()=>wn,validateWithCustomRules:()=>Zt});var r,i,o,a,s,l,u,c,p,d,f,h,m,v,g,y,b,E,w,k,_,T,x,S,C,N,O,A,D=n(6333),I=n(2915);function L(e){let t;return R(e,(e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function F(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,D.ML)(t)?I.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function R(e,t){const n=[];let r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function M(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function P(e,t){return function(e,t){if(!t)return V(e,(e=>!e.isDeprecated));const n=e.map((e=>({proximity:U(j(e.label),t),entry:e})));return V(V(n,(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry))}(t,j(e.string))}function V(e,t){const n=e.filter(t);return 0===n.length?e:n}function j(e){return e.toLowerCase().replace(/\W/g,"")}function U(e,t){let n=function(e,t){let n,r;const 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++){const o=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]+o),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]+o))}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}!function(e){e.is=function(e){return"string"===typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"===typeof e}}(i||(i={})),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}}(o||(o={})),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}}(a||(a={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=a.MAX_VALUE),t===Number.MAX_VALUE&&(t=a.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)}}(s||(s={})),function(e){e.create=function(e,t,n,r){if(Fe.uinteger(e)&&Fe.uinteger(t)&&Fe.uinteger(n)&&Fe.uinteger(r))return{start:s.create(e,t),end:s.create(n,r)};if(s.is(e)&&s.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)&&s.is(t.start)&&s.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Fe.defined(t)&&l.is(t.range)&&(Fe.string(t.uri)||Fe.undefined(t.uri))}}(u||(u={})),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)&&l.is(t.targetRange)&&Fe.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||Fe.undefined(t.originSelectionRange))}}(c||(c={})),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)}}(p||(p={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Fe.objectLiteral(t)&&l.is(t.range)&&p.is(t.color)}}(d||(d={})),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)||k.is(t))&&(Fe.undefined(t.additionalTextEdits)||Fe.typedArray(t.additionalTextEdits,k.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(h||(h={})),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))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Fe.defined(t)&&u.is(t.location)&&Fe.string(t.message)}}(v||(v={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(g||(g={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(t)&&Fe.string(t.href)}}(b||(b={})),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)&&l.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,v.is))}}(E||(E={})),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)}}(w||(w={})),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)&&l.is(t.range)}}(k||(k={})),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)}}(_||(_={})),function(e){e.is=function(e){var t=e;return Fe.string(t)}}(T||(T={})),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 k.is(t)&&(_.is(t.annotationId)||T.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Fe.defined(t)&&q.is(t.textDocument)&&Array.isArray(t.edits)}}(S||(S={})),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||T.is(t.annotationId))}}(C||(C={})),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||T.is(t.annotationId))}}(N||(N={})),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||T.is(t.annotationId))}}(O||(O={})),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)?C.is(e)||N.is(e)||O.is(e):S.is(e)})))}}(A||(A={}));var $,z,q,B,H,G,Q,Y,W,K,J,X,Z,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,pe,de,fe,he,me,ve,ge,ye,be,Ee,we,ke,_e,Te,xe,Se,Ce,Ne,Oe,Ae,De=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=k.insert(e,t):T.is(n)?(i=n,r=x.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=x.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=k.replace(e,t):T.is(n)?(i=n,r=x.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=x.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=k.del(e):T.is(t)?(r=t,n=x.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=x.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}(),Ie=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(T.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 Ie(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(S.is(e)){var n=new De(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new De(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(q.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 De(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 De(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new Ie,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(_.is(t)||T.is(t)?r=t:n=t,void 0===r?i=C.create(e,n):(o=T.is(r)?r:this._changeAnnotations.manage(r),i=C.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(_.is(n)||T.is(n)?i=n:r=n,void 0===i?o=N.create(e,t,r):(a=T.is(i)?i:this._changeAnnotations.manage(i),o=N.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(_.is(t)||T.is(t)?r=t:n=t,void 0===r?i=O.create(e,n):(o=T.is(r)?r:this._changeAnnotations.manage(r),i=O.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)}}($||($={})),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)}}(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)&&(null===t.version||Fe.integer(t.version))}}(q||(q={})),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)}}(B||(B={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(H||(H={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(e)&&H.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}(Y||(Y={})),function(e){e.Deprecated=1}(W||(W={})),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)&&l.is(t.insert)&&l.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}}}(Z||(Z={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(ee||(ee={})),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)}}(te||(te={})),function(e){e.is=function(e){var t=e;return!!t&&Fe.objectLiteral(t)&&(G.is(t.contents)||te.is(t.contents)||Fe.typedArray(t.contents,te.is))&&(void 0===e.range||l.is(e.range))}}(ne||(ne={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(re||(re={})),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}}(ie||(ie={})),function(e){e.Text=1,e.Read=2,e.Write=3}(oe||(oe={})),function(e){e.create=function(e,t){var n={range:e};return Fe.number(t)&&(n.kind=t),n}}(ae||(ae={})),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}(se||(se={})),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}}(ue||(ue={})),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}}}}(ce||(ce={})),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)&&l.is(t.range)&&l.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}(fe||(fe={})),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,E.is)&&(void 0===t.only||Fe.typedArray(t.only,Fe.string))&&(void 0===t.triggerKind||t.triggerKind===fe.Invoked||t.triggerKind===fe.Automatic)}}(he||(he={})),function(e){e.create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):w.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,E.is))&&(void 0===t.kind||Fe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||w.is(t.command))&&(void 0===t.isPreferred||Fe.boolean(t.isPreferred))&&(void 0===t.edit||A.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)&&l.is(t.range)&&(Fe.undefined(t.command)||w.is(t.command))}}(ve||(ve={})),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)}}(ge||(ge={})),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)&&l.is(t.range)&&(Fe.undefined(t.target)||Fe.string(t.target))}}(ye||(ye={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return Fe.objectLiteral(n)&&l.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(be||(be={})),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"}(we||(we={})),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])}}(ke||(ke={})),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&&l.is(t.range)&&Fe.string(t.text)}}(_e||(_e={})),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&&l.is(t.range)&&Fe.boolean(t.caseSensitiveLookup)&&(Fe.string(t.variableName)||void 0===t.variableName)}}(Te||(Te={})),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&&l.is(t.range)&&(Fe.string(t.expression)||void 0===t.expression)}}(xe||(xe={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return Fe.defined(t)&&l.is(e.stoppedLocation)}}(Se||(Se={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ce||(Ce={})),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||u.is(t.location))&&(void 0===t.command||w.is(t.command))}}(Ne||(Ne={})),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)&&s.is(t.position)&&(Fe.string(t.label)||Fe.typedArray(t.label,Ne.is))&&(void 0===t.kind||Ce.is(t.kind))&&void 0===t.textEdits||Fe.typedArray(t.textEdits,k.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))}}(Oe||(Oe={})),function(e){e.is=function(e){var t=e;return Fe.objectLiteral(t)&&i.is(t.uri)&&Fe.string(t.name)}}(Ae||(Ae={}));var Le;!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,l=0;a<i.length&&s<o.length;){var u=n(i[a],o[s]);e[l++]=u<=0?i[a++]:o[s++]}for(;a<i.length;)e[l++]=i[a++];for(;s<o.length;)e[l++]=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],l=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,l)+s.newText+r.substring(u,r.length),o=l}return r}}(Le||(Le={}));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 s.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 s.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 Me=n(4705),Pe=n(6542),Ve=n(9182),je=n(1793),Ue=n(3721),$e=n(4391);class ze{constructor(e){var t=this;this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,i=null;if("string"===typeof e){i=new RegExp(e,arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"i":"g").test(t._sourceText.substr(t._pos,e.length)),r=e}else e instanceof RegExp&&(i=t._sourceText.slice(t._pos).match(e),r=i&&i[0]);return!(null==i||!("string"===typeof e||i instanceof Array&&t._sourceText.startsWith(i[0],t._pos)))&&(n&&(t._start=t._pos,r&&r.length&&(t._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function qe(e){return{ofRule:e}}function Be(e,t){return{ofRule:e,isList:!0,separator:t}}function He(e,t){return{style:t,match:t=>t.kind===e}}function Ge(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}const Qe=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e,Ye={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:/^#.*/},We={Document:[Be("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Me.b.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:[Je("query"),qe(Xe("def")),qe("VariableDefinitions"),Be("Directive"),"SelectionSet"],Mutation:[Je("mutation"),qe(Xe("def")),qe("VariableDefinitions"),Be("Directive"),"SelectionSet"],Subscription:[Je("subscription"),qe(Xe("def")),qe("VariableDefinitions"),Be("Directive"),"SelectionSet"],VariableDefinitions:[Ge("("),Be("VariableDefinition"),Ge(")")],VariableDefinition:["Variable",Ge(":"),"Type",qe("DefaultValue")],Variable:[Ge("$","variable"),Xe("variable")],DefaultValue:[Ge("="),"Value"],SelectionSet:[Ge("{"),Be("Selection"),Ge("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[Xe("property"),Ge(":"),Xe("qualifier"),qe("Arguments"),Be("Directive"),qe("SelectionSet")],Field:[Xe("property"),qe("Arguments"),Be("Directive"),qe("SelectionSet")],Arguments:[Ge("("),Be("Argument"),Ge(")")],Argument:[Xe("attribute"),Ge(":"),"Value"],FragmentSpread:[Ge("..."),Xe("def"),Be("Directive")],InlineFragment:[Ge("..."),qe("TypeCondition"),Be("Directive"),"SelectionSet"],FragmentDefinition:[Je("fragment"),qe(function(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}(Xe("def"),[Je("on")])),"TypeCondition",Be("Directive"),"SelectionSet"],TypeCondition:[Je("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[He("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[He("Name","builtin")],NullValue:[He("Name","keyword")],EnumValue:[Xe("string-2")],ListValue:[Ge("["),Be("Value"),Ge("]")],ObjectValue:[Ge("{"),Be("ObjectField"),Ge("}")],ObjectField:[Xe("attribute"),Ge(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[Ge("["),"Type",Ge("]"),qe(Ge("!"))],NonNullType:["NamedType",qe(Ge("!"))],NamedType:[(Ke="atom",{style:Ke,match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[Ge("@","meta"),Xe("meta"),qe("Arguments")],DirectiveDef:[Je("directive"),Ge("@","meta"),Xe("meta"),qe("ArgumentsDef"),Je("on"),Be("DirectiveLocation",Ge("|"))],InterfaceDef:[Je("interface"),Xe("atom"),qe("Implements"),Be("Directive"),Ge("{"),Be("FieldDef"),Ge("}")],Implements:[Je("implements"),Be("NamedType",Ge("&"))],DirectiveLocation:[Xe("string-2")],SchemaDef:[Je("schema"),Be("Directive"),Ge("{"),Be("OperationTypeDef"),Ge("}")],OperationTypeDef:[Xe("keyword"),Ge(":"),Xe("atom")],ScalarDef:[Je("scalar"),Xe("atom"),Be("Directive")],ObjectTypeDef:[Je("type"),Xe("atom"),qe("Implements"),Be("Directive"),Ge("{"),Be("FieldDef"),Ge("}")],FieldDef:[Xe("property"),qe("ArgumentsDef"),Ge(":"),"Type",Be("Directive")],ArgumentsDef:[Ge("("),Be("InputValueDef"),Ge(")")],InputValueDef:[Xe("attribute"),Ge(":"),"Type",qe("DefaultValue"),Be("Directive")],UnionDef:[Je("union"),Xe("atom"),Be("Directive"),Ge("="),Be("UnionMember",Ge("|"))],UnionMember:["NamedType"],EnumDef:[Je("enum"),Xe("atom"),Be("Directive"),Ge("{"),Be("EnumValueDef"),Ge("}")],EnumValueDef:[Xe("string-2"),Be("Directive")],InputDef:[Je("input"),Xe("atom"),Be("Directive"),Ge("{"),Be("InputValueDef"),Ge("}")],ExtendDef:[Je("extend"),"ObjectTypeDef"]};var Ke;function Je(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function Xe(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}function Ze(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:e=>e.eatWhile(Qe),lexRules:Ye,parseRules:We,editorConfig:{}};return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return nt(e.parseRules,t,Me.b.DOCUMENT),t},token:(t,n)=>function(e,t,n){if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;t.rule&&0===t.rule.length?rt(t):t.needsAdvance&&(t.needsAdvance=!1,it(t,!0));if(e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return"ws";const s=function(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!s){return e.match(/\S+/)||e.match(/\s/),nt(tt,t,"Invalid"),"invalidchar"}if("Comment"===s.kind)return nt(tt,t,"Comment"),"comment";const l=et({},t);if("Punctuation"===s.kind)if(/^[{([]/.test(s.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(s.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"===typeof t.rule?0===t.step?t.rule(s,e):null:t.rule[t.step];if(t.needsSeperator&&(n=n&&(null===n||void 0===n?void 0:n.separator)),n){if(n.ofRule&&(n=n.ofRule),"string"===typeof n){nt(i,t,n);continue}if(n.match&&n.match(s))return n.update&&n.update(t,s),"Punctuation"===s.kind?it(t,!0):t.needsAdvance=!0,n.style}at(t)}return et(t,l),nt(tt,t,"Invalid"),"invalidchar"}(t,n,e)}}function et(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const tt={Invalid:[],Comment:[]};function nt(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 rt(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 it(e,t){if(ot(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&t.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)rt(e),e.rule&&(ot(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function ot(e){const t=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function at(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)rt(e);e.rule&&it(e,!1)}const st=Object.assign(Object.assign({},Me.b),{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"}),lt={command:"editor.action.triggerSuggest",title:"Suggestions"},ut=e=>{const t=[];if(e)try{(0,Ve.YR)((0,je.qg)(e),{FragmentDefinition(e){t.push(e)}})}catch(n){return[]}return t};function ct(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),l=r||vt(t,n),u="Invalid"===l.state.kind?l.state.prevState:l.state;if(!u)return[];const c=u.kind,p=u.step,d=bt(e,l.state);if(c===st.DOCUMENT)return P(l,[{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(c===st.IMPLEMENTS||c===st.NAMED_TYPE&&(null===(a=u.prevState)||void 0===a?void 0:a.kind)===st.IMPLEMENTS)return function(e,t,n,r,i){if(t.needsSeperator)return[];const o=n.getTypeMap(),a=M(o).filter(D.kD),s=a.map((e=>{let{name:t}=e;return t})),l=new Set;gt(r,((e,t)=>{var r,o,a,u,c;if(t.name&&(t.kind!==st.INTERFACE_DEF||s.includes(t.name)||l.add(t.name),t.kind===st.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===st.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find((e=>{let{name:n}=e;return n===t.name})))return;const e=n.getType(t.name),r=null===(a=i.interfaceDef)||void 0===a?void 0:a.toConfig();i.interfaceDef=new D.VA(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new D.VA({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(u=i.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((e=>{let{name:n}=e;return n===t.name})))return;const e=n.getType(t.name),r=null===(c=i.objectTypeDef)||void 0===c?void 0:c.toConfig();i.objectTypeDef=new D.bh(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new D.VA({name:t.name,fields:{}})]}))}}));const u=i.interfaceDef||i.objectTypeDef,c=((null===u||void 0===u?void 0:u.getInterfaces())||[]).map((e=>{let{name:t}=e;return t})),p=a.concat([...l].map((e=>({name:e})))).filter((e=>{let{name:t}=e;return t!==(null===u||void 0===u?void 0:u.name)&&!c.includes(t)}));return P(e,p.map((e=>{const t={label:e.name,kind:Q.Interface,type:e};return(null===e||void 0===e?void 0:e.description)&&(t.documentation=e.description),t})))}(l,u,e,t,d);if(c===st.SELECTION_SET||c===st.FIELD||c===st.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const i=t.parentType;let o=[];return"getFields"in i&&(o=M(i.getFields())),(0,D.ML)(i)&&o.push(I.TypeNameMetaFieldDef),i===(null===(r=null===n||void 0===n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(I.SchemaMetaFieldDef,I.TypeMetaFieldDef),P(e,o.map(((e,t)=>{var n;const r={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},i=dt(e);return i&&(r.insertText=e.name+i,r.insertTextFormat=Y.Snippet,r.command=lt),r})))}return[]}(l,d,s);if(c===st.ARGUMENTS||c===st.ARGUMENT&&0===p){const e=d.argDefs;if(e)return P(l,e.map((e=>{var t;return{label:e.name,insertText:e.name+": ",command:lt,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Q.Variable,type:e.type}})))}if((c===st.OBJECT_VALUE||c===st.OBJECT_FIELD&&0===p)&&d.objectFieldDefs){const e=M(d.objectFieldDefs),t=c===st.OBJECT_VALUE?Q.Value:Q.Field;return P(l,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(c===st.ENUM_VALUE||c===st.LIST_VALUE&&1===p||c===st.OBJECT_FIELD&&2===p||c===st.ARGUMENT&&2===p)return function(e,t,n,r){const i=(0,D.MR)(t.inputType),o=ht(n,r,e).filter((e=>e.detail===i.name));if(i instanceof D.Zb){return P(e,i.getValues().map((e=>{var t;return{label:e.name,detail:String(i),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:i}})).concat(o))}if(i===Ue.kk)return P(e,o.concat([{label:"true",detail:String(Ue.kk),documentation:"Not false.",kind:Q.Variable,type:Ue.kk},{label:"false",detail:String(Ue.kk),documentation:"Not true.",kind:Q.Variable,type:Ue.kk}]));return o}(l,d,t,e);if(c===st.VARIABLE&&1===p){const n=(0,D.MR)(d.inputType);return P(l,ht(t,e,l).filter((e=>e.detail===(null===n||void 0===n?void 0:n.name))))}return c===st.TYPE_CONDITION&&1===p||c===st.NAMED_TYPE&&null!=u.prevState&&u.prevState.kind===st.TYPE_CONDITION?function(e,t,n){let r;if(t.parentType)if((0,D.Lc)(t.parentType)){const e=(0,D.N_)(t.parentType),i=n.getPossibleTypes(e),o=Object.create(null);i.forEach((e=>{e.getInterfaces().forEach((e=>{o[e.name]=e}))})),r=i.concat(M(o))}else r=[t.parentType];else{r=M(n.getTypeMap()).filter(D.ML)}return P(e,r.map((e=>{const t=(0,D.MR)(e);return{label:String(e),documentation:t&&t.description||"",kind:Q.Field}})))}(l,d,e):c===st.FRAGMENT_SPREAD&&1===p?function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=L(e.state),s=mt(r);i&&i.length>0&&s.push(...i);const l=s.filter((e=>o[e.typeCondition.name.value]&&!(a&&a.kind===st.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,D.ML)(t.parentType)&&(0,D.ML)(o[e.typeCondition.name.value])&&(0,$e.uI)(n,t.parentType,o[e.typeCondition.name.value])));return P(e,l.map((e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:Q.Field,type:o[e.typeCondition.name.value]}))))}(l,d,e,t,Array.isArray(i)?i:ut(i)):c===st.VARIABLE_DEFINITION&&2===p||c===st.LIST_TYPE&&1===p||c===st.NAMED_TYPE&&u.prevState&&(u.prevState.kind===st.VARIABLE_DEFINITION||u.prevState.kind===st.LIST_TYPE||u.prevState.kind===st.NON_NULL_TYPE)?function(e,t){const n=t.getTypeMap(),r=M(n).filter(D.dX);return P(e,r.map((e=>({label:e.name,documentation:e.description,kind:Q.Variable}))))}(l,e):c===st.DIRECTIVE?function(e,t,n){if(t.prevState&&t.prevState.kind){return P(e,n.getDirectives().filter((e=>yt(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||"",kind:Q.Function}))))}return[]}(l,u,e):[]}const pt=" {\n $1\n}",dt=e=>{const t=e.type;if((0,D.ML)(t))return pt;if((0,D.Fs)(t)&&(0,D.ML)(t.ofType))return pt;if((0,D.bd)(t)){if((0,D.ML)(t.ofType))return pt;if((0,D.Fs)(t.ofType)&&(0,D.ML)(t.ofType.ofType))return pt}return null};const ft=(e,t)=>{var n,r,i,o,a,s,l,u,c,p;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===(p=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0};function ht(e,t,n){let r,i=null;const o=Object.create({});return gt(e,((e,a)=>{if((null===a||void 0===a?void 0:a.kind)===st.VARIABLE&&a.name&&(i=a.name),(null===a||void 0===a?void 0:a.kind)===st.NAMED_TYPE&&i){const e=ft(a,st.TYPE);(null===e||void 0===e?void 0:e.type)&&(r=t.getType(null===e||void 0===e?void 0:e.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))})),M(o)}function mt(e){const t=[];return gt(e,((e,n)=>{n.kind===st.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:st.FRAGMENT_DEFINITION,name:{kind:Me.b.NAME,value:n.name},selectionSet:{kind:st.SELECTION_SET,selections:[]},typeCondition:{kind:st.NAMED_TYPE,name:{kind:Me.b.NAME,value:n.type}}})})),t}function vt(e,t){let n=null,r=null,i=null;const o=gt(e,((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 gt(e,t){const n=e.split("\n"),r=Ze();let i=r.startState(),o="",a=new ze("");for(let s=0;s<n.length;s++){for(a=new ze(n[s]);!a.eol();){o=r.token(a,i);if("BREAK"===t(a,i,o,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 yt(e,t){if(!e||!e.kind)return!1;const n=e.kind,r=t.locations;switch(n){case st.QUERY:return-1!==r.indexOf(Pe.H.QUERY);case st.MUTATION:return-1!==r.indexOf(Pe.H.MUTATION);case st.SUBSCRIPTION:return-1!==r.indexOf(Pe.H.SUBSCRIPTION);case st.FIELD:case st.ALIASED_FIELD:return-1!==r.indexOf(Pe.H.FIELD);case st.FRAGMENT_DEFINITION:return-1!==r.indexOf(Pe.H.FRAGMENT_DEFINITION);case st.FRAGMENT_SPREAD:return-1!==r.indexOf(Pe.H.FRAGMENT_SPREAD);case st.INLINE_FRAGMENT:return-1!==r.indexOf(Pe.H.INLINE_FRAGMENT);case st.SCHEMA_DEF:return-1!==r.indexOf(Pe.H.SCHEMA);case st.SCALAR_DEF:return-1!==r.indexOf(Pe.H.SCALAR);case st.OBJECT_TYPE_DEF:return-1!==r.indexOf(Pe.H.OBJECT);case st.FIELD_DEF:return-1!==r.indexOf(Pe.H.FIELD_DEFINITION);case st.INTERFACE_DEF:return-1!==r.indexOf(Pe.H.INTERFACE);case st.UNION_DEF:return-1!==r.indexOf(Pe.H.UNION);case st.ENUM_DEF:return-1!==r.indexOf(Pe.H.ENUM);case st.ENUM_VALUE:return-1!==r.indexOf(Pe.H.ENUM_VALUE);case st.INPUT_DEF:return-1!==r.indexOf(Pe.H.INPUT_OBJECT);case st.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case st.ARGUMENTS_DEF:return-1!==r.indexOf(Pe.H.ARGUMENT_DEFINITION);case st.INPUT_DEF:return-1!==r.indexOf(Pe.H.INPUT_FIELD_DEFINITION)}}return!1}function bt(e,t){let n,r,i,o,a,s,l,u,c,p,d;return R(t,(t=>{switch(t.kind){case st.QUERY:case"ShortQuery":p=e.getQueryType();break;case st.MUTATION:p=e.getMutationType();break;case st.SUBSCRIPTION:p=e.getSubscriptionType();break;case st.INLINE_FRAGMENT:case st.FRAGMENT_DEFINITION:t.type&&(p=e.getType(t.type));break;case st.FIELD:case st.ALIASED_FIELD:p&&t.name?(a=c?F(e,c,t.name):null,p=a?a.type:null):a=null;break;case st.SELECTION_SET:c=(0,D.MR)(p);break;case st.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case st.INTERFACE_DEF:t.name&&(l=null,d=new D.VA({name:t.name,interfaces:[],fields:{}}));break;case st.OBJECT_TYPE_DEF:t.name&&(d=null,l=new D.bh({name:t.name,interfaces:[],fields:{}}));break;case st.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case st.FIELD:r=a&&a.args;break;case st.DIRECTIVE:r=i&&i.args;break;case st.ALIASED_FIELD:{const n=t.prevState&&t.prevState.name;if(!n){r=null;break}const i=c?F(e,c,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case st.ARGUMENT:if(r)for(let e=0;e<r.length;e++)if(r[e].name===t.name){n=r[e];break}s=n&&n.type;break;case st.ENUM_VALUE:const f=(0,D.MR)(s);o=f instanceof D.Zb?f.getValues().find((e=>e.value===t.name)):null;break;case st.LIST_VALUE:const h=(0,D.yl)(s);s=h instanceof D.KT?h.ofType:null;break;case st.OBJECT_VALUE:const m=(0,D.MR)(s);u=m instanceof D.zP?m.getFields():null;break;case st.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;s=v&&v.type;break;case st.NAMED_TYPE:t.name&&(p=e.getType(t.name))}})),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:p,interfaceDef:d,objectTypeDef:l}}var Et=n(666),wt=n.n(Et);const kt=(e,t)=>{if(!t)return[];let n;try{n=(0,je.qg)(e)}catch(r){return[]}return _t(n,t)},_t=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,Ve.YR)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;r.forEach((e=>{!n.has(e)&&t.has(e)&&i.add(wt()(t.get(e)))}));const o=[];return i.forEach((e=>{(0,Ve.YR)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(wt()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e)})),o};function Tt(e,t){e.push(t)}function xt(e,t){(0,D.bd)(t)?(xt(e,t.ofType),Tt(e,"!")):(0,D.Fs)(t)?(Tt(e,"["),xt(e,t.ofType),Tt(e,"]")):Tt(e,t.name)}function St(e,t){const n=[];return t&&Tt(n,"```graphql\n"),xt(n,e),t&&Tt(n,"\n```"),n.join("")}const Ct={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"};function Nt(e,t){var n;let r=!1,i=Object.create(null);const o=Object.create(null);if("defaultValue"in e&&void 0!==e.defaultValue&&(i.default=e.defaultValue),(0,D.oF)(e)&&(i.type="string",i.enum=e.getValues().map((e=>e.name))),(0,D.lg)(e)&&(i.type=null!==(n=Ct[e.name])&&void 0!==n?n:"any"),(0,D.Fs)(e)){i.type="array";const{definition:n,definitions:r}=Nt(e.ofType,t);n.$ref?i.items={$ref:n.$ref}:i.items=n,r&&Object.keys(r).forEach((e=>{o[e]=r[e]}))}if((0,D.bd)(e)){r=!0;const{definition:n,definitions:a}=Nt(e.ofType,t);i=n,a&&Object.keys(a).forEach((e=>{o[e]=a[e]}))}if((0,D.qK)(e)){i.$ref=`#/definitions/${e.name}`;const n=e.getFields(),r={type:"object",properties:{},required:[]};e.description?(r.description=e.description+"\n"+St(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(r.markdownDescription=e.description+"\n"+St(e,!0))):(r.description=St(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(r.markdownDescription=St(e,!0))),Object.keys(n).forEach((e=>{const i=n[e],{required:a,definition:s,definitions:l}=Nt(i.type,t),{definition:u}=Nt(i,t);r.properties[e]=Object.assign(Object.assign({},s),u);const c=St(i.type);if(r.properties[e].description=i.description?i.description+"\n"+c:c,null===t||void 0===t?void 0:t.useMarkdownDescription){const t=St(i.type,!0);r.properties[e].markdownDescription=i.description?i.description+"\n"+t:t}a&&r.required.push(e),l&&Object.keys(l).map((e=>{o[e]=l[e]}))})),o[e.name]=r}return"description"in e&&!(0,D.lg)(e)&&e.description&&!i.description?(i.description=e.description+"\n"+St(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(i.markdownDescription=e.description+"\n"+St(e,!0))):(i.description=St(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(i.markdownDescription=St(e,!0))),{required:r,definition:i,definitions:o}}function Ot(e,t){const n={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach((e=>{let[r,i]=e;var o;const{definition:a,required:s,definitions:l}=Nt(i,t);n.properties[r]=a,s&&(null===(o=n.required)||void 0===o||o.push(r)),l&&(n.definitions=Object.assign(Object.assign({},null===n||void 0===n?void 0:n.definitions),l))})),n}function At(e,t,n){const r=Dt(e,n);let i;return(0,Ve.YR)(t,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=r&&r<=e.loc.end))return!1;i=e},leave(e){if(e.loc&&e.loc.start<=r&&r<=e.loc.end)return!1}}),i}function Dt(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map((e=>e.length+1)).reduce(((e,t)=>e+t),0)}class It{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new Lt(e,t)}setEnd(e,t){this.end=new Lt(e,t)}}class Lt{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}function Ft(e,t){const n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new Lt(r,t-i-1)}var Rt=n(4361),Mt=n(3580),Pt=n(8034),Vt=n(2520),jt=n(8699),Ut=n(3555),$t=n(1152),zt=n(6238),qt=n(6772),Bt=n(5012),Ht=n(8521),Gt=n(4698),Qt=n(8050),Yt=n(8887),Wt=n(5915),Kt=n(600),Jt=n(9071);const Xt=[Rt.l,Mt.u,Pt.i,Vt.g,jt.X,Ut.Z,$t.y,zt.e,qt.U,Bt.S,Ht.J,Gt.C];function Zt(e,t,n,r,i){const o=Qt.g.filter((e=>e!==Yt.z&&e!==Wt.T&&(!r||e!==Kt.K)));n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,Xt);return(0,Jt.tf)(e,t,o).filter((e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===Me.b.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0}))}var en=n(8912);function tn(e,t){const n=Object.create(null);return t.definitions.forEach((t=>{if("OperationDefinition"===t.kind){const r=t.variableDefinitions;r&&r.forEach((t=>{let{variable:r,type:i}=t;const o=(0,en.v)(e,i);o?n[r.name.value]=o:i.kind===Me.b.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=Ue.qS)}))}})),n}function nn(e,t){const n=t?tn(t,e):void 0,r=[];return(0,Ve.YR)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}function rn(e,t){if(t)try{const n=(0,je.qg)(t);return Object.assign(Object.assign({},nn(n,e)),{documentAST:n})}catch(n){return}}const on=rn;var an=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const sn="GraphQL";function ln(e,t){if(!e)throw new Error(t)}function un(e,t){const n=t.loc;return ln(n,"Expected ASTNode to have a location."),function(e,t){const n=Ft(e,t.start),r=Ft(e,t.end);return new It(n,r)}(e,n)}function cn(e,t){const n=t.loc;return ln(n,"Expected ASTNode to have a location."),Ft(e,n.start)}function pn(e,t,n){return an(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((e=>{let{definition:t}=e;return t.name&&t.name.value===r}));if(0===i.length)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map((e=>{let{filePath:t,content:n,definition:r}=e;return function(e,t,n){const r=n.name;return ln(r,"Expected ASTNode to have a Name."),{path:e,position:cn(t,n),range:un(t,n),name:r.value||"",language:sn,projectRoot:e}}(t||"",n,r)}));return{definitions:o,queryRange:o.map((n=>un(e,t)))}}))}function dn(e,t,n){return an(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((e=>{let{definition:t}=e;return t.name.value===r}));if(0===i.length)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map((e=>{let{filePath:t,content:n,definition:r}=e;return hn(t||"",n,r)}));return{definitions:o,queryRange:o.map((n=>un(e,t)))}}))}function fn(e,t,n){return{definitions:[hn(e,t,n)],queryRange:n.name?[un(t,n.name)]:[]}}function hn(e,t,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:cn(t,n),range:un(t,n),name:r.value||"",language:sn,projectRoot:e}}var mn=n(7233),vn=n(9338);const gn={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},yn={[gn.Error]:1,[gn.Warning]:2,[gn.Information]:3,[gn.Hint]:4},bn=(e,t)=>{if(!e)throw new Error(t)};function En(e){let 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(((e,t)=>e+=(0,mn.y)(t)+"\n\n"),""));try{o=(0,je.qg)(e)}catch(a){const t=Tn(a.locations[0],e);return[{severity:yn.Error,message:a.message,source:"GraphQL: Syntax",range:t}]}return wn(o,t,n,r)}function wn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return[];const n=kn(Zt(t,e,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0),(e=>_n(e,yn.Error,"Validation"))),r=kn((0,Jt.tf)(t,e,[vn.k]),(e=>_n(e,yn.Warning,"Deprecation")));return n.concat(r)}function kn(e,t){return Array.prototype.concat.apply([],e.map(t))}function _n(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((i=>{const 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){bn(e.locations,"GraphQL validation error requires locations.");const i=e.locations[0],a=function(e){const t=e,n=t.loc;return bn(n,"Expected ASTNode to have a location."),n}(o),s=i.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new It(new Lt(i.line-1,i.column-1),new Lt(i.line-1,s))})}})),r}function Tn(e,t){const n=Ze(),r=n.startState(),i=t.split("\n");bn(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let u=0;u<e.line;u++)for(o=new ze(i[u]);!o.eol();){if("invalidchar"===n.token(o,r))break}bn(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),l=o.getCurrentPosition();return new It(new Lt(a,s),new Lt(a,l))}const{INLINE_FRAGMENT:xn}=Me.b;function Sn(e){let t;try{t=(0,je.qg)(e)}catch(r){return null}const n=function(e){const t=t=>({representativeName:t.name,startPosition:Ft(e,t.loc.start),endPosition:Ft(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[Cn("plain",e.alias),Cn("plain",": ")]:[];return n.push(Cn("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[Cn("keyword",e.operation),Cn("whitespace"," "),Cn("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);Array.isArray(i)?n.push(...i):n.push(i)}return n}(e.selections,(e=>e.kind===xn?e.selectionSet:e)),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[Cn("keyword","fragment"),Cn("whitespace"," "),Cn("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[Cn("keyword","interface"),Cn("whitespace"," "),Cn("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[Cn("keyword","enum"),Cn("whitespace"," "),Cn("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[Cn("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[Cn("keyword","type"),Cn("whitespace"," "),Cn("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[Cn("keyword","input"),Cn("whitespace"," "),Cn("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[Cn("plain","..."),Cn("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[Cn("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[Cn("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,Ve.YR)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function Cn(e,t){return{kind:e,value:t}}function Nn(e,t,n,r,i){const o=r||vt(t,n);if(!e||!o||!o.state)return"";const a=o.state,s=a.kind,l=a.step,u=bt(e,o.state),c=Object.assign(Object.assign({},i),{schema:e});if("Field"===s&&0===l&&u.fieldDef||"AliasedField"===s&&2===l&&u.fieldDef){const e=[];return On(e,c),function(e,t,n){Dn(e,t,n),Ln(e,t,n,t.type)}(e,u,c),An(e,c),Rn(e,c,u.fieldDef),e.join("").trim()}if("Directive"===s&&1===l&&u.directiveDef){const e=[];return On(e,c),In(e,u,c),An(e,c),Rn(e,c,u.directiveDef),e.join("").trim()}if("Argument"===s&&0===l&&u.argDef){const e=[];return On(e,c),function(e,t,n){t.directiveDef?In(e,t,n):t.fieldDef&&Dn(e,t,n);if(!t.argDef)return;const r=t.argDef.name;Mn(e,"("),Mn(e,r),Ln(e,t,n,t.inputType),Mn(e,")")}(e,u,c),An(e,c),Rn(e,c,u.argDef),e.join("").trim()}if("EnumValue"===s&&u.enumValue&&"description"in u.enumValue){const e=[];return On(e,c),function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;Fn(e,t,n,t.inputType),Mn(e,"."),Mn(e,r)}(e,u,c),An(e,c),Rn(e,c,u.enumValue),e.join("").trim()}if("NamedType"===s&&u.type&&"description"in u.type){const e=[];return On(e,c),Fn(e,u,c,u.type),An(e,c),Rn(e,c,u.type),e.join("").trim()}return""}function On(e,t){t.useMarkdown&&Mn(e,"```graphql\n")}function An(e,t){t.useMarkdown&&Mn(e,"\n```")}function Dn(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(Fn(e,t,n,t.parentType),Mn(e,".")),Mn(e,r)}function In(e,t,n){if(!t.directiveDef)return;Mn(e,"@"+t.directiveDef.name)}function Ln(e,t,n,r){Mn(e,": "),Fn(e,t,n,r)}function Fn(e,t,n,r){r&&(r instanceof D.Gc?(Fn(e,t,n,r.ofType),Mn(e,"!")):r instanceof D.KT?(Mn(e,"["),Fn(e,t,n,r.ofType),Mn(e,"]")):Mn(e,r.name))}function Rn(e,t,n){if(!n)return;const r="string"===typeof n.description?n.description:null;r&&(Mn(e,"\n\n"),Mn(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;if(!r)return;Mn(e,"\n\n"),Mn(e,"Deprecated: "),Mn(e,r)}(e,0,n)}function Mn(e,t){e.push(t)}const Pn={Created:1,Changed:2,Deleted:3};var Vn;!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}(Vn||(Vn={}))},219:(e,t,n)=>{"use strict";var r=n(2086),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 l(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 u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=c(n);p&&(a=a.concat(p(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=d(n,g);try{u(t,g,y)}catch(b){}}}}return t}},6927:(e,t,n)=>{"use strict";var r=n(6899);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")))}},36:e=>{"use strict";e.exports=function(e){return"object"===typeof e?null===e:"function"!==typeof e}},6899:e=>{"use strict";e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},7624:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function 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 l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="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]",c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function p(e){var t=e.re=n(1923)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(u),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function c(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:c(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?c(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?c(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,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 f(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function h(e,t){if(!(this instanceof h))return new h(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},p(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},h.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;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:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(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},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},h.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},1923:(e,t,n)=>{"use strict";e.exports=function(e){var t={};t.src_Any=n(6616).source,t.src_Cc=n(977).source,t.src_Z=n(3905).source,t.src_P=n(3387).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9193:(e,t,n)=>{"use strict";e.exports=n(9393)},6476:(e,t,n)=>{"use strict";e.exports=n(4357)},1987: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"]},1332: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.l=r,e.exports.p=i},3066:(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,l=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(6476);var p=/[&<>"]/,d=/[&<>"]/g,f={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function h(e){return f[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var v=n(3387);t.lib={},t.lib.mdurl=n(3334),t.lib.ucmicro=n(3742),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=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(l,(function(e,t,n){return t||function(e,t){var n=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&u.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 p.test(e)?e.replace(d,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},5251:(e,t,n)=>{"use strict";t.parseLinkLabel=n(4246),t.parseLinkDestination=n(7796),t.parseLinkTitle=n(1346)},7796:(e,t,n)=>{"use strict";var r=n(3066).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}},4246:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){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=u,-1}return i&&(s=e.pos),e.pos=u,s}},1346:(e,t,n)=>{"use strict";var r=n(3066).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=a,l.str=r(e.slice(s+1,t)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return l}},9393:(e,t,n)=>{"use strict";var r=n(3066),i=n(5251),o=n(7090),a=n(626),s=n(6640),l=n(6152),u=n(7624),c=n(3334),p=n(7612),d={default:n(2451),zero:n(6390),commonmark:n(192)},f=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!f.test(t)||!!h.test(t)}var v=["http:","https:","mailto:"];function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=p.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||v.indexOf(t.protocol)>=0))try{t.hostname=p.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 l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new u,this.validateLink=m,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=d[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},6640:(e,t,n)=>{"use strict";var r=n(9957),i=[["table",n(6167),["paragraph","reference"]],["code",n(6402)],["fence",n(3854),["paragraph","reference","blockquote","list"]],["blockquote",n(2700),["paragraph","reference","blockquote","list"]],["hr",n(6181),["paragraph","reference","blockquote","list"]],["list",n(5091),["paragraph","reference","blockquote"]],["reference",n(5018)],["html_block",n(4732),["paragraph","reference","blockquote"]],["heading",n(4037),["paragraph","reference","blockquote"]],["lheading",n(3001)],["paragraph",n(7637)]];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,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<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(6428),e.exports=o},626:(e,t,n)=>{"use strict";var r=n(9957),i=[["normalize",n(2794)],["block",n(6724)],["inline",n(9460)],["linkify",n(9531)],["replacements",n(3220)],["smartquotes",n(9329)]];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(6588),e.exports=o},6152:(e,t,n)=>{"use strict";var r=n(9957),i=[["text",n(9896)],["newline",n(8927)],["escape",n(6652)],["backticks",n(1068)],["strikethrough",n(3164).q],["emphasis",n(4781).q],["link",n(1779)],["image",n(7890)],["autolink",n(9284)],["html_inline",n(772)],["entity",n(9492)]],o=[["balance_pairs",n(6286)],["strikethrough",n(3164).g],["emphasis",n(4781).g],["text_collapse",n(2912)]];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(8116),e.exports=a},192: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"]}}}},2451: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:{}}}},6390: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"]}}}},7090:(e,t,n)=>{"use strict";var r=n(3066).assign,i=n(3066).unescapeAll,o=n(3066).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,l,u,c,p,d=e[t],f=d.info?i(d.info).trim():"",h="",m="";return f&&(h=(u=f.split(/(\s+)/g))[0],m=u.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,h,m)||o(d.content)).indexOf("<pre")?s+"\n":f?(l=d.attrIndex("class"),c=d.attrs?d.attrs.slice():[],l<0?c.push(["class",n.langPrefix+h]):(c[l]=c[l].slice(),c[l][1]+=" "+n.langPrefix+h),p={attrs:c},"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"},a.image=function(e,t,n,r,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},9957: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},2700:(e,t,n)=>{"use strict";var r=n(3066).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,u,c,p,d,f,h,m,v,g,y,b,E,w,k,_,T,x=e.lineMax,S=e.bMarks[t]+e.tShift[t],C=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(i)return!0;for(l=f=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,l++,f++,o=!1,E=!0):9===e.src.charCodeAt(S)?(E=!0,(e.bsCount[t]+f)%4===3?(S++,l++,f++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=S;S<C&&(a=e.src.charCodeAt(S),r(a));)9===a?f+=4-(f+e.bsCount[t]+(o?1:0))%4:f++,S++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(E?1:0),c=S>=C,y=[e.sCount[t]],e.sCount[t]=f-l,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(T=e.sCount[d]<e.blkIndent,!((S=e.bMarks[d]+e.tShift[d])>=(C=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(S++)||T){if(c)break;for(w=!1,s=0,u=k.length;s<u;s++)if(k[s](e,d,n,!0)){w=!0;break}if(w){e.lineMax=d,0!==e.blkIndent&&(h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]=-1}else{for(l=f=e.sCount[d]+1,32===e.src.charCodeAt(S)?(S++,l++,f++,o=!1,E=!0):9===e.src.charCodeAt(S)?(E=!0,(e.bsCount[d]+f)%4===3?(S++,l++,f++,o=!1):o=!0):E=!1,h.push(e.bMarks[d]),e.bMarks[d]=S;S<C&&(a=e.src.charCodeAt(S),r(a));)9===a?f+=4-(f+e.bsCount[d]+(o?1:0))%4:f++,S++;c=S>=C,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(E?1:0),y.push(e.sCount[d]),e.sCount[d]=f-l,b.push(e.tShift[d]),e.tShift[d]=S-e.bMarks[d]}for(v=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=p=[t,0],e.md.block.tokenize(e,t,d),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=x,e.parentType=g,p[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=h[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=v,!0}},6402: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}},3854:e=>{"use strict";e.exports=function(e,t,n,r){var i,o,a,s,l,u,c,p=!1,d=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>f)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(c=e.src.slice(l,d),a=e.src.slice(d,f),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((d=l=e.bMarks[s]+e.tShift[s])<(f=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(d)===i&&!(e.sCount[s]-e.blkIndent>=4)&&!((d=e.skipChars(d,i))-l<o)&&!((d=e.skipSpaces(d))<f)){p=!0;break}return o=e.sCount[t],e.line=s+(p?1:0),(u=e.push("fence","code",0)).info=a,u.content=e.getLines(t+1,s,o,!0),u.markup=c,u.map=[t,e.line],!0}},4037:(e,t,n)=>{"use strict";var r=n(3066).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,u=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(u))||u>=c)return!1;for(a=1,o=e.src.charCodeAt(++u);35===o&&u<c&&a<=6;)a++,o=e.src.charCodeAt(++u);return!(a>6||u<c&&!r(o))&&(i||(c=e.skipSpacesBack(c,u),(s=e.skipCharsBack(c,35,u))>u&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}},6181:(e,t,n)=>{"use strict";var r=n(3066).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,u=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(u++))&&45!==o&&95!==o)return!1;for(a=1;u<c;){if((s=e.src.charCodeAt(u++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(o))),!0)}},4732:(e,t,n)=>{"use strict";var r=n(1987),i=n(1332).p,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,l,u=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(u))return!1;for(l=e.src.slice(u,c),i=0;i<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(l))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],l=e.src.slice(u,c),o[i][1].test(l)){0!==l.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},3001:e=>{"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,p,d,f=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(l=e.bMarks[f]+e.tShift[f])<(u=e.eMarks[f])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=u)){c=61===p?1:2;break}if(!(e.sCount[f]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,f,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(p),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(p),e.parentType=d,!0)}},5091:(e,t,n)=>{"use strict";var r=n(3066).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,l,u,c,p,d,f,h,m,v,g,y,b,E,w,k,_,T,x,S,C,N,O,A,D,I,L,F=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(F=!0),(N=o(e,t))>=0){if(d=!0,A=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(A,N-1)),F&&1!==y)return!1}else{if(!((N=i(e,t))>=0))return!1;d=!1}if(F&&e.skipSpaces(N)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(N-1),r)return!0;for(v=e.tokens.length,d?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(g),E=t,O=!1,I=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";E<n;){for(C=N,b=e.eMarks[E],p=w=e.sCount[E]+N-(e.bMarks[t]+e.tShift[t]);C<b;){if(9===(a=e.src.charCodeAt(C)))w+=4-(w+e.bsCount[E])%4;else{if(32!==a)break;w++}C++}if((c=(s=C)>=b?1:w-p)>4&&(c=1),u=p+c,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),L.map=f=[t,0],d&&(L.info=e.src.slice(A,N-1)),S=e.tight,x=e.tShift[t],T=e.sCount[t],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=w,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||(R=!1),O=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[t]=x,e.sCount[t]=T,e.tight=S,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),E=t=e.line,f[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(D=!1,l=0,h=I.length;l<h;l++)if(I[l](e,E,n,!0)){D=!0;break}if(D)break;if(d){if((N=o(e,E))<0)break;A=e.bMarks[E]+e.tShift[E]}else if((N=i(e,E))<0)break;if(g!==e.src.charCodeAt(N-1))break}return(L=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=E,e.line=E,e.parentType=_,R&&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,v),!0}},7637:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},5018:(e,t,n)=>{"use strict";var r=n(3066).normalizeReference,i=n(3066).isSpace;e.exports=function(e,t,n,o){var a,s,l,u,c,p,d,f,h,m,v,g,y,b,E,w,k=0,_=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],x=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_<T;)if(93===e.src.charCodeAt(_)&&92!==e.src.charCodeAt(_-1)){if(_+1===T)return!1;if(58!==e.src.charCodeAt(_+1))return!1;break}for(u=e.lineMax,E=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";x<u&&!e.isEmpty(x);x++)if(!(e.sCount[x]-e.blkIndent>3)&&!(e.sCount[x]<0)){for(b=!1,p=0,d=E.length;p<d;p++)if(E[p](e,x,u,!0)){b=!0;break}if(b)break}for(T=(y=e.getLines(t,x,e.blkIndent,!1).trim()).length,_=1;_<T;_++){if(91===(a=y.charCodeAt(_)))return!1;if(93===a){h=_;break}(10===a||92===a&&++_<T&&10===y.charCodeAt(_))&&k++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(_=h+2;_<T;_++)if(10===(a=y.charCodeAt(_)))k++;else if(!i(a))break;if(!(v=e.md.helpers.parseLinkDestination(y,_,T)).ok)return!1;if(c=e.md.normalizeLink(v.str),!e.md.validateLink(c))return!1;for(s=_=v.pos,l=k+=v.lines,g=_;_<T;_++)if(10===(a=y.charCodeAt(_)))k++;else if(!i(a))break;for(v=e.md.helpers.parseLinkTitle(y,_,T),_<T&&g!==_&&v.ok?(w=v.str,_=v.pos,k+=v.lines):(w="",_=s,k=l);_<T&&(a=y.charCodeAt(_),i(a));)_++;if(_<T&&10!==y.charCodeAt(_)&&w)for(w="",_=s,k=l;_<T&&(a=y.charCodeAt(_),i(a));)_++;return!(_<T&&10!==y.charCodeAt(_))&&(!!(f=r(y.slice(1,h)))&&(o||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[f]&&(e.env.references[f]={title:w,href:c}),e.parentType=m,e.line=t+k+1),!0))}},6428:(e,t,n)=>{"use strict";var r=n(348),i=n(3066).isSpace;function o(e,t,n,r){var o,a,s,l,u,c,p,d;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=c=p=0,u=(a=this.src).length;l<u;l++){if(o=a.charCodeAt(l),!d){if(i(o)){c++,9===o?p+=4-p%4:p++;continue}d=!0}10!==o&&l!==u-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(p),this.bsCount.push(0),d=!1,c=0,p=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}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,l,u,c,p,d=e;if(e>=t)return"";for(c=new Array(t-e),o=0;d<t;d++,o++){for(a=0,p=l=this.bMarks[d],u=d+1<t||r?this.eMarks[d]+1:this.eMarks[d];l<u&&a<n;){if(s=this.src.charCodeAt(l),i(s))9===s?a+=4-(a+this.bsCount[d])%4:a++;else{if(!(l-p<this.tShift[d]))break;a++}l++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},o.prototype.Token=r,e.exports=o},6167:(e,t,n)=>{"use strict";var r=n(3066).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,l,u,c,p,d,f,h,m,v,g,y,b,E,w,k,_,T;if(t+2>n)return!1;if(d=t+1,e.sCount[d]<e.blkIndent)return!1;if(e.sCount[d]-e.blkIndent>=4)return!1;if((u=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(_=e.src.charCodeAt(u++))&&45!==_&&58!==_)return!1;if(u>=e.eMarks[d])return!1;if(124!==(T=e.src.charCodeAt(u++))&&45!==T&&58!==T&&!r(T))return!1;if(45===_&&r(T))return!1;for(;u<e.eMarks[d];){if(124!==(s=e.src.charCodeAt(u))&&45!==s&&58!==s&&!r(s))return!1;u++}for(f=(l=i(e,t+1)).split("|"),v=[],c=0;c<f.length;c++){if(!(g=f[c].trim())){if(0===c||c===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;58===g.charCodeAt(g.length-1)?v.push(58===g.charCodeAt(0)?"center":"right"):58===g.charCodeAt(0)?v.push("left"):v.push("")}if(-1===(l=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),0===(h=f.length)||h!==v.length)return!1;if(a)return!0;for(E=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<f.length;c++)m=e.push("th_open","th",1),v[c]&&(m.attrs=[["style","text-align:"+v[c]]]),(m=e.push("inline","",0)).content=f[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=t+2;d<n&&!(e.sCount[d]<e.blkIndent);d++){for(w=!1,c=0,p=k.length;c<p;c++)if(k[c](e,d,n,!0)){w=!0;break}if(w)break;if(!(l=i(e,d).trim()))break;if(e.sCount[d]-e.blkIndent>=4)break;for((f=o(l)).length&&""===f[0]&&f.shift(),f.length&&""===f[f.length-1]&&f.pop(),d===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[d,d+1],c=0;c<h;c++)m=e.push("td_open","td",1),v[c]&&(m.attrs=[["style","text-align:"+v[c]]]),(m=e.push("inline","",0)).content=f[c]?f[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=E,e.line=d,!0}},6724: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)}},9460: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)}},9531:(e,t,n)=>{"use strict";var r=n(3066).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,l,u,c,p,d,f,h,m,v,g,y,b,E,w=e.tokens;if(e.md.options.linkify)for(n=0,o=w.length;n<o;n++)if("inline"===w[n].type&&e.md.linkify.pretest(w[n].content))for(m=0,t=(a=w[n].children).length-1;t>=0;t--)if("link_close"!==(l=a[t]).type){if("html_inline"===l.type&&(E=l.content,/^<a[>\s]/i.test(E)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,b=e.md.linkify.match(p),u=[],h=l.level,f=0,c=0;c<b.length;c++)v=b[c].url,g=e.md.normalizeLink(v),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:\/\//,""),(d=b[c].index)>f&&((s=new e.Token("text","",0)).content=p.slice(f,d),s.level=h,u.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",g]],s.level=h++,s.markup="linkify",s.info="auto",u.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,u.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",u.push(s),f=b[c].lastIndex);f<p.length&&((s=new e.Token("text","",0)).content=p.slice(f),s.level=h,u.push(s)),w[n].children=a=r(a,t,u)}}else for(t--;a[t].level!==l.level&&"link_open"!==a[t].type;)t--}},2794: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}},3220: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))}},9329:(e,t,n)=>{"use strict";var r=n(3066).isWhiteSpace,i=n(3066).isPunctChar,o=n(3066).isMdAsciiPunct,a=/['"]/,s=/['"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,a,u,c,p,d,f,h,m,v,g,y,b,E,w,k,_,T,x,S,C;for(x=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,_=x.length-1;_>=0&&!(x[_].level<=f);_--);if(x.length=_+1,"text"===a.type){p=0,d=(u=a.content).length;e:for(;p<d&&(s.lastIndex=p,c=s.exec(u));){if(w=k=!0,p=c.index+1,T="'"===c[0],m=32,c.index-1>=0)m=u.charCodeAt(c.index-1);else for(_=n-1;_>=0&&("softbreak"!==e[_].type&&"hardbreak"!==e[_].type);_--)if(e[_].content){m=e[_].content.charCodeAt(e[_].content.length-1);break}if(v=32,p<d)v=u.charCodeAt(p);else for(_=n+1;_<e.length&&("softbreak"!==e[_].type&&"hardbreak"!==e[_].type);_++)if(e[_].content){v=e[_].content.charCodeAt(0);break}if(g=o(m)||i(String.fromCharCode(m)),y=o(v)||i(String.fromCharCode(v)),b=r(m),(E=r(v))?w=!1:y&&(b||g||(w=!1)),b?k=!1:g&&(E||y||(k=!1)),34===v&&'"'===c[0]&&m>=48&&m<=57&&(k=w=!1),w&&k&&(w=g,k=y),w||k){if(k)for(_=x.length-1;_>=0&&(h=x[_],!(x[_].level<f));_--)if(h.single===T&&x[_].level===f){h=x[_],T?(S=t.md.options.quotes[2],C=t.md.options.quotes[3]):(S=t.md.options.quotes[0],C=t.md.options.quotes[1]),a.content=l(a.content,c.index,C),e[h.token].content=l(e[h.token].content,h.pos,S),p+=C.length-1,h.token===n&&(p+=S.length-1),d=(u=a.content).length,x.length=_;continue e}w?x.push({token:n,pos:c.index,single:T,level:f}):k&&T&&(a.content=l(a.content,c.index,"\u2019"))}else T&&(a.content=l(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)&&u(e.tokens[t].children,e)}},6588:(e,t,n)=>{"use strict";var r=n(348);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},9284: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,l,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(l=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(s=e.src.charCodeAt(c)))return!1;if(62===s)break}return i=e.src.slice(l+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))}},1068:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l,u,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(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=s=c;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((u=s-a)===l)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[u]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},6286:e=>{"use strict";function t(e,t){var n,r,i,o,a,s,l,u,c={},p=t.length;if(p){var d=0,f=-2,h=[];for(n=0;n<p;n++)if(i=t[n],h.push(0),t[d].marker===i.marker&&f===i.token-1||(d=n),f=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=d-h[d]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(l=!0)),!l)){u=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+u,h[r]=u,i.open=!1,o.end=n,o.close=!1,s=-1,f=-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)}},4781: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.q=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)}},9492:(e,t,n)=>{"use strict";var r=n(6476),i=n(3066).has,o=n(3066).isValidEntityCode,a=n(3066).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<p)if(35===e.src.charCodeAt(c+1)){if(u=e.src.slice(c).match(s))return t||(n="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=u[0].length,!0}else if((u=e.src.slice(c).match(l))&&i(r,u[1]))return t||(e.pending+=r[u[1]]),e.pos+=u[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},6652:(e,t,n)=>{"use strict";for(var r=n(3066).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}},772:(e,t,n)=>{"use strict";var r=n(1332).l;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))))}},7890:(e,t,n)=>{"use strict";var r=n(3066).normalizeReference,i=n(3066).isSpace;e.exports=function(e,t){var n,o,a,s,l,u,c,p,d,f,h,m,v,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(u=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=l+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(v=c,(d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?c=d.pos:g=""),v=c;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&v!==c&&d.ok)for(f=d.str,c=d.pos;c<b&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);else f="";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)?(v=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(v,c++):c=l+1):c=l+1,s||(s=e.src.slice(u,l)),!(p=e.env.references[r(s)]))return e.pos=y,!1;g=p.href,f=p.title}return t||(a=e.src.slice(u,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],h.children=m,h.content=a,f&&n.push(["title",f])),e.pos=c,e.posMax=b,!0}},1779:(e,t,n)=>{"use strict";var r=n(3066).normalizeReference,i=n(3066).isSpace;e.exports=function(e,t){var n,o,a,s,l,u,c,p,d="",f="",h=e.pos,m=e.posMax,v=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((u=s+1)<m&&40===e.src.charCodeAt(u)){for(g=!1,u++;u<m&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(u>=m)return!1;if(v=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?u=c.pos:d="",v=u;u<m&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<m&&v!==u&&c.ok)for(f=c.str,u=c.pos;u<m&&(o=e.src.charCodeAt(u),i(o)||10===o);u++);}(u>=m||41!==e.src.charCodeAt(u))&&(g=!0),u++}if(g){if("undefined"===typeof e.env.references)return!1;if(u<m&&91===e.src.charCodeAt(u)?(v=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?a=e.src.slice(v,u++):u=s+1):u=s+1,a||(a=e.src.slice(l,s)),!(p=e.env.references[r(a)]))return e.pos=h,!1;d=p.href,f=p.title}return t||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],f&&n.push(["title",f]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0}},8927:(e,t,n)=>{"use strict";var r=n(3066).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}},8116:(e,t,n)=>{"use strict";var r=n(348),i=n(3066).isWhiteSpace,o=n(3066).isPunctChar,a=n(3066).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,l,u,c,p,d,f,h=e,m=!0,v=!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,p=a(n)||o(String.fromCharCode(n)),f=a(r)||o(String.fromCharCode(r)),c=i(n),(d=i(r))?m=!1:f&&(c||p||(m=!1)),c?v=!1:p&&(d||f||(v=!1)),t?(l=m,u=v):(l=m&&(!v||p),u=v&&(!m||f)),{can_open:l,can_close:u,length:s}},s.prototype.Token=r,e.exports=s},3164:e=>{"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;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.q=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)}},9896: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)}},2912: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)}},348: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},5770: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,l,u="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?u+=i[r]:192===(224&r)&&t+3<n&&128===(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(l=r<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(l),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))?(u+=(l=r<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(l),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))?((l=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?u+="\ufffd\ufffd\ufffd\ufffd":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="\ufffd";return u}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n},2638:e=>{"use strict";var t={};function n(e,r,i){var o,a,s,l,u,c="";for("string"!==typeof r&&(i=r,r=n.defaultChars),"undefined"===typeof i&&(i=!0),u=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+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=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},2711: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||""}},3334:(e,t,n)=>{"use strict";e.exports.encode=n(2638),e.exports.decode=n(5770),e.exports.format=n(2711),e.exports.parse=n(7445)},7445: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),l=["/","?","#"],u=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,f,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=i.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var g=n.exec(m);if(g&&(a=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||g&&p[g]||(m=m.substr(2),this.slashes=!0)),!p[g]&&(h||g&&!d[g])){var y,b,E=-1;for(r=0;r<l.length;r++)-1!==(f=m.indexOf(l[r]))&&(-1===E||f<E)&&(E=f);for(-1!==(b=-1===E?m.lastIndexOf("@"):m.lastIndexOf("@",E))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),E=-1,r=0;r<s.length;r++)-1!==(f=m.indexOf(s[r]))&&(-1===E||f<E)&&(E=f);-1===E&&(E=m.length),":"===m[E-1]&&E--;var w=m.slice(0,E);m=m.slice(E),this.parseHost(w),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var _=this.hostname.split(/\./);for(r=0,o=_.length;r<o;r++){var T=_[r];if(T&&!T.match(u)){for(var x="",S=0,C=T.length;S<C;S++)T.charCodeAt(S)>127?x+="x":x+=T[S];if(!x.match(u)){var N=_.slice(0,r),O=_.slice(r+1),A=T.match(c);A&&(N.push(A[1]),O.unshift(A[2])),O.length&&(m=O.join(".")+m),this.hostname=N.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=m.indexOf("#");-1!==D&&(this.hash=m.substr(D),m=m.slice(0,D));var I=m.indexOf("?");return-1!==I&&(this.search=m.substr(I),m=m.slice(0,I)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},666: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})},2123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;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,i){for(var o,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(s[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},8123:(e,t,n)=>{var r=n(4196);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,s=0,l="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var p=n[0],d=n[1],f=n.index;if(l+=e.slice(s,f),s=f+p.length,d)l+=d[1];else{var h=e[s],m=n[2],v=n[3],g=n[4],y=n[5],b=n[6],E=n[7];l&&(r.push(l),l="");var w=null!=m&&null!=h&&h!==m,k="+"===b||"*"===b,_="?"===b||"*"===b,T=m||u,x=g||y,S=m||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:v||o++,prefix:m||"",delimiter:T,optional:_,repeat:k,partial:w,asterisk:!!E,pattern:x?c(x):E?".*":a(T,S)})}}return s<e.length&&(l+=e.substr(s)),l&&r.push(l),r}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+u(e)+"]+?":u(t)+"|(?:(?!"+u(t)+")[^"+u(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(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+")$",d(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!==typeof c){var p,d=a[c.name];if(null==d){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(p=l(d[f]),!n[u].test(p))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(0===f?c.prefix:c.delimiter)+p}}else{if(p=c.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(d),!n[u].test(p))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+p+'"');o+=c.prefix+p}}else o+=c}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(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 c=u(l.prefix),f="(?:"+l.pattern+")";t.push(l),l.repeat&&(f+="(?:"+c+f+")*"),a+=f=l.optional?l.partial?c+"("+f+")?":"(?:"+c+"("+f+"))?":c+"("+f+")"}}var h=u(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",p(new RegExp("^"+a,d(n)),t)}function h(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 p(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return p(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},4196:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1497:(e,t,n)=>{"use strict";var r=n(3218);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}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7612:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>g,default:()=>w,encode:()=>y,toASCII:()=>E,toUnicode:()=>b,ucs2decode:()=>f,ucs2encode:()=>h});const r=2147483647,i=36,o=/^xn--/,a=/[^\0-\x7E]/,s=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,c=String.fromCharCode;function p(e){throw new RangeError(l[e])}function d(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+i}function f(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const h=e=>String.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,n){let r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;r+=i)e=u(e/35);return u(r+36*e/(e+38))},g=function(e){const t=[],n=e.length;let o=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&p("not-basic"),t.push(e.charCodeAt(r));for(let d=l>0?l+1:0;d<n;){let l=o;for(let t=1,a=i;;a+=i){d>=n&&p("invalid-input");const l=(c=e.charCodeAt(d++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:i;(l>=i||l>u((r-o)/t))&&p("overflow"),o+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(l<f)break;const h=i-f;t>u(r/h)&&p("overflow"),t*=h}const f=t.length+1;s=v(o-l,f,0==l),u(o/f)>r-a&&p("overflow"),a+=u(o/f),o%=f,t.splice(o++,0,a)}var c;return String.fromCodePoint(...t)},y=function(e){const t=[];let n=(e=f(e)).length,o=128,a=0,s=72;for(const r of e)r<128&&t.push(c(r));let l=t.length,d=l;for(l&&t.push("-");d<n;){let n=r;for(const t of e)t>=o&&t<n&&(n=t);const f=d+1;n-o>u((r-a)/f)&&p("overflow"),a+=(n-o)*f,o=n;for(const h of e)if(h<o&&++a>r&&p("overflow"),h==o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const o=e-r,a=i-r;t.push(c(m(r+o%a,0))),e=u(o/a)}t.push(c(m(e,0))),s=v(a,f,d==l),a=0,++d}++a,++o}return t.join("")},b=function(e){return d(e,(function(e){return o.test(e)?g(e.slice(4).toLowerCase()):e}))},E=function(e){return d(e,(function(e){return a.test(e)?"xn--"+y(e):e}))},w={version:"2.1.0",ucs2:{decode:f,encode:h},decode:g,encode:y,toASCII:E,toUnicode:b}},2730:(e,t,n)=>{"use strict";var r=n(5043),i=n(2123),o=n(8853);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,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var p=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[: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]*$/,f=Object.prototype.hasOwnProperty,h={},m={};function v(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 v(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 v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(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 v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function E(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!!f.call(m,e)||!f.call(h,e)&&(d.test(e)?m[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 v(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 v(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 v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,_=60106,T=60107,x=60108,S=60114,C=60109,N=60110,O=60112,A=60113,D=60120,I=60115,L=60116,F=60121,R=60128,M=60129,P=60130,V=60131;if("function"===typeof Symbol&&Symbol.for){var j=Symbol.for;k=j("react.element"),_=j("react.portal"),T=j("react.fragment"),x=j("react.strict_mode"),S=j("react.profiler"),C=j("react.provider"),N=j("react.context"),O=j("react.forward_ref"),A=j("react.suspense"),D=j("react.suspense_list"),I=j("react.memo"),L=j("react.lazy"),F=j("react.block"),j("react.scope"),R=j("react.opaque.id"),M=j("react.debug_trace_mode"),P=j("react.offscreen"),V=j("react.legacy_hidden")}var U,$="function"===typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=$&&e[$]||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 B=!1;function H(e,t){if(!e||B)return"";B=!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(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.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{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function G(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=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function Q(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 T:return"Fragment";case _:return"Portal";case S:return"Profiler";case x: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 Q(e.type);case F:return Q(e._render);case L:t=e._payload,e=e._init;try{return Q(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(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 Z(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=Y(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)&&E(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(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,Y(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&&X(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=""+Y(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 le(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:Y(n)}}function ue(e,t){var n=Y(t.value),r=Y(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 pe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"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 fe(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 he,me,ve=(me=function(e,t){if(e.namespaceURI!==pe.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.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 ge(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 ye={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},be=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(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(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=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 _e(e,t){if(t){if(ke[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 Te(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 xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,Ne=null;function Oe(e){if(e=ni(e)){if("function"!==typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=ii(t),Se(e.stateNode,e.type,t))}}function Ae(e){Ce?Ne?Ne.push(e):Ne=[e]:Ce=e}function De(){if(Ce){var e=Ce,t=Ne;if(Ne=Ce=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ie(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Fe(){}var Re=Ie,Me=!1,Pe=!1;function Ve(){null===Ce&&null===Ne||(Fe(),De())}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(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 Ue=!1;if(p)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch(me){Ue=!1}function ze(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var qe=!1,Be=null,He=!1,Ge=null,Qe={onError:function(e){qe=!0,Be=e}};function Ye(e,t,n,r,i,o,a,s,l){qe=!1,Be=null,ze.apply(Qe,arguments)}function We(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(We(e)!==e)throw Error(a(188))}function Xe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(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,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.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 Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ut=new Map,ct=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 ft(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ft(t,n,r,i,o),null!==t&&(null!==(t=ni(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=ti(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(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=ni(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&et(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&&ot.shift()}null!==at&&gt(at)&&(at=null),null!==st&&gt(st)&&(st=null),null!==lt&&gt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return Et(t,e)}if(0<ot.length){Et(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&Et(at,e),null!==st&&Et(st,e),null!==lt&&Et(lt,e),ut.forEach(t),ct.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;)vt(n),null===n.blockedOn&&pt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Tt={},xt={};function St(e){if(Tt[e])return Tt[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return Tt[e]=n[t];return e}p&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Ct=St("animationend"),Nt=St("animationiteration"),Ot=St("animationstart"),At=St("transitionend"),Dt=new Map,It=new Map,Lt=["abort","abort",Ct,"animationEnd",Nt,"animationIteration",Ot,"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",At,"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)),It.set(r,t),Dt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Rt=8;function Mt(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 Pt(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 l=o&~a;0!==l?(r=Mt(l),i=Rt):0!==(s&=o)&&(r=Mt(s),i=Rt)}else 0!==(o=n&~a)?(r=Mt(o),i=Rt):0!==s&&(r=Mt(s),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function jt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?jt(10,t):e;case 10:return 0===(e=Ut(192&~t))?jt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function $t(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Bt(e)/Ht|0)|0},Bt=Math.log,Ht=Math.LN2;var Gt=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,Yt=!0;function Wt(e,t,n,r){Me||Fe();var i=Jt,o=Me;Me=!0;try{Le(i,e,t,n,r)}finally{(Me=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(Yt)if((i=0===(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=ft(null,e,t,n,r),ot.push(e);else{var o=Xt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=ft(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return st=mt(st,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 ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Fr(e,t,r,null,n)}}}function Xt(e,t,n,r){var i=xe(r);if(null!==(i=ti(i))){var o=We(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 Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.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 tn=i.slice(e,1<t?1-t:void 0)}function rn(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 on(){return!0}function an(){return!1}function sn(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)?on:an,this.isPropagationStopped=an,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=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(pn),fn=i({},pn,{view:0,detail:0}),hn=sn(fn),mn=i({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=sn(mn),gn=sn(i({},mn,{dataTransfer:0})),yn=sn(i({},fn,{relatedTarget:0})),bn=sn(i({},pn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=i({},pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=sn(En),kn=sn(i({},pn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return Sn}var Nn=i({},fn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Tn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=sn(Nn),An=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=sn(i({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=sn(i({},pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=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=sn(Ln),Rn=[9,13,27,32],Mn=p&&"CompositionEvent"in window,Pn=null;p&&"documentMode"in document&&(Pn=document.documentMode);var Vn=p&&"TextEvent"in window&&!Pn,jn=p&&(!Mn||Pn&&8<Pn&&11>=Pn),Un=String.fromCharCode(32),$n=!1;function zn(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 qn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Hn={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?!!Hn[e.type]:"textarea"===t}function Qn(e,t,n,r){Ae(r),0<(t=Mr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Wn=null;function Kn(e){Nr(e,0)}function Jn(e){if(J(ri(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(p){var er;if(p){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"===typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",ir),Wn=Yn=null)}function ir(e){if("value"===e.propertyName&&Jn(Wn)){var t=[];if(Qn(t,Wn,e,xe(e)),e=Kn,Me)e(t);else{Me=!0;try{Ie(e,t)}finally{Me=!1,Ve()}}}}function or(e,t,n){"focusin"===e?(rr(),Wn=n,(Yn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Wn)}function sr(e,t){if("click"===e)return Jn(t)}function lr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},cr=Object.prototype.hasOwnProperty;function pr(e,t){if(ur(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(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(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 hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function vr(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 gr=p&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,Er=null,wr=!1;function kr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==X(r)||("selectionStart"in(r=yr)&&vr(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=Mr(br,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}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(Lt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Tr=0;Tr<_r.length;Tr++)It.set(_r[Tr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(Ye.apply(this,arguments),qe){if(!qe)throw Error(a(198));var c=Be;qe=!1,Be=null,He||(He=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(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],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Cr(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Cr(i,s,u),o=l}}}if(He)throw e=Ge,He=!1,Ge=null,e}function Or(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Dr(e){e[Ar]||(e[Ar]=!0,s.forEach((function(t){Sr.has(t)||Ir(t,!1,e,null),Ir(t,!0,e,null)})))}function Ir(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&&Sr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=oi(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lr(o,e,i,t),a.add(s))}function Lr(e,t,n,r){var i=It.get(t);switch(void 0===i?2:i){case 0:i=Wt;break;case 1:i=Kt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Ue||"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 l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ti(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Pe)return e(t,n);Pe=!0;try{return Re(e,t,n)}finally{Pe=!1,Ve()}}((function(){var r=o,i=xe(n),a=[];e:{var s=Dt.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;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":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Dn;break;case Ct:case Nt:case Ot:l=bn;break;case At:l=In;break;case"scroll":l=hn;break;case"wheel":l=Fn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=An}var c=0!==(4&t),p=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==d&&(null!=(m=je(h,d))&&c.push(Rr(h,m,f)))),p)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=n.relatedTarget||n.fromElement)||!ti(u)&&!u[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ti(u):null)&&(u!==(p=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,m="onPointerLeave",d="onPointerEnter",h="pointer"),p=null==l?s:ri(l),f=null==u?s:ri(u),(s=new c(m,h+"leave",l,n,i)).target=p,s.relatedTarget=f,m=null,ti(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=f,c.relatedTarget=p,m=c),p=m,l&&u)e:{for(d=u,h=0,f=c=l;f;f=Pr(f))h++;for(f=0,m=d;m;m=Pr(m))f++;for(;0<h-f;)c=Pr(c),h--;for(;0<f-h;)d=Pr(d),f--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Pr(c),d=Pr(d)}c=null}else c=null;null!==l&&Vr(a,s,l,c,!1),null!==u&&null!==p&&Vr(a,p,u,c,!0)}if("select"===(l=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Xn;else if(Gn(s))if(Zn)v=lr;else{v=ar;var g=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=sr);switch(v&&(v=v(e,r))?Qn(a,v,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?ri(r):window,e){case"focusin":(Gn(g)||"true"===g.contentEditable)&&(yr=g,br=r,Er=null);break;case"focusout":Er=br=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,kr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":kr(a,n,i)}var y;if(Mn)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 Bn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(g=Mr(r,b)).length&&(b=new kn(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=qn(n))&&(b.data=y))),(y=Vn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:($n=!0,Un);case"textInput":return(e=t.data)===Un&&$n?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Mn&&zn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!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 jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Nr(a,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(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=je(e,n))&&r.unshift(Rr(e,o,i)),null!=(o=je(e,t))&&r.push(Rr(e,o,i))),e=e.return}return r}function Pr(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,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=je(n,o))&&a.unshift(Rr(n,l,s)):i||null!=(l=je(n,o))&&a.push(Rr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function jr(){}var Ur=null,$r=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qr(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 Br="function"===typeof setTimeout?setTimeout:void 0,Hr="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 Yr(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 Wr=0;var Kr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Kr,Xr="__reactProps$"+Kr,Zr="__reactContainer$"+Kr,ei="__reactEvents$"+Kr;function ti(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Jr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[Jr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ii(e){return e[Xr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var ai=[],si=-1;function li(e){return{current:e}}function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ci(e,t){si++,ai[si]=e.current,e.current=t}var pi={},di=li(pi),fi=li(!1),hi=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 vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){ui(fi),ui(di)}function yi(e,t,n){if(di.current!==pi)throw Error(a(168));ci(di,t),ci(fi,n)}function bi(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,Q(t)||"Unknown",o));return i({},n,r)}function Ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,hi=di.current,ci(di,e),ci(fi,fi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=e,ui(fi),ui(di),ci(di,e)):ui(fi),ci(fi,n)}var ki=null,_i=null,Ti=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ci=o.unstable_shouldYield,Ni=o.unstable_requestPaint,Oi=o.unstable_now,Ai=o.unstable_getCurrentPriorityLevel,Di=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Li=o.unstable_NormalPriority,Fi=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Mi={},Pi=void 0!==Ni?Ni:function(){},Vi=null,ji=null,Ui=!1,$i=Oi(),zi=1e4>$i?Oi:function(){return Oi()-$i};function qi(){switch(Ai()){case Di:return 99;case Ii:return 98;case Li:return 97;case Fi:return 96;case Ri:return 95;default:throw Error(a(332))}}function Bi(e){switch(e){case 99:return Di;case 98:return Ii;case 97:return Li;case 96:return Fi;case 95:return Ri;default:throw Error(a(332))}}function Hi(e,t){return e=Bi(e),Ti(e,t)}function Gi(e,t,n){return e=Bi(e),xi(e,t,n)}function Qi(){if(null!==ji){var e=ji;ji=null,Si(e)}Yi()}function Yi(){if(!Ui&&null!==Vi){Ui=!0;var e=0;try{var t=Vi;Hi(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)),xi(Di,Qi),n}finally{Ui=!1}}}var Wi=w.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,Zi=null,eo=null;function to(){eo=Zi=Xi=null}function no(e){var t=Ji.current;ui(Ji),e.type._context._currentValue=t}function ro(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 io(e,t){Xi=e,eo=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ma=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Xi)throw Error(a(308));Zi=t,Xi.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var ao=!1;function so(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 uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(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 fo(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var p=e.alternate;if(null!==p){var d=(p=p.updateQueue).lastBaseUpdate;d!==s&&(null===d?p.firstBaseUpdate=c:d.next=c,p.lastBaseUpdate=u)}}if(null!==a){for(d=o.baseState,s=0,p=c=u=null;;){l=a.lane;var f=a.eventTime;if((r&l)===l){null!==p&&(p=p.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,f=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(f,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=m.payload)?h.call(f,d,l):h)||void 0===l)break e;d=i({},d,l);break e;case 2:ao=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else f={eventTime:f,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===p?(c=p=f,u=d):p=p.next=f,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===p&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=p,$s|=s,e.lanes=s,e.memoizedState=d}}function ho(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 vo(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 go={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=dl(),i=fl(e),o=uo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),co(e,o),hl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=dl(),i=fl(e),o=uo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),co(e,o),hl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dl(),r=fl(e),i=uo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),co(e,i),hl(e,r,n)}};function yo(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 bo(e,t,n){var r=!1,i=pi,o=t.contextType;return"object"===typeof o&&null!==o?o=oo(o):(i=vi(t)?hi: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=go,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&&go.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,so(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=oo(o):(o=vi(t)?hi:di.current,i.context=mi(e,o)),fo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(vo(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&&go.enqueueReplaceState(i,i.state,null),fo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ko=Array.isArray;function _o(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 To(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 xo(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=Gl(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 l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=_o(e,t,n),r.return=e,r):((r=Ql(n.type,n.key,n.props,null,e.mode,r)).ref=_o(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=Jl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,o){return null===t||7!==t.tag?((t=Yl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Kl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Ql(t.type,t.key,t.props,null,e.mode,n)).ref=_o(e,null,t),n.return=e,n;case _:return(t=Jl(t,e.mode,n)).return=e,t}if(ko(t)||z(t))return(t=Yl(t,e.mode,n,null)).return=e,t;To(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===T?p(e,t,n.props.children,r,i):u(e,t,n,r):null;case _:return n.key===i?c(e,t,n,r):null}if(ko(n)||z(n))return null!==i?null:p(e,t,n,r,null);To(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(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===T?p(t,e,r.props.children,i,r.key):u(t,e,r,i);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ko(r)||z(r))return p(t,e=e.get(n)||null,r,i,null);To(t,r)}return null}function m(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,v=null;null!==p&&m<s.length;m++){p.index>m?(v=p,p=null):v=p.sibling;var g=f(i,p,s[m],l);if(null===g){null===p&&(p=v);break}e&&p&&null===g.alternate&&t(i,p),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g,p=v}if(m===s.length)return n(i,p),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return u}for(p=r(i,p);m<s.length;m++)null!==(v=h(p,i,m,s[m],l))&&(e&&null!==v.alternate&&p.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&p.forEach((function(e){return t(i,e)})),u}function v(i,s,l,u){var c=z(l);if("function"!==typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var p=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=f(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===p?c=b:p.sibling=b,p=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=d(i,y.value,u))&&(s=o(y,s,v),null===p?c=y:p.sibling=y,p=y);return c}for(m=r(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===p?c=y:p.sibling=y,p=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"===typeof o&&null!==o&&o.type===T&&null===o.key;u&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===T){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=_o(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===T?((r=Yl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Ql(o.type,o.key,o.props,null,e.mode,l)).ref=_o(e,r,o),l.return=e,e=l)}return s(e);case _:e:{for(u=o.key;null!==r;){if(r.key===u){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=Jl(o,e.mode,l)).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=Kl(o,e.mode,l)).return=e,e=r),s(e);if(ko(o))return m(e,r,o,l);if(z(o))return v(e,r,o,l);if(c&&To(e,o),"undefined"===typeof o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Q(e.type)||"Component"))}return n(e,r)}}var So=xo(!0),Co=xo(!1),No={},Oo=li(No),Ao=li(No),Do=li(No);function Io(e){if(e===No)throw Error(a(174));return e}function Lo(e,t){switch(ci(Do,t),ci(Ao,e),ci(Oo,No),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Oo),ci(Oo,t)}function Fo(){ui(Oo),ui(Ao),ui(Do)}function Ro(e){Io(Do.current);var t=Io(Oo.current),n=fe(t,e.type);t!==n&&(ci(Ao,e),ci(Oo,n))}function Mo(e){Ao.current===e&&(ui(Oo),ui(Ao))}var Po=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 jo=null,Uo=null,$o=!1;function zo(e,t){var n=Bl(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 qo(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 Bo(e){if($o){var t=Uo;if(t){var n=t;if(!qo(e,t)){if(!(t=Qr(n.nextSibling))||!qo(e,t))return e.flags=-1025&e.flags|2,$o=!1,void(jo=e);zo(jo,n)}jo=e,Uo=Qr(t.firstChild)}else e.flags=-1025&e.flags|2,$o=!1,jo=e}}function Ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function Go(e){if(e!==jo)return!1;if(!$o)return Ho(e),$o=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qr(t,e.memoizedProps))for(t=Uo;t;)zo(e,t),t=Qr(t.nextSibling);if(Ho(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){Uo=Qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Uo=null}}else Uo=jo?Qr(e.stateNode.nextSibling):null;return!0}function Qo(){Uo=jo=null,$o=!1}var Yo=[];function Wo(){for(var e=0;e<Yo.length;e++)Yo[e]._workInProgressVersionPrimary=null;Yo.length=0}var Ko=w.ReactCurrentDispatcher,Jo=w.ReactCurrentBatchConfig,Xo=0,Zo=null,ea=null,ta=null,na=!1,ra=!1;function ia(){throw Error(a(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,i,o){if(Xo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=null===e||null===e.memoizedState?Ia:La,e=n(r,i),ra){o=0;do{if(ra=!1,!(25>o))throw Error(a(301));o+=1,ta=ea=null,t.updateQueue=null,Ko.current=Fa,e=n(r,i)}while(ra)}if(Ko.current=Da,t=null!==ea&&null!==ea.next,Xo=0,ta=ea=Zo=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Zo.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Zo.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Zo.memoizedState=ta=e:ta=ta.next=e}return ta}function ua(e,t){return"function"===typeof t?t(e):t}function ca(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,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 l=s=o=null,u=i;do{var c=u.lane;if((Xo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var p={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=p,o=r):l=l.next=p,Zo.lanes|=c,$s|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,ur(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,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);ur(o,t.memoizedState)||(Ma=!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,Yo.push(t))),e)return n(t._source);throw Yo.push(t),Error(a(350))}function fa(e,t,n,r){var i=Ls;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Ko.current,u=l.useState((function(){return da(i,t,n)})),c=u[1],p=u[0];u=ta;var d=e.memoizedState,f=d.refs,h=f.getSnapshot,m=d.source;d=d.subscribe;var v=Zo;return e.memoizedState={refs:f,source:t,subscribe:r},l.useEffect((function(){f.getSnapshot=n,f.setSnapshot=c;var e=o(t._source);if(!ur(s,e)){e=n(t._source),ur(p,e)||(c(e),e=fl(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-qt(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=f.getSnapshot,n=f.setSnapshot;try{n(e(t._source));var r=fl(v);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:p}).dispatch=c=Aa.bind(null,Zo,e),u.queue=e,u.baseQueue=null,p=da(i,t,n),u.memoizedState=u.baseState=p),p}function ha(e,t,n){return fa(la(),e,t,n)}function ma(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Aa.bind(null,Zo,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.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 ga(e){return e={current:e},sa().memoizedState=e}function ya(){return la().memoizedState}function ba(e,t,n,r){var i=sa();Zo.flags|=e,i.memoizedState=va(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!==ea){var a=ea.memoizedState;if(o=a.destroy,null!==r&&oa(r,a.deps))return void va(t,n,o,r)}Zo.flags|=e,i.memoizedState=va(1|t,n,o,r)}function wa(e,t){return ba(516,4,e,t)}function ka(e,t){return Ea(516,4,e,t)}function _a(e,t){return Ea(4,2,e,t)}function Ta(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 xa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ea(4,2,Ta.bind(null,t,e),n)}function Sa(){}function Ca(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Na(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=qi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Jo.transition;Jo.transition=1;try{e(!1),t()}finally{Jo.transition=n}}))}function Aa(e,t,n){var r=dl(),i=fl(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===Zo||null!==a&&a===Zo)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ur(l,s))return}catch(u){}hl(e,i,r)}}var Da={readContext:oo,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ia={readContext:oo,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ba(4,2,Ta.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();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=Aa.bind(null,Zo,e),[r.memoizedState,e]},useRef:ga,useState:ma,useDebugValue:Sa,useDeferredValue:function(e){var t=ma(e),n=t[0],r=t[1];return wa((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 ga(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if($o){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Wr++).toString(36))),Error(a(355))})),n=ma(t)[1];return 0===(2&Zo.mode)&&(Zo.flags|=516,va(5,(function(){n("r:"+(Wr++).toString(36))}),void 0,null)),t}return ma(t="r:"+(Wr++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:oo,useCallback:Ca,useContext:oo,useEffect:ka,useImperativeHandle:xa,useLayoutEffect:_a,useMemo:Na,useReducer:ca,useRef:ya,useState:function(){return ca(ua)},useDebugValue:Sa,useDeferredValue:function(e){var t=ca(ua),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=ca(ua)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return ca(ua)[0]},unstable_isNewReconciler:!1},Fa={readContext:oo,useCallback:Ca,useContext:oo,useEffect:ka,useImperativeHandle:xa,useLayoutEffect:_a,useMemo:Na,useReducer:pa,useRef:ya,useState:function(){return pa(ua)},useDebugValue:Sa,useDeferredValue:function(e){var t=pa(ua),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=pa(ua)[0];return[ya().current,e]},useMutableSource:ha,useOpaqueIdentifier:function(){return pa(ua)[0]},unstable_isNewReconciler:!1},Ra=w.ReactCurrentOwner,Ma=!1;function Pa(e,t,n,r){t.child=null===e?Co(t,null,n,r):So(t,e.child,n,r)}function Va(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=aa(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Hl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ql(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ua(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=Gl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ua(e,t,n,r,i,o){if(null!==e&&pr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0===(o&i))return t.lanes=e.lanes,os(e,t,o);0!==(16384&e.flags)&&(Ma=!0)}return qa(e,t,n,r,o)}function $a(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},kl(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},kl(t,e),null;t.memoizedState={baseLanes:0},kl(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,kl(t,r);return Pa(e,t,i,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function qa(e,t,n,r,i){var o=vi(n)?hi:di.current;return o=mi(t,o),io(t,i),n=aa(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,os(e,t,i))}function Ba(e,t,n,r,i){if(vi(n)){var o=!0;Ei(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=oo(u):u=mi(t,u=vi(n)?hi:di.current);var c=n.getDerivedStateFromProps,p="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;p||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Eo(t,a,r,u),ao=!1;var d=t.memoizedState;a.state=d,fo(t,r,a,i),l=t.memoizedState,s!==r||d!==l||fi.current||ao?("function"===typeof c&&(vo(t,n,c,r),l=t.memoizedState),(s=ao||yo(t,n,s,r,d,l,u))?(p||"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=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ki(t.type,s),a.props=u,p=t.pendingProps,d=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=oo(l):l=mi(t,l=vi(n)?hi:di.current);var f=n.getDerivedStateFromProps;(c="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==p||d!==l)&&Eo(t,a,r,l),ao=!1,d=t.memoizedState,a.state=d,fo(t,r,a,i);var h=t.memoizedState;s!==p||d!==h||fi.current||ao?("function"===typeof f&&(vo(t,n,f,r),h=t.memoizedState),(u=ao||yo(t,n,u,r,d,h,l))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,o,i)}function Ha(e,t,n,r,i,o){za(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&wi(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=So(t,e.child,null,o),t.child=So(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Lo(e,t.containerInfo)}var Qa,Ya,Wa,Ka,Ja={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,i=t.pendingProps,o=Po.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),ci(Po,1&o),null===e?(void 0!==i.fallback&&Bo(t),e=i.children,o=i.fallback,a?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"===typeof i.unstable_expectedLoadTime?(e=Za(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,t.lanes=33554432,e):((n=Wl({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=Ja,i):(n=es(e,t,i.children,n),t.memoizedState=null,n))}function Za(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=Wl(t,i,0,null),n=Yl(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=Gl(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=Gl(a,s),null!==e?r=Gl(e,r):(r=Yl(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),ro(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(Pa(e,t,r.children,n),0!==(2&(r=Po.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(ci(Po,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),$s|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Gl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Gl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!$o)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 vi(t.type)&&gi(),null;case 3:return Fo(),ui(fi),ui(di),Wo(),(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)),Ya(t),null;case 5:Mo(t);var o=Io(Do.current);if(n=t.type,null!==e&&null!=t.stateNode)Wa(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Io(Oo.current),Go(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Xr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<xr.length;e++)Or(xr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":le(r,s),Or("invalid",r)}for(var u in _e(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===pe.html&&(e=de(n)),e===pe.html?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Jr]=t,e[Xr]=r,Qa(e,t,!1,!1),t.stateNode=e,u=Te(n,r),n){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<xr.length;o++)Or(xr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Or("invalid",e);break;default:o=r}_e(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var p=c[s];"style"===s?we(e,p):"dangerouslySetInnerHTML"===s?null!=(p=p?p.__html:void 0)&&ve(e,p):"children"===s?"string"===typeof p?("textarea"!==n||""!==p)&&ge(e,p):"number"===typeof p&&ge(e,""+p):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=p&&"onScroll"===s&&Or("scroll",e):null!=p&&E(e,s,p,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(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=jr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Io(Do.current),Io(Oo.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 ui(Po),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&Po.current)?0===Vs&&(Vs=3):(0!==Vs&&3!==Vs||(Vs=4),null===Ls||0===(134217727&$s)&&0===(134217727&zs)||yl(Ls,Rs))),(r||n)&&(t.flags|=4),null);case 4:return Fo(),Ya(t),null===e&&Dr(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ui(Po),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(u=r.rendering))if(s)as(r,!1);else{if(0!==Vs||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Vo(e))){for(t.flags|=64,as(r,!1),null!==(s=u.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===(u=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=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ci(Po,1&Po.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Gs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Vo(u))){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&&!u.alternate&&!$o)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Po.current,ci(Po,s?1&t|2:1&t),n):null;case 23:case 24:return _l(),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 ls(e){switch(e.tag){case 1:vi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Fo(),ui(fi),ui(di),Wo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return ui(Po),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Po),null;case 4:return Fo(),null;case 10:return no(e),null;case 23:case 24:return _l(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=G(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}},Ya=function(){},Wa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Io(Oo.current);var a,s=null;switch(n){case"input":o=Z(e,o),r=Z(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=jr)}for(p in _e(n,r),n=null,o)if(!r.hasOwnProperty(p)&&o.hasOwnProperty(p)&&null!=o[p])if("style"===p){var u=o[p];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==p&&"children"!==p&&"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&"autoFocus"!==p&&(l.hasOwnProperty(p)?s||(s=[]):(s=s||[]).push(p,null));for(p in r){var c=r[p];if(u=null!=o?o[p]:void 0,r.hasOwnProperty(p)&&c!==u&&(null!=c||null!=u))if("style"===p)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(p,n)),n=c;else"dangerouslySetInnerHTML"===p?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(p,c)):"children"===p?"string"!==typeof c&&"number"!==typeof c||(s=s||[]).push(p,""+c):"suppressContentEditableWarning"!==p&&"suppressHydrationWarning"!==p&&(l.hasOwnProperty(p)?(null!=c&&"onScroll"===p&&Or("scroll",e),s||u===c||(s=[])):"object"===typeof c&&null!==c&&c.$$typeof===R?c.toString():(s=s||[]).push(p,c))}n&&(s=s||[]).push("style",n);var p=s;(t.updateQueue=p)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var ps="function"===typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Js=r),cs(0,t)},n}function fs(e,t,n){(n=uo(-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===Xs?Xs=new Set([this]):Xs.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 ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ul(e,n)}else t.current=null}function vs(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)&&(Pl(n,e),Ml(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)&&ho(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}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(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&&wt(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(_i&&"function"===typeof _i.onCommitFiberUnmount)try{_i.onCommitFiberUnmount(ki,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))Pl(t,n);else{r=t;try{i()}catch(o){Ul(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Ul(t,o)}break;case 5:ms(t);break;case 4:xs(e,t)}}function Es(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 ws(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(ws(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&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ws(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?_s(e,n,t):Ts(e,n,t)}function _s(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=jr));else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function Ts(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(Ts(e,t,n),e=e.sibling;null!==e;)Ts(e,t,n),e=e.sibling}function xs(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,l=i,u=l;;)if(bs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):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 Ss(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),Te(e,i),t=Te(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ve(n,l):"children"===s?ge(n,l):E(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(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,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Hs=zi(),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=zl.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=w.ReactCurrentDispatcher,Ds=w.ReactCurrentOwner,Is=0,Ls=null,Fs=null,Rs=0,Ms=0,Ps=li(0),Vs=0,js=null,Us=0,$s=0,zs=0,qs=0,Bs=null,Hs=0,Gs=1/0;function Qs(){Gs=zi()+500}var Ys,Ws=null,Ks=!1,Js=null,Xs=null,Zs=!1,el=null,tl=90,nl=[],rl=[],il=null,ol=0,al=null,sl=-1,ll=0,ul=0,cl=null,pl=!1;function dl(){return 0!==(48&Is)?zi():-1!==sl?sl:sl=zi()}function fl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===qi()?1:2;if(0===ll&&(ll=Us),0!==Wi.transition){0!==ul&&(ul=null!==Bs?Bs.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qi(),0!==(4&Is)&&98===e?e=jt(12,ll):e=jt(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),ll),e}function hl(e,t,n){if(50<ol)throw ol=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;zt(e,t,n),e===Ls&&(zs|=t,4===Vs&&yl(e,Rs));var r=qi();1===t?0!==(8&Is)&&0===(48&Is)?bl(e):(vl(e,n),0===Is&&(Qs(),Qi())):(0===(4&Is)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),vl(e,n)),Bs=e}function ml(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 vl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-qt(s),u=1<<l,c=o[l];if(-1===c){if(0===(u&r)||0!==(u&i)){c=t,Mt(u);var p=Rt;o[l]=10<=p?c+250:6<=p?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Pt(e,e===Ls?Rs:0),t=Rt,0===r)null!==n&&(n!==Mi&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&Si(n)}15===t?(n=bl.bind(null,e),null===Vi?(Vi=[n],ji=xi(Di,Yi)):Vi.push(n),n=Mi):14===t?n=Gi(99,bl.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,gl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gl(e){if(sl=-1,ul=ll=0,0!==(48&Is))throw Error(a(327));var t=e.callbackNode;if(Rl()&&e.callbackNode!==t)return null;var n=Pt(e,e===Ls?Rs:0);if(0===n)return null;var r=n,i=Is;Is|=16;var o=Sl();for(Ls===e&&Rs===r||(Qs(),Tl(e,r));;)try{Ol();break}catch(l){xl(e,l)}if(to(),As.current=o,Is=i,null!==Fs?r=0:(Ls=null,Rs=0,r=Vs),0!==(Us&zs))Tl(e,0);else if(0!==r){if(2===r&&(Is|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Vt(e))&&(r=Cl(e,n))),1===r)throw t=js,Tl(e,0),yl(e,n),vl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Il(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Hs+500-zi())){if(0!==Pt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){dl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Br(Il.bind(null,e),r);break}Il(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-qt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Os(n/1960))-n)){e.timeoutHandle=Br(Il.bind(null,e),n);break}Il(e);break;default:throw Error(a(329))}}return vl(e,zi()),e.callbackNode===t?gl.bind(null,e):null}function yl(e,t){for(t&=~qs,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Is))throw Error(a(327));if(Rl(),e===Ls&&0!==(e.expiredLanes&Rs)){var t=Rs,n=Cl(e,t);0!==(Us&zs)&&(n=Cl(e,t=Pt(e,t)))}else n=Cl(e,t=Pt(e,0));if(0!==e.tag&&2===n&&(Is|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Vt(e))&&(n=Cl(e,t))),1===n)throw n=js,Tl(e,0),yl(e,t),vl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Il(e),vl(e,zi()),null}function El(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Qs(),Qi())}}function wl(e,t){var n=Is;Is&=-2,Is|=8;try{return e(t)}finally{0===(Is=n)&&(Qs(),Qi())}}function kl(e,t){ci(Ps,Ms),Ms|=t,Us|=t}function _l(){Ms=Ps.current,ui(Ps)}function Tl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Fs)for(n=Fs.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&gi();break;case 3:Fo(),ui(fi),ui(di),Wo();break;case 5:Mo(r);break;case 4:Fo();break;case 13:case 19:ui(Po);break;case 10:no(r);break;case 23:case 24:_l()}n=n.return}Ls=e,Fs=Gl(e.current,null),Rs=Ms=Us=t,Vs=0,js=null,qs=zs=$s=0}function xl(e,t){for(;;){var n=Fs;try{if(to(),Ko.current=Da,na){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}na=!1}if(Xo=0,ta=ea=Zo=null,ra=!1,Ds.current=null,null===n||null===n.return){Vs=1,js=t,Fs=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Rs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var u=l;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 p=0!==(1&Po.current),d=a;do{var f;if(f=13===d.tag){var h=d.memoizedState;if(null!==h)f=null!==h.dehydrated;else{var m=d.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!p)}}if(f){var v=d.updateQueue;if(null===v){var g=new Set;g.add(u),d.updateQueue=g}else v.add(u);if(0===(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=uo(-1,1);y.tag=2,co(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ps,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var E=$l.bind(null,o,u,s);u.then(E,E)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Q(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!==Vs&&(Vs=2),l=us(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,po(d,ds(0,o,t));break e;case 1:o=l;var w=d.type,k=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Xs||!Xs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,po(d,fs(d,o,t));break e}}d=d.return}while(null!==d)}Dl(n)}catch(_){t=_,Fs===n&&null!==n&&(Fs=n=n.return);continue}break}}function Sl(){var e=As.current;return As.current=Da,null===e?Da:e}function Cl(e,t){var n=Is;Is|=16;var r=Sl();for(Ls===e&&Rs===t||Tl(e,t);;)try{Nl();break}catch(i){xl(e,i)}if(to(),Is=n,As.current=r,null!==Fs)throw Error(a(261));return Ls=null,Rs=0,Vs}function Nl(){for(;null!==Fs;)Al(Fs)}function Ol(){for(;null!==Fs&&!Ci();)Al(Fs)}function Al(e){var t=Ys(e.alternate,e,Ms);e.memoizedProps=e.pendingProps,null===t?Dl(e):Fs=t,Ds.current=null}function Dl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Ms)))return void(Fs=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ms)||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=ls(t)))return n.flags&=2047,void(Fs=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Fs=t);Fs=t=e}while(null!==t);0===Vs&&(Vs=5)}function Il(e){var t=qi();return Hi(99,Ll.bind(null,e,t)),null}function Ll(e,t){do{Rl()}while(null!==el);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,l=e.expirationTimes;0<o;){var u=31-qt(o),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==il&&0===(24&r)&&il.has(e)&&il.delete(e),e===Ls&&(Fs=Ls=null,Rs=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,Ur=Yt,vr(s=mr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(S){l=null;break e}var p=0,d=-1,f=-1,h=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==l||0!==o&&3!==v.nodeType||(d=p+o),v!==u||0!==c&&3!==v.nodeType||(f=p+c),3===v.nodeType&&(p+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===l&&++h===o&&(d=p),g===u&&++m===c&&(f=p),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===d||-1===f?null:{start:d,end:f}}else l=null;l=l||{start:0,end:0}}else l=null;$r={focusedElem:s,selectionRange:l},Yt=!1,cl=null,pl=!1,Ws=r;do{try{Fl()}catch(S){if(null===Ws)throw Error(a(330));Ul(Ws,S),Ws=Ws.nextEffect}}while(null!==Ws);cl=null,Ws=r;do{try{for(s=e;null!==Ws;){var b=Ws.flags;if(16&b&&ge(Ws.stateNode,""),128&b){var E=Ws.alternate;if(null!==E){var w=E.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:ks(Ws),Ws.flags&=-3;break;case 6:ks(Ws),Ws.flags&=-3,Ss(Ws.alternate,Ws);break;case 1024:Ws.flags&=-1025;break;case 1028:Ws.flags&=-1025,Ss(Ws.alternate,Ws);break;case 4:Ss(Ws.alternate,Ws);break;case 8:xs(s,l=Ws);var k=l.alternate;Es(l),null!==k&&Es(k)}Ws=Ws.nextEffect}}catch(S){if(null===Ws)throw Error(a(330));Ul(Ws,S),Ws=Ws.nextEffect}}while(null!==Ws);if(w=$r,E=mr(),b=w.focusedElem,s=w.selectionRange,E!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==s&&vr(b)&&(E=s.start,void 0===(w=s.end)&&(w=E),"selectionStart"in b?(b.selectionStart=E,b.selectionEnd=Math.min(w,b.value.length)):(w=(E=b.ownerDocument||document)&&E.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!w.extend&&k>s&&(l=s,s=k,k=l),l=fr(b,k),o=fr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((E=E.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>s?(w.addRange(E),w.extend(o.node,o.offset)):(E.setEnd(o.node,o.offset),w.addRange(E))))),E=[];for(w=b;w=w.parentNode;)1===w.nodeType&&E.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<E.length;b++)(w=E[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!Ur,$r=Ur=null,e.current=n,Ws=r;do{try{for(b=e;null!==Ws;){var _=Ws.flags;if(36&_&&gs(b,Ws.alternate,Ws),128&_){E=void 0;var T=Ws.ref;if(null!==T){var x=Ws.stateNode;Ws.tag,E=x,"function"===typeof T?T(E):T.current=E}}Ws=Ws.nextEffect}}catch(S){if(null===Ws)throw Error(a(330));Ul(Ws,S),Ws=Ws.nextEffect}}while(null!==Ws);Ws=null,Pi(),Is=i}else e.current=n;if(Zs)Zs=!1,el=e,tl=t;else for(Ws=r;null!==Ws;)t=Ws.nextEffect,Ws.nextEffect=null,8&Ws.flags&&((_=Ws).sibling=null,_.stateNode=null),Ws=t;if(0===(r=e.pendingLanes)&&(Xs=null),1===r?e===al?ol++:(ol=0,al=e):ol=0,n=n.stateNode,_i&&"function"===typeof _i.onCommitFiberRoot)try{_i.onCommitFiberRoot(ki,n,void 0,64===(64&n.current.flags))}catch(S){}if(vl(e,zi()),Ks)throw Ks=!1,e=Js,Js=null,e;return 0!==(8&Is)||Qi(),null}function Fl(){for(;null!==Ws;){var e=Ws.alternate;pl||null===cl||(0!==(8&Ws.flags)?Ze(Ws,cl)&&(pl=!0):13===Ws.tag&&Ns(e,Ws)&&Ze(Ws,cl)&&(pl=!0));var t=Ws.flags;0!==(256&t)&&vs(e,Ws),0===(512&t)||Zs||(Zs=!0,Gi(97,(function(){return Rl(),null}))),Ws=Ws.nextEffect}}function Rl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Hi(e,Vl)}return!1}function Ml(e,t){nl.push(t,e),Zs||(Zs=!0,Gi(97,(function(){return Rl(),null})))}function Pl(e,t){rl.push(t,e),Zs||(Zs=!0,Gi(97,(function(){return Rl(),null})))}function Vl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Is))throw Error(a(331));var t=Is;Is|=32;var n=rl;rl=[];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(u){if(null===o)throw Error(a(330));Ul(o,u)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(u){if(null===o)throw Error(a(330));Ul(o,u)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Is=t,Qi(),!0}function jl(e,t,n){co(e,t=ds(0,t=us(n,t),1)),t=dl(),null!==(e=ml(e,1))&&(zt(e,1,t),vl(e,t))}function Ul(e,t){if(3===e.tag)jl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){jl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var i=fs(n,e=us(t,e),1);if(co(n,i),i=dl(),null!==(n=ml(n,1)))zt(n,1,i),vl(n,i);else if("function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function $l(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=dl(),e.pingedLanes|=e.suspendedLanes&n,Ls===e&&(Rs&n)===n&&(4===Vs||3===Vs&&(62914560&Rs)===Rs&&500>zi()-Hs?Tl(e,0):qs|=n),vl(e,t)}function zl(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===qi()?1:2:(0===ll&&(ll=Us),0===(t=Ut(62914560&~ll))&&(t=4194304))),n=dl(),null!==(e=ml(e,t))&&(zt(e,t,n),vl(e,n))}function ql(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 Bl(e,t,n,r){return new ql(e,t,n,r)}function Hl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var n=e.alternate;return null===n?((n=Bl(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 Ql(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Hl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case T:return Yl(n.children,i,o,t);case M:s=8,i|=16;break;case x:s=8,i|=1;break;case S:return(e=Bl(12,n,t,8|i)).elementType=S,e.type=S,e.lanes=o,e;case A:return(e=Bl(13,n,t,i)).type=A,e.elementType=A,e.lanes=o,e;case D:return(e=Bl(19,n,t,i)).elementType=D,e.lanes=o,e;case P:return Wl(n,i,o,t);case V:return(e=Bl(24,n,t,i)).elementType=V,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 F:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Yl(e,t,n,r){return(e=Bl(7,e,r,t)).lanes=n,e}function Wl(e,t,n,r){return(e=Bl(23,e,r,t)).elementType=P,e.lanes=n,e}function Kl(e,t,n){return(e=Bl(6,e,null,t)).lanes=n,e}function Jl(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(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=$t(0),this.expirationTimes=$t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$t(0),this.mutableSourceEagerHydrationData=null}function Zl(e,t,n,r){var i=t.current,o=dl(),s=fl(i);e:if(n){t:{if(We(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(vi(u)){n=bi(n,u,l);break e}}n=l}else n=pi;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),hl(i,s,o),s}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xl(e,t,null!=n&&!0===n.hydrate),t=Bl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Zr]=n.current,Dr(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 iu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ou(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=eu(a);s.call(e)}}Zl(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 ru(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var l=i;i=function(){var e=eu(a);l.call(e)}}wl((function(){Zl(t,a,e,i)}))}return eu(a)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!iu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ys=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Ma=!0;else{if(0===(n&r)){switch(Ma=!1,t.tag){case 3:Ga(t),Qo();break;case 5:Ro(t);break;case 1:vi(t.type)&&Ei(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ci(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Xa(e,t,n):(ci(Po,1&Po.current),null!==(t=os(e,t,n))?t.sibling:null);ci(Po,1&Po.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),ci(Po,Po.current),r)break;return null;case 23:case 24:return t.lanes=0,$a(e,t,n)}return os(e,t,n)}Ma=0!==(16384&e.flags)}else Ma=!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),io(t,n),i=aa(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,vi(r)){var o=!0;Ei(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&vo(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternals=t,wo(t,r,e,n),t=Ha(null,t,r,!0,o,n)}else t.tag=0,Pa(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 Hl(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=qa(null,t,i,e,n);break e;case 1:t=Ba(null,t,i,e,n);break e;case 11:t=Va(null,t,i,e,n);break e;case 14:t=ja(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,qa(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(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),fo(t,r,null,n),(r=t.memoizedState.element)===i)Qo(),t=os(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Uo=Qr(t.stateNode.containerInfo.firstChild),jo=t,o=$o=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Yo.push(o);for(n=Co(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Pa(e,t,r,n),Qo();t=t.child}return t;case 5:return Ro(t),null===e&&Bo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,qr(r,i)?s=null:null!==o&&qr(r,o)&&(t.flags|=16),za(e,t),Pa(e,t,s,n),t.child;case 6:return null===e&&Bo(t),null;case 13:return Xa(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):Pa(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 Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(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 l=t.type._context;if(ci(Ji,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=ur(l,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!fi.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===l.tag&&((c=uo(-1,n&-n)).tag=2,co(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ro(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.flags|=1,Pa(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),ja(e,t,i,o=Ki(i.type,o),r,n);case 15:return Ua(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,vi(r)?(e=!0,Ei(t)):e=!1,io(t,n),bo(t,r,i),wo(t,r,i,n),Ha(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return $a(e,t,n)}throw Error(a(156,t.tag))},ru.prototype.render=function(e){Zl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zl(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(hl(e,4,dl()),nu(e,4))},tt=function(e){13===e.tag&&(hl(e,67108864,dl()),nu(e,67108864))},nt=function(e){if(13===e.tag){var t=dl(),n=fl(e);hl(e,n,t),nu(e,n)}},rt=function(e,t){return t()},Se=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=ii(r);if(!i)throw Error(a(90));J(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ie=El,Le=function(e,t,n,r,i){var o=Is;Is|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Is=o)&&(Qs(),Qi())}},Fe=function(){0===(49&Is)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vl(e,zi())}))}Qi()}(),Rl())},Re=function(e,t){var n=Is;Is|=2;try{return e(t)}finally{0===(Is=n)&&(Qs(),Qi())}};var su={Events:[ni,ri,ii,Ae,De,Rl,{current:!1}]},lu={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uu={bundleType:lu.bundleType,version:lu.version,rendererPackageName:lu.rendererPackageName,rendererConfig:lu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Xe(e))?null:e.stateNode},findFiberByHostInstance:lu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{ki=cu.inject(uu),_i=cu}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=au,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 Hi(99,e.bind(null,t))}finally{Is=n,Qi()}},t.hydrate=function(e,t,n){if(!iu(t))throw Error(a(200));return ou(null,e,t,!0,n)},t.render=function(e,t,n){if(!iu(t))throw Error(a(200));return ou(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!iu(e))throw Error(a(40));return!!e._reactRootContainer&&(wl((function(){ou(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=El,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!iu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ou(e,t,n,!1,r)},t.version="17.0.2"},7950:(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(2730)},5082:(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,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=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,E=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===p||e===s||e===a||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===g)},t.typeOf=w},2086:(e,t,n)=>{"use strict";e.exports=n(5082)},1153:(e,t,n)=>{"use strict";n(2123);var r=n(5043),i=60103;if("function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,o={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!l.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:u,ref:c,props:o,_owner:a.current}}t.jsx=u,t.jsxs=u},4202:(e,t,n)=>{"use strict";var r=n(2123),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var p=Symbol.for;i=p("react.element"),o=p("react.portal"),t.Fragment=p("react.fragment"),t.StrictMode=p("react.strict_mode"),t.Profiler=p("react.profiler"),a=p("react.provider"),s=p("react.context"),l=p("react.forward_ref"),t.Suspense=p("react.suspense"),u=p("react.memo"),c=p("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function f(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(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(f(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var E={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function _(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)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:E.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function S(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 l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+S(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(T(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||l&&l.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+S(s=e[u],u);l+=C(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,n,c=r+S(s,u++),a);else if("object"===s)throw t=""+e,Error(f(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}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(f(321));return e}var I={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,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(!T(e))throw Error(f(143));return e}},t.Component=v,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(f(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},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=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,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"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},4368: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 l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(D){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new N(r||[]);return o._invoke=function(e,t,n){var r=p;return function(i,o){if(r===f)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=x(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.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=u;var p="suspendedStart",d="suspendedYield",f="executing",h="completed",m={};function v(){}function g(){}function y(){}var b={};l(b,o,(function(){return this}));var E=Object.getPrototypeOf,w=E&&E(E(O([])));w&&w!==n&&r.call(w,o)&&(b=w);var k=y.prototype=v.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"===typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.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 x(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,x(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;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,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(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(S,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,l(k,"constructor",y),l(y,"constructor",g),g.displayName=l(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,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},_(T.prototype),l(T.prototype,a,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new T(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),l(k,s,"Generator"),l(k,o,(function(){return this})),l(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 l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)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,m):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),m},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),m}},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),m}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7234:(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,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,p=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(p,0),n}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(p,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 d=window.setTimeout,f=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 m=!1,v=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 E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?w.postMessage(null):(m=!1,v=null)}catch(n){throw w.postMessage(null),n}}else m=!1},n=function(e){v=e,m||(m=!0,w.postMessage(null))},r=function(e,n){g=d((function(){e(t.unstable_now())}),n)},i=function(){f(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<x(i,t)))break e;e[r]=t,e[n]=i,n=r}}function _(e){return void 0===(e=e[0])?null:e}function T(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,l=e[s];if(void 0!==a&&0>x(a,n))void 0!==l&&0>x(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>x(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],C=[],N=1,O=null,A=3,D=!1,I=!1,L=!1;function F(e){for(var t=_(C);null!==t;){if(null===t.callback)T(C);else{if(!(t.startTime<=e))break;T(C),t.sortIndex=t.expirationTime,k(S,t)}t=_(C)}}function R(e){if(L=!1,F(e),!I)if(null!==_(S))I=!0,n(M);else{var t=_(C);null!==t&&r(R,t.startTime-e)}}function M(e,n){I=!1,L&&(L=!1,i()),D=!0;var o=A;try{for(F(n),O=_(S);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(S),F(n)}else T(S);O=_(S)}if(null!==O)var l=!0;else{var u=_(C);null!==u&&r(R,u.startTime-n),l=!1}return l}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(M))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return _(S)},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 l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:N++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(C,e),null===_(S)&&e===_(C)&&(L?i():L=!0,r(R,a-s))):(e.sortIndex=l,k(S,e),I||D||(I=!0,n(M))),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}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},692:(e,t,n)=>{"use strict";const{deleteProperty:r}=Reflect,i=n(36),o=n(6927),a=e=>"object"===typeof e&&null!==e||"function"===typeof e,s=e=>{if(!i(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},l=(e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!==typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);s(r);const i=p.cache.get(r)||n();return p.cache.set(r,i),i},u=(e,t)=>t&&"function"===typeof t.split?t.split(e):"symbol"===typeof e?[e]:Array.isArray(e)?e:l(e,t,(()=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"===typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let s=0;s<e.length;s++){const t=e[s];"\\"!==t?t!==n?o+=t:(a(o),o=""):o+=e[++s]}return o&&a(o),i}(e,t))),c=(e,t,n,i)=>{if(s(t),void 0===n)r(e,t);else if(i&&i.merge){const r="function"===i.merge?i.merge:Object.assign;r&&o(e[t])&&o(n)?e[t]=r(e[t],n):e[t]=n}else e[t]=n;return e},p=(e,t,n,r)=>{if(!t||!a(e))return e;const i=u(t,r);let o=e;for(let l=0;l<i.length;l++){const e=i[l],t=i[l+1];if(s(e),void 0===t){c(o,e,n,r);break}"number"!==typeof t||Array.isArray(o[e])?(a(o[e])||(o[e]={}),o=o[e]):o=o[e]=[]}return e};p.split=u,p.cache=new Map,p.clear=()=>{p.cache=new Map},e.exports=p},139: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()}}},977:e=>{e.exports=/[\0-\x1F\x7F-\x9F]/},8406: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]/},3387: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]/},3905:e=>{e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},3742:(e,t,n)=>{"use strict";t.Any=n(6616),t.Cc=n(977),t.Cf=n(8406),t.P=n(3387),t.Z=n(3905)},6616:e=>{e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},3585:(e,t,n)=>{"use strict";n.d(t,{Wk:()=>u,eO:()=>a,yJ:()=>l});var r=n(3628),i=n(7861),o=n(6412);class a extends Error{constructor(e){for(var t,n,o,l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];const{nodes:p,source:d,positions:f,path:h,originalError:m,extensions:v}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(u);super(e),this.name="GraphQLError",this.path=null!==h&&void 0!==h?h:void 0,this.originalError=null!==m&&void 0!==m?m:void 0,this.nodes=s(Array.isArray(p)?p:p?[p]:void 0);const g=s(null===(t=this.nodes)||void 0===t?void 0:t.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==d&&void 0!==d?d:null===g||void 0===g||null===(n=g[0])||void 0===n?void 0:n.source,this.positions=null!==f&&void 0!==f?f:null===g||void 0===g?void 0:g.map((e=>e.start)),this.locations=f&&d?f.map((e=>(0,i.g)(d,e))):null===g||void 0===g?void 0:g.map((e=>(0,i.g)(e.source,e.start)));const y=(0,r.Z)(null===m||void 0===m?void 0:m.extensions)?null===m||void 0===m?void 0:m.extensions:void 0;this.extensions=null!==(o=null!==v&&void 0!==v?v:y)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==m&&void 0!==m&&m.stack?Object.defineProperty(this,"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+(0,o.V)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,o.C)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}function l(e){return e.toString()}function u(e){return e.toJSON()}},1567:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(3585);function i(e,t,n){return new r.eO(`Syntax Error: ${n}`,{source:e,positions:[t]})}},1547:(e,t,n)=>{"use strict";n.d(t,{S:()=>u,_:()=>l});var r=n(4705),i=n(6333),o=n(9976),a=n(8912),s=n(380);function l(e,t,n,r,i){const o=new Map;return c(e,t,n,r,i,o,new Set),o}function u(e,t,n,r,i){const o=new Map,a=new Set;for(const s of i)s.selectionSet&&c(e,t,n,r,s.selectionSet,o,a);return o}function c(e,t,n,i,o,a,s){for(const u of o.selections)switch(u.kind){case r.b.FIELD:{if(!p(n,u))continue;const e=(l=u).alias?l.alias.value:l.name.value,t=a.get(e);void 0!==t?t.push(u):a.set(e,[u]);break}case r.b.INLINE_FRAGMENT:if(!p(n,u)||!d(e,u,i))continue;c(e,t,n,i,u.selectionSet,a,s);break;case r.b.FRAGMENT_SPREAD:{const r=u.name.value;if(s.has(r)||!p(n,u))continue;s.add(r);const o=t[r];if(!o||!d(e,o,i))continue;c(e,t,n,i,o.selectionSet,a,s);break}}var l}function p(e,t){const n=(0,s.YY)(o.MQ,t,e);if(!0===(null===n||void 0===n?void 0:n.if))return!1;const r=(0,s.YY)(o.HQ,t,e);return!1!==(null===r||void 0===r?void 0:r.if)}function d(e,t,n){const r=t.typeCondition;if(!r)return!0;const o=(0,a.v)(e,r);return o===n||!!(0,i.Lc)(o)&&e.isSubType(o,n)}},380:(e,t,n)=>{"use strict";n.d(t,{IA:()=>h,VE:()=>f,YY:()=>m});var r=n(9788),i=n(3041),o=n(8523),a=n(3585),s=n(4705),l=n(7233),u=n(6333),c=n(2720),p=n(8912),d=n(5089);function f(e,t,n,i){const s=[],f=null===i||void 0===i?void 0:i.maxErrors;try{const i=function(e,t,n,i){const s={};for(const f of t){const t=f.variable.name.value,h=(0,p.v)(e,f.type);if(!(0,u.dX)(h)){const e=(0,l.y)(f.type);i(new a.eO(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:f.type}));continue}if(!v(n,t)){if(f.defaultValue)s[t]=(0,d.i)(f.defaultValue,h);else if((0,u.bd)(h)){const e=(0,r.N)(h);i(new a.eO(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:f}))}continue}const m=n[t];if(null===m&&(0,u.bd)(h)){const e=(0,r.N)(h);i(new a.eO(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:f}))}else s[t]=(0,c.v)(m,h,((e,n,s)=>{let l=`Variable "$${t}" got invalid value `+(0,r.N)(n);e.length>0&&(l+=` at "${t}${(0,o.q)(e)}"`),i(new a.eO(l+"; "+s.message,{nodes:f,originalError:s}))}))}return s}(e,t,n,(e=>{if(null!=f&&s.length>=f)throw new a.eO("Too many errors processing variables, error limit reached. Execution aborted.");s.push(e)}));if(0===s.length)return{coerced:i}}catch(h){s.push(h)}return{errors:s}}function h(e,t,n){var o;const c={},p=null!==(o=t.arguments)&&void 0!==o?o:[],f=(0,i.K)(p,(e=>e.name.value));for(const i of e.args){const e=i.name,o=i.type,p=f[e];if(!p){if(void 0!==i.defaultValue)c[e]=i.defaultValue;else if((0,u.bd)(o))throw new a.eO(`Argument "${e}" of required type "${(0,r.N)(o)}" was not provided.`,{nodes:t});continue}const h=p.value;let m=h.kind===s.b.NULL;if(h.kind===s.b.VARIABLE){const t=h.name.value;if(null==n||!v(n,t)){if(void 0!==i.defaultValue)c[e]=i.defaultValue;else if((0,u.bd)(o))throw new a.eO(`Argument "${e}" of required type "${(0,r.N)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:h});continue}m=null==n[t]}if(m&&(0,u.bd)(o))throw new a.eO(`Argument "${e}" of non-null type "${(0,r.N)(o)}" must not be null.`,{nodes:h});const g=(0,d.i)(h,o,n);if(void 0===g)throw new a.eO(`Argument "${e}" has invalid value ${(0,l.y)(h)}.`,{nodes:h});c[e]=g}return c}function m(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find((t=>t.name.value===e.name));if(i)return h(e,i,n)}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},8687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>te.sP,BreakingChangeType:()=>Ft,DEFAULT_DEPRECATION_REASON:()=>G.Il,DangerousChangeType:()=>Rt,DirectiveLocation:()=>ne.H,ExecutableDefinitionsRule:()=>ce.T,FieldsOnCorrectTypeRule:()=>pe.Z,FragmentsOnCompositeTypesRule:()=>de.T,GRAPHQL_MAX_INT:()=>Q.BW,GRAPHQL_MIN_INT:()=>Q.nM,GraphQLBoolean:()=>Q.kk,GraphQLDeprecatedDirective:()=>G.yK,GraphQLDirective:()=>G.RR,GraphQLEnumType:()=>w.Zb,GraphQLError:()=>v.eO,GraphQLFloat:()=>Q.qS,GraphQLID:()=>Q.N1,GraphQLIncludeDirective:()=>G.HQ,GraphQLInputObjectType:()=>w.zP,GraphQLInt:()=>Q.Fh,GraphQLInterfaceType:()=>w.VA,GraphQLList:()=>w.KT,GraphQLNonNull:()=>w.Gc,GraphQLObjectType:()=>w.bh,GraphQLScalarType:()=>w.Ag,GraphQLSchema:()=>H.V4,GraphQLSkipDirective:()=>G.MQ,GraphQLSpecifiedByDirective:()=>G.gw,GraphQLString:()=>Q.FV,GraphQLUnionType:()=>w.hI,Kind:()=>E.b,KnownArgumentNamesRule:()=>fe.P,KnownDirectivesRule:()=>he.e,KnownFragmentNamesRule:()=>me.K,KnownTypeNamesRule:()=>ve.y,Lexer:()=>X.J,Location:()=>b.aZ,LoneAnonymousOperationRule:()=>ge.P,LoneSchemaDefinitionRule:()=>Me.l,NoDeprecatedCustomRule:()=>Be.k,NoFragmentCyclesRule:()=>ye.n,NoSchemaIntrospectionCustomRule:()=>se,NoUndefinedVariablesRule:()=>be.Z,NoUnusedFragmentsRule:()=>Ee.z,NoUnusedVariablesRule:()=>we.p,OperationTypeNode:()=>b.cE,OverlappingFieldsCanBeMergedRule:()=>ke.K,PossibleFragmentSpreadsRule:()=>_e.y,PossibleTypeExtensionsRule:()=>qe.S,ProvidedRequiredArgumentsRule:()=>Te.X,ScalarLeafsRule:()=>xe.A,SchemaMetaFieldDef:()=>k.SchemaMetaFieldDef,SingleFieldSubscriptionsRule:()=>Se.R,Source:()=>W.k,Token:()=>b.ou,TokenKind:()=>Z.Y,TypeInfo:()=>nn.D,TypeKind:()=>k.TypeKind,TypeMetaFieldDef:()=>k.TypeMetaFieldDef,TypeNameMetaFieldDef:()=>k.TypeNameMetaFieldDef,UniqueArgumentDefinitionNamesRule:()=>$e.E,UniqueArgumentNamesRule:()=>Ce.J,UniqueDirectiveNamesRule:()=>ze.Z,UniqueDirectivesPerLocationRule:()=>Ne.U,UniqueEnumValueNamesRule:()=>je.g,UniqueFieldDefinitionNamesRule:()=>Ue.X,UniqueFragmentNamesRule:()=>Oe.K,UniqueInputFieldNamesRule:()=>Ae.C,UniqueOperationNamesRule:()=>De.H,UniqueOperationTypesRule:()=>Pe.u,UniqueTypeNamesRule:()=>Ve.i,UniqueVariableNamesRule:()=>Ie._,ValidationContext:()=>le.dY,ValuesOfCorrectTypeRule:()=>Le.U,VariablesAreInputTypesRule:()=>Fe.J,VariablesInAllowedPositionRule:()=>Re.E,__Directive:()=>k.__Directive,__DirectiveLocation:()=>k.__DirectiveLocation,__EnumValue:()=>k.__EnumValue,__Field:()=>k.__Field,__InputValue:()=>k.__InputValue,__Schema:()=>k.__Schema,__Type:()=>k.__Type,__TypeKind:()=>k.__TypeKind,assertAbstractType:()=>w.N_,assertCompositeType:()=>w.Ye,assertDirective:()=>G.yq,assertEnumType:()=>w.el,assertEnumValueName:()=>Y.A,assertInputObjectType:()=>w.Yq,assertInputType:()=>w.L9,assertInterfaceType:()=>w.qL,assertLeafType:()=>w.D0,assertListType:()=>w.dL,assertName:()=>Y.I,assertNamedType:()=>w.sF,assertNonNullType:()=>w.ZX,assertNullableType:()=>w.wG,assertObjectType:()=>w.qC,assertOutputType:()=>w.yh,assertScalarType:()=>w.Zx,assertSchema:()=>H.GU,assertType:()=>w.j,assertUnionType:()=>w.EG,assertValidName:()=>It,assertValidSchema:()=>l.Y,assertWrappingType:()=>w.B3,astFromValue:()=>ft.K,buildASTSchema:()=>it,buildClientSchema:()=>Zt.D,buildSchema:()=>ot,coerceInputValue:()=>rn.v,concatAST:()=>Ct,createSourceEventStream:()=>ae,defaultFieldResolver:()=>U,defaultTypeResolver:()=>j,doTypesOverlap:()=>on.uI,execute:()=>S,executeSync:()=>C,extendSchema:()=>Ze,findBreakingChanges:()=>Pt,findDangerousChanges:()=>Vt,formatError:()=>v.Wk,getArgumentValues:()=>T.IA,getDirectiveValues:()=>T.YY,getEnterLeaveForKind:()=>te.XO,getIntrospectionQuery:()=>Ye.I,getLocation:()=>K.g,getNamedType:()=>w.MR,getNullableType:()=>w.yl,getOperationAST:()=>Ge,getOperationRootType:()=>Qe,getVariableValues:()=>T.VE,getVisitFn:()=>te.UY,graphql:()=>z,graphqlSync:()=>q,introspectionFromSchema:()=>We,introspectionTypes:()=>k.introspectionTypes,isAbstractType:()=>w.Lc,isCompositeType:()=>w.ML,isConstValueNode:()=>re.TZ,isDefinitionNode:()=>re.MD,isDirective:()=>G.qT,isEnumType:()=>w.oF,isEqualType:()=>on.n8,isExecutableDefinitionNode:()=>re._m,isInputObjectType:()=>w.qK,isInputType:()=>w.dX,isInterfaceType:()=>w.kD,isIntrospectionType:()=>k.isIntrospectionType,isLeafType:()=>w.zf,isListType:()=>w.Fs,isNamedType:()=>w.sy,isNonNullType:()=>w.bd,isNullableType:()=>w.wj,isObjectType:()=>w.YQ,isOutputType:()=>w.oH,isRequiredArgument:()=>w.xP,isRequiredInputField:()=>w.YX,isScalarType:()=>w.lg,isSchema:()=>H.Wl,isSelectionNode:()=>re.VK,isSpecifiedDirective:()=>G.Qe,isSpecifiedScalarType:()=>Q.PZ,isType:()=>w.Xj,isTypeDefinitionNode:()=>re.a6,isTypeExtensionNode:()=>re.i7,isTypeNode:()=>re.dI,isTypeSubTypeOf:()=>on.sP,isTypeSystemDefinitionNode:()=>re.xu,isTypeSystemExtensionNode:()=>re.fT,isUnionType:()=>w.CK,isValidNameError:()=>Lt,isValueNode:()=>re.aR,isWrappingType:()=>w.lS,lexicographicSortSchema:()=>lt,locatedError:()=>y,parse:()=>s.qg,parseConstValue:()=>s.u8,parseType:()=>s.Mb,parseValue:()=>s.$x,print:()=>ee.y,printError:()=>v.yJ,printIntrospectionSchema:()=>mt,printLocation:()=>J.V,printSchema:()=>ht,printSourceLocation:()=>J.C,printType:()=>bt,resolveObjMapThunk:()=>w.qN,resolveReadonlyArrayThunk:()=>w.aj,responsePathAsArray:()=>h.A,separateOperations:()=>Nt,specifiedDirectives:()=>G.rc,specifiedRules:()=>ue.g,specifiedScalarTypes:()=>Q.YC,stripIgnoredCharacters:()=>Dt,subscribe:()=>oe,syntaxError:()=>He.I,typeFromAST:()=>en.v,validate:()=>u.tf,validateSchema:()=>l.i,valueFromAST:()=>Xe.i,valueFromASTUntyped:()=>tn.F,version:()=>r,versionInfo:()=>i,visit:()=>te.YR,visitInParallel:()=>te.oP,visitWithTypeInfo:()=>nn.S});const r="16.8.1",i=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});var o=n(3515);function a(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}var s=n(1793),l=n(1500),u=n(9071),c=n(9788),p=n(3444),d=n(9571),f=n(3628);var h=n(3669);function m(e){return Promise.all(Object.values(e)).then((t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n}))}var v=n(3585);class g extends Error{constructor(e){super("Unexpected error value: "+(0,c.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function y(e,t,n){var r;const i=(o=e)instanceof Error?o:new g(o);var o,a;return a=i,Array.isArray(a.path)?i:new v.eO(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}var b=n(4740),E=n(4705),w=n(6333),k=n(2915),_=n(1547),T=n(380);const x=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}(((e,t,n)=>(0,_.S)(e.schema,e.fragments,e.variableValues,t,n)));function S(e){arguments.length<2||(0,o.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:n,variableValues:r,rootValue:i}=e;O(t,n,r);const s=A(e);if(!("schema"in s))return{errors:s};try{const{operation:e}=s,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new v.eO(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=(0,_._)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case b.cE.QUERY:return D(e,r,n,o,i);case b.cE.MUTATION:return function(e,t,n,r,i){return function(e,t,n){let r=n;for(const i of e)r=a(r)?r.then((e=>t(e,i))):t(r,i);return r}(i.entries(),((i,o)=>{let[s,l]=o;const u=(0,h.f)(r,s,t.name),c=I(e,t,n,l,u);return void 0===c?i:a(c)?c.then((e=>(i[s]=e,i))):(i[s]=c,i)}),Object.create(null))}(e,r,n,o,i);case b.cE.SUBSCRIPTION:return D(e,r,n,o,i)}}(s,e,i);return a(t)?t.then((e=>N(e,s.errors)),(e=>(s.errors.push(e),N(null,s.errors)))):N(t,s.errors)}catch(l){return s.errors.push(l),N(null,s.errors)}}function C(e){const t=S(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function N(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function O(e,t,n){t||(0,o.U)(!1,"Must provide document."),(0,l.Y)(e),null==n||(0,f.Z)(n)||(0,o.U)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function A(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:s,operationName:l,fieldResolver:u,typeResolver:c,subscribeFieldResolver:p}=e;let d;const f=Object.create(null);for(const g of i.definitions)switch(g.kind){case E.b.OPERATION_DEFINITION:if(null==l){if(void 0!==d)return[new v.eO("Must provide operation name if query contains multiple operations.")];d=g}else(null===(t=g.name)||void 0===t?void 0:t.value)===l&&(d=g);break;case E.b.FRAGMENT_DEFINITION:f[g.name.value]=g}if(!d)return null!=l?[new v.eO(`Unknown operation named "${l}".`)]:[new v.eO("Must provide an operation.")];const h=null!==(n=d.variableDefinitions)&&void 0!==n?n:[],m=(0,T.VE)(r,h,null!==s&&void 0!==s?s:{},{maxErrors:50});return m.errors?m.errors:{schema:r,fragments:f,rootValue:o,contextValue:a,operation:d,variableValues:m.coerced,fieldResolver:null!==u&&void 0!==u?u:U,typeResolver:null!==c&&void 0!==c?c:j,subscribeFieldResolver:null!==p&&void 0!==p?p:U,errors:[]}}function D(e,t,n,r,i){const o=Object.create(null);let s=!1;try{for(const[l,u]of i.entries()){const i=I(e,t,n,u,(0,h.f)(r,l,t.name));void 0!==i&&(o[l]=i,a(i)&&(s=!0))}}catch(l){if(s)return m(o).finally((()=>{throw l}));throw l}return s?m(o):o}function I(e,t,n,r,i){var o;const s=$(e.schema,t,r[0]);if(!s)return;const l=s.type,u=null!==(o=s.resolve)&&void 0!==o?o:e.fieldResolver,c=L(e,s,r,t,i);try{const t=(0,T.IA)(s,r[0],e.variableValues),o=u(n,t,e.contextValue,c);let p;return p=a(o)?o.then((t=>R(e,l,r,c,i,t))):R(e,l,r,c,i,o),a(p)?p.then(void 0,(t=>F(y(t,r,(0,h.A)(i)),l,e))):p}catch(p){return F(y(p,r,(0,h.A)(i)),l,e)}}function L(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 F(e,t,n){if((0,w.bd)(t))throw e;return n.errors.push(e),null}function R(e,t,n,r,i,o){if(o instanceof Error)throw o;if((0,w.bd)(t)){const a=R(e,t.ofType,n,r,i,o);if(null===a)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:(0,w.Fs)(t)?function(e,t,n,r,i,o){if(!(0,d.A)(o))throw new v.eO(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const s=t.ofType;let l=!1;const u=Array.from(o,((t,o)=>{const u=(0,h.f)(i,o,void 0);try{let i;return i=a(t)?t.then((t=>R(e,s,n,r,u,t))):R(e,s,n,r,u,t),a(i)?(l=!0,i.then(void 0,(t=>F(y(t,n,(0,h.A)(u)),s,e)))):i}catch(c){return F(y(c,n,(0,h.A)(u)),s,e)}}));return l?Promise.all(u):u}(e,t,n,r,i,o):(0,w.zf)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${(0,c.N)(e)}.serialize(${(0,c.N)(t)})\` to return non-nullable value, returned: ${(0,c.N)(n)}`);return n}(t,o):(0,w.Lc)(t)?function(e,t,n,r,i,o){var s;const l=null!==(s=t.resolveType)&&void 0!==s?s:e.typeResolver,u=e.contextValue,c=l(o,u,r,t);if(a(c))return c.then((a=>P(e,M(a,e,t,n,r,o),n,r,i,o)));return P(e,M(c,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):(0,w.YQ)(t)?P(e,t,n,r,i,o):void(0,p.V)(!1,"Cannot complete value of unexpected output type: "+(0,c.N)(t))}function M(e,t,n,r,i,o){if(null==e)throw new v.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if((0,w.YQ)(e))throw new v.eO("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!==typeof e)throw new v.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,c.N)(o)}, received "${(0,c.N)(e)}".`);const a=t.schema.getType(e);if(null==a)throw new v.eO(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,w.YQ)(a))throw new v.eO(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new v.eO(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function P(e,t,n,r,i,o){const s=x(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(a(l))return l.then((r=>{if(!r)throw V(t,o,n);return D(e,t,o,i,s)}));if(!l)throw V(t,o,n)}return D(e,t,o,i,s)}function V(e,t,n){return new v.eO(`Expected value of type "${e.name}" but got: ${(0,c.N)(t)}.`,{nodes:n})}const j=function(e,t,n,r){if((0,f.Z)(e)&&"string"===typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s<i.length;s++){const r=i[s];if(r.isTypeOf){const i=r.isTypeOf(e,t,n);if(a(i))o[s]=i;else if(i)return r.name}}return o.length?Promise.all(o).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},U=function(e,t,n,r){if((0,f.Z)(e)||"function"===typeof e){const i=e[r.fieldName];return"function"===typeof i?e[r.fieldName](t,n,r):i}};function $(e,t,n){const r=n.name.value;return r===k.SchemaMetaFieldDef.name&&e.getQueryType()===t?k.SchemaMetaFieldDef:r===k.TypeMetaFieldDef.name&&e.getQueryType()===t?k.TypeMetaFieldDef:r===k.TypeNameMetaFieldDef.name?k.TypeNameMetaFieldDef:t.getFields()[r]}function z(e){return new Promise((t=>t(B(e))))}function q(e){const t=B(e);if(a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function B(e){arguments.length<2||(0,o.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:a,operationName:c,fieldResolver:p,typeResolver:d}=e,f=(0,l.i)(t);if(f.length>0)return{errors:f};let h;try{h=(0,s.qg)(n)}catch(He){return{errors:[He]}}const m=(0,u.tf)(t,h);return m.length>0?{errors:m}:S({schema:t,document:h,rootValue:r,contextValue:i,variableValues:a,operationName:c,fieldResolver:p,typeResolver:d})}var H=n(6175),G=n(9976),Q=n(3721),Y=n(237),W=n(859),K=n(7861),J=n(6412),X=n(378),Z=n(9305),ee=n(7233),te=n(9182),ne=n(6542),re=n(6762);function ie(e){return"function"===typeof(null===e||void 0===e?void 0:e[Symbol.asyncIterator])}async function oe(e){arguments.length<2||(0,o.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await ae(e);if(!ie(t))return t;return function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(r){if("function"===typeof n.return)try{await n.return()}catch(i){}throw r}}return{next:async()=>r(await n.next()),return:async()=>"function"===typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"===typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t,(t=>S({...e,rootValue:t})))}async function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(t),{schema:i,document:o,variableValues:a}=r;O(i,o,a);const s=A(r);if(!("schema"in s))return{errors:s};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new v.eO("Schema is not configured to execute subscription operation.",{nodes:r});const s=(0,_._)(t,n,i,a,r.selectionSet),[l,u]=[...s.entries()][0],c=$(t,a,u[0]);if(!c){const e=u[0].name.value;throw new v.eO(`The subscription field "${e}" is not defined.`,{nodes:u})}const p=(0,h.f)(void 0,l,a.name),d=L(e,c,u,a,p);try{var f;const t=(0,T.IA)(c,u[0],i),n=e.contextValue,r=null!==(f=c.subscribe)&&void 0!==f?f:e.subscribeFieldResolver,a=await r(o,t,n,d);if(a instanceof Error)throw a;return a}catch(m){throw y(m,u,(0,h.A)(p))}}(s);if(!ie(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,c.N)(e)}.`);return e}catch(l){if(l instanceof v.eO)return{errors:[l]};throw l}}function se(e){return{Field(t){const n=(0,w.MR)(e.getType());n&&(0,k.isIntrospectionType)(n)&&e.reportError(new v.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var le=n(449),ue=n(8050),ce=n(5915),pe=n(8947),de=n(8669),fe=n(6691),he=n(6238),me=n(600),ve=n(1152),ge=n(6189),ye=n(4319),be=n(3865),Ee=n(8887),we=n(8559),ke=n(5436),_e=n(5430),Te=n(5655),xe=n(8506),Se=n(9789),Ce=n(8521),Ne=n(6772),Oe=n(2946),Ae=n(4698),De=n(947),Ie=n(2014),Le=n(3104),Fe=n(1867),Re=n(7972),Me=n(4361),Pe=n(3580),Ve=n(8034),je=n(2520),Ue=n(8699),$e=n(9456),ze=n(3555),qe=n(5012),Be=n(9338),He=n(1567);function Ge(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===E.b.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function Qe(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new v.eO("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new v.eO("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new v.eO("Schema is not configured for subscriptions.",{nodes:t});return n}throw new v.eO("Can only have query, mutation and subscription operations.",{nodes:t})}var Ye=n(2799);function We(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=C({schema:e,document:(0,s.qg)((0,Ye.I)(n))});return!r.errors&&r.data||(0,p.V)(!1),r.data}var Ke=n(3041),Je=n(513),Xe=n(5089);function Ze(e,t,n){(0,H.GU)(e),null!=t&&t.kind===E.b.DOCUMENT||(0,o.U)(!1,"Must provide valid Document AST."),!0!==(null===n||void 0===n?void 0:n.assumeValid)&&!0!==(null===n||void 0===n?void 0:n.assumeValidSDL)&&(0,u.$T)(t,e);const r=e.toConfig(),i=et(r,t,n);return r===i?e:new H.V4(i)}function et(e,t,n){var r,i,o,a;const s=[],l=Object.create(null),u=[];let d;const f=[];for(const c of t.definitions)if(c.kind===E.b.SCHEMA_DEFINITION)d=c;else if(c.kind===E.b.SCHEMA_EXTENSION)f.push(c);else if((0,re.a6)(c))s.push(c);else if((0,re.i7)(c)){const e=c.name.value,t=l[e];l[e]=t?t.concat([c]):[c]}else c.kind===E.b.DIRECTIVE_DEFINITION&&u.push(c);if(0===Object.keys(l).length&&0===s.length&&0===u.length&&0===f.length&&null==d)return e;const h=Object.create(null);for(const c of e.types)h[c.name]=b(c);for(const c of s){var m;const e=c.name.value;h[e]=null!==(m=tt[e])&&void 0!==m?m:F(c)}const v={query:e.query&&y(e.query),mutation:e.mutation&&y(e.mutation),subscription:e.subscription&&y(e.subscription),...d&&x([d]),...x(f)};return{description:null===(r=d)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...v,types:Object.values(h),directives:[...e.directives.map((function(e){const t=e.toConfig();return new G.RR({...t,args:(0,Je.I)(t.args,T)})})),...u.map((function(e){var t;return new G.RR({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((e=>{let{value:t}=e;return t})),isRepeatable:e.repeatable,args:O(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=d)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(a=null===n||void 0===n?void 0:n.assumeValid)&&void 0!==a&&a};function g(e){return(0,w.Fs)(e)?new w.KT(g(e.ofType)):(0,w.bd)(e)?new w.Gc(g(e.ofType)):y(e)}function y(e){return h[e.name]}function b(e){return(0,k.isIntrospectionType)(e)||(0,Q.PZ)(e)?e:(0,w.lg)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const a of r){var o;i=null!==(o=rt(a))&&void 0!==o?o:i}return new w.Ag({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,w.YQ)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new w.bh({...n,interfaces:()=>[...e.getInterfaces().map(y),...I(r)],fields:()=>({...(0,Je.I)(n.fields,_),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,w.kD)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new w.VA({...n,interfaces:()=>[...e.getInterfaces().map(y),...I(r)],fields:()=>({...(0,Je.I)(n.fields,_),...N(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,w.CK)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new w.hI({...n,types:()=>[...e.getTypes().map(y),...L(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,w.oF)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new w.Zb({...n,values:{...n.values,...D(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):(0,w.qK)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new w.zP({...n,fields:()=>({...(0,Je.I)(n.fields,(e=>({...e,type:g(e.type)}))),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void(0,p.V)(!1,"Unexpected type: "+(0,c.N)(e))}function _(e){return{...e,type:g(e.type),args:e.args&&(0,Je.I)(e.args,T)}}function T(e){return{...e,type:g(e.type)}}function x(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=S(n.type)}return t}function S(e){var t;const n=e.name.value,r=null!==(t=tt[n])&&void 0!==t?t:h[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function C(e){return e.kind===E.b.LIST_TYPE?new w.KT(C(e.type)):e.kind===E.b.NON_NULL_TYPE?new w.Gc(C(e.type)):S(e)}function N(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:C(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:O(n.arguments),deprecationReason:nt(n),astNode:n}}}return t}function O(e){const t=null!==e&&void 0!==e?e:[],n=Object.create(null);for(const i of t){var r;const e=C(i.type);n[i.name.value]={type:e,description:null===(r=i.description)||void 0===r?void 0:r.value,defaultValue:(0,Xe.i)(i.defaultValue,e),deprecationReason:nt(i),astNode:i}}return n}function A(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=C(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:(0,Xe.i)(n.defaultValue,e),deprecationReason:nt(n),astNode:n}}}return t}function D(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:nt(n),astNode:n}}}return t}function I(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(S))&&void 0!==t?t:[]}))}function L(e){return e.flatMap((e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(S))&&void 0!==t?t:[]}))}function F(e){var t;const n=e.name.value,r=null!==(t=l[n])&&void 0!==t?t:[];switch(e.kind){case E.b.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new w.bh({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>I(t),fields:()=>N(t),astNode:e,extensionASTNodes:r})}case E.b.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new w.VA({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>I(t),fields:()=>N(t),astNode:e,extensionASTNodes:r})}case E.b.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new w.Zb({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:D(t),astNode:e,extensionASTNodes:r})}case E.b.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new w.hI({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>L(t),astNode:e,extensionASTNodes:r})}case E.b.SCALAR_TYPE_DEFINITION:var u;return new w.Ag({name:n,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:rt(e),astNode:e,extensionASTNodes:r});case E.b.INPUT_OBJECT_TYPE_DEFINITION:{var c;const t=[e,...r];return new w.zP({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,fields:()=>A(t),astNode:e,extensionASTNodes:r})}}}}const tt=(0,Ke.K)([...Q.YC,...k.introspectionTypes],(e=>e.name));function nt(e){const t=(0,T.YY)(G.yK,e);return null===t||void 0===t?void 0:t.reason}function rt(e){const t=(0,T.YY)(G.gw,e);return null===t||void 0===t?void 0:t.url}function it(e,t){null!=e&&e.kind===E.b.DOCUMENT||(0,o.U)(!1,"Must provide valid Document AST."),!0!==(null===t||void 0===t?void 0:t.assumeValid)&&!0!==(null===t||void 0===t?void 0:t.assumeValidSDL)&&(0,u.uq)(e);const n=et({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const i of n.types)switch(i.name){case"Query":n.query=i;break;case"Mutation":n.mutation=i;break;case"Subscription":n.subscription=i}const r=[...n.directives,...G.rc.filter((e=>n.directives.every((t=>t.name!==e.name))))];return new H.V4({...n,directives:r})}function ot(e,t){return it((0,s.qg)(e,{noLocation:null===t||void 0===t?void 0:t.noLocation,allowLegacyFragmentVariables:null===t||void 0===t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null===t||void 0===t?void 0:t.assumeValidSDL,assumeValid:null===t||void 0===t?void 0:t.assumeValid})}var at=n(2564),st=n(7407);function lt(e){const t=e.toConfig(),n=(0,at.L)(ct(t.types),(e=>e.name),(function(e){if((0,w.lg)(e)||(0,k.isIntrospectionType)(e))return e;if((0,w.YQ)(e)){const t=e.toConfig();return new w.bh({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if((0,w.kD)(e)){const t=e.toConfig();return new w.VA({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if((0,w.CK)(e)){const t=e.toConfig();return new w.hI({...t,types:()=>l(t.types)})}if((0,w.oF)(e)){const t=e.toConfig();return new w.Zb({...t,values:ut(t.values,(e=>e))})}if((0,w.qK)(e)){const t=e.toConfig();return new w.zP({...t,fields:()=>ut(t.fields,(e=>({...e,type:r(e.type)})))})}(0,p.V)(!1,"Unexpected type: "+(0,c.N)(e))}));return new H.V4({...t,types:Object.values(n),directives:ct(t.directives).map((function(e){const t=e.toConfig();return new G.RR({...t,locations:pt(t.locations,(e=>e)),args:a(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return(0,w.Fs)(e)?new w.KT(r(e.ofType)):(0,w.bd)(e)?new w.Gc(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return ut(e,(e=>({...e,type:r(e.type)})))}function s(e){return ut(e,(e=>({...e,type:r(e.type),args:e.args&&a(e.args)})))}function l(e){return ct(e).map(i)}}function ut(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(st.p))n[r]=t(e[r]);return n}function ct(e){return pt(e,(e=>e.name))}function pt(e,t){return e.slice().sort(((e,n)=>{const r=t(e),i=t(n);return(0,st.p)(r,i)}))}var dt=n(7312),ft=n(55);function ht(e){return gt(e,(e=>!(0,G.Qe)(e)),vt)}function mt(e){return gt(e,G.Qe,k.isIntrospectionType)}function vt(e){return!(0,Q.PZ)(e)&&!(0,k.isIntrospectionType)(e)}function gt(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[yt(e),...r.map((e=>function(e){return St(e)+"directive @"+e.name+_t(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>bt(e)))].filter(Boolean).join("\n\n")}function yt(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),St(e)+`schema {\n${t.join("\n")}\n}`}function bt(e){return(0,w.lg)(e)?function(e){return St(e)+`scalar ${e.name}`+function(e){if(null==e.specifiedByURL)return"";return` @specifiedBy(url: ${(0,ee.y)({kind:E.b.STRING,value:e.specifiedByURL})})`}(e)}(e):(0,w.YQ)(e)?function(e){return St(e)+`type ${e.name}`+Et(e)+wt(e)}(e):(0,w.kD)(e)?function(e){return St(e)+`interface ${e.name}`+Et(e)+wt(e)}(e):(0,w.CK)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return St(e)+"union "+e.name+n}(e):(0,w.oF)(e)?function(e){const t=e.getValues().map(((e,t)=>St(e," ",!t)+" "+e.name+xt(e.deprecationReason)));return St(e)+`enum ${e.name}`+kt(t)}(e):(0,w.qK)(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>St(e," ",!t)+" "+Tt(e)));return St(e)+`input ${e.name}`+kt(t)}(e):void(0,p.V)(!1,"Unexpected type: "+(0,c.N)(e))}function Et(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function wt(e){return kt(Object.values(e.getFields()).map(((e,t)=>St(e," ",!t)+" "+e.name+_t(e.args," ")+": "+String(e.type)+xt(e.deprecationReason))))}function kt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function _t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(Tt).join(", ")+")":"(\n"+e.map(((e,n)=>St(e," "+t,!n)+" "+t+Tt(e))).join("\n")+"\n"+t+")"}function Tt(e){const t=(0,ft.K)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,ee.y)(t)}`),n+xt(e.deprecationReason)}function xt(e){if(null==e)return"";if(e!==G.Il){return` @deprecated(reason: ${(0,ee.y)({kind:E.b.STRING,value:e})})`}return" @deprecated"}function St(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{description:r}=e;if(null==r)return"";return(t&&!n?"\n"+t:t)+(0,ee.y)({kind:E.b.STRING,value:r,block:(0,dt.CS)(r)}).replace(/\n/g,"\n"+t)+"\n"}function Ct(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:E.b.DOCUMENT,definitions:t}}function Nt(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case E.b.OPERATION_DEFINITION:t.push(i);break;case E.b.FRAGMENT_DEFINITION:n[i.name.value]=At(i.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of At(i.selectionSet))Ot(t,n,e);r[i.name?i.name.value:""]={kind:E.b.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===E.b.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return r}function Ot(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)Ot(e,t,n)}}function At(e){const t=[];return(0,te.YR)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function Dt(e){const t=(0,W._)(e)?e:new W.k(e),n=t.body,r=new X.J(t);let i="",o=!1;for(;r.advance().kind!==Z.Y.EOF;){const e=r.token,t=e.kind,a=!(0,X.Z)(e.kind);o&&(a||e.kind===Z.Y.SPREAD)&&(i+=" ");const s=n.slice(e.start,e.end);t===Z.Y.BLOCK_STRING?i+=(0,dt.yo)(e.value,{minimize:!0}):i+=s,o=a}return i}function It(e){const t=Lt(e);if(t)throw t;return e}function Lt(e){if("string"===typeof e||(0,o.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new v.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,Y.I)(e)}catch(t){return t}}var Ft,Rt,Mt=n(8303);function Pt(e,t){return jt(e,t).filter((e=>e.type in Ft))}function Vt(e,t){return jt(e,t).filter((e=>e.type in Rt))}function jt(e,t){return[...$t(e,t),...Ut(e,t)]}function Ut(e,t){const n=[],r=Xt(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:Ft.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const e=Xt(i.args,o.args);for(const t of e.added)(0,w.xP)(t)&&n.push({type:Ft.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${i.name} was added.`});for(const t of e.removed)n.push({type:Ft.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:Ft.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const t of i.locations)o.locations.includes(t)||n.push({type:Ft.DIRECTIVE_LOCATION_REMOVED,description:`${t} was removed from ${i.name}.`})}return n}function $t(e,t){const n=[],r=Xt(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Ft.TYPE_REMOVED,description:(0,Q.PZ)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)(0,w.oF)(i)&&(0,w.oF)(o)?n.push(...Bt(i,o)):(0,w.CK)(i)&&(0,w.CK)(o)?n.push(...qt(i,o)):(0,w.qK)(i)&&(0,w.qK)(o)?n.push(...zt(i,o)):(0,w.YQ)(i)&&(0,w.YQ)(o)||(0,w.kD)(i)&&(0,w.kD)(o)?n.push(...Gt(i,o),...Ht(i,o)):i.constructor!==o.constructor&&n.push({type:Ft.TYPE_CHANGED_KIND,description:`${i.name} changed from ${Kt(i)} to ${Kt(o)}.`});return n}function zt(e,t){const n=[],r=Xt(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)(0,w.YX)(i)?n.push({type:Ft.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Rt.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(const i of r.removed)n.push({type:Ft.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted){Wt(i.type,o.type)||n.push({type:Ft.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`})}return n}function qt(e,t){const n=[],r=Xt(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:Rt.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:Ft.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function Bt(e,t){const n=[],r=Xt(e.getValues(),t.getValues());for(const i of r.added)n.push({type:Rt.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:Ft.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function Ht(e,t){const n=[],r=Xt(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:Rt.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:Ft.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function Gt(e,t){const n=[],r=Xt(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:Ft.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted){n.push(...Qt(e,i,o));Yt(i.type,o.type)||n.push({type:Ft.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`})}return n}function Qt(e,t,n){const r=[],i=Xt(t.args,n.args);for(const o of i.removed)r.push({type:Ft.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,a]of i.persisted){if(Wt(o.type,a.type)){if(void 0!==o.defaultValue)if(void 0===a.defaultValue)r.push({type:Rt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const n=Jt(o.defaultValue,o.type),i=Jt(a.defaultValue,a.type);n!==i&&r.push({type:Rt.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${n} to ${i}.`})}}else r.push({type:Ft.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`})}for(const o of i.added)(0,w.xP)(o)?r.push({type:Ft.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:Rt.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function Yt(e,t){return(0,w.Fs)(e)?(0,w.Fs)(t)&&Yt(e.ofType,t.ofType)||(0,w.bd)(t)&&Yt(e,t.ofType):(0,w.bd)(e)?(0,w.bd)(t)&&Yt(e.ofType,t.ofType):(0,w.sy)(t)&&e.name===t.name||(0,w.bd)(t)&&Yt(e,t.ofType)}function Wt(e,t){return(0,w.Fs)(e)?(0,w.Fs)(t)&&Wt(e.ofType,t.ofType):(0,w.bd)(e)?(0,w.bd)(t)&&Wt(e.ofType,t.ofType)||!(0,w.bd)(t)&&Wt(e.ofType,t):(0,w.sy)(t)&&e.name===t.name}function Kt(e){return(0,w.lg)(e)?"a Scalar type":(0,w.YQ)(e)?"an Object type":(0,w.kD)(e)?"an Interface type":(0,w.CK)(e)?"a Union type":(0,w.oF)(e)?"an Enum type":(0,w.qK)(e)?"an Input type":void(0,p.V)(!1,"Unexpected type: "+(0,c.N)(e))}function Jt(e,t){const n=(0,ft.K)(e,t);return null!=n||(0,p.V)(!1),(0,ee.y)((0,Mt.M)(n))}function Xt(e,t){const n=[],r=[],i=[],o=(0,Ke.K)(e,(e=>{let{name:t}=e;return t})),a=(0,Ke.K)(t,(e=>{let{name:t}=e;return t}));for(const s of e){const e=a[s.name];void 0===e?r.push(s):i.push([s,e])}for(const s of t)void 0===o[s.name]&&n.push(s);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Ft||(Ft={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Rt||(Rt={}));var Zt=n(248),en=n(8912),tn=n(9336),nn=n(2072),rn=n(2720),on=n(4391)},3669:(e,t,n)=>{"use strict";function r(e,t,n){return{prev:e,key:t,typename:n}}function i(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}n.d(t,{A:()=>i,f:()=>r})},3515:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{U:()=>r})},6815:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});const r=5;function i(e,t){const[n,i]=t?[e,t]:[void 0,e];let o=" Did you mean ";n&&(o+=n+" ");const a=i.map((e=>`"${e}"`));switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}const s=a.slice(0,r),l=s.pop();return o+s.join(", ")+", or "+l+"?"}},4954:(e,t,n)=>{"use strict";function r(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}n.d(t,{$:()=>r})},9788:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});const r=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"===typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"===typeof t?t:a(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const n=Math.min(r,e.length),o=e.length-n,s=[];for(let r=0;r<n;++r)s.push(a(e[r],t));1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`);return"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){const t=e.constructor.name;if("string"===typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map((e=>{let[n,r]=e;return n+": "+a(r,t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},3966:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(9788);const i=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.N)(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}},3444:(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,{V:()=>r})},9571:(e,t,n)=>{"use strict";function r(e){return"object"===typeof e&&"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}n.d(t,{A:()=>r})},3628:(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,{Z:()=>r})},3041:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}n.d(t,{K:()=>r})},2564:(e,t,n)=>{"use strict";function r(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}n.d(t,{L:()=>r})},513:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}n.d(t,{I:()=>r})},7407:(e,t,n)=>{"use strict";function r(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let o=e.charCodeAt(n),s=t.charCodeAt(r);if(a(o)&&a(s)){let l=0;do{++n,l=10*l+o-i,o=e.charCodeAt(n)}while(a(o)&&l>0);let u=0;do{++r,u=10*u+s-i,s=t.charCodeAt(r)}while(a(s)&&u>0);if(l<u)return-1;if(l>u)return 1}else{if(o<s)return-1;if(o>s)return 1;++n,++r}}return e.length-t.length}n.d(t,{p:()=>r});const i=48,o=57;function a(e){return!isNaN(e)&&i<=e&&e<=o}},8523:(e,t,n)=>{"use strict";function r(e){return e.map((e=>"number"===typeof e?"["+e.toString()+"]":"."+e)).join("")}n.d(t,{q:()=>r})},5624:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(7407);function i(e,t){const n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1;for(const r of t){const e=i.measure(r,a);void 0!==e&&(n[r]=e)}return Object.keys(n).sort(((e,t)=>{const i=n[e]-n[t];return 0!==i?i:(0,r.p)(e,t)}))}class o{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=a(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const l=this._rows;for(let a=0;a<=s;a++)l[0][a]=a;for(let a=1;a<=o;a++){const e=l[(a-1)%3],n=l[a%3];let o=n[0]=a;for(let t=1;t<=s;t++){const s=r[a-1]===i[t-1]?0:1;let u=Math.min(e[t]+1,n[t-1]+1,e[t-1]+s);if(a>1&&t>1&&r[a-1]===i[t-2]&&r[a-2]===i[t-1]){const e=l[(a-2)%3][t-2];u=Math.min(u,e+1)}u<o&&(o=u),n[t]=u}if(o>t)return}const u=l[o%3][s];return u<=t?u:void 0}}function a(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},3456:(e,t,n)=>{"use strict";function r(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}n.d(t,{z:()=>r})},4740:(e,t,n)=>{"use strict";n.d(t,{Ll:()=>s,aD:()=>o,aZ:()=>r,cE:()=>l,ou:()=>i});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const 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=new Set(Object.keys(o));function s(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},7312:(e,t,n)=>{"use strict";n.d(t,{CS:()=>a,OC:()=>i,yo:()=>s});var r=n(5843);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<e.length;++s){var a;const t=e[s],l=o(t);l!==t.length&&(r=null!==(a=r)&&void 0!==a?a:s,i=s,0!==s&&l<n&&(n=l))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,r.i0)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)}function s(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every((e=>0===e.length||(0,r.i0)(e.charCodeAt(0)))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,p=!(null!==t&&void 0!==t&&t.minimize)&&(!o||e.length>70||c||a||s);let d="";const f=o&&(0,r.i0)(e.charCodeAt(0));return(p&&!f||a)&&(d+="\n"),d+=n,(p||c)&&(d+="\n"),'"""'+d+'"""'}},5843:(e,t,n)=>{"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{i0:()=>r,un:()=>a,xr:()=>s,yp:()=>i})},6542:(e,t,n)=>{"use strict";var r;n.d(t,{H:()=>r}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(r||(r={}))},4705:(e,t,n)=>{"use strict";var r;n.d(t,{b:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},378:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,Z:()=>u});var r=n(1567),i=n(4740),o=n(7312),a=n(5843),s=n(9305);class l{constructor(e){const t=new i.ou(s.Y.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.Y.EOF)do{if(e.next)e=e.next;else{const t=v(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===s.Y.COMMENT);return e}}function u(e){return e===s.Y.BANG||e===s.Y.DOLLAR||e===s.Y.AMP||e===s.Y.PAREN_L||e===s.Y.PAREN_R||e===s.Y.SPREAD||e===s.Y.COLON||e===s.Y.EQUALS||e===s.Y.AT||e===s.Y.BRACKET_L||e===s.Y.BRACKET_R||e===s.Y.BRACE_L||e===s.Y.PIPE||e===s.Y.BRACE_R}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function p(e,t){return d(e.charCodeAt(t))&&f(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function h(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.Y.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,o){const a=e.line,s=1+n-e.lineStart;return new i.ou(t,n,r,a,s,o)}function v(e,t){const n=e.source.body,i=n.length;let o=t;for(;o<i;){const t=n.charCodeAt(o);switch(t){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return g(e,o);case 33:return m(e,s.Y.BANG,o,o+1);case 36:return m(e,s.Y.DOLLAR,o,o+1);case 38:return m(e,s.Y.AMP,o,o+1);case 40:return m(e,s.Y.PAREN_L,o,o+1);case 41:return m(e,s.Y.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return m(e,s.Y.SPREAD,o,o+3);break;case 58:return m(e,s.Y.COLON,o,o+1);case 61:return m(e,s.Y.EQUALS,o,o+1);case 64:return m(e,s.Y.AT,o,o+1);case 91:return m(e,s.Y.BRACKET_L,o,o+1);case 93:return m(e,s.Y.BRACKET_R,o,o+1);case 123:return m(e,s.Y.BRACE_L,o,o+1);case 124:return m(e,s.Y.PIPE,o,o+1);case 125:return m(e,s.Y.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?S(e,o):E(e,o)}if((0,a.yp)(t)||45===t)return y(e,o,t);if((0,a.un)(t))return C(e,o);throw(0,r.I)(e.source,o,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||p(n,o)?`Unexpected character: ${h(e,o)}.`:`Invalid character: ${h(e,o)}.`)}return m(e,s.Y.EOF,i,i)}function g(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else{if(!p(n,i))break;i+=2}}return m(e,s.Y.COMMENT,t,i,n.slice(t+1,i))}function y(e,t,n){const i=e.source.body;let o=t,l=n,u=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,a.yp)(l))throw(0,r.I)(e.source,o,`Invalid number, unexpected digit after 0: ${h(e,o)}.`)}else o=b(e,o,l),l=i.charCodeAt(o);if(46===l&&(u=!0,l=i.charCodeAt(++o),o=b(e,o,l),l=i.charCodeAt(o)),69!==l&&101!==l||(u=!0,l=i.charCodeAt(++o),43!==l&&45!==l||(l=i.charCodeAt(++o)),o=b(e,o,l),l=i.charCodeAt(o)),46===l||(0,a.un)(l))throw(0,r.I)(e.source,o,`Invalid number, expected digit but got: ${h(e,o)}.`);return m(e,u?s.Y.FLOAT:s.Y.INT,t,o,i.slice(t,o))}function b(e,t,n){if(!(0,a.yp)(n))throw(0,r.I)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const i=e.source.body;let o=t+1;for(;(0,a.yp)(i.charCodeAt(o));)++o;return o}function E(e,t){const n=e.source.body,i=n.length;let o=t+1,a=o,l="";for(;o<i;){const i=n.charCodeAt(o);if(34===i)return l+=n.slice(a,o),m(e,s.Y.STRING,t,o+1,l);if(92!==i){if(10===i||13===i)break;if(c(i))++o;else{if(!p(n,o))throw(0,r.I)(e.source,o,`Invalid character within String: ${h(e,o)}.`);o+=2}}else{l+=n.slice(a,o);const t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?w(e,o):k(e,o):x(e,o);l+=t.value,o+=t.size,a=o}}throw(0,r.I)(e.source,o,"Unterminated string.")}function w(e,t){const n=e.source.body;let i=0,o=3;for(;o<12;){const e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if(i=i<<4|T(e),i<0)break}throw(0,r.I)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function k(e,t){const n=e.source.body,i=_(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=_(n,t+8);if(f(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.I)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function _(e,t){return T(e.charCodeAt(t))<<12|T(e.charCodeAt(t+1))<<8|T(e.charCodeAt(t+2))<<4|T(e.charCodeAt(t+3))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function x(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,r.I)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function S(e,t){const n=e.source.body,i=n.length;let a=e.lineStart,l=t+3,u=l,d="";const f=[];for(;l<i;){const i=n.charCodeAt(l);if(34===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){d+=n.slice(u,l),f.push(d);const r=m(e,s.Y.BLOCK_STRING,t,l+3,(0,o.OC)(f).join("\n"));return e.line+=f.length-1,e.lineStart=a,r}if(92!==i||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==i&&13!==i)if(c(i))++l;else{if(!p(n,l))throw(0,r.I)(e.source,l,`Invalid character within String: ${h(e,l)}.`);l+=2}else d+=n.slice(u,l),f.push(d),13===i&&10===n.charCodeAt(l+1)?l+=2:++l,d="",u=l,a=l;else d+=n.slice(u,l),u=l+1,l+=4}throw(0,r.I)(e.source,l,"Unterminated string.")}function C(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,a.xr)(e))break;++i}return m(e,s.Y.NAME,t,i,n.slice(t,i))}},7861:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(3444);const i=/\r\n|[\n\r]/g;function o(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"===typeof a.index||(0,r.V)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}}},1793:(e,t,n)=>{"use strict";n.d(t,{$x:()=>p,Mb:()=>f,qg:()=>c,u8:()=>d});var r=n(1567),i=n(4740),o=n(6542),a=n(4705),s=n(378),l=n(859),u=n(9305);function c(e,t){return new h(e,t).parseDocument()}function p(e,t){const n=new h(e,t);n.expectToken(u.Y.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(u.Y.EOF),r}function d(e,t){const n=new h(e,t);n.expectToken(u.Y.SOF);const r=n.parseConstValueLiteral();return n.expectToken(u.Y.EOF),r}function f(e,t){const n=new h(e,t);n.expectToken(u.Y.SOF);const r=n.parseTypeReference();return n.expectToken(u.Y.EOF),r}class h{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,l._)(e)?e:new l.k(e);this._lexer=new s.J(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(u.Y.NAME);return this.node(e,{kind:a.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.b.DOCUMENT,definitions:this.many(u.Y.SOF,this.parseDefinition,u.Y.EOF)})}parseDefinition(){if(this.peek(u.Y.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.Y.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.I)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.Y.BRACE_L))return this.node(e,{kind:a.b.OPERATION_DEFINITION,operation:i.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(u.Y.NAME)&&(n=this.parseName()),this.node(e,{kind:a.b.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.Y.NAME);switch(e.value){case"query":return i.cE.QUERY;case"mutation":return i.cE.MUTATION;case"subscription":return i.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.Y.PAREN_L,this.parseVariableDefinition,u.Y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.Y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.Y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(u.Y.DOLLAR),this.node(e,{kind:a.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.b.SELECTION_SET,selections:this.many(u.Y.BRACE_L,this.parseSelection,u.Y.BRACE_R)})}parseSelection(){return this.peek(u.Y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(u.Y.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.b.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.Y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.Y.PAREN_L,t,u.Y.PAREN_R)}parseArgument(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this._lexer.token,n=this.parseName();return this.expectToken(u.Y.COLON),this.node(t,{kind:a.b.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(u.Y.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(u.Y.NAME)?this.node(e,{kind:a.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:a.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case u.Y.BRACKET_L:return this.parseList(e);case u.Y.BRACE_L:return this.parseObject(e);case u.Y.INT:return this.advanceLexer(),this.node(t,{kind:a.b.INT,value:t.value});case u.Y.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.b.FLOAT,value:t.value});case u.Y.STRING:case u.Y.BLOCK_STRING:return this.parseStringLiteral();case u.Y.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.b.NULL});default:return this.node(t,{kind:a.b.ENUM,value:t.value})}case u.Y.DOLLAR:if(e){if(this.expectToken(u.Y.DOLLAR),this._lexer.token.kind===u.Y.NAME){const e=this._lexer.token.value;throw(0,r.I)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.b.STRING,value:e.value,block:e.kind===u.Y.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.b.LIST,values:this.any(u.Y.BRACKET_L,(()=>this.parseValueLiteral(e)),u.Y.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.b.OBJECT,fields:this.any(u.Y.BRACE_L,(()=>this.parseObjectField(e)),u.Y.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.Y.COLON),this.node(t,{kind:a.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(u.Y.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(u.Y.AT),this.node(t,{kind:a.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.Y.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(u.Y.BRACKET_R),t=this.node(e,{kind:a.b.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(u.Y.BANG)?this.node(e,{kind:a.b.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.Y.STRING)||this.peek(u.Y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(u.Y.BRACE_L,this.parseOperationTypeDefinition,u.Y.BRACE_R);return this.node(e,{kind:a.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.Y.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.b.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.Y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.Y.BRACE_L,this.parseFieldDefinition,u.Y.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.Y.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(u.Y.PAREN_L,this.parseInputValueDef,u.Y.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.Y.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(u.Y.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:a.b.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(u.Y.EQUALS)?this.delimitedMany(u.Y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(u.Y.BRACE_L,this.parseEnumValueDefinition,u.Y.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.I)(this._lexer.source,this._lexer.token.start,`${m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(u.Y.BRACE_L,this.parseInputValueDef,u.Y.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.Y.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(u.Y.BRACE_L,this.parseOperationTypeDefinition,u.Y.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.b.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.b.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.Y.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:a.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.Y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.H,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.I)(this._lexer.source,t.start,`Expected ${v(e)}, found ${m(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==u.Y.NAME||t.value!==e)throw(0,r.I)(this._lexer.source,t.start,`Expected "${e}", found ${m(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===u.Y.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!==e&&void 0!==e?e:this._lexer.token;return(0,r.I)(this._lexer.source,t.start,`Unexpected ${m(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==u.Y.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,r.I)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function m(e){const t=e.value;return v(e.kind)+(null!=t?` "${t}"`:"")}function v(e){return(0,s.Z)(e)?`"${e}"`:e}},6762:(e,t,n)=>{"use strict";n.d(t,{MD:()=>i,TZ:()=>l,VK:()=>a,_m:()=>o,a6:()=>p,aR:()=>s,dI:()=>u,fT:()=>d,i7:()=>f,xu:()=>c});var r=n(4705);function i(e){return o(e)||c(e)||d(e)}function o(e){return e.kind===r.b.OPERATION_DEFINITION||e.kind===r.b.FRAGMENT_DEFINITION}function a(e){return e.kind===r.b.FIELD||e.kind===r.b.FRAGMENT_SPREAD||e.kind===r.b.INLINE_FRAGMENT}function s(e){return e.kind===r.b.VARIABLE||e.kind===r.b.INT||e.kind===r.b.FLOAT||e.kind===r.b.STRING||e.kind===r.b.BOOLEAN||e.kind===r.b.NULL||e.kind===r.b.ENUM||e.kind===r.b.LIST||e.kind===r.b.OBJECT}function l(e){return s(e)&&(e.kind===r.b.LIST?e.values.some(l):e.kind===r.b.OBJECT?e.fields.some((e=>l(e.value))):e.kind!==r.b.VARIABLE)}function u(e){return e.kind===r.b.NAMED_TYPE||e.kind===r.b.LIST_TYPE||e.kind===r.b.NON_NULL_TYPE}function c(e){return e.kind===r.b.SCHEMA_DEFINITION||p(e)||e.kind===r.b.DIRECTIVE_DEFINITION}function p(e){return e.kind===r.b.SCALAR_TYPE_DEFINITION||e.kind===r.b.OBJECT_TYPE_DEFINITION||e.kind===r.b.INTERFACE_TYPE_DEFINITION||e.kind===r.b.UNION_TYPE_DEFINITION||e.kind===r.b.ENUM_TYPE_DEFINITION||e.kind===r.b.INPUT_OBJECT_TYPE_DEFINITION}function d(e){return e.kind===r.b.SCHEMA_EXTENSION||f(e)}function f(e){return e.kind===r.b.SCALAR_TYPE_EXTENSION||e.kind===r.b.OBJECT_TYPE_EXTENSION||e.kind===r.b.INTERFACE_TYPE_EXTENSION||e.kind===r.b.UNION_TYPE_EXTENSION||e.kind===r.b.ENUM_TYPE_EXTENSION||e.kind===r.b.INPUT_OBJECT_TYPE_EXTENSION}},6412:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,V:()=>i});var r=n(7861);function i(e){return o(e.source,(0,r.g)(e.source,e.start))}function o(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=1===t.line?n:0,u=t.column+l,c=`${e.name}:${s}:${u}\n`,p=r.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let r=0;r<d.length;r+=80)n.push(d.slice(r,r+80));return c+a([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+a([[s-1+" |",p[i-1]],[`${s} |`,d],["|","^".padStart(u)],[`${s+1} |`,p[i+1]]])}function a(e){const t=e.filter((e=>{let[t,n]=e;return void 0!==n})),n=Math.max(...t.map((e=>{let[t]=e;return t.length})));return t.map((e=>{let[t,r]=e;return t.padStart(n)+(r?" "+r:"")})).join("\n")}},7233:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(7312);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}const a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=n(9182);function l(e){return(0,s.YR)(e,u)}const u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=d("(",c(e.variableDefinitions,", "),")"),n=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:n,defaultValue:r,directives:i}=e;return t+": "+n+d(" = ",r)+d(" ",c(i," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return p(t)}},Field:{leave(e){let{alias:t,name:n,arguments:r,directives:i,selectionSet:o}=e;const a=d("",t,": ")+n;let s=a+d("(",c(r,", "),")");return s.length>80&&(s=a+d("(\n",f(c(r,"\n")),"\n)")),c([s,c(i," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},FragmentSpread:{leave:e=>{let{name:t,directives:n}=e;return"..."+t+d(" ",c(n," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:n,selectionSet:r}=e;return c(["...",d("on ",t),c(n," "),r]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:n,variableDefinitions:r,directives:i,selectionSet:o}=e;return`fragment ${t}${d("(",c(r,", "),")")} on ${n} ${d("",c(i," ")," ")}`+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:n}=e;return n?(0,r.yo)(t):`"${t.replace(i,o)}"`}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+c(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+c(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},Directive:{leave:e=>{let{name:t,arguments:n}=e;return"@"+t+d("(",c(n,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:n,operationTypes:r}=e;return d("",t,"\n")+c(["schema",c(n," "),p(r)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:n}=e;return t+": "+n}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return d("",t,"\n")+c(["scalar",n,c(r," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return d("",t,"\n")+c(["type",n,d("implements ",c(r," & ")),c(i," "),p(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:n,arguments:r,type:i,directives:o}=e;return d("",t,"\n")+n+(h(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+": "+i+d(" ",c(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:n,type:r,defaultValue:i,directives:o}=e;return d("",t,"\n")+c([n+": "+r,d("= ",i),c(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return d("",t,"\n")+c(["interface",n,d("implements ",c(r," & ")),c(i," "),p(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,types:i}=e;return d("",t,"\n")+c(["union",n,c(r," "),d("= ",c(i," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,values:i}=e;return d("",t,"\n")+c(["enum",n,c(r," "),p(i)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return d("",t,"\n")+c([n,c(r," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,fields:i}=e;return d("",t,"\n")+c(["input",n,c(r," "),p(i)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:n,arguments:r,repeatable:i,locations:o}=e;return d("",t,"\n")+"directive @"+n+(h(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+(i?" repeatable":"")+" on "+c(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:n}=e;return c(["extend schema",c(t," "),p(n)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:n}=e;return c(["extend scalar",t,c(n," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return c(["extend type",t,d("implements ",c(n," & ")),c(r," "),p(i)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return c(["extend interface",t,d("implements ",c(n," & ")),c(r," "),p(i)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:n,types:r}=e;return c(["extend union",t,c(n," "),d("= ",c(r," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:n,values:r}=e;return c(["extend enum",t,c(n," "),p(r)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:n,fields:r}=e;return c(["extend input",t,c(n," "),p(r)]," ")}}};function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var n;return null!==(n=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function p(e){return d("{\n",f(c(e,"\n")),"\n}")}function d(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function f(e){return d(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}},859:(e,t,n)=>{"use strict";n.d(t,{_:()=>s,k:()=>a});var r=n(3515),i=n(9788),o=n(3966);class a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||(0,r.U)(!1,`Body must be a string. Received: ${(0,i.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function s(e){return(0,o.h)(e,a)}},9305:(e,t,n)=>{"use strict";var r;n.d(t,{Y:()=>r}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}))},9182:(e,t,n)=>{"use strict";n.d(t,{UY:()=>p,XO:()=>c,YR:()=>l,oP:()=>u,sP:()=>s});var r=n(3515),i=n(9788),o=n(4740),a=n(4705);const s=Object.freeze({});function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.aD;const l=new Map;for(const r of Object.values(a.b))l.set(r,c(t,r));let u,p,d,f=Array.isArray(e),h=[e],m=-1,v=[],g=e;const y=[],b=[];do{m++;const e=m===h.length,a=e&&0!==v.length;if(e){if(p=0===b.length?void 0:y[y.length-1],g=d,d=b.pop(),a)if(f){g=g.slice();let e=0;for(const[t,n]of v){const r=t-e;null===n?(g.splice(r,1),e++):g[r]=n}}else{g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g));for(const[e,t]of v)g[e]=t}m=u.index,h=u.keys,v=u.edits,f=u.inArray,u=u.prev}else if(d){if(p=f?m:h[m],g=d[p],null===g||void 0===g)continue;y.push(p)}let c;if(!Array.isArray(g)){var E,w;(0,o.Ll)(g)||(0,r.U)(!1,`Invalid AST Node: ${(0,i.N)(g)}.`);const n=e?null===(E=l.get(g.kind))||void 0===E?void 0:E.leave:null===(w=l.get(g.kind))||void 0===w?void 0:w.enter;if(c=null===n||void 0===n?void 0:n.call(t,g,p,d,y,b),c===s)break;if(!1===c){if(!e){y.pop();continue}}else if(void 0!==c&&(v.push([p,c]),!e)){if(!(0,o.Ll)(c)){y.pop();continue}g=c}}var k;if(void 0===c&&a&&v.push([p,g]),e)y.pop();else u={inArray:f,index:m,keys:h,edits:v,prev:u},f=Array.isArray(g),h=f?g:null!==(k=n[g.kind])&&void 0!==k?k:[],m=-1,v=[],d&&b.push(d),d=g}while(void 0!==u);return 0!==v.length?v[v.length-1][1]:e}function u(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.b)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=c(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const l={enter(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const a=r[0];for(let u=0;u<e.length;u++)if(null===t[u]){var l;const n=null===(l=o[u])||void 0===l?void 0:l.apply(e[u],r);if(!1===n)t[u]=a;else if(n===s)t[u]=s;else if(void 0!==n)return n}},leave(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=r[0];for(let u=0;u<e.length;u++)if(null===t[u]){var l;const n=null===(l=a[u])||void 0===l?void 0:l.apply(e[u],r);if(n===s)t[u]=s;else if(void 0!==n&&!1!==n)return n}else t[u]===o&&(t[u]=null)}};n[r]=l}return n}function c(e,t){const n=e[t];return"object"===typeof n?n:"function"===typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function p(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r}},237:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,I:()=>a});var r=n(3515),i=n(3585),o=n(5843);function a(e){if(null!=e||(0,r.U)(!1,"Must provide name."),"string"===typeof e||(0,r.U)(!1,"Expected name to be a string."),0===e.length)throw new i.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,o.xr)(e.charCodeAt(t)))throw new i.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,o.un)(e.charCodeAt(0)))throw new i.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function s(e){if("true"===e||"false"===e||"null"===e)throw new i.eO(`Enum values cannot be named: ${e}`);return a(e)}},6333:(e,t,n)=>{"use strict";n.d(t,{Zb:()=>ge,zP:()=>be,VA:()=>he,KT:()=>Q,Gc:()=>Y,bh:()=>ae,Ag:()=>oe,hI:()=>me,g0:()=>de,N_:()=>G,Ye:()=>B,el:()=>A,Yq:()=>I,L9:()=>V,qL:()=>S,D0:()=>z,dL:()=>F,sF:()=>te,ZX:()=>M,wG:()=>X,qC:()=>T,yh:()=>U,Zx:()=>k,j:()=>E,EG:()=>N,B3:()=>K,Kx:()=>ue,MR:()=>ne,yl:()=>Z,Lc:()=>H,ML:()=>q,oF:()=>O,qK:()=>D,dX:()=>P,kD:()=>x,zf:()=>$,Fs:()=>L,sy:()=>ee,bd:()=>R,wj:()=>J,YQ:()=>_,oH:()=>j,xP:()=>fe,YX:()=>we,lg:()=>w,Xj:()=>b,CK:()=>C,lS:()=>W,qN:()=>ie,aj:()=>re});var r=n(3515),i=n(6815);function o(e){return e}var a=n(9788),s=n(3966),l=n(3628),u=n(3041),c=n(2564),p=n(513),d=n(5624),f=n(3456),h=n(3585),m=n(4705),v=n(7233),g=n(9336),y=n(237);function b(e){return w(e)||_(e)||x(e)||C(e)||O(e)||D(e)||L(e)||R(e)}function E(e){if(!b(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL type.`);return e}function w(e){return(0,s.h)(e,oe)}function k(e){if(!w(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Scalar type.`);return e}function _(e){return(0,s.h)(e,ae)}function T(e){if(!_(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Object type.`);return e}function x(e){return(0,s.h)(e,he)}function S(e){if(!x(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Interface type.`);return e}function C(e){return(0,s.h)(e,me)}function N(e){if(!C(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Union type.`);return e}function O(e){return(0,s.h)(e,ge)}function A(e){if(!O(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Enum type.`);return e}function D(e){return(0,s.h)(e,be)}function I(e){if(!D(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Input Object type.`);return e}function L(e){return(0,s.h)(e,Q)}function F(e){if(!L(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL List type.`);return e}function R(e){return(0,s.h)(e,Y)}function M(e){if(!R(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL Non-Null type.`);return e}function P(e){return w(e)||O(e)||D(e)||W(e)&&P(e.ofType)}function V(e){if(!P(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL input type.`);return e}function j(e){return w(e)||_(e)||x(e)||C(e)||O(e)||W(e)&&j(e.ofType)}function U(e){if(!j(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL output type.`);return e}function $(e){return w(e)||O(e)}function z(e){if(!$(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL leaf type.`);return e}function q(e){return _(e)||x(e)||C(e)}function B(e){if(!q(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL composite type.`);return e}function H(e){return x(e)||C(e)}function G(e){if(!H(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL abstract type.`);return e}class Q{constructor(e){b(e)||(0,r.U)(!1,`Expected ${(0,a.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Y{constructor(e){J(e)||(0,r.U)(!1,`Expected ${(0,a.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function W(e){return L(e)||R(e)}function K(e){if(!W(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL wrapping type.`);return e}function J(e){return b(e)&&!R(e)}function X(e){if(!J(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL nullable type.`);return e}function Z(e){if(e)return R(e)?e.ofType:e}function ee(e){return w(e)||_(e)||x(e)||C(e)||O(e)||D(e)}function te(e){if(!ee(e))throw new Error(`Expected ${(0,a.N)(e)} to be a GraphQL named type.`);return e}function ne(e){if(e){let t=e;for(;W(t);)t=t.ofType;return t}}function re(e){return"function"===typeof e?e():e}function ie(e){return"function"===typeof e?e():e}class oe{constructor(e){var t,n,i,s;const l=null!==(t=e.parseValue)&&void 0!==t?t:o;this.name=(0,y.I)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:o,this.parseValue=l,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>l((0,g.F)(e,t)),this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(s=e.extensionASTNodes)&&void 0!==s?s:[],null==e.specifiedByURL||"string"===typeof e.specifiedByURL||(0,r.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,a.N)(e.specifiedByURL)}.`),null==e.serialize||"function"===typeof e.serialize||(0,r.U)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||(0,r.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ae{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>le(e),this._interfaces=()=>se(e),null==e.isTypeOf||"function"===typeof e.isTypeOf||(0,r.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,a.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:pe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function se(e){var t;const n=re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function le(e){const t=ie(e.fields);return ce(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,p.I)(t,((t,n)=>{var i;ce(t)||(0,r.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"===typeof t.resolve||(0,r.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,a.N)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return ce(o)||(0,r.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,y.I)(n),description:t.description,type:t.type,args:ue(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}}))}function ue(e){return Object.entries(e).map((e=>{let[t,n]=e;return{name:(0,y.I)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,f.z)(n.extensions),astNode:n.astNode}}))}function ce(e){return(0,l.Z)(e)&&!Array.isArray(e)}function pe(e){return(0,p.I)(e,(e=>({description:e.description,type:e.type,args:de(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function de(e){return(0,c.L)(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function fe(e){return R(e.type)&&void 0===e.defaultValue}class he{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=le.bind(void 0,e),this._interfaces=se.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:pe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class me{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ve.bind(void 0,e),null==e.resolveType||"function"===typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,a.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"===typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ve(e){const t=re(e.types);return Array.isArray(t)||(0,r.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ge{constructor(e){var t,n,i;this.name=(0,y.I)(e.name),this.description=e.description,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,ce(i=e.values)||(0,r.U)(!1,`${n} values must be an object with value names as keys.`),Object.entries(i).map((e=>{let[t,i]=e;return ce(i)||(0,r.U)(!1,`${n}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,a.N)(i)}.`),{name:(0,y.A)(t),description:i.description,value:void 0!==i.value?i.value:t,deprecationReason:i.deprecationReason,extensions:(0,f.z)(i.extensions),astNode:i.astNode}}))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=(0,u.K)(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h.eO(`Enum "${this.name}" cannot represent value: ${(0,a.N)(e)}`);return t.name}parseValue(e){if("string"!==typeof e){const t=(0,a.N)(e);throw new h.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ye(this,t))}const t=this.getValue(e);if(null==t)throw new h.eO(`Value "${e}" does not exist in "${this.name}" enum.`+ye(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.b.ENUM){const t=(0,v.y)(e);throw new h.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ye(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,v.y)(e);throw new h.eO(`Value "${t}" does not exist in "${this.name}" enum.`+ye(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,c.L)(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ye(e,t){const n=e.getValues().map((e=>e.name)),r=(0,d.x)(t,n);return(0,i.a)("the enum value",r)}class be{constructor(e){var t;this.name=(0,y.I)(e.name),this.description=e.description,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ee.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,p.I)(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Ee(e){const t=ie(e.fields);return ce(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,p.I)(t,((t,n)=>(!("resolve"in t)||(0,r.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,y.I)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode})))}function we(e){return R(e.type)&&void 0===e.defaultValue}},9976:(e,t,n)=>{"use strict";n.d(t,{HQ:()=>m,Il:()=>g,MQ:()=>v,Qe:()=>w,RR:()=>h,gw:()=>b,qT:()=>d,rc:()=>E,yK:()=>y,yq:()=>f});var r=n(3515),i=n(9788),o=n(3966),a=n(3628),s=n(3456),l=n(6542),u=n(237),c=n(6333),p=n(3721);function d(e){return(0,o.h)(e,h)}function f(e){if(!d(e))throw new Error(`Expected ${(0,i.N)(e)} to be a GraphQL directive.`);return e}class h{constructor(e){var t,n;this.name=(0,u.I)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.z)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.U)(!1,`@${e.name} locations must be an Array.`);const i=null!==(n=e.args)&&void 0!==n?n:{};(0,a.Z)(i)&&!Array.isArray(i)||(0,r.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,c.Kx)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,c.g0)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const m=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[l.H.FIELD,l.H.FRAGMENT_SPREAD,l.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(p.kk),description:"Included when true."}}}),v=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[l.H.FIELD,l.H.FRAGMENT_SPREAD,l.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(p.kk),description:"Skipped when true."}}}),g="No longer supported",y=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[l.H.FIELD_DEFINITION,l.H.ARGUMENT_DEFINITION,l.H.INPUT_FIELD_DEFINITION,l.H.ENUM_VALUE],args:{reason:{type:p.FV,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:g}}}),b=new h({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[l.H.SCALAR],args:{url:{type:new c.Gc(p.FV),description:"The URL that specifies the behavior of this scalar."}}}),E=Object.freeze([m,v,y,b]);function w(e){return E.some((t=>{let{name:n}=t;return n===e.name}))}},2915:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SchemaMetaFieldDef:()=>b,TypeKind:()=>g,TypeMetaFieldDef:()=>E,TypeNameMetaFieldDef:()=>w,__Directive:()=>p,__DirectiveLocation:()=>d,__EnumValue:()=>v,__Field:()=>h,__InputValue:()=>m,__Schema:()=>c,__Type:()=>f,__TypeKind:()=>y,introspectionTypes:()=>k,isIntrospectionType:()=>_});var r=n(9788),i=n(3444),o=n(6542),a=n(7233),s=n(55),l=n(6333),u=n(3721);const c=new l.bh({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:u.FV,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new l.Gc(new l.KT(new l.Gc(f))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new l.Gc(f),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:f,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:f,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new l.Gc(new l.KT(new l.Gc(p))),resolve:e=>e.getDirectives()}})}),p=new l.bh({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},isRepeatable:{type:new l.Gc(u.kk),resolve:e=>e.isRepeatable},locations:{type:new l.Gc(new l.KT(new l.Gc(d))),resolve:e=>e.locations},args:{type:new l.Gc(new l.KT(new l.Gc(m))),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter((e=>null==e.deprecationReason))}}})}),d=new l.Zb({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:o.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:o.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:o.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:o.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:o.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:o.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:o.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:o.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:o.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:o.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:o.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:o.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:o.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:o.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:o.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:o.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:o.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:o.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:o.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),f=new l.bh({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new l.Gc(y),resolve:e=>(0,l.lg)(e)?g.SCALAR:(0,l.YQ)(e)?g.OBJECT:(0,l.kD)(e)?g.INTERFACE:(0,l.CK)(e)?g.UNION:(0,l.oF)(e)?g.ENUM:(0,l.qK)(e)?g.INPUT_OBJECT:(0,l.Fs)(e)?g.LIST:(0,l.bd)(e)?g.NON_NULL:void(0,i.V)(!1,`Unexpected type: "${(0,r.N)(e)}".`)},name:{type:u.FV,resolve:e=>"name"in e?e.name:void 0},description:{type:u.FV,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:u.FV,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new l.KT(new l.Gc(h)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if((0,l.YQ)(e)||(0,l.kD)(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new l.KT(new l.Gc(f)),resolve(e){if((0,l.YQ)(e)||(0,l.kD)(e))return e.getInterfaces()}},possibleTypes:{type:new l.KT(new l.Gc(f)),resolve(e,t,n,r){let{schema:i}=r;if((0,l.Lc)(e))return i.getPossibleTypes(e)}},enumValues:{type:new l.KT(new l.Gc(v)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if((0,l.oF)(e)){const t=e.getValues();return n?t:t.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new l.KT(new l.Gc(m)),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;if((0,l.qK)(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},ofType:{type:f,resolve:e=>"ofType"in e?e.ofType:void 0}})}),h=new l.bh({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},args:{type:new l.Gc(new l.KT(new l.Gc(m))),args:{includeDeprecated:{type:u.kk,defaultValue:!1}},resolve(e,t){let{includeDeprecated:n}=t;return n?e.args:e.args.filter((e=>null==e.deprecationReason))}},type:{type:new l.Gc(f),resolve:e=>e.type},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})}),m=new l.bh({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},type:{type:new l.Gc(f),resolve:e=>e.type},defaultValue:{type:u.FV,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=(0,s.K)(n,t);return r?(0,a.y)(r):null}},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})}),v=new l.bh({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new l.Gc(u.FV),resolve:e=>e.name},description:{type:u.FV,resolve:e=>e.description},isDeprecated:{type:new l.Gc(u.kk),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:u.FV,resolve:e=>e.deprecationReason}})});var g;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(g||(g={}));const y=new l.Zb({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:g.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:g.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:g.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:g.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:g.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:g.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:g.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:g.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:new l.Gc(c),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,r)=>{let{schema:i}=r;return i},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},E={name:"__type",type:f,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.Gc(u.FV),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,t,n,r)=>{let{name:i}=t,{schema:o}=r;return o.getType(i)},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},w={name:"__typename",type:new l.Gc(u.FV),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,r)=>{let{parentType:i}=r;return i.name},deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},k=Object.freeze([c,p,d,f,h,m,v,y]);function _(e){return k.some((t=>{let{name:n}=t;return e.name===n}))}},3721:(e,t,n)=>{"use strict";n.d(t,{BW:()=>u,FV:()=>f,Fh:()=>p,N1:()=>m,PZ:()=>g,YC:()=>v,kk:()=>h,nM:()=>c,qS:()=>d});var r=n(9788),i=n(3628),o=n(3585),a=n(4705),s=n(7233),l=n(6333);const u=2147483647,c=-2147483648,p=new l.Ag({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=y(e);if("boolean"===typeof t)return t?1:0;let n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isInteger(n))throw new o.eO(`Int cannot represent non-integer value: ${(0,r.N)(t)}`);if(n>u||n<c)throw new o.eO("Int cannot represent non 32-bit signed integer value: "+(0,r.N)(t));return n},parseValue(e){if("number"!==typeof e||!Number.isInteger(e))throw new o.eO(`Int cannot represent non-integer value: ${(0,r.N)(e)}`);if(e>u||e<c)throw new o.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==a.b.INT)throw new o.eO(`Int cannot represent non-integer value: ${(0,s.y)(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>u||t<c)throw new o.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),d=new l.Ag({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=y(e);if("boolean"===typeof t)return t?1:0;let n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),"number"!==typeof n||!Number.isFinite(n))throw new o.eO(`Float cannot represent non numeric value: ${(0,r.N)(t)}`);return n},parseValue(e){if("number"!==typeof e||!Number.isFinite(e))throw new o.eO(`Float cannot represent non numeric value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.FLOAT&&e.kind!==a.b.INT)throw new o.eO(`Float cannot represent non numeric value: ${(0,s.y)(e)}`,e);return parseFloat(e.value)}}),f=new l.Ag({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=y(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if("number"===typeof t&&Number.isFinite(t))return t.toString();throw new o.eO(`String cannot represent value: ${(0,r.N)(e)}`)},parseValue(e){if("string"!==typeof e)throw new o.eO(`String cannot represent a non string value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.STRING)throw new o.eO(`String cannot represent a non string value: ${(0,s.y)(e)}`,{nodes:e});return e.value}}),h=new l.Ag({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=y(e);if("boolean"===typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,r.N)(t)}`)},parseValue(e){if("boolean"!==typeof e)throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,r.N)(e)}`);return e},parseLiteral(e){if(e.kind!==a.b.BOOLEAN)throw new o.eO(`Boolean cannot represent a non boolean value: ${(0,s.y)(e)}`,{nodes:e});return e.value}}),m=new l.Ag({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=y(e);if("string"===typeof t)return t;if(Number.isInteger(t))return String(t);throw new o.eO(`ID cannot represent value: ${(0,r.N)(e)}`)},parseValue(e){if("string"===typeof e)return e;if("number"===typeof e&&Number.isInteger(e))return e.toString();throw new o.eO(`ID cannot represent value: ${(0,r.N)(e)}`)},parseLiteral(e){if(e.kind!==a.b.STRING&&e.kind!==a.b.INT)throw new o.eO("ID cannot represent a non-string and non-integer value: "+(0,s.y)(e),{nodes:e});return e.value}}),v=Object.freeze([f,p,d,h,m]);function g(e){return v.some((t=>{let{name:n}=t;return e.name===n}))}function y(e){if((0,i.Z)(e)){if("function"===typeof e.valueOf){const t=e.valueOf();if(!(0,i.Z)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}},6175:(e,t,n)=>{"use strict";n.d(t,{GU:()=>f,V4:()=>h,Wl:()=>d});var r=n(3515),i=n(9788),o=n(3966),a=n(3628),s=n(3456),l=n(4740),u=n(6333),c=n(9976),p=n(2915);function d(e){return(0,o.h)(e,h)}function f(e){if(!d(e))throw new Error(`Expected ${(0,i.N)(e)} to be a GraphQL schema.`);return e}class h{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,a.Z)(e)||(0,r.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.U)(!1,`"types" must be Array if provided but got: ${(0,i.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.U)(!1,`"directives" must be Array if provided but got: ${(0,i.N)(e.directives)}.`),this.description=e.description,this.extensions=(0,s.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:c.rc;const o=new Set(e.types);if(null!=e.types)for(const r of e.types)o.delete(r),m(r,o);null!=this._queryType&&m(this._queryType,o),null!=this._mutationType&&m(this._mutationType,o),null!=this._subscriptionType&&m(this._subscriptionType,o);for(const r of this._directives)if((0,c.qT)(r))for(const e of r.args)m(e.type,o);m(p.__Schema,o),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const i of o){if(null==i)continue;const e=i.name;if(e||(0,r.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=i,(0,u.kD)(i)){for(const t of i.getInterfaces())if((0,u.kD)(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.interfaces.push(i)}}else if((0,u.YQ)(i))for(const t of i.getInterfaces())if((0,u.kD)(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.objects.push(i)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.cE.QUERY:return this.getQueryType();case l.cE.MUTATION:return this.getMutationType();case l.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,u.CK)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,u.CK)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function m(e,t){const n=(0,u.MR)(e);if(!t.has(n))if(t.add(n),(0,u.CK)(n))for(const r of n.getTypes())m(r,t);else if((0,u.YQ)(n)||(0,u.kD)(n)){for(const e of n.getInterfaces())m(e,t);for(const e of Object.values(n.getFields())){m(e.type,t);for(const n of e.args)m(n.type,t)}}else if((0,u.qK)(n))for(const r of Object.values(n.getFields()))m(r.type,t);return t}},1500:(e,t,n)=>{"use strict";n.d(t,{Y:()=>d,i:()=>p});var r=n(9788),i=n(3585),o=n(4740),a=n(4391),s=n(6333),l=n(9976),u=n(2915),c=n(6175);function p(e){if((0,c.GU)(e),e.__validationErrors)return e.__validationErrors;const t=new f(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,s.YQ)(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${(0,r.N)(n)}.`,null!==(i=h(t,o.cE.QUERY))&&void 0!==i?i:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const a=t.getMutationType();var l;a&&!(0,s.YQ)(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,r.N)(a)}.`,null!==(l=h(t,o.cE.MUTATION))&&void 0!==l?l:a.astNode);const u=t.getSubscriptionType();var c;u&&!(0,s.YQ)(u)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,r.N)(u)}.`,null!==(c=h(t,o.cE.SUBSCRIPTION))&&void 0!==c?c:u.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,l.qT)(n)){m(e,n);for(const i of n.args){var t;if(m(e,i),(0,s.dX)(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,r.N)(i.type)}.`,i.astNode),(0,s.xP)(i)&&null!=i.deprecationReason)e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[x(i.astNode),null===(t=i.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,r.N)(n)}.`,null===n||void 0===n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if((0,s.bd)(t.type)&&(0,s.qK)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map((e=>e.astNode)))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const i of Object.values(n))(0,s.sy)(i)?((0,u.isIntrospectionType)(i)||m(e,i),(0,s.YQ)(i)||(0,s.kD)(i)?(v(e,i),g(e,i)):(0,s.CK)(i)?E(e,i):(0,s.oF)(i)?w(e,i):(0,s.qK)(i)&&(k(e,i),t(i))):e.reportError(`Expected GraphQL named type but got: ${(0,r.N)(i)}.`,i.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function d(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class f{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new i.eO(e,{nodes:n}))}getErrors(){return this._errors}}function h(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===n?void 0:n.type}function m(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function v(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const l of n){var i;if(m(e,l),!(0,s.oH)(l.type))e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${(0,r.N)(l.type)}.`,null===(i=l.astNode)||void 0===i?void 0:i.type);for(const n of l.args){const i=n.name;var o,a;if(m(e,n),!(0,s.dX)(n.type))e.reportError(`The type of ${t.name}.${l.name}(${i}:) must be Input Type but got: ${(0,r.N)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type);if((0,s.xP)(n)&&null!=n.deprecationReason)e.reportError(`Required argument ${t.name}.${l.name}(${i}:) cannot be deprecated.`,[x(n.astNode),null===(a=n.astNode)||void 0===a?void 0:a.type])}}}function g(e,t){const n=Object.create(null);for(const i of t.getInterfaces())(0,s.kD)(i)?t!==i?n[i.name]?e.reportError(`Type ${t.name} can only implement ${i.name} once.`,_(t,i)):(n[i.name]=!0,b(e,t,i),y(e,t,i)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,_(t,i)):e.reportError(`Type ${(0,r.N)(t)} must only implement Interface types, it cannot implement ${(0,r.N)(i)}.`,_(t,i))}function y(e,t,n){const i=t.getFields();for(const p of Object.values(n.getFields())){const d=p.name,f=i[d];if(f){var o,l;if(!(0,a.sP)(e.schema,f.type,p.type))e.reportError(`Interface field ${n.name}.${d} expects type ${(0,r.N)(p.type)} but ${t.name}.${d} is type ${(0,r.N)(f.type)}.`,[null===(o=p.astNode)||void 0===o?void 0:o.type,null===(l=f.astNode)||void 0===l?void 0:l.type]);for(const i of p.args){const o=i.name,s=f.args.find((e=>e.name===o));var u,c;if(s){if(!(0,a.n8)(i.type,s.type))e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expects type ${(0,r.N)(i.type)} but ${t.name}.${d}(${o}:) is type ${(0,r.N)(s.type)}.`,[null===(u=i.astNode)||void 0===u?void 0:u.type,null===(c=s.astNode)||void 0===c?void 0:c.type])}else e.reportError(`Interface field argument ${n.name}.${d}(${o}:) expected but ${t.name}.${d} does not provide it.`,[i.astNode,f.astNode])}for(const r of f.args){const i=r.name;!p.args.find((e=>e.name===i))&&(0,s.xP)(r)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${i} that is missing from the Interface field ${n.name}.${d}.`,[r.astNode,p.astNode])}}else e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes])}}function b(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[..._(n,i),..._(t,n)])}function E(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const o of n)i[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,T(t,o.name)):(i[o.name]=!0,(0,s.YQ)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,r.N)(o)}.`,T(t,String(o))))}function w(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)m(e,r)}function k(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var i,o;if(m(e,a),!(0,s.dX)(a.type))e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,r.N)(a.type)}.`,null===(i=a.astNode)||void 0===i?void 0:i.type);if((0,s.YX)(a)&&null!=a.deprecationReason)e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[x(a.astNode),null===(o=a.astNode)||void 0===o?void 0:o.type])}}function _(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function T(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function x(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===l.yK.name))}},2072:(e,t,n)=>{"use strict";n.d(t,{D:()=>u,S:()=>p});var r=n(4740),i=n(4705),o=n(9182),a=n(6333),s=n(2915),l=n(8912);class u{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==n&&void 0!==n?n:c,t&&((0,a.dX)(t)&&this._inputTypeStack.push(t),(0,a.ML)(t)&&this._parentTypeStack.push(t),(0,a.oH)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case i.b.SELECTION_SET:{const e=(0,a.MR)(this.getType());this._parentTypeStack.push((0,a.ML)(e)?e:void 0);break}case i.b.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push((0,a.oH)(i)?i:void 0);break}case i.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.b.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push((0,a.YQ)(n)?n:void 0);break}case i.b.INLINE_FRAGMENT:case i.b.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?(0,l.v)(t,n):(0,a.MR)(this.getType());this._typeStack.push((0,a.oH)(r)?r:void 0);break}case i.b.VARIABLE_DEFINITION:{const n=(0,l.v)(t,e.type);this._inputTypeStack.push((0,a.dX)(n)?n:void 0);break}case i.b.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push((0,a.dX)(r)?r:void 0);break}case i.b.LIST:{const e=(0,a.yl)(this.getInputType()),t=(0,a.Fs)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,a.dX)(t)?t:void 0);break}case i.b.OBJECT_FIELD:{const t=(0,a.MR)(this.getInputType());let n,r;(0,a.qK)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push((0,a.dX)(n)?n:void 0);break}case i.b.ENUM:{const t=(0,a.MR)(this.getInputType());let n;(0,a.oF)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case i.b.SELECTION_SET:this._parentTypeStack.pop();break;case i.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.b.DIRECTIVE:this._directive=null;break;case i.b.OPERATION_DEFINITION:case i.b.INLINE_FRAGMENT:case i.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.b.LIST:case i.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.b.ENUM:this._enumValue=null}}}function c(e,t,n){const r=n.name.value;return r===s.SchemaMetaFieldDef.name&&e.getQueryType()===t?s.SchemaMetaFieldDef:r===s.TypeMetaFieldDef.name&&e.getQueryType()===t?s.TypeMetaFieldDef:r===s.TypeNameMetaFieldDef.name&&(0,a.ML)(t)?s.TypeNameMetaFieldDef:(0,a.YQ)(t)||(0,a.kD)(t)?t.getFields()[r]:void 0}function p(e,t){return{enter(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];const s=i[0];e.enter(s);const l=(0,o.XO)(t,s.kind).enter;if(l){const n=l.apply(t,i);return void 0!==n&&(e.leave(s),(0,r.Ll)(n)&&e.enter(n)),n}},leave(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const a=r[0],s=(0,o.XO)(t,a.kind).leave;let l;return s&&(l=s.apply(t,r)),e.leave(a),l}}}},55:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(9788),i=n(3444),o=n(9571),a=n(3628),s=n(4705),l=n(6333),u=n(3721);function c(e,t){if((0,l.bd)(t)){const n=c(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===s.b.NULL?null:n}if(null===e)return{kind:s.b.NULL};if(void 0===e)return null;if((0,l.Fs)(t)){const n=t.ofType;if((0,o.A)(e)){const t=[];for(const r of e){const e=c(r,n);null!=e&&t.push(e)}return{kind:s.b.LIST,values:t}}return c(e,n)}if((0,l.qK)(t)){if(!(0,a.Z)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=c(e[r.name],r.type);t&&n.push({kind:s.b.OBJECT_FIELD,name:{kind:s.b.NAME,value:r.name},value:t})}return{kind:s.b.OBJECT,fields:n}}if((0,l.zf)(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"===typeof n)return{kind:s.b.BOOLEAN,value:n};if("number"===typeof n&&Number.isFinite(n)){const e=String(n);return p.test(e)?{kind:s.b.INT,value:e}:{kind:s.b.FLOAT,value:e}}if("string"===typeof n)return(0,l.oF)(t)?{kind:s.b.ENUM,value:n}:t===u.N1&&p.test(n)?{kind:s.b.INT,value:n}:{kind:s.b.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,r.N)(n)}.`)}(0,i.V)(!1,"Unexpected input type: "+(0,r.N)(t))}const p=/^-?(?:0|[1-9][0-9]*)$/},248:(e,t,n)=>{"use strict";n.d(t,{D:()=>h});var r=n(3515),i=n(9788),o=n(3628),a=n(2564),s=n(1793),l=n(6333),u=n(9976),c=n(2915),p=n(3721),d=n(6175),f=n(5089);function h(e,t){(0,o.Z)(e)&&(0,o.Z)(e.__schema)||(0,r.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,i.N)(e)}.`);const n=e.__schema,h=(0,a.L)(n.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case c.TypeKind.SCALAR:return r=e,new l.Ag({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case c.TypeKind.OBJECT:return n=e,new l.bh({name:n.name,description:n.description,interfaces:()=>_(n),fields:()=>T(n)});case c.TypeKind.INTERFACE:return t=e,new l.VA({name:t.name,description:t.description,interfaces:()=>_(t),fields:()=>T(t)});case c.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=(0,i.N)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new l.hI({name:e.name,description:e.description,types:()=>e.possibleTypes.map(w)})}(e);case c.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=(0,i.N)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new l.Zb({name:e.name,description:e.description,values:(0,a.L)(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case c.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=(0,i.N)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new l.zP({name:e.name,description:e.description,fields:()=>S(e.inputFields)})}(e)}var t;var n;var r;const o=(0,i.N)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const r of[...p.YC,...c.introspectionTypes])h[r.name]&&(h[r.name]=r);const m=n.queryType?w(n.queryType):null,v=n.mutationType?w(n.mutationType):null,g=n.subscriptionType?w(n.subscriptionType):null,y=n.directives?n.directives.map((function(e){if(!e.args){const t=(0,i.N)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=(0,i.N)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new u.RR({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:S(e.args)})})):[];return new d.V4({description:n.description,query:m,mutation:v,subscription:g,types:Object.values(h),directives:y,assumeValid:null===t||void 0===t?void 0:t.assumeValid});function b(e){if(e.kind===c.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new l.KT(b(t))}if(e.kind===c.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=b(t);return new l.Gc((0,l.wG)(n))}return E(e)}function E(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${(0,i.N)(e)}.`);const n=h[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function w(e){return(0,l.qC)(E(e))}function k(e){return(0,l.qL)(E(e))}function _(e){if(null===e.interfaces&&e.kind===c.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=(0,i.N)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(k)}function T(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,i.N)(e)}.`);return(0,a.L)(e.fields,(e=>e.name),x)}function x(e){const t=b(e.type);if(!(0,l.oH)(t)){const e=(0,i.N)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=(0,i.N)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:S(e.args)}}function S(e){return(0,a.L)(e,(e=>e.name),C)}function C(e){const t=b(e.type);if(!(0,l.dX)(t)){const e=(0,i.N)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?(0,f.i)((0,s.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}},2720:(e,t,n)=>{"use strict";n.d(t,{v:()=>f});var r=n(6815),i=n(9788),o=n(3444),a=n(9571),s=n(3628),l=n(3669),u=n(8523),c=n(5624),p=n(3585),d=n(6333);function f(e,t){return m(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,void 0)}function h(e,t,n){let r="Invalid value "+(0,i.N)(t);throw e.length>0&&(r+=` at "value${(0,u.q)(e)}"`),n.message=r+": "+n.message,n}function m(e,t,n,u){if((0,d.bd)(t))return null!=e?m(e,t.ofType,n,u):void n((0,l.A)(u),e,new p.eO(`Expected non-nullable type "${(0,i.N)(t)}" not to be null.`));if(null==e)return null;if((0,d.Fs)(t)){const r=t.ofType;return(0,a.A)(e)?Array.from(e,((e,t)=>{const i=(0,l.f)(u,t,void 0);return m(e,r,n,i)})):[m(e,r,n,u)]}if((0,d.qK)(t)){if(!(0,s.Z)(e))return void n((0,l.A)(u),e,new p.eO(`Expected type "${t.name}" to be an object.`));const o={},a=t.getFields();for(const r of Object.values(a)){const a=e[r.name];if(void 0!==a)o[r.name]=m(a,r.type,n,(0,l.f)(u,r.name,t.name));else if(void 0!==r.defaultValue)o[r.name]=r.defaultValue;else if((0,d.bd)(r.type)){const t=(0,i.N)(r.type);n((0,l.A)(u),e,new p.eO(`Field "${r.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!a[i]){const o=(0,c.x)(i,Object.keys(t.getFields()));n((0,l.A)(u),e,new p.eO(`Field "${i}" is not defined by type "${t.name}".`+(0,r.a)(o)))}return o}if((0,d.zf)(t)){let r;try{r=t.parseValue(e)}catch(f){return void(f instanceof p.eO?n((0,l.A)(u),e,f):n((0,l.A)(u),e,new p.eO(`Expected type "${t.name}". `+f.message,{originalError:f})))}return void 0===r&&n((0,l.A)(u),e,new p.eO(`Expected type "${t.name}".`)),r}(0,o.V)(!1,"Unexpected input type: "+(0,i.N)(t))}},2799:(e,t,n)=>{"use strict";function r(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("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 ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}n.d(t,{I:()=>r})},8303:(e,t,n)=>{"use strict";n.d(t,{M:()=>o});var r=n(7407),i=n(4705);function o(e){switch(e.kind){case i.b.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:o(e.value)}))).sort(((e,t)=>(0,r.p)(e.name.value,t.name.value))))};case i.b.LIST:return{...e,values:e.values.map(o)};case i.b.INT:case i.b.FLOAT:case i.b.STRING:case i.b.BOOLEAN:case i.b.NULL:case i.b.ENUM:case i.b.VARIABLE:return e}var t}},4391:(e,t,n)=>{"use strict";n.d(t,{n8:()=>i,sP:()=>o,uI:()=>a});var r=n(6333);function i(e,t){return e===t||((0,r.bd)(e)&&(0,r.bd)(t)||!(!(0,r.Fs)(e)||!(0,r.Fs)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||((0,r.bd)(n)?!!(0,r.bd)(t)&&o(e,t.ofType,n.ofType):(0,r.bd)(t)?o(e,t.ofType,n):(0,r.Fs)(n)?!!(0,r.Fs)(t)&&o(e,t.ofType,n.ofType):!(0,r.Fs)(t)&&((0,r.Lc)(n)&&((0,r.kD)(t)||(0,r.YQ)(t))&&e.isSubType(n,t)))}function a(e,t,n){return t===n||((0,r.Lc)(t)?(0,r.Lc)(n)?e.getPossibleTypes(t).some((t=>e.isSubType(n,t))):e.isSubType(t,n):!!(0,r.Lc)(n)&&e.isSubType(n,t))}},8912:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(4705),i=n(6333);function o(e,t){switch(t.kind){case r.b.LIST_TYPE:{const n=o(e,t.type);return n&&new i.KT(n)}case r.b.NON_NULL_TYPE:{const n=o(e,t.type);return n&&new i.Gc(n)}case r.b.NAMED_TYPE:return e.getType(t.name.value)}}},5089:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(9788),i=n(3444),o=n(3041),a=n(4705),s=n(6333);function l(e,t,n){if(e){if(e.kind===a.b.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&(0,s.bd)(t))return;return i}if((0,s.bd)(t)){if(e.kind===a.b.NULL)return;return l(e,t.ofType,n)}if(e.kind===a.b.NULL)return null;if((0,s.Fs)(t)){const r=t.ofType;if(e.kind===a.b.LIST){const t=[];for(const i of e.values)if(u(i,n)){if((0,s.bd)(r))return;t.push(null)}else{const e=l(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=l(e,r,n);if(void 0===i)return;return[i]}if((0,s.qK)(t)){if(e.kind!==a.b.OBJECT)return;const r=Object.create(null),i=(0,o.K)(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||u(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if((0,s.bd)(e.type))return;continue}const o=l(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if((0,s.zf)(t)){let r;try{r=t.parseLiteral(e,n)}catch(c){return}if(void 0===r)return;return r}(0,i.V)(!1,"Unexpected input type: "+(0,r.N)(t))}}function u(e,t){return e.kind===a.b.VARIABLE&&(null==t||void 0===t[e.name.value])}},9336:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var r=n(2564),i=n(4705);function o(e,t){switch(e.kind){case i.b.NULL:return null;case i.b.INT:return parseInt(e.value,10);case i.b.FLOAT:return parseFloat(e.value);case i.b.STRING:case i.b.ENUM:case i.b.BOOLEAN:return e.value;case i.b.LIST:return e.values.map((e=>o(e,t)));case i.b.OBJECT:return(0,r.L)(e.fields,(e=>e.name.value),(e=>o(e.value,t)));case i.b.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}}},449:(e,t,n)=>{"use strict";n.d(t,{dY:()=>l,ot:()=>s});var r=n(4705),i=n(9182),o=n(2072);class a{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===r.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let i;for(;i=n.pop();)for(const e of i.selections)e.kind===r.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class s extends a{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class l extends a{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new o.D(this._schema);(0,i.YR)(e,(0,o.S)(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}},5915:(e,t,n)=>{"use strict";n.d(t,{T:()=>a});var r=n(3585),i=n(4705),o=n(6762);function a(e){return{Document(t){for(const n of t.definitions)if(!(0,o._m)(n)){const t=n.kind===i.b.SCHEMA_DEFINITION||n.kind===i.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new r.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}},8947:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(6815),i=n(7407),o=n(5624),a=n(3585),s=n(6333);function l(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const l=e.getSchema(),u=t.name.value;let c=(0,r.a)("to use an inline fragment on",function(e,t,n){if(!(0,s.Lc)(t))return[];const r=new Set,o=Object.create(null);for(const i of e.getPossibleTypes(t))if(i.getFields()[n]){r.add(i),o[i.name]=1;for(const e of i.getInterfaces()){var a;e.getFields()[n]&&(r.add(e),o[e.name]=(null!==(a=o[e.name])&&void 0!==a?a:0)+1)}}return[...r].sort(((t,n)=>{const r=o[n.name]-o[t.name];return 0!==r?r:(0,s.kD)(t)&&e.isSubType(t,n)?-1:(0,s.kD)(n)&&e.isSubType(n,t)?1:(0,i.p)(t.name,n.name)})).map((e=>e.name))}(l,n,u));""===c&&(c=(0,r.a)(function(e,t){if((0,s.YQ)(e)||(0,s.kD)(e)){const n=Object.keys(e.getFields());return(0,o.x)(t,n)}return[]}(n,u))),e.reportError(new a.eO(`Cannot query field "${u}" on type "${n.name}".`+c,{nodes:t}))}}}}}},8669:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var r=n(3585),i=n(7233),o=n(6333),a=n(8912);function s(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=(0,a.v)(e.getSchema(),n);if(t&&!(0,o.ML)(t)){const t=(0,i.y)(n);e.reportError(new r.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=(0,a.v)(e.getSchema(),t.typeCondition);if(n&&!(0,o.ML)(n)){const n=(0,i.y)(t.typeCondition);e.reportError(new r.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}},6691:(e,t,n)=>{"use strict";n.d(t,{P:()=>l,W:()=>u});var r=n(6815),i=n(5624),o=n(3585),a=n(4705),s=n(9976);function l(e){return{...u(e),Argument(t){const n=e.getArgument(),a=e.getFieldDef(),s=e.getParentType();if(!n&&a&&s){const n=t.name.value,l=a.args.map((e=>e.name)),u=(0,i.x)(n,l);e.reportError(new o.eO(`Unknown argument "${n}" on field "${s.name}.${a.name}".`+(0,r.a)(u),{nodes:t}))}}}}function u(e){const t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():s.rc;for(const r of l)t[r.name]=r.args.map((e=>e.name));const u=e.getDocument().definitions;for(const r of u)if(r.kind===a.b.DIRECTIVE_DEFINITION){var c;const e=null!==(c=r.arguments)&&void 0!==c?c:[];t[r.name.value]=e.map((e=>e.name.value))}return{Directive(n){const a=n.name.value,s=t[a];if(n.arguments&&s)for(const t of n.arguments){const n=t.name.value;if(!s.includes(n)){const l=(0,i.x)(n,s);e.reportError(new o.eO(`Unknown argument "${n}" on directive "@${a}".`+(0,r.a)(l),{nodes:t}))}}return!1}}}},6238:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var r=n(9788),i=n(3444),o=n(3585),a=n(4740),s=n(6542),l=n(4705),u=n(9976);function c(e){const t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():u.rc;for(const r of c)t[r.name]=r.locations;const p=e.getDocument().definitions;for(const r of p)r.kind===l.b.DIRECTIVE_DEFINITION&&(t[r.name.value]=r.locations.map((e=>e.value)));return{Directive(n,u,c,p,d){const f=n.name.value,h=t[f];if(!h)return void e.reportError(new o.eO(`Unknown directive "@${f}".`,{nodes:n}));const m=function(e){const t=e[e.length-1];switch("kind"in t||(0,i.V)(!1),t.kind){case l.b.OPERATION_DEFINITION:return function(e){switch(e){case a.cE.QUERY:return s.H.QUERY;case a.cE.MUTATION:return s.H.MUTATION;case a.cE.SUBSCRIPTION:return s.H.SUBSCRIPTION}}(t.operation);case l.b.FIELD:return s.H.FIELD;case l.b.FRAGMENT_SPREAD:return s.H.FRAGMENT_SPREAD;case l.b.INLINE_FRAGMENT:return s.H.INLINE_FRAGMENT;case l.b.FRAGMENT_DEFINITION:return s.H.FRAGMENT_DEFINITION;case l.b.VARIABLE_DEFINITION:return s.H.VARIABLE_DEFINITION;case l.b.SCHEMA_DEFINITION:case l.b.SCHEMA_EXTENSION:return s.H.SCHEMA;case l.b.SCALAR_TYPE_DEFINITION:case l.b.SCALAR_TYPE_EXTENSION:return s.H.SCALAR;case l.b.OBJECT_TYPE_DEFINITION:case l.b.OBJECT_TYPE_EXTENSION:return s.H.OBJECT;case l.b.FIELD_DEFINITION:return s.H.FIELD_DEFINITION;case l.b.INTERFACE_TYPE_DEFINITION:case l.b.INTERFACE_TYPE_EXTENSION:return s.H.INTERFACE;case l.b.UNION_TYPE_DEFINITION:case l.b.UNION_TYPE_EXTENSION:return s.H.UNION;case l.b.ENUM_TYPE_DEFINITION:case l.b.ENUM_TYPE_EXTENSION:return s.H.ENUM;case l.b.ENUM_VALUE_DEFINITION:return s.H.ENUM_VALUE;case l.b.INPUT_OBJECT_TYPE_DEFINITION:case l.b.INPUT_OBJECT_TYPE_EXTENSION:return s.H.INPUT_OBJECT;case l.b.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||(0,i.V)(!1),t.kind===l.b.INPUT_OBJECT_TYPE_DEFINITION?s.H.INPUT_FIELD_DEFINITION:s.H.ARGUMENT_DEFINITION}default:(0,i.V)(!1,"Unexpected kind: "+(0,r.N)(t.kind))}}(d);m&&!h.includes(m)&&e.reportError(new o.eO(`Directive "@${f}" may not be used on ${m}.`,{nodes:n}))}}}},600:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(3585);function i(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new r.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}},1152:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(6815),i=n(5624),o=n(3585),a=n(6762),s=n(2915);function l(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),s=Object.create(null);for(const r of e.getDocument().definitions)(0,a.a6)(r)&&(s[r.name.value]=!0);const l=[...Object.keys(n),...Object.keys(s)];return{NamedType(t,c,p,d,f){const h=t.name.value;if(!n[h]&&!s[h]){var m;const n=null!==(m=f[2])&&void 0!==m?m:p,s=null!=n&&("kind"in(v=n)&&((0,a.xu)(v)||(0,a.fT)(v)));if(s&&u.includes(h))return;const c=(0,i.x)(h,s?u.concat(l):l);e.reportError(new o.eO(`Unknown type "${h}".`+(0,r.a)(c),{nodes:t}))}var v}}}const u=[...n(3721).YC,...s.introspectionTypes].map((e=>e.name))},6189:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(3585),i=n(4705);function o(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===i.b.OPERATION_DEFINITION)).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new r.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}}},4361:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(3585);function i(e){var t,n,i;const 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();let s=0;return{SchemaDefinition(t){a?e.reportError(new r.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(s>0&&e.reportError(new r.eO("Must provide only one schema definition.",{nodes:t})),++s)}}}},4319:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(3585);function i(e){const t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(a){if(t[a.name.value])return;const s=a.name.value;t[s]=!0;const l=e.getFragmentSpreads(a.selectionSet);if(0!==l.length){i[s]=n.length;for(const t of l){const a=t.name.value,s=i[a];if(n.push(t),void 0===s){const t=e.getFragment(a);t&&o(t)}else{const t=n.slice(s),i=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new r.eO(`Cannot spread fragment "${a}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[s]=void 0}}}},3865:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3585);function i(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const i=e.getRecursiveVariableUsages(n);for(const{node:o}of i){const i=o.name.value;!0!==t[i]&&e.reportError(new r.eO(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[o,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}},8887:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(3585);function i(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const i=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==i[n]&&e.reportError(new r.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}},8559:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(3585);function i(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const i=Object.create(null),o=e.getRecursiveVariableUsages(n);for(const{node:e}of o)i[e.name.value]=!0;for(const a of t){const t=a.variable.name.value;!0!==i[t]&&e.reportError(new r.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:a}))}}},VariableDefinition(e){t.push(e)}}}},5436:(e,t,n)=>{"use strict";n.d(t,{K:()=>p});var r=n(9788),i=n(3585),o=n(4705),a=n(7233),s=n(6333),l=n(8303),u=n(8912);function c(e){return Array.isArray(e)?e.map((e=>{let[t,n]=e;return`subfields "${t}" conflict because `+c(n)})).join(" and "):e}function p(e){const t=new w,n=new Map;return{SelectionSet(r){const o=function(e,t,n,r,i){const o=[],[a,s]=y(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i<a.length;i++)for(let s=i+1;s<a.length;s++){const l=m(e,n,r,!1,o,a[i],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let l=0;l<s.length;l++){d(e,o,t,n,!1,a,s[l]);for(let r=l+1;r<s.length;r++)f(e,o,t,n,!1,s[l],s[r])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],a,s]of o){const r=c(n);e.reportError(new i.eO(`Fields "${t}" conflict because ${r}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(s)}))}}}}function d(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[l,u]=b(e,n,s);if(o!==l){h(e,t,n,r,i,o,l);for(const s of u)r.has(s,a,i)||(r.add(s,a,i),d(e,t,n,r,i,o,s))}}function f(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),l=e.getFragment(a);if(!s||!l)return;const[u,c]=b(e,n,s),[p,d]=b(e,n,l);h(e,t,n,r,i,u,p);for(const h of d)f(e,t,n,r,i,o,h);for(const h of c)f(e,t,n,r,i,h,a)}function h(e,t,n,r,i,o,a){for(const[s,l]of Object.entries(o)){const o=a[s];if(o)for(const a of l)for(const l of o){const o=m(e,n,r,i,s,a,l);o&&t.push(o)}}}function m(e,t,n,i,o,a,l){const[u,c,p]=a,[m,b,E]=l,w=i||u!==m&&(0,s.YQ)(u)&&(0,s.YQ)(m);if(!w){const e=c.name.value,t=b.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[c],[b]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map((e=>{let{name:t,value:n}=e;return[t.value,n]})));return n.every((e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&v(t)===v(n)}))}(c,b))return[[o,"they have differing arguments"],[c],[b]]}const k=null===p||void 0===p?void 0:p.type,_=null===E||void 0===E?void 0:E.type;if(k&&_&&g(k,_))return[[o,`they return conflicting types "${(0,r.N)(k)}" and "${(0,r.N)(_)}"`],[c],[b]];const T=c.selectionSet,x=b.selectionSet;if(T&&x){const r=function(e,t,n,r,i,o,a,s){const l=[],[u,c]=y(e,t,i,o),[p,m]=y(e,t,a,s);h(e,l,t,n,r,u,p);for(const f of m)d(e,l,t,n,r,u,f);for(const f of c)d(e,l,t,n,r,p,f);for(const d of c)for(const i of m)f(e,l,t,n,r,d,i);return l}(e,t,n,w,(0,s.MR)(k),T,(0,s.MR)(_),x);return function(e,t,n,r){if(e.length>0)return[[t,e.map((e=>{let[t]=e;return t}))],[n,...e.map((e=>{let[,t]=e;return t})).flat()],[r,...e.map((e=>{let[,,t]=e;return t})).flat()]]}(r,o,c,b)}}function v(e){return(0,a.y)((0,l.M)(e))}function g(e,t){return(0,s.Fs)(e)?!(0,s.Fs)(t)||g(e.ofType,t.ofType):!!(0,s.Fs)(t)||((0,s.bd)(e)?!(0,s.bd)(t)||g(e.ofType,t.ofType):!!(0,s.bd)(t)||!(!(0,s.zf)(e)&&!(0,s.zf)(t))&&e!==t)}function y(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);E(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function b(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=(0,u.v)(e.getSchema(),n.typeCondition);return y(e,t,i,n.selectionSet)}function E(e,t,n,r,i){for(const a of n.selections)switch(a.kind){case o.b.FIELD:{const e=a.name.value;let n;((0,s.YQ)(t)||(0,s.kD)(t))&&(n=t.getFields()[e]);const i=a.alias?a.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,a,n]);break}case o.b.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case o.b.INLINE_FRAGMENT:{const n=a.typeCondition,o=n?(0,u.v)(e.getSchema(),n):t;E(e,o,a.selectionSet,r,i);break}}}class w{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}},5430:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r=n(9788),i=n(3585),o=n(6333),a=n(4391),s=n(8912);function l(e){return{InlineFragment(t){const n=e.getType(),s=e.getParentType();if((0,o.ML)(n)&&(0,o.ML)(s)&&!(0,a.uI)(e.getSchema(),n,s)){const o=(0,r.N)(s),a=(0,r.N)(n);e.reportError(new i.eO(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,l=function(e,t){const n=e.getFragment(t);if(n){const t=(0,s.v)(e.getSchema(),n.typeCondition);if((0,o.ML)(t))return t}}(e,n),u=e.getParentType();if(l&&u&&!(0,a.uI)(e.getSchema(),l,u)){const o=(0,r.N)(u),a=(0,r.N)(l);e.reportError(new i.eO(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}},5012:(e,t,n)=>{"use strict";n.d(t,{S:()=>p});var r=n(6815),i=n(9788),o=n(3444),a=n(5624),s=n(3585),l=n(4705),u=n(6762),c=n(6333);function p(e){const t=e.getSchema(),n=Object.create(null);for(const r of e.getDocument().definitions)(0,u.a6)(r)&&(n[r.name.value]=r);return{ScalarTypeExtension:p,ObjectTypeExtension:p,InterfaceTypeExtension:p,UnionTypeExtension:p,EnumTypeExtension:p,InputObjectTypeExtension:p};function p(u){const p=u.name.value,f=n[p],h=null===t||void 0===t?void 0:t.getType(p);let m;if(f?m=d[f.kind]:h&&(m=function(e){if((0,c.lg)(e))return l.b.SCALAR_TYPE_EXTENSION;if((0,c.YQ)(e))return l.b.OBJECT_TYPE_EXTENSION;if((0,c.kD)(e))return l.b.INTERFACE_TYPE_EXTENSION;if((0,c.CK)(e))return l.b.UNION_TYPE_EXTENSION;if((0,c.oF)(e))return l.b.ENUM_TYPE_EXTENSION;if((0,c.qK)(e))return l.b.INPUT_OBJECT_TYPE_EXTENSION;(0,o.V)(!1,"Unexpected type: "+(0,i.N)(e))}(h)),m){if(m!==u.kind){const t=function(e){switch(e){case l.b.SCALAR_TYPE_EXTENSION:return"scalar";case l.b.OBJECT_TYPE_EXTENSION:return"object";case l.b.INTERFACE_TYPE_EXTENSION:return"interface";case l.b.UNION_TYPE_EXTENSION:return"union";case l.b.ENUM_TYPE_EXTENSION:return"enum";case l.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,o.V)(!1,"Unexpected kind: "+(0,i.N)(e))}}(u.kind);e.reportError(new s.eO(`Cannot extend non-${t} type "${p}".`,{nodes:f?[f,u]:u}))}}else{const i=Object.keys({...n,...null===t||void 0===t?void 0:t.getTypeMap()}),o=(0,a.x)(p,i);e.reportError(new s.eO(`Cannot extend type "${p}" because it is not defined.`+(0,r.a)(o),{nodes:u.name}))}}}const d={[l.b.SCALAR_TYPE_DEFINITION]:l.b.SCALAR_TYPE_EXTENSION,[l.b.OBJECT_TYPE_DEFINITION]:l.b.OBJECT_TYPE_EXTENSION,[l.b.INTERFACE_TYPE_DEFINITION]:l.b.INTERFACE_TYPE_EXTENSION,[l.b.UNION_TYPE_DEFINITION]:l.b.UNION_TYPE_EXTENSION,[l.b.ENUM_TYPE_DEFINITION]:l.b.ENUM_TYPE_EXTENSION,[l.b.INPUT_OBJECT_TYPE_DEFINITION]:l.b.INPUT_OBJECT_TYPE_EXTENSION}},5655:(e,t,n)=>{"use strict";n.d(t,{A:()=>p,X:()=>c});var r=n(9788),i=n(3041),o=n(3585),a=n(4705),s=n(7233),l=n(6333),u=n(9976);function c(e){return{...p(e),Field:{leave(t){var n;const i=e.getFieldDef();if(!i)return!1;const a=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map((e=>e.name.value)));for(const s of i.args)if(!a.has(s.name)&&(0,l.xP)(s)){const n=(0,r.N)(s.type);e.reportError(new o.eO(`Field "${i.name}" argument "${s.name}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}function p(e){var t;const n=Object.create(null),c=e.getSchema(),p=null!==(t=null===c||void 0===c?void 0:c.getDirectives())&&void 0!==t?t:u.rc;for(const r of p)n[r.name]=(0,i.K)(r.args.filter(l.xP),(e=>e.name));const f=e.getDocument().definitions;for(const r of f)if(r.kind===a.b.DIRECTIVE_DEFINITION){var h;const e=null!==(h=r.arguments)&&void 0!==h?h:[];n[r.name.value]=(0,i.K)(e.filter(d),(e=>e.name.value))}return{Directive:{leave(t){const i=t.name.value,a=n[i];if(a){var u;const n=null!==(u=t.arguments)&&void 0!==u?u:[],c=new Set(n.map((e=>e.name.value)));for(const[u,p]of Object.entries(a))if(!c.has(u)){const n=(0,l.Xj)(p.type)?(0,r.N)(p.type):(0,s.y)(p.type);e.reportError(new o.eO(`Directive "@${i}" argument "${u}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}}function d(e){return e.type.kind===a.b.NON_NULL_TYPE&&null==e.defaultValue}},8506:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9788),i=n(3585),o=n(6333);function a(e){return{Field(t){const n=e.getType(),a=t.selectionSet;if(n)if((0,o.zf)((0,o.MR)(n))){if(a){const o=t.name.value,s=(0,r.N)(n);e.reportError(new i.eO(`Field "${o}" must not have a selection since type "${s}" has no subfields.`,{nodes:a}))}}else if(!a){const o=t.name.value,a=(0,r.N)(n);e.reportError(new i.eO(`Field "${o}" of type "${a}" must have a selection of subfields. Did you mean "${o} { ... }"?`,{nodes:t}))}}}}},9789:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var r=n(3585),i=n(4705),o=n(1547);function a(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),a=n.getSubscriptionType();if(a){const s=t.name?t.name.value:null,l=Object.create(null),u=e.getDocument(),c=Object.create(null);for(const e of u.definitions)e.kind===i.b.FRAGMENT_DEFINITION&&(c[e.name.value]=e);const p=(0,o._)(n,c,l,a,t.selectionSet);if(p.size>1){const t=[...p.values()].slice(1).flat();e.reportError(new r.eO(null!=s?`Subscription "${s}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of p.values()){t[0].name.value.startsWith("__")&&e.reportError(new r.eO(null!=s?`Subscription "${s}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}}},9456:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(4954),i=n(3585);function o(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const a of i){var o;n(`${r}.${a.name.value}`,null!==(o=a.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const o=(0,r.$)(n,(e=>e.name.value));for(const[r,a]of o)a.length>1&&e.reportError(new i.eO(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:a.map((e=>e.name))}));return!1}}},8521:(e,t,n)=>{"use strict";n.d(t,{J:()=>o});var r=n(4954),i=n(3585);function o(e){return{Field:t,Directive:t};function t(t){var n;const o=null!==(n=t.arguments)&&void 0!==n?n:[],a=(0,r.$)(o,(e=>e.name.value));for(const[r,s]of a)s.length>1&&e.reportError(new i.eO(`There can be only one argument named "${r}".`,{nodes:s.map((e=>e.name))}))}}},3555:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(3585);function i(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){const o=i.name.value;if(null===n||void 0===n||!n.getDirective(o))return t[o]?e.reportError(new r.eO(`There can be only one directive named "@${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.eO(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:i.name}))}}}},6772:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});var r=n(3585),i=n(4705),o=n(6762),a=n(9976);function s(e){const t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():a.rc;for(const r of s)t[r.name]=!r.isRepeatable;const l=e.getDocument().definitions;for(const r of l)r.kind===i.b.DIRECTIVE_DEFINITION&&(t[r.name.value]=!r.repeatable);const u=Object.create(null),c=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let a;if(n.kind===i.b.SCHEMA_DEFINITION||n.kind===i.b.SCHEMA_EXTENSION)a=u;else if((0,o.a6)(n)||(0,o.i7)(n)){const e=n.name.value;a=c[e],void 0===a&&(c[e]=a=Object.create(null))}else a=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(a[n]?e.reportError(new r.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],i]})):a[n]=i)}}}}},2520:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(3585),i=n(6333);function o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a;const s=t.name.value;o[s]||(o[s]=Object.create(null));const l=null!==(a=t.values)&&void 0!==a?a:[],u=o[s];for(const o of l){const t=o.name.value,a=n[s];(0,i.oF)(a)&&a.getValue(t)?e.reportError(new r.eO(`Enum value "${s}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:o.name})):u[t]?e.reportError(new r.eO(`Enum value "${s}.${t}" can only be defined once.`,{nodes:[u[t],o.name]})):u[t]=o.name}return!1}}},8699:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(3585),i=n(6333);function o(e){const 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;const s=t.name.value;i[s]||(i[s]=Object.create(null));const l=null!==(o=t.fields)&&void 0!==o?o:[],u=i[s];for(const i of l){const t=i.name.value;a(n[s],t)?e.reportError(new r.eO(`Field "${s}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:i.name})):u[t]?e.reportError(new r.eO(`Field "${s}.${t}" can only be defined once.`,{nodes:[u[t],i.name]})):u[t]=i.name}return!1}}function a(e,t){return!!((0,i.YQ)(e)||(0,i.kD)(e)||(0,i.qK)(e))&&null!=e.getFields()[t]}},2946:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(3585);function i(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const i=n.name.value;return t[i]?e.reportError(new r.eO(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}},4698:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(3444),i=n(3585);function o(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||(0,r.V)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new i.eO(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}},947:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(3585);function i(e){const t=Object.create(null);return{OperationDefinition(n){const i=n.name;return i&&(t[i.value]?e.reportError(new r.eO(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}}},3580:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(3585);function i(e){const 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){var o;const a=null!==(o=t.operationTypes)&&void 0!==o?o:[];for(const s of a){const t=s.operation,o=n[t];i[t]?e.reportError(new r.eO(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:s})):o?e.reportError(new r.eO(`There can be only one ${t} type in schema.`,{nodes:[o,s]})):n[t]=s}return!1}}},8034:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(3585);function i(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){const o=i.name.value;if(null===n||void 0===n||!n.getType(o))return t[o]?e.reportError(new r.eO(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1;e.reportError(new r.eO(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}))}}},2014:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(4954),i=n(3585);function o(e){return{OperationDefinition(t){var n;const o=null!==(n=t.variableDefinitions)&&void 0!==n?n:[],a=(0,r.$)(o,(e=>e.variable.name.value));for(const[r,s]of a)s.length>1&&e.reportError(new i.eO(`There can be only one variable named "$${r}".`,{nodes:s.map((e=>e.variable.name))}))}}}},3104:(e,t,n)=>{"use strict";n.d(t,{U:()=>c});var r=n(6815),i=n(9788),o=n(3041),a=n(5624),s=n(3585),l=n(7233),u=n(6333);function c(e){return{ListValue(t){const n=(0,u.yl)(e.getParentInputType());if(!(0,u.Fs)(n))return p(e,t),!1},ObjectValue(t){const n=(0,u.MR)(e.getInputType());if(!(0,u.qK)(n))return p(e,t),!1;const r=(0,o.K)(t.fields,(e=>e.name.value));for(const o of Object.values(n.getFields())){if(!r[o.name]&&(0,u.YX)(o)){const r=(0,i.N)(o.type);e.reportError(new s.eO(`Field "${n.name}.${o.name}" of required type "${r}" was not provided.`,{nodes:t}))}}},ObjectField(t){const n=(0,u.MR)(e.getParentInputType());if(!e.getInputType()&&(0,u.qK)(n)){const i=(0,a.x)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,r.a)(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();(0,u.bd)(n)&&e.reportError(new s.eO(`Expected value of type "${(0,i.N)(n)}", found ${(0,l.y)(t)}.`,{nodes:t}))},EnumValue:t=>p(e,t),IntValue:t=>p(e,t),FloatValue:t=>p(e,t),StringValue:t=>p(e,t),BooleanValue:t=>p(e,t)}}function p(e,t){const n=e.getInputType();if(!n)return;const r=(0,u.MR)(n);if((0,u.zf)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=(0,i.N)(n);e.reportError(new s.eO(`Expected value of type "${r}", found ${(0,l.y)(t)}.`,{nodes:t}))}}catch(o){const r=(0,i.N)(n);o instanceof s.eO?e.reportError(o):e.reportError(new s.eO(`Expected value of type "${r}", found ${(0,l.y)(t)}; `+o.message,{nodes:t,originalError:o}))}else{const r=(0,i.N)(n);e.reportError(new s.eO(`Expected value of type "${r}", found ${(0,l.y)(t)}.`,{nodes:t}))}}},1867:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(3585),i=n(7233),o=n(6333),a=n(8912);function s(e){return{VariableDefinition(t){const n=(0,a.v)(e.getSchema(),t.type);if(void 0!==n&&!(0,o.dX)(n)){const n=t.variable.name.value,o=(0,i.y)(t.type);e.reportError(new r.eO(`Variable "$${n}" cannot be non-input type "${o}".`,{nodes:t.type}))}}}}},7972:(e,t,n)=>{"use strict";n.d(t,{E:()=>u});var r=n(9788),i=n(3585),o=n(4705),a=n(6333),s=n(4391),l=n(8912);function u(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const o=e.getRecursiveVariableUsages(n);for(const{node:a,type:s,defaultValue:u}of o){const n=a.name.value,o=t[n];if(o&&s){const t=e.getSchema(),p=(0,l.v)(t,o.type);if(p&&!c(t,p,o.defaultValue,s,u)){const t=(0,r.N)(p),l=(0,r.N)(s);e.reportError(new i.eO(`Variable "$${n}" of type "${t}" used in position expecting type "${l}".`,{nodes:[o,a]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function c(e,t,n,r,i){if((0,a.bd)(r)&&!(0,a.bd)(t)){if(!(null!=n&&n.kind!==o.b.NULL)&&!(void 0!==i))return!1;const a=r.ofType;return(0,s.sP)(e,t,a)}return(0,s.sP)(e,t,r)}},9338:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var r=n(3444),i=n(3585),o=n(6333);function a(e){return{Field(t){const n=e.getFieldDef(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getParentType();null!=a||(0,r.V)(!1),e.reportError(new i.eO(`The field ${a.name}.${n.name} is deprecated. ${o}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){const a=e.getDirective();if(null!=a)e.reportError(new i.eO(`Directive "@${a.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}));else{const a=e.getParentType(),s=e.getFieldDef();null!=a&&null!=s||(0,r.V)(!1),e.reportError(new i.eO(`Field "${a.name}.${s.name}" argument "${n.name}" is deprecated. ${o}`,{nodes:t}))}}},ObjectField(t){const n=(0,o.MR)(e.getParentInputType());if((0,o.qK)(n)){const r=n.getFields()[t.name.value],o=null===r||void 0===r?void 0:r.deprecationReason;null!=o&&e.reportError(new i.eO(`The input field ${n.name}.${r.name} is deprecated. ${o}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),a=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=a){const s=(0,o.MR)(e.getInputType());null!=s||(0,r.V)(!1),e.reportError(new i.eO(`The enum value "${s.name}.${n.name}" is deprecated. ${a}`,{nodes:t}))}}}}},8050:(e,t,n)=>{"use strict";n.d(t,{H:()=>V,g:()=>P});var r=n(5915),i=n(8947),o=n(8669),a=n(6691),s=n(6238),l=n(600),u=n(1152),c=n(6189),p=n(4361),d=n(4319),f=n(3865),h=n(8887),m=n(8559),v=n(5436),g=n(5430),y=n(5012),b=n(5655),E=n(8506),w=n(9789),k=n(9456),_=n(8521),T=n(3555),x=n(6772),S=n(2520),C=n(8699),N=n(2946),O=n(4698),A=n(947),D=n(3580),I=n(8034),L=n(2014),F=n(3104),R=n(1867),M=n(7972);const P=Object.freeze([r.T,A.H,c.P,w.R,u.y,o.T,R.J,E.A,i.Z,N.K,l.K,h.z,g.y,d.n,L._,f.Z,m.p,s.e,x.U,a.P,_.J,F.U,b.X,M.E,v.K,O.C]),V=Object.freeze([p.l,D.u,I.i,S.g,C.X,k.E,T.Z,u.y,s.e,x.U,y.S,a.W,_.J,O.C,b.A])},9071:(e,t,n)=>{"use strict";n.d(t,{$T:()=>f,tf:()=>c,uq:()=>d});var r=n(3515),i=n(3585),o=n(9182),a=n(1500),s=n(2072),l=n(8050),u=n(449);function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.g,c=arguments.length>3?arguments[3]:void 0,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new s.D(e);var d;const f=null!==(d=null===c||void 0===c?void 0:c.maxErrors)&&void 0!==d?d:100;t||(0,r.U)(!1,"Must provide document."),(0,a.Y)(e);const h=Object.freeze({}),m=[],v=new u.dY(e,t,p,(e=>{if(m.length>=f)throw m.push(new i.eO("Too many validation errors, error limit reached. Validation aborted.")),h;m.push(e)})),g=(0,o.oP)(n.map((e=>e(v))));try{(0,o.YR)(t,(0,s.S)(p,g))}catch(y){if(y!==h)throw y}return m}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.H;const r=[],i=new u.ot(e,t,(e=>{r.push(e)})),a=n.map((e=>e(i)));return(0,o.YR)(e,(0,o.oP)(a)),r}function d(e){const t=p(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}function f(e,t){const n=p(e,t);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}},4357: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=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>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((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(o,a),o}})(),n.d=(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=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{0:"40f61b5b",168:"acd20778",204:"90ef58af",239:"cbbb9bf4",260:"62116343",301:"be911487",339:"45db1ad0",361:"690552e0",405:"f706a566",476:"b8937827",563:"faabcbb9",592:"111c2c09",593:"3508dfb0",601:"8d60ebb5",622:"3c296dc5",631:"df085cd0",654:"504b8830",725:"a57ff2f3",743:"cccf1a4a",776:"449af735",824:"7fac1fde",866:"803cb26d"}[e]+".chunk.js",n.miniCssF=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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="dashboard:";n.l=(r,i,o,a)=>{if(e[r])e[r].push(i);else{var s,l;if(void 0!==o)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var p=u[c];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){s=p;break}}s||(l=!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 d=(t,n)=>{s.onerror=s.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e={792:0};n.f.j=(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(((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,(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=(t,r)=>{var i,o,a=r[0],s=r[1],l=r[2],u=0;if(a.some((t=>0!==e[t]))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);u<a.length;u++)o=a[u],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))})(),(()=>{"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(5043),i=n(5173),o=n.n(i);function a(){return a=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.apply(this,arguments)}function s(e){return"/"===e.charAt(0)}function l(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}const u=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&s(e),a=t&&s(t),u=o||a;if(e&&s(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 p=0,d=i.length;d>=0;d--){var f=i[d];"."===f?l(i,d):".."===f?(l(i,d),p++):p&&(l(i,d),p--)}if(!u)for(;p--;p)i.unshift("..");!u||""===i[0]||i[0]&&s(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var c=!0,p="Invariant failed";function d(e,t){if(!e){if(c)throw new Error(p);var n="function"===typeof t?t():t,r=n?"".concat(p,": ").concat(n):p;throw new Error(r)}}function f(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function m(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 v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function g(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 y(e,t,n,r){var i;"string"===typeof e?(i=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),i.state=t):(void 0===(i=a({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=u(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function b(){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 E=!("undefined"===typeof window||!window.document||!window.document.createElement);function w(e,t){t(window.confirm(e))}var k="popstate",_="hashchange";function T(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),E||d(!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")),i=e,o=i.forceRefresh,s=void 0!==o&&o,l=i.getUserConfirmation,u=void 0===l?w:l,c=i.keyLength,p=void 0===c?6:c,h=e.basename?v(f(e.basename)):"";function x(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return h&&(o=m(o,h)),y(o,r,n)}function S(){return Math.random().toString(36).substr(2,p)}var C=b();function N(e){a(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(x(e.state))}function A(){I(x(T()))}var D=!1;function I(e){if(D)D=!1,N();else{C.confirmTransitionTo(e,"POP",u,(function(t){t?N({action:"POP",location:e}):function(e){var t=U.location,n=F.indexOf(t.key);-1===n&&(n=0);var r=F.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(D=!0,M(i))}(e)}))}}var L=x(T()),F=[L.key];function R(e){return h+g(e)}function M(e){t.go(e)}var P=0;function V(e){1===(P+=e)&&1===e?(window.addEventListener(k,O),r&&window.addEventListener(_,A)):0===P&&(window.removeEventListener(k,O),r&&window.removeEventListener(_,A))}var j=!1;var U={length:t.length,action:"POP",location:L,createHref:R,push:function(e,r){var i="PUSH",o=y(e,r,S(),U.location);C.confirmTransitionTo(o,i,u,(function(e){if(e){var r=R(o),a=o.key,l=o.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var u=F.indexOf(U.location.key),c=F.slice(0,u+1);c.push(o.key),F=c,N({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=y(e,r,S(),U.location);C.confirmTransitionTo(o,i,u,(function(e){if(e){var r=R(o),a=o.key,l=o.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var u=F.indexOf(U.location.key);-1!==u&&(F[u]=o.key),N({action:i,location:o})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return j||(V(1),j=!0),function(){return j&&(j=!1,V(-1)),t()}},listen:function(e){var t=C.appendListener(e);return V(1),function(){V(-1),t()}}};return U}var S="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+h(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:h,decodePath:f},slash:{encodePath:f,decodePath:f}};function N(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function A(e){window.location.replace(N(window.location.href)+"#"+e)}function D(e){void 0===e&&{},E||d(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?w:r,o=n.hashType,s=void 0===o?"slash":o,l=e.basename?v(f(e.basename)):"",u=C[s],c=u.encodePath,p=u.decodePath;function h(){var e=p(O());return l&&m(e,l),y(e)}var k=b();function _(e){a(U,e),U.length=t.length,k.notifyListeners(U.location,U.action)}var T=!1,x=null;function D(){var e,t,n=O(),r=c(n);if(n!==r)A(r);else{var o=h(),a=U.location;if(!T&&(a.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(x===g(o))return;(function(e){if(T)_();else{var t="POP";k.confirmTransitionTo(e,t,i,(function(n){n?_({action:t,location:e}):function(e){var t=U.location,n=R.lastIndexOf(g(t));-1===n&&0;var r=R.lastIndexOf(g(e));-1===r&&0;var i=n-r;i&&M(i)}(e)}))}})(o)}}var I=O(),L=c(I);I!==L&&A(L);var F=h(),R=[g(F)];function M(e){t.go(e)}var P=0;function V(e){1===(P+=e)&&1===e?window.addEventListener(S,D):0===P&&window.removeEventListener(S,D)}var j=!1;var U={length:t.length,action:"POP",location:F,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&N(window.location.href),n+"#"+c(l+g(e))},push:function(e,t){var n="PUSH",r=y(e,void 0,void 0,U.location);k.confirmTransitionTo(r,n,i,(function(e){if(e){var t=g(r),i=c(l+t);if(O()!==i){(function(e){window.location.hash=e})(i);var o=R.lastIndexOf(g(U.location)),a=R.slice(0,o+1);a.push(t),_({action:n,location:r})}else _()}}))},replace:function(e,t){var n="REPLACE",r=y(e,void 0,void 0,U.location);k.confirmTransitionTo(r,n,i,(function(e){if(e){var t=g(r),i=c(l+t);O()!==i&&A(i);var o=R.indexOf(g(U.location));-1!==o&&(R[o]=t),_({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&!1;var t=k.setPrompt(e);return j||(V(1),!0),function(){return j&&V(-1),t()}},listen:function(e){var t=k.appendListener(e);return V(1),function(){V(-1),t()}}};return U}function I(e,t,n){return Math.min(Math.max(e,t),n)}var L=n(8123),F=n.n(L);n(2086);function R(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(219);var M=1073741823,P="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var V=r.createContext||function(e,n){var i,a,s="__create-react-context-"+function(){var e="__global_unique_id__";return P[e]=(P[e]||0)+1}()+"__",l=function(e){function r(){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).emitter=function(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)}))}}}(t.props.value),t}t(r,e);var i=r.prototype;return i.getChildContext=function(){var e;return(e={})[s]=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):M,0!==(t|=0)&&this.emitter.set(e.value,t))}var o,a},i.render=function(){return this.props.children},r}(r.Component);l.childContextTypes=((i={})[s]=o().object.isRequired,i);var u=function(n){function r(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))||this).observedBits=void 0,e.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?M:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?M:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].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=((a={})[s]=o().object,a),{Provider:l,Consumer:u}},j=function(e){var t=V();return t.displayName=e,t},U=j("Router-History"),$=j("Router"),z=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._pendingLocation=e}))),n}t(n,e),n.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var i=n.prototype;return i.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),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($.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(U.Provider,{children:this.props.children||null,value:this.props.history}))},n}(r.Component);r.Component;r.Component;var q={},B=1e4,H=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,l=n.sensitive,u=void 0!==l&&l;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=q[n]||(q[n]={});if(r[e])return r[e];var i=[],o={regexp:F()(e,i,t),keys:i};return H<B&&(r[e]=o,H++),o}(n,{end:o,strict:s,sensitive:u}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var c=l[0],p=l.slice(1),d=e===c;return o&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=p[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($.Consumer,null,(function(t){t||d(!1);var n=e.props.location||t.location,i=a({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?G(n.pathname,e.props):t.match}),o=e.props,s=o.children,l=o.component,u=o.render;return Array.isArray(s)&&function(e){return 0===r.Children.count(e)}(s)&&(s=null),r.createElement($.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:l?r.createElement(l,i):u?u(i):null:"function"===typeof s?s(i):null)}))},n}(r.Component);function Y(e){return"/"===e.charAt(0)?e:"/"+e}function W(e,t){if(!e)return t;var n=Y(e);return 0!==t.pathname.indexOf(n)?t:a({},t,{pathname:t.pathname.substr(n.length)})}function K(e){return"string"===typeof e?e:g(e)}function J(e){return function(){d(!1)}}function X(){}r.Component;var Z=function(e){function n(){return e.apply(this,arguments)||this}return t(n,e),n.prototype.render=function(){var e=this;return r.createElement($.Consumer,null,(function(t){t||d(!1);var n,i,o=e.props.location||t.location;return r.Children.forEach(e.props.children,(function(e){if(null==i&&r.isValidElement(e)){n=e;var s=e.props.path||e.props.from;i=s?G(o.pathname,a({},e.props,{path:s})):t.match}})),i?r.cloneElement(n,{location:o,computedMatch:i}):null}))},n}(r.Component);var ee=r.useContext;function te(){return ee($).location}function ne(){var e=ee($).match;return e?e.params:{}}var re=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=x(t.props),t}return t(n,e),n.prototype.render=function(){return r.createElement(z,{history:this.history,children:this.props.children})},n}(r.Component);r.Component;var ie=function(e,t){return"function"===typeof e?e(t):e},oe=function(e,t){return"string"===typeof e?y(e,null,null,t):e},ae=function(e){return e},se=r.forwardRef;"undefined"===typeof se&&(se=ae);var le=se((function(e,t){var n=e.innerRef,i=e.navigate,o=e.onClick,s=R(e,["innerRef","navigate","onClick"]),l=s.target,u=a({},s,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),i())}});return u.ref=ae!==se&&t||n,r.createElement("a",u)}));var ue=se((function(e,t){var n=e.component,i=void 0===n?le:n,o=e.replace,s=e.to,l=e.innerRef,u=R(e,["component","replace","to","innerRef"]);return r.createElement($.Consumer,null,(function(e){e||d(!1);var n=e.history,c=oe(ie(s,e.location),e.location),p=c?n.createHref(c):"",f=a({},u,{href:p,navigate:function(){var t=ie(s,e.location),r=g(e.location)===g(oe(t));(o||r?n.replace:n.push)(t)}});return ae!==se?f.ref=t||l:f.innerRef=l,r.createElement(i,f)}))})),ce=function(e){return e},pe=r.forwardRef;"undefined"===typeof pe&&(pe=ce);pe((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,l=e.activeStyle,u=e.className,c=e.exact,p=e.isActive,f=e.location,h=e.sensitive,m=e.strict,v=e.style,g=e.to,y=e.innerRef,b=R(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r.createElement($.Consumer,null,(function(e){e||d(!1);var n=f||e.location,o=oe(ie(g,n),n),E=o.pathname,w=E&&E.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),k=w?G(n.pathname,{path:w,exact:c,sensitive:h,strict:m}):null,_=!!(p?p(k,n):k),T="function"===typeof u?u(_):u,x="function"===typeof v?v(_):v;_&&(T=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(" ")}(T,s),x=a({},x,l));var S=a({"aria-current":_&&i||null,className:T,style:x,to:o},b);return ce!==pe?S.ref=t||y:S.innerRef=y,r.createElement(ue,S)}))}));var de=n(7950),fe=n(2799),he=n(248),me=n(3585),ve=n(7233),ge=n(1793),ye=n(9182),be=n(5270),Ee=n.n(be),we=n(7350),ke=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)}}(),_e=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 ke(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 l=function(){};this.props.isRunning||!o||i||(l=this._onOptionsOpen);var u=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:l,onClick:e,title:"Execute Query (Ctrl-Enter)"},r.createElement("svg",{width:"34",height:"34"},u)),a)},t}(r.Component),Te=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 xe(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 Se=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 Te(t,e),t.shouldRender=function(e){var t=xe(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=xe(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),Ce=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)}}(),Ne=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 Ce(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 Oe(e){var t=e.children;return r.createElement("div",{className:"toolbar-button-group"},t)}var 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)}}(),De=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){Le(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return Ae(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:Le,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),Ie=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:Le,onMouseUp:t,title:n},i)};function Le(e){e.preventDefault()}var Fe=n(9193),Re=n.n(Fe),Me=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029","\u202f","\xa0"]),Pe=new RegExp("["+Me.join("")+"]","g");function Ve(e){return e.replace(Pe," ")}var je,Ue=n(6333),$e=n(2203),ze=n.n($e),qe=new(Re());function Be(e,t,r){Promise.resolve().then(n.t.bind(n,6246,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?qe.render(e.description):"Self descriptive.",l=e.type?'<span class="infoType">'+He(e.type)+"</span>":"";if(n.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+l+s.slice(3):l+s)+"</div>",e&&i&&e.deprecationReason){var u=e.deprecationReason?qe.render(e.deprecationReason):"";i.innerHTML='<span class="deprecation-label">Deprecated</span>'+u,i.style.display="block"}else i&&(i.style.display="none");r&&r(n)}))}))}function He(e){return e instanceof Ue.Gc?He(e.ofType)+"!":e instanceof Ue.KT?"["+He(e.ofType)+"]":'<a class="typeName">'+ze()(e.name)+"</a>"}var Ge=!1;"object"===typeof window&&(Ge="MacIntel"===window.navigator.platform);const Qe=((je={})[Ge?"Cmd-F":"Ctrl-F"]="findPersistent",je["Cmd-G"]="findPersistent",je["Ctrl-G"]="findPersistent",je["Ctrl-Left"]="goSubwordLeft",je["Ctrl-Right"]="goSubwordRight",je["Alt-Left"]="goGroupLeft",je["Alt-Right"]="goGroupRight",je);var Ye=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},We=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])}}},Ke=[n.e(476).then(n.t.bind(n,476,23)),n.e(204).then(n.t.bind(n,5204,23)),n.e(301).then(n.t.bind(n,2301,23)),n.e(654).then(n.t.bind(n,9654,23)),n.e(743).then(n.t.bind(n,1743,23)),n.e(0).then(n.t.bind(n,5e3,23)),n.e(592).then(n.t.bind(n,5592,23)),n.e(601).then(n.t.bind(n,8601,23)),n.e(622).then(n.t.bind(n,1622,23)),n.e(563).then(n.t.bind(n,9563,23))];function Je(e,t){return Ye(this,void 0,void 0,(function(){var r,i;return We(this,(function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.t.bind(n,6246,23))];case 1:return r=o.sent().default,i=!1===(null===t||void 0===t?void 0:t.useCommonAddons)?e:Ke.concat(e),[4,Promise.all(i.map((function(e){return e})))];case 2:return o.sent(),[2,r]}}))}))}var Xe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(){return Ze=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},Ze.apply(this,arguments)},et=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((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=new(Re()),rt=/^[a-zA-Z0-9_@(]$/,it=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(260).then(n.t.bind(n,6260,23)),n.e(866).then(n.t.bind(n,8866,23)),n.e(593).then(n.t.bind(n,1593,23)),n.e(725).then(n.t.bind(n,2725,23)),n.e(168).then(n.t.bind(n,2168,23)),n.e(776).then(n.t.bind(n,1776,23)),n.e(631).then(n.t.bind(n,6631,23))]},r._onKeyUp=function(e,t){rt.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){Be(0,t,r.props.onHintInformationRender)},r.cachedValue=t.value||"",r}return Xe(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 et(this,void 0,void 0,(function(){var i,o,a,s=this;return tt(this,(function(l){switch(l.label){case 0:return o=this,[4,Je(this.addonModules())];case 1:return i=o.CodeMirror=l.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 nt.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:Ze(Ze({"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()}},Qe),{"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(Ve);t.update(t.from,t.to,n)}},t}(r.Component),ot=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)}}(),at=function(){return at=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},at.apply(this,arguments)},st=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},lt=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=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(239).then(n.t.bind(n,8239,23)),n.e(339).then(n.t.bind(n,9339,23)),n.e(405).then(n.t.bind(n,1405,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){Be(0,t,r.props.onHintInformationRender)},r.cachedValue=t.value||"",r}return ot(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 st(this,void 0,void 0,(function(){var e,t=this;return lt(this,(function(n){switch(n.label){case 0:return e=this,[4,Je(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:at({"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()}},Qe)})]}}))}))},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(r.Component),ct=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{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},ft=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])}}},ht=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,8287,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){Be(0,t,r.props.onHintInformationRender)},r.cachedValue=t.value||"",r}return ct(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 dt(this,void 0,void 0,(function(){var e,t=this;return ft(this,(function(n){switch(n.label){case 0:return e=this,[4,Je(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: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()}},Qe)})]}}))}))},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)}}(),vt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},gt=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])}}},yt=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(743).then(n.t.bind(n,1743,23)),n.e(654).then(n.t.bind(n,9654,23)),n.e(622).then(n.t.bind(n,1622,23)),n.e(866).then(n.t.bind(n,8866,23)),n.e(592).then(n.t.bind(n,5592,23)),n.e(601).then(n.t.bind(n,8601,23)),n.e(563).then(n.t.bind(n,9563,23)),n.e(824).then(n.t.bind(n,1824,23))]},t}return mt(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 vt(this,void 0,void 0,(function(){var e,t,i,o;return gt(this,(function(a){switch(a.label){case 0:return[4,Je(this.allAddons(),{useCommonAddons:!1})];case 1:return e=a.sent(),t=this.props.ResultsTooltip,i=this.props.ImagePreview,t||i?[4,n.e(361).then(n.t.bind(n,3361,23))]:[3,3];case 2:a.sent(),o=document.createElement("div"),e.registerHelper("info","graphql-results",(function(e,n,a,s){var l=[];return t&&l.push(r.createElement(t,{pos:s})),i&&"function"===typeof i.shouldRender&&i.shouldRender(e)&&l.push(r.createElement(i,{token:e})),l.length?(de.render(r.createElement("div",null,l),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:Qe}),[2]}}))}))},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(r.Component);function bt(e){var t=e.onClick?e.onClick:function(){return null};return Et(e.type,t)}function Et(e,t){return e instanceof Ue.Gc?r.createElement("span",null,Et(e.ofType,t),"!"):e instanceof Ue.KT?r.createElement("span",null,"[",Et(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 wt=n(55),kt=function(e){return e?(0,ve.y)(e):""};function _t(e){var t=e.field;return"defaultValue"in t&&void 0!==t.defaultValue?r.createElement("span",null," = ",r.createElement("span",{className:"arg-default-value"},kt((0,wt.K)(t.defaultValue,t.type)))):null}function Tt(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(bt,{type:t.type,onClick:n}),!1!==i&&r.createElement(_t,{field:t}))}function xt(e){var t=e.directive;return r.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var St=new(Re())({breaks:!0,linkify:!0});function Ct(e){var t=e.markdown,n=e.className;return t?r.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:St.render(t)}}):r.createElement("div",null)}var Nt=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 Ot(e){var t,n,i,o=e.field,a=e.onClickType,s=Nt(r.useState(!1),2),l=s[0],u=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(Tt,{arg:e,onClickType:a})),r.createElement(Ct,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(Ct,{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"),l?c.map((function(e,t){return r.createElement("div",{key:t},r.createElement("div",null,r.createElement(Tt,{arg:e,onClickType:a})),r.createElement(Ct,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&r.createElement(Ct,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})):r.createElement("button",{className:"show-btn",onClick:function(){return u(!l)}},"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(xt,{directive:e})))})))),r.createElement("div",null,r.createElement(Ct,{className:"doc-type-description",markdown:(null===o||void 0===o?void 0:o.description)||"No Description"}),o&&"deprecationReason"in o&&r.createElement(Ct,{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(bt,{type:null===o||void 0===o?void 0:o.type,onClick:a})),t,i,n)}function At(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(Ct,{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(bt,{type:i,onClick:n})),o&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"mutation"),": ",r.createElement(bt,{type:o,onClick:n})),a&&r.createElement("div",{className:"doc-category-item"},r.createElement("span",{className:"keyword"},"subscription"),": ",r.createElement(bt,{type:a,onClick:n}))))}function Dt(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 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)}}();const Lt=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=Dt(200,n.props.onSearch),n}return It(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);var 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)}}(),Rt=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.")},Mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ft(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,l=[],u=[],c=[],p=o.getTypeMap(),d=Object.keys(p);i&&(d=d.filter((function(e){return e!==i.name}))).unshift(i.name);var f=function(e){if(l.length+u.length+c.length>=100)return"break";var t=p[e];if(i!==t&&Vt(e,n)&&u.push(r.createElement("div",{className:"doc-category-item",key:e},r.createElement(bt,{type:t,onClick:a}))),t&&"getFields"in t){var o=t.getFields();Object.keys(o).forEach((function(u){var p,d=o[u];if(!Vt(u,n)){if(!("args"in d)||!d.args.length)return;if(0===(p=d.args.filter((function(e){return Vt(e.name,n)}))).length)return}var f=r.createElement("div",{className:"doc-category-item",key:e+"."+u},i!==t&&[r.createElement(bt,{key:"type",type:t,onClick:a}),"."],r.createElement("a",{className:"field-name",onClick:function(e){return s(d,t,e)}},d.name),p&&["(",r.createElement("span",{key:"args"},p.map((function(e){return r.createElement(Tt,{key:e.name,arg:e,onClickType:a,showDefaultValue:!1})}))),")"]);i===t?l.push(f):c.push(f)}))}};try{for(var h=Rt(d),m=h.next();!m.done;m=h.next()){if("break"===f(m.value))break}}catch(v){e={error:v}}finally{try{m&&!m.done&&(t=h.return)&&t.call(h)}finally{if(e)throw e.error}}return l.length+u.length+c.length===0?r.createElement("span",{className:"doc-alert-text"},"No results found."):i&&u.length+c.length>0?r.createElement("div",null,l,r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"other results"),u,c)):r.createElement("div",{className:"doc-search-items"},l,u,c)},t}(r.Component);const Pt=Mt;function Vt(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 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)}}();const Ut=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 jt(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,l=this.props.onClickType,u=this.props.onClickField,c=null,p=[];if(s instanceof Ue.hI?(c="possible types",p=a.getPossibleTypes(s)):s instanceof Ue.VA?(c="implementations",p=a.getPossibleTypes(s)):s instanceof Ue.bh&&(c="implements",p=s.getInterfaces()),p&&p.length>0&&(e=r.createElement("div",{id:"doc-types",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},c),p.map((function(e){return r.createElement("div",{key:e.name,className:"doc-category-item"},r.createElement(bt,{type:e,onClick:l}))})))),s&&"getFields"in s){var d=s.getFields(),f=Object.keys(d).map((function(e){return d[e]}));t=r.createElement("div",{id:"doc-fields",className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"fields"),f.filter((function(e){return!e.deprecationReason})).map((function(e){return r.createElement($t,{key:e.name,type:s,field:e,onClickType:l,onClickField:u})})));var h=f.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($t,{key:e.name,type:s,field:e,onClickType:l,onClickField:u})})):r.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(s instanceof Ue.Zb){var m=s.getValues();i=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"values"),m.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return r.createElement(zt,{key:e.name,value:e})})));var v=m.filter((function(e){return Boolean(e.deprecationReason)}));v.length>0&&(o=r.createElement("div",{className:"doc-category"},r.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?v.map((function(e){return r.createElement(zt,{key:e.name,value:e})})):r.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return r.createElement("div",null,r.createElement(Ct,{className:"doc-type-description",markdown:"description"in s&&s.description||"No Description"}),s instanceof Ue.bh&&e,t,n,i,o,!(s instanceof Ue.bh)&&e)},t}(r.Component);function $t(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(Tt,{key:e.name,arg:e,onClickType:i})}))),")"],": ",r.createElement(bt,{type:n.type,onClick:i}),r.createElement(_t,{field:n}),n.description&&r.createElement(Ct,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&r.createElement(Ct,{className:"doc-deprecation",markdown:n.deprecationReason}))}function zt(e){var t=e.value;return r.createElement("div",{className:"doc-category-item"},r.createElement("div",{className:"enum-value"},t.name),r.createElement(Ct,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&r.createElement(Ct,{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)}}(),Bt=function(){return Bt=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},Bt.apply(this,arguments)},Ht={name:"Schema",title:"Documentation Explorer"},Gt=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:[Ht]},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(Pt,{searchValue:a.search,withinType:a.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===o.length?r.createElement(At,{schema:n,onClickType:this.handleClickType}):(0,Ue.Xj)(a.def)?r.createElement(Ut,{schema:n,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):r.createElement(Ot,{field:a.def,onClickType:this.handleClickType}):r.createElement("div",{className:"error-container"},"No Schema Available");var s,l=1===o.length||(0,Ue.Xj)(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"},l&&r.createElement(Lt,{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]=Bt(Bt({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[Ht]})},t}(r.Component),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)}}(),Yt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return Qt(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);const Wt=Yt;var Kt=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},Jt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Kt(arguments[t]));return e},Xt=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=Jt(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}();const Zt=Xt;var en=function(){return en=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},en.apply(this,arguments)},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};const rn=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,ge.qg)(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=nn(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(en(en({},s),{favorite:a})):n.history.edit(s),n.queries=nn(n.history.items,n.favorite.items)},this.history=new Zt("queries",this.storage,this.maxHistoryLength),this.favorite=new Zt("favorites",this.storage,null),this.queries=this.fetchAllQueries()};var on=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)}}(),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){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 rn(n.props.storage,n.props.maxHistoryLength);var r=n.historyStore.queries;return n.state={queries:r},n}return on(t,e),t.prototype.render=function(){var e=this,t=this.state.queries.slice().reverse().map((function(t,n){return r.createElement(Wt,an({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);const ln=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}();var un=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}();const cn=un;function pn(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 dn(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}var fn=n(2072),hn=n(4705);function mn(e,t,n){var r,i=[];if(!e||!t)return{insertions:i,result:t};try{r=(0,ge.qg)(t)}catch(s){return{insertions:i,result:t}}var o=n||vn,a=new fn.D(e);return(0,ye.YR)(r,{leave:function(e){a.leave(e)},enter:function(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){var n=gn(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,ve.y)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:i,result:yn(t,i)}}function vn(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,Ue.zf)(t[e].type)&&n.push(e)})),n}function gn(e,t){var n=(0,Ue.MR)(e);if(e&&!(0,Ue.zf)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:hn.b.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:hn.b.FIELD,name:{kind:hn.b.NAME,value:e},selectionSet:gn(i,t)}}))}}}function yn(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 bn(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t}function En(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}var wn=function(){return wn=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},wn.apply(this,arguments)},kn=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.")},_n=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},Tn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_n(arguments[t]));return e};function xn(e,t,n){var r,i,o,a=n?(0,Ue.MR)(n).name:null,s=[],l=[];try{for(var u=kn(t),c=u.next();!c.done;c=u.next()){var p=c.value;if("FragmentSpread"===p.kind){var d=p.name.value;if(!p.directives||0===p.directives.length){if(l.indexOf(d)>=0)continue;l.push(d)}var f=e[p.name.value];if(f){var h=f.typeCondition,m=f.directives,v=f.selectionSet;p={kind:hn.b.INLINE_FRAGMENT,typeCondition:h,directives:m,selectionSet:v}}}if(p.kind===hn.b.INLINE_FRAGMENT&&(!p.directives||0===(null===(o=p.directives)||void 0===o?void 0:o.length))){var g=p.typeCondition?p.typeCondition.name.value:null;if(!g||g===a){s.push.apply(s,Tn(xn(e,p.selectionSet.selections,n)));continue}}s.push(p)}}catch(y){r={error:y}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return s}function Sn(e,t){var n,r,i=t?new fn.D(t):null,o=Object.create(null);try{for(var a=kn(e.definitions),s=a.next();!s.done;s=a.next()){var l=s.value;l.kind===hn.b.FRAGMENT_DEFINITION&&(o[l.name.value]=l)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var u={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=kn(e),s=a.next();!s.done;s=a.next()){var l=s.value;if("Field"===l.kind){var u=t(l),c=i.get(u);if(l.directives&&l.directives.length){var p=wn({},l);o.push(p)}else c&&c.selectionSet&&l.selectionSet?c.selectionSet.selections=Tn(c.selectionSet.selections,l.selectionSet.selections):c||(p=wn({},l),i.set(u,p),o.push(p))}else o.push(l)}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}(n=xn(o,n,t),(function(e){return e.alias?e.alias.value:e.name.value})),wn(wn({},e),{selections:n})},FragmentDefinition:function(){return null}};return(0,ye.YR)(e,i?(0,fn.S)(i,u):u)}var Cn=n(692),Nn=n.n(Cn),On=n(1500),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)};function Dn(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 In(e){return r.createElement("button",An({},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(Dn,{onClick:function(){return e.onClose()}}):null)}function Ln(e){return r.createElement("button",{onClick:e.onClick,className:"tab-add",title:"Create new tab"},r.createElement("span",null,"+"))}function Fn(e){return r.createElement("div",An({role:"tablist",className:"tabs"},e.tabsProps),e.children)}function Rn(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 Mn(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 Pn(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var Vn=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)}}(),jn=function(){return jn=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},jn.apply(this,arguments)},Un=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},$n=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])}}},zn=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},qn=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 Gn?Gn(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)}))}}},Bn=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},Hn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bn(arguments[t]));return e},Gn=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 Qn=function(e){return JSON.stringify(e,null,2)},Yn=function(e){return e instanceof me.eO?e.toString():e instanceof Error?function(e){return jn(jn({},e),{message:e.message,stack:e.stack})}(e):e},Wn=function(e){function t(n){var r,i,o,a,s,l,u,c,p,d,f,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:jn(jn({},e),{query:t.query,variables:t.variables,operationName:t.operationName,headers:t.headers,response:t.response,hash:Mn({query:t.query,variables:t.variables,headers:t.headers})})})),i=t.tabs.tabs[e];return jn(jn({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:jn(jn({},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=jn(jn({},t.tabs),{activeTabIndex:n,tabs:t.tabs.tabs.filter((function(t,n){return e!==n}))}),i=r.tabs[n];return jn(jn({},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:Pn(),title:"<untitled>",headers:"",variables:"",query:"",operationName:"",response:"",hash:Mn({query:"",variables:"",headers:""})},r=e.tabs.tabs.map((function(n,r){return r!==t?n:jn(jn({},n),{headers:e.headers,variables:e.variables,query:e.query,operationName:e.operationName,response:e.response})}));return jn(jn({},e),{headers:n.headers,variables:n.variables,query:n.query,operationName:n.operationName,response:n.response,tabs:jn(jn({},e.tabs),{activeTabIndex:e.tabs.tabs.length,tabs:Hn(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 Un(h,void 0,void 0,(function(){var n,r,i,o,a,s,l,u,c,p=this;return $n(this,(function(d){switch(d.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)),d.label=1;case 1:return d.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),l={data:{}},[4,this._fetchQuery(r,i,o,s,a,(function(e){var r,i;if(n===p._editorQueryID){var o=!!Array.isArray(e)&&e;if(!o&&"string"!==typeof e&&null!==e&&"hasNext"in e&&(o=[e]),o){var a={data:l.data},s=Hn((null===l||void 0===l?void 0:l.errors)||[],o.map((function(e){return e.errors})).flat().filter(Boolean));s.length&&(a.errors=s);try{for(var u=Gn(o),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.path,h=d.data,m=(d.errors,zn(d,["path","data","errors"]));if(f){if(!h)throw new Error("Expected part to contain a data property, but got "+d);Nn()(a.data,f,h,{merge:!0})}else h&&(a.data=d.data);l=jn(jn({},a),m)}}catch(g){r={error:g}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}p.setState({isWaitingForResponse:!1,response:t.formatResult(l)})}else{var v=t.formatResult(e);p.setState((function(e){return jn(jn({},e),{tabs:jn(jn({},e.tabs),{tabs:e.tabs.tabs.map((function(t,n){return n!==e.tabs.activeTabIndex?t:jn(jn({},t),{response:v})}))}),isWaitingForResponse:!1,response:v})}),p.persistTabsState)}}}))];case 2:return u=d.sent(),this.setState({subscription:u}),[3,4];case 3:return c=d.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,ve.y)((0,ge.qg)(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(l){}var p=h.getHeaderEditor(),d=null!==(n=null===p||void 0===p?void 0:p.getValue())&&void 0!==n?n:"";try{var f=JSON.stringify(JSON.parse(d),null,2);f!==d&&(null===p||void 0===p||p.setValue(f))}catch(u){}},h.handleMergeQuery=function(){var e=h.getQueryEditor();if(e.getValue()){var t=h.state.documentAST;e.setValue((0,ve.y)(Sn(t,h.state.schema)))}},h.handleEditQuery=Dt(100,(function(e){var t=h._updateQueryFacts(e,h.state.operationName,h.state.operations,h.state.schema);if(h.setState((function(n){return jn(jn(jn(jn({},n),{query:e}),t),{tabs:sr(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 Ee()(t),h.props.onCopyQuery?h.props.onCopyQuery(t):void 0},h._updateQueryFacts=function(e,t,n,r){var i=(0,we.getOperationFacts)(r,e);if(i){var o=pn(n,t,i.operations),a=h.props.onEditOperationName;return a&&o&&t!==o&&a(o),jn({operationName:o},i)}},h.handleEditVariables=function(e){h.setState((function(t){return jn(jn({},t),{variables:e,tabs:ar(e,t.tabs)})}),h.persistTabsState),Dt(500,(function(){return h._storage.set("variables",e)}))(),h.props.onEditVariables&&h.props.onEditVariables(e)},h.handleEditHeaders=function(e){h.setState((function(t){return jn(jn({},t),{headers:e,tabs:or(e,t.tabs)})}),h.persistTabsState),h.props.shouldPersistHeaders&&Dt(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)})),Dt(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-bn(e.target),n=function(e){if(0===e.buttons)return r();var n=h.editorBarComponent,i=e.clientX-bn(n)-t,o=n.clientWidth-i;h.setState({editorFlex:i/o}),Dt(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-bn(e.target),r=function(e){if(0===e.buttons)return i();var t=h.graphiqlContainer,r=e.clientX-bn(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)}),Dt(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}),Dt(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}),Dt(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-En(e.target),o=function(e){if(0===e.buttons)return a();t=!0;var n=h.editorBarComponent,o=e.clientY-En(n)-i,s=n.clientHeight-o;s<60?h.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):h.setState({secondaryEditorOpen:!0,secondaryEditorHeight:s}),Dt(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 cn(n.storage);var m=null!==(s=n.maxHistoryLength)&&void 0!==s?s:20;h._historyStore=new rn(h._storage,m),h.componentIsMounted=!1;var v,g=void 0!==n.query?n.query:h._storage.get("query")?h._storage.get("query"):void 0!==n.defaultQuery?n.defaultQuery:Zn,y=(0,we.getOperationFacts)(n.schema,g),b=void 0!==n.variables?n.variables:h._storage.get("variables"),E=void 0!==n.headers?n.headers:h._storage.get("headers"),w=void 0!==n.operationName?n.operationName:pn(void 0,h._storage.get("operationName"),y&&y.operations),k=n.docExplorerOpen||!1;h._storage.get("docExplorerOpen")&&(k="true"===h._storage.get("docExplorerOpen")),v=void 0!==n.defaultVariableEditorOpen?n.defaultVariableEditorOpen:void 0!==n.defaultSecondaryEditorOpen?n.defaultSecondaryEditorOpen:Boolean(b||E);var _=null===(l=n.headerEditorEnabled)||void 0===l||l,T=null!==(u=n.shouldPersistHeaders)&&void 0!==u&&u,x=n.schema,S=n.response,C=void 0;if(x&&!h.props.dangerouslyAssumeSchemaIsValid){var N=(0,On.i)(x);N&&N.length>0&&(S=t.formatError(N),x=void 0,C=N)}h._introspectionQuery=(0,fe.I)({schemaDescription:null!==(c=n.schemaDescription)&&void 0!==c?c:void 0,inputValueDeprecation:null!==(p=n.inputValueDeprecation)&&void 0!==p?p:void 0}),h._introspectionQueryName=null!==(d=n.introspectionQueryName)&&void 0!==d?d:"IntrospectionQuery",h._introspectionQuerySansSubscriptions=h._introspectionQuery.replace("subscriptionType { name }","");var O,A=Mn({query:g,variables:b,headers:E}),D={id:Pn(),hash:A,title:null!==w&&void 0!==w?w:"<untitled>",query:g,variables:b,headers:E,operationName:w,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 F=Gn(O.tabs),R=F.next();!R.done;R=F.next()){(U=R.value).query=U.query,U.variables=U.variables,U.headers=T?U.headers:void 0,U.response=void 0,U.operationName=void 0,U.id=Pn(),U.hash=Mn(U),U.hash===A&&(L=!0)}}catch($){r={error:$}}finally{try{R&&!R.done&&(i=F.return)&&i.call(F)}finally{if(r)throw r.error}}!1===L&&(O.tabs.push(D),O.activeTabIndex=O.tabs.length-1)}var M=O.tabs[0],P=0;try{for(var V=Gn(O.tabs),j=V.next();!j.done;j=V.next()){var U;if((U=j.value).hash===A){O.activeTabIndex=P,M=U;break}P++}}catch(z){o={error:z}}finally{try{j&&!j.done&&(a=V.return)&&a.call(V)}finally{if(o)throw o.error}}return h.state=jn({tabs:O,schema:x,query:null===M||void 0===M?void 0:M.query,variables:null===M||void 0===M?void 0:M.variables,headers:null===M||void 0===M?void 0:M.headers,operationName:null===M||void 0===M?void 0:M.operationName,response:null!==(f=null===M||void 0===M?void 0:M.response)&&void 0!==f?f:S,docExplorerOpen:k,schemaErrors:C,editorFlex:Number(h._storage.get("editorFlex"))||1,secondaryEditorOpen:v,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:_,shouldPersistHeaders:T,historyPaneOpen:"true"===h._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(h._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:m},y),h.state.query&&h.handleEditQuery(h.state.query),h}return Vn(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 ln,"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 l=(0,On.i)(n);l&&l.length>0&&(this.handleSchemaErrors(l),n=void 0)}var u=this._updateQueryFacts(r,a,this.state.operations,n);void 0!==u&&(a=u.operationName,this.setState(u))}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=dn(i,(function(e){return ir(e,t.Logo)}))||r.createElement(t.Logo,null),a=dn(i,(function(e){return ir(e,t.Toolbar)}))||r.createElement(t.Toolbar,null,r.createElement(Ne,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),r.createElement(Ne,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),r.createElement(Ne,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),r.createElement(Ne,{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=dn(i,(function(e){return ir(e,t.Footer)})),l={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},u={display:"block",width:this.state.docExplorerWidth},c="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},d=this.state.secondaryEditorOpen,f={height:d?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:p},r.createElement(sn,{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(_e,{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(Fn,{tabsProps:{"aria-label":"Select active operation"}},h.tabs.map((function(e,t){return r.createElement(In,{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(Ln,{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:l},r.createElement(it,{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:f,"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:d?"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(ut,{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(ht,{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(yt,{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:Se}),s))),this.state.docExplorerOpen&&r.createElement("div",{className:c,style:u},r.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),r.createElement(Gt,{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=mn(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=rr(n({query:this._introspectionQuery,operationName:this._introspectionQueryName},r));er(i)?i.then((function(t){if("string"!==typeof t&&"data"in t)return t;var o=rr(n({query:e._introspectionQuerySansSubscriptions,operationName:e._introspectionQueryName},r));if(!er(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,he.D)(n.data);if(!e.props.dangerouslyAssumeSchemaIsValid){var a=(0,On.i)(o);a&&a.length>0&&(o=void 0,e.handleSchemaErrors(a))}if(o){var s=(0,we.getOperationFacts)(o,e.state.query);e.safeSetState(jn(jn({schema:o},s),{schemaErrors:void 0})),null===(i=(r=e.props).onSchemaChange)||void 0===i||i.call(r,o)}}else{var l="string"===typeof n?n:t.formatResult(n);e.handleSchemaErrors([l])}})).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 Un(this,void 0,void 0,(function(){var s,l,u,c,p,d,f=this;return $n(this,(function(h){s=this.props.fetcher,l=null,u=null;try{l=n&&""!==n.trim()?JSON.parse(n):null}catch(m){throw new Error("Variables are invalid JSON: "+m.message+".")}if("object"!==typeof l)throw new Error("Variables are not a JSON object.");try{u=r&&""!==r.trim()?JSON.parse(r):null}catch(m){throw new Error("Headers are invalid JSON: "+m.message+".")}if("object"!==typeof u)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,ye.YR)((0,ge.qg)(this.props.externalFragments,{}),{FragmentDefinition:function(e){c.set(e.name.value,e)}}),(p=(0,we.getFragmentDependenciesForAST)(this.state.documentAST,c)).length>0&&(e+="\n"+p.map((function(e){return(0,ve.y)(e)})).join("\n"))),d=s({query:e,variables:l,operationName:i},{headers:u,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(d).then((function(e){return tr(e)?e.subscribe({next:a,error:function(e){f.safeSetState({isWaitingForResponse:!1,response:e?t.formatError(e):void 0,subscription:null})},complete:function(){f.safeSetState({isWaitingForResponse:!1,subscription:null})}}):nr(e)?(Un(f,void 0,void 0,(function(){var n,r,i,o,s,l,u;return $n(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=qn(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(),l={error:o},[3,12];case 7:return c.trys.push([7,,10,11]),r&&!r.done&&(u=n.return)?[4,u.call(n)]:[3,9];case 8:c.sent(),c.label=9;case 9:return[3,11];case 10:if(l)throw l.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 f.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)?Qn({errors:e.map((function(e){return Yn(e)}))}):Qn({errors:Yn(e)})},t.Logo=Kn,t.Toolbar=Jn,t.Footer=Xn,t.QueryEditor=it,t.VariableEditor=ut,t.HeaderEditor=ht,t.ResultViewer=yt,t.Button=Ne,t.ToolbarButton=Ne,t.Group=Oe,t.Menu=De,t.MenuItem=Ie,t}(r.Component);function Kn(e){return r.createElement("div",{className:"title"},e.children||r.createElement("span",null,"Graph",r.createElement("em",null,"i"),"QL"))}function Jn(e){return r.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function Xn(e){return r.createElement("div",{className:"footer"},e.children)}Kn.displayName="GraphiQLLogo",Jn.displayName="GraphiQLToolbar",Xn.displayName="GraphiQLFooter";var Zn='# 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 er(e){return"object"===typeof e&&"function"===typeof e.then}function tr(e){return"object"===typeof e&&"subscribe"in e&&"function"===typeof e.subscribe}function nr(e){return"object"===typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function rr(e){return Promise.resolve(e).then((function(e){return nr(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)}))}))):tr(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 ir(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 or(e,t){return jn(jn({},t),{tabs:t.tabs.map((function(n,r){return r!==t.activeTabIndex?n:jn(jn({},n),{headers:e,hash:Mn({query:n.query,headers:e,variables:n.variables})})}))})}function ar(e,t){return jn(jn({},t),{tabs:t.tabs.map((function(n,r){return r!==t.activeTabIndex?n:jn(jn({},n),{variables:e,hash:Mn({query:n.query,headers:n.headers,variables:e})})}))})}function sr(e,t,n){return jn(jn({},t),{tabs:t.tabs.map((function(r,i){return i!==t.activeTabIndex?r:jn(jn({},r),{title:null!==n&&void 0!==n?n:Rn(e),query:e,hash:Mn({query:e,headers:r.headers,variables:r.variables})})}))})}var lr=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)}}(),ur=function(){return ur=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},ur.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){pr(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}lr(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(cr,ur({},n.props,{onSelect:o}))}));return r.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:pr,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&&(pr(e),this.setState({visible:!1}),this._release())}}(r.Component);function cr(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:pr,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 pr(e){e.preventDefault()}const dr=Wn;var fr=n(2207),hr=n.n(fr),mr=n(6246),vr=n.n(mr),gr=function(e,t){return e.find((function(e){return e.name===t}))};function yr(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],l=gr(r,s.name.value);l&&(n[l.name]?console.error("The operation graph has a cycle"):t[l.name]||yr(l,t,n,r,i))}n[e.name]=!1,t[e.name]=!0,i.push(e)}var br="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},Er=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},wr=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}}(),kr=function(){var e=Cr(hr().mark((function e(t){var n,r;return hr().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 _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xr(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 Sr(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 Cr(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(l){return void n(l)}if(!a.done)return Promise.resolve(s).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(s)}("next")}))}}var Nr=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"})),Or=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"}))),Ar=function(e){var t=e.query,n=e.variables,r=function(e){if(Ir[0]===e&&Ir[1])return Ir[1];var t=[];try{var n=!0,r=!1,i=void 0;try{for(var o,a=(0,ge.qg)(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(l){r=!0,i=l}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}catch(u){}return Ir=[e,t],t}(t),i=[],o=!0,a=!1,s=void 0;try{for(var l,u=r[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var c=l.value;"FragmentDefinition"===c.kind&&i.push(c)}}catch(f){a=!0,s=f}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}var p=r.map((function(e){return{query:(0,ve.y)(e),name:Fr(e),displayName:Rr(e),type:e.operation||"fragment",variableName:(t=Fr(e),t.charAt(0).toUpperCase()+t.slice(1).replace(/[A-Z]/g,"_$&").toUpperCase()),variables:Lr(n,e),operationDefinition:e,fragmentDependencies:Dr(i,e)};var t})),d=function(e){var t=[],n={},r={},i=!0,o=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value;n[u.name]||r[u.name]||yr(u,n,r,e,t)}}catch(f){o=!0,a=f}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}return t}(p);return{operationDefinitions:r,fragmentDefinitions:i,rawOperationDataList:p,operationDataList:d}},Dr=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)},Ir=[null,null];var Lr=function(e,t){return(t.variableDefinitions||[]).reduce((function(t,n){var r=n.variable.name.value;return e[r]&&(t[r]=e[r]),t}),{})},Fr=function(e){return e.name?e.name.value:e.operation},Rr=function(e){return e.name?e.name.value:"<Unnamed:"+e.operation+">"},Mr=function(e){function t(){var e,n,r;Tr(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=xr(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()},xr(r,n)}return Sr(t,e),wr(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),Pr=function(e){function t(){return Tr(this,t),xr(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Sr(t,e),wr(t,[{key:"componentDidMount",value:function(){this.editor=vr()(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),Vr=function(e){function t(){var e,n,r,i=this;Tr(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=r=xr(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,Er({},o,_r({},t,n))),r.setState({optionValuesBySnippet:i})},r.getOptionValues=function(e){var t=e.options.reduce((function(e,t){return Er({},e,_r({},t.id,t.initial))}),{});return Er({},t,r.state.optionValuesBySnippet.get(e)||{},r.props.optionValues)},r._generateCodesandbox=function(){var e=Cr(hr().mark((function e(t){var n,o,a;return hr().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,kr(o(r._collectOptions(n,t,r.props.schema)));case 12:a=e.sent,r.setState({codesandboxResult:Er({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,l=i.headers;return{serverUrl:o,headers:void 0===l?{}:l,context:s,operationDataList:t,options:r.getOptionValues(e),schema:n}},xr(r,n)}return Sr(t,e),wr(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,l=s.showCopiedTooltip,u=s.codesandboxResult,c=this._activeSnippet(),p=c.name,d=c.language,f=c.generate,h=Ar({query:n,variables:a}),m=h.operationDefinitions,v=(h.fragmentDefinitions,h.rawOperationDataList,h.operationDataList),g=this.getOptionValues(c),y=m.length?f(this._collectOptions(c,v,this.props.schema)):null,b=c.generateCodesandboxFiles,E=[].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(Mr,{label:d,title:"Language"},E.map((function(t){return r.createElement("li",{key:t,onClick:function(){return e.setLanguage(t)}},t)}))),r.createElement(Mr,{label:p,title:"Mode"},i.filter((function(e){return e.language===d})).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:Er({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(v)}},Or," ",r.createElement("span",{style:{paddingLeft:"0.5em"}},"Create CodeSandbox")),u?r.createElement("div",{style:{paddingLeft:5,paddingTop:5}},"loading"===u.type?"Loading...":"error"===u.type?"Error: "+u.error:r.createElement("a",{rel:"noopener noreferrer",target:"_blank",href:"https://codesandbox.io/s/"+u.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(){Ee()(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:l?"block":"none"},pointerEvents:"none"},"Copied!"),Nr),r.createElement("div",{style:{padding:"15px 12px",margin:0,borderTop:"1px solid rgb(220, 220, 220)",fontSize:12}},y?r.createElement(Pr,{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),jr=function(e){function t(){var e,n,r;Tr(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=xr(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={hasError:!1},xr(r,n)}return Sr(t,e),wr(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(8287),Object.assign;n(6847),Object.assign;const Ur=function(e){var t=e.query,n=e.serverUrl,i=e.variables,o=e.context,a=void 0===o?{}:o,s=e.headers,l=void 0===s?{}:s,u=e.hideCodeExporter,c=void 0===u?function(){}:u,p=e.snippets,d=e.snippet,f=e.codeMirrorTheme,h=e.onSelectSnippet,m=e.onSetOptionValue,v=e.optionValues,g=e.onGenerateCodesandbox,y=e.schema,b={};try{var E=JSON.parse(i);"object"===("undefined"===typeof E?"undefined":br(E))&&(b=E)}catch(w){}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}},p.length?r.createElement(jr,null,r.createElement(Vr,{query:t,serverUrl:n,snippets:p,snippet:d,context:a,headers:l,variables:b,codeMirrorTheme:f,onSelectSnippet:h,onSetOptionValue:m,optionValues:v||{},onGenerateCodesandbox:g,schema:y})):r.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"Please provide a list of snippets")))};var $r=n(9995);const zr=n.p+"static/media/logo.2fa5e016c31f1c335b07ff477d91ee9a.svg";var qr=n(579);const Br=function(e){let{text:t="Loading"}=e;return(0,qr.jsx)("div",{className:"loading",children:(0,qr.jsxs)("div",{children:[(0,qr.jsx)("img",{src:zr,alt:"StepZen",className:"logo"}),(0,qr.jsxs)("p",{children:[t,"..."]})]})})},{REACT_APP_IS_DEVELOPMENT:Hr}={};const Gr=function(){const{folder:e,name:t}=ne(),n=ee(U);return(0,r.useEffect)((()=>{(async()=>{let r=window.location.origin;Hr&&(r=r.replace(":3000",":5000"));const i=await fetch(`${r}/api/details`),o=await i.json(),{endpoint:a}=o.workspace,s=a.split("/");s[0]===e&&s[1]===t||n.push(`/${a}`)})()}),[e,n,t]),null};const Qr=function(){return(0,qr.jsx)("div",{className:"server-status-overlay",children:(0,qr.jsx)("div",{className:"server-status-pop",children:(0,qr.jsxs)("p",{className:"pop-copy",children:["Run ",(0,qr.jsx)("code",{children:"stepzen start"})," to re-enable this explorer."]})})})},Yr=(e,t)=>({getItem:n=>window.localStorage.getItem(`${e}-${t}-${n}`),removeItem:n=>window.localStorage.removeItem(`${e}-${t}-${n}`),setItem:(n,r)=>window.localStorage.setItem(`${e}-${t}-${n}`,r)}),Wr=(e,t)=>{const{operationDataList:n}=e,{query:r}=n[0],i=r.replace(/query\s.+{/gim,"{");return" ".repeat(t)+i.replace(/\n/g,"\n"+" ".repeat(t))},Kr=[{name:"useQuery hook",language:"Apollo",codeMirrorMode:"jsx",options:[],generate:e=>`import { gql, useQuery } from '@apollo/client';\n\nconst GET_QUERY = gql\`\n query MyQuery ${Wr(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:e=>`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${Wr(e,2)}\n\`\n\nexport default ComponentName\n\n`},{name:"StaticQuery hook",language:"Gatsby",codeMirrorMode:"jsx",options:[],generate:e=>`import React from "react"\nimport { useStaticQuery, graphql } from "gatsby"\n\nconst ComponentName = () => {\nconst data = useStaticQuery(graphql\`\n${Wr(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:e=>`import React from "react"\nimport { StaticQuery, graphql } from "gatsby"\n\nconst ComponentName = () => (\n<StaticQuery\n query={graphql\`\n${Wr(e,6)}\n \`}\n render={data => <pre>{JSON.stringify(data, null, 4)}</pre>}\n></StaticQuery>\n)\n\nexport default ComponentName\n\n`}],{REACT_APP_IS_DEVELOPMENT:Jr}={};const Xr=function(){const{folder:e,name:t}=ne(),n=te().search,i=(0,r.useMemo)((()=>Yr(e,t)),[e,t]),[o,a]=(0,r.useState)(null),[s,l]=(0,r.useState)("true"===i.getItem("is-explorer-open")),[u,c]=(0,r.useState)("true"===i.getItem("is-exporter-open")),[p,d]=(0,r.useState)(!1),[f,h]=(0,r.useState)(null),[m,v]=(0,r.useState)(null),[g,y]=(0,r.useState)(null),[b,E]=(0,r.useState)(!0);let w=window.location.origin;Jr&&(w=w.replace(":3000",":5000")),(0,r.useEffect)((()=>{const e=setInterval((async()=>{try{await fetch(`${w}/api/ping`),E(!0),console.log("stepzen start running")}catch(e){E(!1),console.log("stepzen start NOT running")}}),5e3);return()=>{clearInterval(e)}}),[w]);const k=(0,r.useCallback)(((e,t)=>(fetch(`${w}/api/details`).then((e=>e.json())).then((e=>{!i.getItem("graphiql:queries")&&e.samples&&v(e.samples),a(e)})),fetch(`${w}/api/graphql`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,headers:null===t||void 0===t?void 0:t.headers})}).then((e=>e.json())))),[w,i]);(0,r.useEffect)((()=>{document.title=`StepZen - ${e}/${t}`,k({query:(0,fe.I)()}).then((e=>{e.data?y((0,he.D)(e.data)):d(!0)})).catch((()=>d(!0)))}),[k,e,t]),(0,r.useEffect)((()=>{(async()=>{const e=new URLSearchParams(n);if(e.get("query"))return void v(e.get("query"));const t=i.getItem("graphiql:queries");if(t){const e=JSON.parse(t),[n]=e.queries.slice(-1);return void v(n.query)}const r=await fetch(`${w}/api/samples`);if(r.ok){const{samples:e}=await r.json();if(e)return void v(e)}v(`# 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# Note: this ${window.location} url is for local exploration only;\n# you cannot query it from your app.\n`)})()}),[w,n,i]);const _=e=>{v(e)},T=()=>{const e=!s;l(e),i.setItem("is-explorer-open",e)},x=()=>{const e=!u;c(e),i.setItem("is-exporter-open",e)};return p?(0,qr.jsx)("div",{className:"graphiql-container",children:(0,qr.jsxs)("div",{className:"graphiql-container",children:[(0,qr.jsx)(Gr,{}),(0,qr.jsxs)("div",{className:"error-or-loading",children:[(0,qr.jsx)("img",{src:zr,alt:"StepZen",className:"logo"}),(0,qr.jsxs)("p",{children:["Could not load ",(0,qr.jsx)("code",{children:o.endpoint})]})]})]})}):g?(0,qr.jsxs)("div",{className:"graphiql-container",children:[(0,qr.jsx)(Gr,{}),b?null:(0,qr.jsx)(Qr,{}),s?(0,qr.jsx)($r.Ay,{explorerIsOpen:s,query:m,onEdit:_,onRunOperation:e=>f.handleRunQuery(e),onToggleExplorer:T,schema:g}):null,(0,qr.jsx)("div",{className:"graphiql-container",children:(0,qr.jsxs)(dr,{fetcher:k,query:m,onEditQuery:_,ref:e=>h(e),schema:g,storage:i,children:[(0,qr.jsx)(dr.Logo,{children:(0,qr.jsx)("img",{src:zr,alt:"StepZen"})}),o?(0,qr.jsx)(dr.Footer,{children:(0,qr.jsx)("p",{className:"endpoint",children:o.endpoint})}):null,(0,qr.jsxs)(dr.Toolbar,{children:[(0,qr.jsx)(dr.Button,{onClick:T,label:"Explorer",title:"Toggle Explorer"}),(0,qr.jsx)(dr.Button,{onClick:()=>f.handlePrettifyQuery(),label:"Prettify",title:"Prettify Query (Shift-Ctrl-P)"}),(0,qr.jsx)(dr.Button,{onClick:()=>f.handleToggleHistory(),label:"History",title:"Show History"}),(0,qr.jsx)(dr.Button,{onClick:x,label:"Export",title:"Toggle Export"})]})]})}),u?(0,qr.jsx)(Ur,{codeMirrorTheme:"default",hideCodeExporter:x,query:m,snippets:Kr}):null]}):(0,qr.jsx)("div",{className:"graphiql-container",children:(0,qr.jsx)(Br,{})})};de.render((0,qr.jsx)(r.StrictMode,{children:(0,qr.jsx)(re,{children:(0,qr.jsxs)(Z,{children:[(0,qr.jsx)(Q,{exact:!0,path:"/:folder/:name",children:(0,qr.jsx)(Xr,{})}),(0,qr.jsx)(Q,{component:Gr})]})})}),document.getElementById("root"))})()})();
3
+ //# sourceMappingURL=main.72b6d86f.js.map