@cubejs-backend/server-core 0.29.47 → 0.29.50
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.
- package/CHANGELOG.md +24 -0
- package/package.json +10 -10
- package/playground/asset-manifest.json +40 -15
- package/playground/index.html +1 -1
- package/playground/static/css/{2.b984234c.chunk.css → 11.b984234c.chunk.css} +1 -1
- package/playground/static/css/11.b984234c.chunk.css.map +1 -0
- package/playground/static/css/12.ea0ece1a.chunk.css +2 -0
- package/playground/static/css/12.ea0ece1a.chunk.css.map +1 -0
- package/playground/static/js/0.b54326b0.chunk.js +1 -0
- package/playground/static/js/1.9d9ab345.chunk.js +1 -0
- package/playground/static/js/11.58591f1d.chunk.js +2 -0
- package/playground/static/js/{2.423113bb.chunk.js.LICENSE.txt → 11.58591f1d.chunk.js.LICENSE.txt} +0 -0
- package/playground/static/js/12.9b92168e.chunk.js +2 -0
- package/playground/static/js/{3.d6210325.chunk.js.LICENSE.txt → 12.9b92168e.chunk.js.LICENSE.txt} +28 -0
- package/playground/static/js/13.6d3110b5.chunk.js +1 -0
- package/playground/static/js/14.1920a2b0.chunk.js +1 -0
- package/playground/static/js/15.340ce750.chunk.js +1 -0
- package/playground/static/js/16.f7339eee.chunk.js +1 -0
- package/playground/static/js/17.f8caaeba.chunk.js +1 -0
- package/playground/static/js/18.d0f413e3.chunk.js +1 -0
- package/playground/static/js/19.e3889e4b.chunk.js +1 -0
- package/playground/static/js/2.c807d1e1.chunk.js +1 -0
- package/playground/static/js/20.d1f7d9c3.chunk.js +1 -0
- package/playground/static/js/21.05ee64dd.chunk.js +1 -0
- package/playground/static/js/22.36de0e3d.chunk.js +1 -0
- package/playground/static/js/23.fbb40500.chunk.js +1 -0
- package/playground/static/js/24.cc29bbe7.chunk.js +1 -0
- package/playground/static/js/25.2ce3a50b.chunk.js +1 -0
- package/playground/static/js/26.1c78ec58.chunk.js +1 -0
- package/playground/static/js/27.54ec55b1.chunk.js +1 -0
- package/playground/static/js/28.ec979d0e.chunk.js +1 -0
- package/playground/static/js/29.67ff83b9.chunk.js +1 -0
- package/playground/static/js/3.5a159973.chunk.js +1 -0
- package/playground/static/js/4.59594e0b.chunk.js +1 -0
- package/playground/static/js/5.b30de4e9.chunk.js +1 -0
- package/playground/static/js/6.232ed74d.chunk.js +1 -0
- package/playground/static/js/7.7cedaa52.chunk.js +1 -0
- package/playground/static/js/8.6435ca8a.chunk.js +1 -0
- package/playground/static/js/{main.a986e072.chunk.js → main.d781bd64.chunk.js} +1 -1
- package/playground/static/js/runtime-main.6eb60c79.js +1 -0
- package/playground/static/css/2.b984234c.chunk.css.map +0 -1
- package/playground/static/css/3.fe75100a.chunk.css +0 -2
- package/playground/static/css/3.fe75100a.chunk.css.map +0 -1
- package/playground/static/js/2.423113bb.chunk.js +0 -2
- package/playground/static/js/3.d6210325.chunk.js +0 -2
- package/playground/static/js/4.2d19fca1.chunk.js +0 -1
- package/playground/static/js/runtime-main.0bebce59.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3.d6210325.chunk.js.LICENSE.txt */
|
|
2
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[3],Array(908).concat([function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return D}));var r=n(922),i=n(921),o=n(988),a=n(1019);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"===typeof Map?new Map:void 0;return d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),v(r,e)},d(e)}function h(e,t,n){return h=m()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&v(i,n.prototype),i},h.apply(null,arguments)}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(d,e);var t,n,a,u=function(e){var t=m();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}(d);function d(e,t,n,i,a,l,h){var m,v,g,y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(y=u.call(this,e)).name="GraphQLError",y.originalError=null!==l&&void 0!==l?l:void 0,y.nodes=b(Array.isArray(t)?t:t?[t]:void 0);for(var D=[],E=0,C=null!==(T=y.nodes)&&void 0!==T?T:[];E<C.length;E++){var T,x=C[E].loc;null!=x&&D.push(x)}D=b(D),y.source=null!==n&&void 0!==n?n:null===(m=D)||void 0===m?void 0:m[0].source,y.positions=null!==i&&void 0!==i?i:null===(v=D)||void 0===v?void 0:v.map((function(e){return e.start})),y.locations=i&&n?i.map((function(e){return Object(o.a)(n,e)})):null===(g=D)||void 0===g?void 0:g.map((function(e){return Object(o.a)(e.source,e.start)})),y.path=null!==a&&void 0!==a?a:void 0;var A=null===l||void 0===l?void 0:l.extensions;return null==h&&Object(r.a)(A)?y.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},A):y.extensions=null!==h&&void 0!==h?h:{},Object.defineProperties(f(y),{message:{enumerable:!0},locations:{enumerable:null!=y.locations},path:{enumerable:null!=y.path},extensions:{enumerable:null!=y.extensions&&Object.keys(y.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==l&&void 0!==l&&l.stack?(Object.defineProperty(f(y),"stack",{value:l.stack,writable:!0,configurable:!0}),p(y)):(Error.captureStackTrace?Error.captureStackTrace(f(y),d):Object.defineProperty(f(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return t=d,(n=[{key:"toString",value:function(){return D(this)}},{key:i.c,get:function(){return"Object"}}])&&l(t.prototype,n),a&&l(t,a),d}(d(Error));function b(e){return void 0===e||0===e.length?void 0:e}function D(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+Object(a.a)(i.loc))}else if(e.source&&e.locations)for(var o=0,u=e.locations;o<u.length;o++){var s=u[o];t+="\n\n"+Object(a.b)(e.source,s)}return t}},function(e,t,n){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,u=a&&(r?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),l=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=f&&(/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),D=/win/i.test(t),E=p&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(p=!1,s=!0);var C=y&&(c||p&&(null==E||E<12.11)),T=n||a&&u>=9;function x(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A,S=function(e,t){var n=e.className,r=x(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return w(e).appendChild(t)}function k(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 N(e,t,n,r){var i=k(e,t,n,r);return i.setAttribute("role","presentation"),i}function F(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 _(){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 I(e,t){var n=e.className;x(t).test(n)||(e.className+=(n?" ":"")+t)}function j(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!x(n[r]).test(t)&&(t+=" "+n[r]);return t}A=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 L=function(e){e.select()};function P(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function M(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 B(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 u=e.indexOf("\t",o);if(u<0||u>=t)return a+(t-o);a+=u-o,a+=n-a%n,o=u+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(t){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=P(this.onTimeout,this)};function V(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}R.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},R.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 U=50,q={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},G={origin:"*mouse"},W={origin:"+move"};function z(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 K=[""];function $(e){for(;K.length<=e;)K.push(Q(K)+" ");return K[e]}function Q(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Y(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&&M(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 ue(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 se(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 ce=null;function le(e,t,n){var r;ce=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:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}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]/,u=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var l=e.length,p=[],f=0;f<l;++f)p.push(n(e.charCodeAt(f)));for(var d=0,h=c;d<l;++d){var m=p[d];"m"==m?p[d]=h:h=m}for(var v=0,g=c;v<l;++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,D=p[0];b<l-1;++b){var E=p[b];"+"==E&&"1"==D&&"1"==p[b+1]?p[b]="1":","!=E||D!=p[b+1]||"1"!=D&&"n"!=D||(p[b]=D),D=E}for(var C=0;C<l;++C){var T=p[C];if(","==T)p[C]="N";else if("%"==T){var x=void 0;for(x=C+1;x<l&&"%"==p[x];++x);for(var A=C&&"!"==p[C-1]||x<l&&"1"==p[x]?"1":"N",S=C;S<x;++S)p[S]=A;C=x-1}}for(var w=0,O=c;w<l;++w){var k=p[w];"L"==O&&"1"==k?p[w]="L":o.test(k)&&(O=k)}for(var N=0;N<l;++N)if(i.test(p[N])){var F=void 0;for(F=N+1;F<l&&i.test(p[F]);++F);for(var _="L"==(N?p[N-1]:c),I=_==("L"==(F<l?p[F]:c))?_?"L":"R":c,j=N;j<F;++j)p[j]=I;N=F-1}for(var L,P=[],M=0;M<l;)if(a.test(p[M])){var B=M;for(++M;M<l&&a.test(p[M]);++M);P.push(new s(0,B,M))}else{var R=M,V=P.length,U="rtl"==t?1:0;for(++M;M<l&&"L"!=p[M];++M);for(var q=R;q<M;)if(u.test(p[q])){R<q&&(P.splice(V,0,new s(1,R,q)),V+=U);var H=q;for(++q;q<M&&u.test(p[q]);++q);P.splice(V,0,new s(2,H,q)),V+=U,R=q}else++q;R<M&&P.splice(V,0,new s(1,R,M))}return"ltr"==t&&(1==P[0].level&&(L=e.match(/^\s+/))&&(P[0].from=L[0].length,P.unshift(new s(0,0,L[0].length))),1==Q(P).level&&(L=e.match(/\s+$/))&&(Q(P).to-=L[0].length,P.push(new s(0,l-L[0].length,l)))),"rtl"==t?P.reverse():P}}();function fe(e,t){var n=e.order;return null==n&&(n=e.order=pe(e.text,t)),n}var de=[],he=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||de).concat(n)}};function me(e,t){return e._handlers&&e._handlers[t]||de}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=V(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),xe(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==V(n,t[r])&&n.push(t[r])}function De(e,t){return me(e,t).length>0}function Ee(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ae(e){Ce(e),Te(e)}function Se(e){return e.target||e.srcElement}function we(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 Oe,ke,Ne=function(){if(a&&u<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==Oe){var t=k("span","\u200b");O(e,k("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&u<8))}var n=Oe?k("span","\u200b"):k("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function _e(e){if(null!=ke)return ke;var t=O(e,document.createTextNode("A\u062eA")),n=A(t,0,1).getBoundingClientRect(),r=A(t,1,2).getBoundingClientRect();return w(e),!(!n||n.left==n.right)&&(ke=r.right-n.right<3)}var Ie=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/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le=function(){var e=k("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Pe=null;function Me(e){if(null!=Pe)return Pe;var t=O(e,k("span","x")),n=t.getBoundingClientRect(),r=A(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}var Be={},Re={};function Ve(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function Ue(e,t){Re[e]=t}function qe(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[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 qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function He(e,t){t=qe(t);var n=Be[t.name];if(!n)return He(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[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 Ge={};function We(e,t){M(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function ze(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 Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}var Qe=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 Je(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 Ye(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=V(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 u=e.lines[a].height;if(t<u)break;t-=u}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 ut(e){return it(e.line,e.ch)}function st(e,t){return ot(e,t)<0?t:e}function ct(e,t){return ot(e,t)<0?e:t}function lt(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,Je(e,n).text.length):ft(t,Je(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function dt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=pt(e,t[r]);return n}Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.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},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Qe.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},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.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={};At(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,u=function(r){n.baseTokens=i;var u=e.state.overlays[r],s=1,c=0;n.state=!0,At(e,t.text,u.mode,n,(function(e,t){for(var n=s;c<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(u.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)u(s);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&&ze(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&&Je(r,o-1).stateAfter,u=a?mt.fromSaved(r,a,o):new mt(r,$e(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,u);var r=u.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?u.save():null,u.nextLine()})),n&&(r.modeFrontier=u.line),u}function bt(e,t,n,r){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Dt(i,n.state);!o.eol();)Et(i,o,n.state),o.start=o.pos}function Dt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(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,ze(e.mode,t.state),n,t.lookAhead):new mt(e,ze(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var Ct=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Tt(e,t,n,r){var i,o,a=e.doc,u=a.mode,s=Je(a,(t=pt(a,t)).line),c=yt(e,t.line,n),l=new Qe(s.text,e.options.tabSize,c);for(r&&(o=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,i=Et(u,l,c.state),r&&o.push(new Ct(l,i,ze(a.mode,c.state)));return r?o:new Ct(l,i,c.state)}function xt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function At(e,t,n,r,i,o,a){var u=n.flattenSpans;null==u&&(u=e.options.flattenSpans);var s,c=0,l=null,p=new Qe(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&xt(Dt(n,r.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(u=!1,a&&bt(e,t,r,p.pos),p.pos=t.length,s=null):s=xt(Et(n,p,r.state,f),o),f){var d=f[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!u||l!=s){for(;c<p.start;)i(c=Math.min(p.start,c+5e3),l);l=s}p.start=p.pos}for(;c<p.pos;){var h=Math.min(p.pos,c+5e3);i(h,l),c=h}}function St(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),u=t;u>a;--u){if(u<=o.first)return o.first;var s=Je(o,u-1),c=s.stateAfter;if(c&&(!n||u+(c instanceof ht?c.lookAhead:0)<=o.modeFrontier))return u;var l=B(s.text,null,e.options.tabSize);(null==i||r>l)&&(i=u-1,r=l)}return i}function wt(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=Je(e,r).stateAfter;if(i&&(!(i instanceof ht)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Ot=!1,kt=!1;function Nt(){Ot=!0}function Ft(){kt=!0}function _t(e,t,n){this.marker=e,this.from=t,this.to=n}function It(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Lt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&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 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.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var u=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,u?null:o.to))}}return r}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.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new _t(a,u?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Bt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Je(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Je(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),u=Pt(n,i,a),s=Mt(r,o,a),c=1==t.text.length,l=Q(t.text).length+(c?i:0);if(u)for(var p=0;p<u.length;++p){var f=u[p];if(null==f.to){var d=It(s,f.marker);d?c&&(f.to=null==d.to?null:d.to+l):f.to=i}}if(s)for(var h=0;h<s.length;++h){var m=s[h];null!=m.to&&(m.to+=l),null==m.from?It(u,m.marker)||(m.from=l,c&&(u||(u=[])).push(m)):(m.from+=l,c&&(u||(u=[])).push(m))}u&&(u=Rt(u)),s&&s!=u&&(s=Rt(s));var v=[u];if(!c){var g,y=t.text.length-2;if(y>0&&u)for(var b=0;b<u.length;++b)null==u[b].to&&(g||(g=[])).push(new _t(u[b].marker,null,null));for(var D=0;D<y;++D)v.push(g);v.push(s)}return v}function Rt(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 Vt(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!=V(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],u=a.find(0),s=0;s<i.length;++s){var c=i[s];if(!(ot(c.to,u.from)<0||ot(c.from,u.to)>0)){var l=[s,1],p=ot(c.from,u.from),f=ot(c.to,u.to);(p<0||!a.inclusiveLeft&&!p)&&l.push({from:c.from,to:u.from}),(f>0||!a.inclusiveRight&&!f)&&l.push({from:u.to,to:c.to}),i.splice.apply(i,l),s+=l.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ht(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function Wt(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)||Ht(e)-Ht(t);if(o)return-o;var a=ot(r.to,i.to)||Gt(e)-Gt(t);return a||t.id-e.id}function zt(e,t){var n,r=kt&&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||Wt(n,i.marker)<0)&&(n=i.marker);return n}function Kt(e){return zt(e,!0)}function $t(e){return zt(e,!1)}function Qt(e,t){var n,r=kt&&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||Wt(n,o.marker)<0)&&(n=o.marker)}return n}function Jt(e,t,n,r,i){var o=Je(e,t),a=kt&&o.markedSpans;if(a)for(var u=0;u<a.length;++u){var s=a[u];if(s.marker.collapsed){var c=s.marker.find(0),l=ot(c.from,n)||Ht(s.marker)-Ht(i),p=ot(c.to,r)||Gt(s.marker)-Gt(i);if(!(l>=0&&p<=0||l<=0&&p>=0)&&(l<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ot(c.to,n)>=0:ot(c.to,n)>0)||l>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ot(c.from,r)<=0:ot(c.from,r)<0)))return!0}}}function Yt(e){for(var t;t=Kt(e);)e=t.find(-1,!0).line;return e}function Xt(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function Zt(e){for(var t,n;t=$t(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Je(e,t),r=Yt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!nn(e,r))return t;for(;n=$t(r);)r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=kt&&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,It(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=Yt(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 u=o.children[a];if(u==n)break;t+=u.height}return t}function an(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Kt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=$t(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 un(e){var t=e.display,n=e.doc;t.maxLine=Je(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 sn=function(e,t,n){this.text=e,qt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),qt(e,n);var i=r?r(e):1;i!=e.height&&Ze(e,i)}function ln(e){e.parent=null,Ut(e)}sn.prototype.lineNo=function(){return et(this)},Ee(sn);var pn={},fn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:pn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=N("span",null,null,s?"padding-right: .1px":null),r={pre:N("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,_e(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],Dn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Fe(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(s){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function mn(e){var t=k("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,s){if(t){var c,l=e.splitSpaces?gn(t,e.trailingSpace):t,p=e.cm.state.specialChars,f=!1;if(p.test(t)){c=document.createDocumentFragment();for(var d=0;;){p.lastIndex=d;var h=p.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(l.slice(d,d+m));a&&u<9?c.appendChild(k("span",[v])):c.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var g=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(g=c.appendChild(k("span",$(b),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((g=c.appendChild(k("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&&u<9?c.appendChild(k("span",[g])):c.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,c=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,c),a&&u<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||i||f||o||s){var D=n||"";r&&(D+=r),i&&(D+=i);var E=k("span",[c],D,o);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&E.setAttribute(C,s[C]);return e.content.appendChild(E)}e.content.appendChild(c)}}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,u,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,l=c+r.length;;){for(var p=void 0,f=0;f<t.length&&!((p=t[f]).to>c&&p.from<=c);f++);if(p.to>=l)return e(n,r,i,o,a,u,s);e(n,r.slice(0,p.to-c),i,o,null,u,s),o=null,r=r.slice(p.to-c),c=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 Dn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,u,s,c,l,p,f,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){s=c=l=u="",f=null,p=null,g=1/0;for(var y=[],b=void 0,D=0;D<r.length;++D){var E=r[D],C=E.marker;if("bookmark"==C.type&&E.from==h&&C.widgetNode)y.push(C);else if(E.from<=h&&(null==E.to||E.to>h||C.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,c=""),C.className&&(s+=" "+C.className),C.css&&(u=(u?u+";":"")+C.css),C.startStyle&&E.from==h&&(l+=" "+C.startStyle),C.endStyle&&E.to==g&&(b||(b=[])).push(C.endStyle,E.to),C.title&&((f||(f={})).title=C.title),C.attributes)for(var T in C.attributes)(f||(f={}))[T]=C.attributes[T];C.collapsed&&(!p||Wt(p.marker,C)<0)&&(p=E)}else E.from>h&&g>E.from&&(g=E.from)}if(b)for(var x=0;x<b.length;x+=2)b[x+1]==g&&(c+=" "+b[x]);if(!p||p.from==h)for(var A=0;A<y.length;++A)bn(t,0,y[A]);if(p&&(p.from||0)==h){if(bn(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(v){var w=h+v.length;if(!p){var O=w>S?v.slice(0,S-h):v;t.addToken(t,O,a?a+s:s,l,h+O.length==g?c:"",u,f)}if(w>=S){v=v.slice(S-h),h=S;break}h=w,l=""}v=i.slice(o,o=n[m++]),a=dn(n[m++],t.cm.options)}}else for(var k=1;k<n.length;k+=2)t.addToken(t,i.slice(o,o=n[k]),dn(n[k+1],t.cm.options))}function En(e,t,n){this.line=t,this.rest=Zt(t),this.size=this.rest?et(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nn(e,t)}function Cn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new En(e.doc,Je(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Tn=null;function xn(e){Tn?Tn.ops.push(e):e.ownsGroup=Tn={ops:[e],delayedCallbacks:[]}}function An(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{An(n)}finally{Tn=null,t(n)}}var wn=null;function On(e,t){var n=me(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Tn?r=Tn.delayedCallbacks:wn?r=wn:(r=wn=[],setTimeout(kn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function kn(){var e=wn;wn=null;for(var t=0;t<e.length;++t)e[t]()}function Nn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?jn(e,t):"gutter"==o?Pn(e,t,n,r):"class"==o?Ln(e,t):"widget"==o&&Mn(e,t,r)}t.changes=null}function Fn(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&u<8&&(e.node.style.zIndex=2)),e.node}function _n(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Fn(t);t.background=r.insertBefore(k("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function In(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 jn(e,t){var n=t.text.className,r=In(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,Ln(e,t)):n&&(t.text.className=n)}function Ln(e,t){_n(e,t),t.line.wrapClass?Fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Pn(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=Fn(t);t.gutterBackground=k("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=Fn(t),u=t.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(u.setAttribute("aria-hidden","true"),e.display.input.setUneditable(u),a.insertBefore(u,t.text),t.line.gutterClass&&(u.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=u.appendChild(k("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,l=o.hasOwnProperty(c)&&o[c];l&&u.appendChild(k("div",[l],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Mn(e,t,n){t.alignable&&(t.alignable=null);for(var r=x("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Rn(e,t,n)}function Bn(e,t,n,r){var i=In(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Ln(e,t),Pn(e,t,n,r),Rn(e,t,r),t.node}function Rn(e,t,n){if(Vn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Vn(e,t.rest[r],t,n,!1)}function Vn(e,t,n,r,i){if(t.widgets)for(var o=Fn(n),a=0,u=t.widgets;a<u.length;++a){var s=u[a],c=k("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Un(s,c,n,r),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),On(s,"redraw")}}function Un(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 qn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!F(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;"),O(t.display.measure,k("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Hn(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 Gn(e){return e.lineSpace.offsetTop}function Wn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function zn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,k("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 Kn(e){return U-e.display.nativeBarWidth}function $n(e){return e.display.scroller.clientWidth-Kn(e)-e.display.barWidth}function Qn(e){return e.display.scroller.clientHeight-Kn(e)-e.display.barHeight}function Jn(e,t,n){var r=e.options.lineWrapping,i=r&&$n(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(),u=0;u<a.length-1;u++){var s=a[u],c=a[u+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Yn(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=Yt(t)),r=e.display.externalMeasured=new En(e.doc,t,n);r.lineN=n;var i=r.built=hn(e,r);return r.text=i.pre,O(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[Lr(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&&(Nn(e,r,n,Nr(e)),e.curOp.forceUpdate=!0),r||(r=Xn(e,t));var i=Yn(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||(Jn(e,t.view,t.rect),t.hasHeights=!0),(o=ur(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,u,s,c=0;c<e.length;c+=3)if(u=e[c],s=e[c+1],t<u?(i=0,o=1,a="left"):t<s?o=1+(i=t-u):(c==e.length-3||t==s&&e[c+3]>t)&&(i=(o=s-u)-1,t>=s&&(a="right")),null!=i){if(r=e[c+2],u==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==s-u)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:u,coverEnd:s}}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 ur(e,t,n,r){var i,o=or(t.map,n,r),s=o.node,c=o.start,l=o.end,p=o.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+l<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+l));)++l;if((i=a&&u<9&&0==c&&l==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():ar(A(s,c,l).getClientRects(),r)).left||i.right||0==c)break;l=c,c-=1,p="right"}a&&u<11&&(i=sr(e.display.measure,i))}else{var d;c>0&&(p=r="right"),i=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==r?d.length-1:0]:s.getBoundingClientRect()}if(a&&u<9&&!c&&(!i||!i.left&&!i.right)){var h=s.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+kr(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 D=b?y[b-1]:0,E=y[b],C={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:D,bottom:E};return i.left||i.right||(C.bogus=!0),e.options.singleCursorHeightPerLine||(C.rtop=m,C.rbottom=v),C}function sr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Me(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 cr(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 lr(e){e.display.externalMeasure=null,w(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)cr(e.display.view[t])}function pr(e){lr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function fr(){return l&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function dr(){return l&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=qn(e.widgets[n]));return t}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+=Gn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var u=e.display.lineSpace.getBoundingClientRect();a+=u.top+("window"==r?0:dr());var s=u.left+("window"==r?0:fr());n.left+=s,n.right+=s}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-=fr(),i-=dr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function gr(e,t,n,r,i){return r||(r=Je(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 u=nr(e,i,t,a?"right":"left",o);return a?u.left=u.right:u.right=u.left,mr(e,r,u,n)}r=r||Je(e.doc,t.line),i||(i=tr(e,r));var u=fe(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!u)return a("before"==c?s-1:s,"before"==c);function l(e,t,n){return a(n?e-1:e,1==u[t].level!=n)}var p=le(u,s,c),f=ce,d=l(s,p,"before"==c);return null!=f&&(d.other=l(s,f,"before"!=c)),d}function br(e,t){var n=0;t=pt(e.doc,t),e.options.lineWrapping||(n=kr(e.display)*t.ch);var r=Je(e.doc,t.line),i=on(r)+Gn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Dr(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Dr(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Dr(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var u=Ar(e,a,i,t,n),s=Qt(a,u.ch+(u.xRel>0||u.outside>0?1:0));if(!s)return u;var c=s.find(1);if(c.line==i)return c;a=Je(r,i=c.line)}}function Cr(e,t,n,r){r-=hr(t);var i=t.text.length,o=ue((function(t){return nr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return nr(e,n,t).top>r}),o,i)}}function Tr(e,t,n,r){return n||(n=tr(e,t)),Cr(e,t,n,mr(e,t,nr(e,n,r),"line").top)}function xr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Ar(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=hr(t),u=0,s=t.text.length,c=!0,l=fe(t,e.doc.direction);if(l){var p=(e.options.lineWrapping?wr:Sr)(e,t,n,o,l,r,i);u=(c=1!=p.level)?p.from:p.to-1,s=c?p.to:p.from-1}var f,d,h=null,m=null,v=ue((function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!xr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),u,s),g=!1;if(m){var y=r-m.left<m.right-r,b=y==c;v=h+(b?0:1),d=b?"after":"before",f=y?m.left:m.right}else{c||v!=s&&v!=u||v++,d=0==v?"after":v==t.text.length?"before":nr(e,o,v-(c?1:0)).bottom+a<=i==c?"after":"before";var D=yr(e,it(n,v,d),"line",t,o);f=D.left,g=i<D.top?-1:i>=D.bottom?1:0}return Dr(n,v=ae(t.text,v,1),d,g,r-f)}function Sr(e,t,n,r,i,o,a){var u=ue((function(u){var s=i[u],c=1!=s.level;return xr(yr(e,it(n,c?s.to:s.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),s=i[u];if(u>0){var c=1!=s.level,l=yr(e,it(n,c?s.from:s.to,c?"after":"before"),"line",t,r);xr(l,o,a,!0)&&l.top>a&&(s=i[u-1])}return s}function wr(e,t,n,r,i,o,a){var u=Cr(e,t,r,a),s=u.begin,c=u.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var l=null,p=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=c||d.to<=s)){var h=nr(e,r,1!=d.level?Math.min(c,d.to)-1:Math.max(s,d.from)).right,m=h<o?o-h+1e9:h-o;(!l||p>m)&&(l=d,p=m)}}return l||(l=i[i.length-1]),l.from<s&&(l={from:s,to:l.to,level:l.level}),l.to>c&&(l={from:l.from,to:c,level:l.level}),l}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(k("br"));rr.appendChild(document.createTextNode("x"))}O(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),w(e.measure),n||1}function kr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),n=k("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Nr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var u=e.display.gutterSpecs[a].className;n[u]=o.offsetLeft+o.clientLeft+i,r[u]=o.clientWidth}return{fixedPos:Fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _r(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/kr(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 Ir(e){var t=e.doc,n=_r(e);t.iter((function(e){var t=n(e);t!=e.height&&Ze(e,t)}))}function jr(e,t,n,r){var i=e.display;if(!n&&"true"==Se(t).getAttribute("cm-not-content"))return null;var o,a,u=i.lineSpace.getBoundingClientRect();try{o=t.clientX-u.left,a=t.clientY-u.top}catch(p){return null}var s,c=Er(e,o,a);if(r&&c.xRel>0&&(s=Je(e.doc,c.line).text).length==c.ch){var l=B(s,s.length,e.options.tabSize)-s.length;c=it(c.line,Math.max(0,Math.round((o-zn(e.display).left)/kr(e.display))-l))}return c}function Lr(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 Pr(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)kt&&en(e.doc,t)<i.viewTo&&Br(e);else if(n<=i.viewFrom)kt&&tn(e.doc,n+r)>i.viewFrom?Br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Br(e);else if(t<=i.viewFrom){var o=Rr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Br(e)}else if(n>=i.viewTo){var a=Rr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Br(e)}else{var u=Rr(e,t,t,-1),s=Rr(e,n,n+r,1);u&&s?(i.view=i.view.slice(0,u.index).concat(Cn(e,u.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Br(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Mr(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[Lr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==V(a,n)&&a.push(n)}}}function Br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var i,o=Lr(e,t),a=e.display.view;if(!kt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var u=e.display.viewFrom,s=0;s<o;s++)u+=a[s].size;if(u!=t){if(r>0){if(o==a.length-1)return null;i=u+a[o].size-t,o++}else i=u-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 Vr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Cn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Lr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Cn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Lr(e,n)))),r.viewTo=n}function Ur(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 qr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Hr(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 u=0;u<n.sel.ranges.length;u++)if(t||u!=n.sel.primIndex){var s=n.sel.ranges[u];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();if(a){var l=a(e,s);l&&Gr(e,l,i)}else(c||e.options.showCursorWhenSelecting)&&Gr(e,s.head,i);c||zr(e,s,o)}}return r}function Gr(e,t,n){var r=yr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(k("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 u=n.appendChild(k("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));u.style.display="",u.style.left=r.other.left+"px",u.style.top=r.other.top+"px",u.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Wr(e,t){return e.top-t.top||e.left-t.left}function zr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=zn(e.display),u=a.left,s=Math.max(r.sizerWidth,$n(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function l(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=Je(i,t),f=p.text.length;function d(n,r){return gr(e,it(t,n),"div",p,r)}function h(t,n,r){var i=Tr(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=fe(p,i.direction);return se(m,n||0,null==r?f:r,(function(e,t,i,p){var v="ltr"==i,g=d(e,v?"left":"right"),y=d(t-1,v?"right":"left"),b=null==n&&0==e,D=null==r&&t==f,E=0==p,C=!m||p==m.length-1;if(y.top-g.top<=3){var T=(c?D:b)&&C,x=(c?b:D)&&E?u:(v?g:y).left,A=T?s:(v?y:g).right;l(x,g.top,A-x,g.bottom)}else{var S,w,O,k;v?(S=c&&b&&E?u:g.left,w=c?s:h(e,i,"before"),O=c?u:h(t,i,"after"),k=c&&D&&C?s:y.right):(S=c?h(e,i,"before"):u,w=!c&&b&&E?s:g.right,O=!c&&D&&C?u:y.left,k=c?h(t,i,"after"):s),l(S,g.top,w-S,g.bottom),g.bottom<y.top&&l(u,g.bottom,null,y.top),l(O,y.top,k-O,y.bottom)}(!o||Wr(g,o)<0)&&(o=g),Wr(y,o)<0&&(o=y),(!a||Wr(g,a)<0)&&(a=g),Wr(y,a)<0&&(a=y)})),{start:o,end:a}}var f=t.from(),d=t.to();if(f.line==d.line)p(f.line,f.ch,d.ch);else{var h=Je(i,f.line),m=Je(i,d.line),v=Yt(h)==Yt(m),g=p(f.line,f.ch,v?h.text.length+1:null).end,y=p(d.line,v?0:null,d.ch).start;v&&(g.top<y.top-2?(l(g.right,g.top,null,g.bottom),l(u,y.top,y.left,y.bottom)):l(g.right,g.top,y.left-g.right,g.bottom)),g.bottom<y.top&&l(u,g.bottom,null,y.top)}n.appendChild(o)}function Kr(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()||Yr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function $r(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jr(e))}function Qr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Yr(e))}),100)}function Jr(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,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Kr(e))}function Yr(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,s=0;s<t.view.length;s++){var c=t.view[s],l=e.options.lineWrapping,p=void 0,f=0;if(!c.hidden){if(i+=c.line.height,a&&u<8){var d=c.node.offsetTop+c.node.offsetHeight;p=d-n,n=d}else{var h=c.node.getBoundingClientRect();p=h.bottom-h.top,!l&&c.text.firstChild&&(f=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=c.line.height-p;if((m>.005||m<-.005)&&(i<r&&(o-=m),Ze(c.line,p),Zr(c.line),c.rest))for(var v=0;v<c.rest.length;v++)Zr(c.rest[v]);if(f>e.display.sizerWidth){var g=Math.ceil(f/kr(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=c.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-Gn(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 u=n.ensure.from.line,s=n.ensure.to.line;u<o?(o=u,a=tt(t,on(Je(t,u))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=tt(t,on(Je(t,s))-e.wrapper.clientHeight),a=s)}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=k("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Kn(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,u=yr(e,t),s=n&&n!=t?yr(e,n):u,c=ii(e,i={left:Math.min(u.left,s.left),top:Math.min(u.top,s.top)-r,right:Math.max(u.left,s.left),bottom:Math.max(u.bottom,s.bottom)+r}),l=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=c.scrollTop&&(pi(e,c.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(di(e,c.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&&di(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var u=e.doc.height+Wn(n),s=t.top<r,c=t.bottom>u-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var l=Math.min(t.top,(c?u:t.bottom)-o);l!=i&&(a.scrollTop=l)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,d=$n(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+p-(h?0:10)):t.right>d+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function oi(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ui(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function si(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,li(e,br(e,t.from),br(e,t.to),t.margin))}function li(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});ui(e,i.scrollLeft,i.scrollTop)}function pi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||qi(e,{top:t}),fi(e,t,!0),n&&qi(e),ji(e,100))}function fi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function di(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,zi(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+Wn(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+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mi=function(e,t,n){this.cm=n;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=k("div",[k("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&&u<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&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},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 Di(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?di(e,t):pi(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Ei=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ei,markArrays:null},xn(e.curOp)}function Ti(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;xi(e)}))}function xi(e){for(var t=e.ops,n=0;n<t.length;n++)Ai(t[n]);for(var r=0;r<t.length;r++)Si(t[r]);for(var i=0;i<t.length;i++)wi(t[i]);for(var o=0;o<t.length;o++)Oi(t[o]);for(var a=0;a<t.length;a++)ki(t[a])}function Ai(e){var t=e.cm,n=t.display;Mi(t),e.updateMaxLine&&un(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Pi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Si(e){e.updatedDisplay=e.mustUpdate&&Vi(e.cm,e.update)}function wi(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+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-$n(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Oi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&di(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==_();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&gi(t,e.barMeasure),e.updatedDisplay&&Wi(t,e.barMeasure),e.selectionChanged&&Kr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&$r(e.cm)}function ki(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&fi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&di(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 u=0;u<o.length;++u)o[u].lines.length&&ge(o[u],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ni(e,t){if(e.curOp)return t();Ci(e);try{return t()}finally{Ti(e)}}function Fi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ci(e);try{return t.apply(e,arguments)}finally{Ti(e)}}}function _i(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Ti(this)}}}function Ii(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ci(t);try{return e.apply(this,arguments)}finally{Ti(t)}}}function ji(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,P(Li,e))}function Li(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,u=o.text.length>e.options.maxHighlightLength?ze(t.mode,r.state):null,s=vt(e,o,r,!0);u&&(r.state=u),o.styles=s.styles;var c=o.styleClasses,l=s.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),f=0;!p&&f<a.length;++f)p=a[f]!=o.styles[f];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 ji(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ni(e,(function(){for(var t=0;t<i.length;t++)Mr(e,i[t],"text")}))}}var Pi=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=$n(e),this.force=n,this.dims=Nr(e),this.events=[]};function Mi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kn(e)+"px",t.scrollbarsClipped=!0)}function Bi(e){if(e.hasFocus())return null;var t=_();if(!t||!F(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&F(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Ri(e){if(e&&e.activeElt&&e.activeElt!=_()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&F(document.body,e.anchorNode)&&F(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 Vi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Br(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==Ur(e))return!1;Ki(e)&&(Br(e),t.dims=Nr(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)),kt&&(o=en(e.doc,o),a=tn(e.doc,a));var u=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Vr(e,o,a),n.viewOffset=on(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Ur(e);if(!u&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Bi(e);return s>4&&(n.lineDiv.style.display="none"),Hi(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ri(c),w(n.cursorDiv),w(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,u&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ji(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=$n(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Wn(e.display)-Qn(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(!Vi(e,t))break;Xr(e);var i=hi(e);qr(e),gi(e,i),Wi(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 qi(e,t){var n=new Pi(e,t);if(Vi(e,n)){Xr(e),Ui(e,n);var r=hi(e);qr(e),gi(e,r),Wi(e,r),n.finish()}}function Hi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function u(t){var n=t.nextSibling;return s&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,l=r.viewFrom,p=0;p<c.length;p++){var f=c[p];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=u(a);var d=i&&null!=t&&t<=l&&f.lineNumber;f.changes&&(V(f.changes,"gutter")>-1&&(d=!1),Nn(e,f,l,n)),d&&(w(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,l)))),a=f.node.nextSibling}else{var h=Bn(e,f,l,n);o.insertBefore(h,a)}l+=f.size}for(;a;)a=u(a)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",On(e,"gutterChanged",e)}function Wi(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+Kn(e)+"px"}function zi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Fr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,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 u=n[a].alignable;if(u)for(var s=0;s<u.length;s++)u[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ki(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(k("div",[k("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",Gi(e.display),!0}return!1}function $i(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 Qi(e){var t=e.gutters,n=e.gutterSpecs;w(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,u=t.appendChild(k("div",null,"CodeMirror-gutter "+o));a&&(u.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=u,u.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Gi(e)}function Ji(e){Qi(e.display),Pr(e),zi(e)}function Yi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=N("div",null,"CodeMirror-code"),o.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=k("div",null,"CodeMirror-cursors"),o.measure=k("div",null,"CodeMirror-measure"),o.lineMeasure=k("div",null,"CodeMirror-measure"),o.lineSpace=N("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=N("div",[o.lineSpace],"CodeMirror-lines");o.mover=k("div",[c],null,"position: relative"),o.sizer=k("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=k("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),o.gutters=k("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=k("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=k("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),a&&u<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||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=$i(i.gutters,i.lineNumbers),Qi(o),r.init(o)}Pi.prototype.signal=function(e,t){De(e,t)&&this.events.push(arguments)},Pi.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 u=e.display,c=u.scroller,l=c.scrollWidth>c.clientWidth,f=c.scrollHeight>c.clientHeight;if(i&&l||o&&f){if(o&&y&&s)e:for(var d=t.target,h=u.view;d!=c;d=d.parentNode)for(var m=0;m<h.length;m++)if(h[m].node==d){e.display.currentWheelTarget=d;break e}if(i&&!n&&!p&&null!=a)return o&&f&&pi(e,Math.max(0,c.scrollTop+o*a)),di(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&f)&&Ce(t),void(u.wheelStartX=null);if(o&&null!=a){var v=o*a,g=e.doc.scrollTop,b=g+u.wrapper.clientHeight;v<0?g=Math.max(0,g+v-50):b=Math.min(e.doc.height,b+v+50),qi(e,{top:g,bottom:b})}Xi<20&&0!==t.deltaMode&&(null==u.wheelStartX?(u.wheelStartX=c.scrollLeft,u.wheelStartY=c.scrollTop,u.wheelDX=i,u.wheelDY=o,setTimeout((function(){if(null!=u.wheelStartX){var e=c.scrollLeft-u.wheelStartX,t=c.scrollTop-u.wheelStartY,n=t&&u.wheelDY&&t/u.wheelDY||e&&u.wheelDX&&e/u.wheelDX;u.wheelStartX=u.wheelStartY=null,n&&(Zi=(Zi*Xi+n)/(Xi+1),++Xi)}}),200)):(u.wheelDX+=i,u.wheelDY+=o))}}a?Zi=-.53:n?Zi=15:l?Zi=-.7:f&&(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(ut(this.ranges[t].anchor),ut(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=V(t,i);for(var o=1;o<t.length;o++){var a=t[o],u=t[o-1],s=ot(u.to(),a.from());if(r&&!a.empty()?s>0:s>=0){var c=ct(u.from(),a.from()),l=st(u.to(),a.to()),p=u.empty()?a.from()==a.head:u.from()==u.head;o<=n&&--n,t.splice(--o,2,new io(p?l:c,p?c:l))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function uo(e){return e.text?it(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function so(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return uo(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+=uo(t).ch-t.to.ch),it(n,r)}function co(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new io(so(i.anchor,t),so(i.head,t)))}return oo(e.cm,n,e.sel.primIndex)}function lo(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 u=t[a],s=lo(u.from,i,o),c=lo(uo(u),i,o);if(i=u.to,o=c,"around"==n){var l=e.sel.ranges[a],p=ot(l.head,l.anchor)<0;r[a]=new io(p?c:s,p?s:c)}else r[a]=new io(s,s)}return new ro(r,e.sel.primIndex)}function fo(e){e.doc.mode=He(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,ji(e,100),e.state.modeGen++,e.curOp&&Pr(e)}function mo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(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){cn(e,n,i,r),On(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new sn(c[o],i(o),r));return n}var u=t.from,s=t.to,c=t.text,l=Je(e,u.line),p=Je(e,s.line),f=Q(c),d=i(c.length-1),h=s.line-u.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(mo(e,t)){var m=a(0,c.length-1);o(p,p.text,d),h&&e.remove(u.line,h),m.length&&e.insert(u.line,m)}else if(l==p)if(1==c.length)o(l,l.text.slice(0,u.ch)+f+l.text.slice(s.ch),d);else{var v=a(1,c.length-1);v.push(new sn(f+l.text.slice(s.ch),d,r)),o(l,l.text.slice(0,u.ch)+c[0],i(0)),e.insert(u.line+1,v)}else if(1==c.length)o(l,l.text.slice(0,u.ch)+c[0]+p.text.slice(s.ch),i(0)),e.remove(u.line+1,h);else{o(l,l.text.slice(0,u.ch)+c[0],i(0)),o(p,f+p.text.slice(s.ch),d);var g=a(1,c.length-1);h>1&&e.remove(u.line+1,h-1),e.insert(u.line+1,g)}On(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 u=e.linked[a];if(u.doc!=i){var s=o&&u.sharedHist;n&&!s||(t(u.doc,s),r(u.doc,e,s))}}}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,Ir(e),fo(e),bo(e),e.options.direction=t.direction,e.options.lineWrapping||un(e),e.options.mode=t.modeOption,Pr(e)}function bo(e){("rtl"==e.doc.direction?I:S)(e.display.lineDiv,"CodeMirror-rtl")}function Do(e){Ni(e,(function(){bo(e),Pr(e)}))}function Eo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Co(e,t){var n={from:ut(t.from),to:uo(t),text:Ye(e,t.from,t.to)};return ko(e,n,t.from.line,t.to.line+1),go(e,(function(e){return ko(e,n,t.from.line,t.to.line+1)}),!0),n}function To(e){for(;e.length&&Q(e).ranges;)e.pop()}function xo(e,t){return t?(To(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}function Ao(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,u=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>u-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=xo(i,i.lastOp==r)))a=Q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=uo(t):o.changes.push(Co(e,t));else{var s=Q(i.done);for(s&&s.ranges||Oo(e.sel,i.done),o={changes:[Co(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=u,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 wo(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,Q(i.done),t))?i.done[i.done.length-1]=t:Oo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&To(i.undone)}function Oo(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ko(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 No(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 Fo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(No(n[i]));return r}function _o(e,t){var n=Fo(e,t),r=Bt(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 u=0;u<a.length;++u){for(var s=a[u],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function Io(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,u=[];r.push({changes:u});for(var s=0;s<a.length;++s){var c=a[s],l=void 0;if(u.push({from:c.from,to:c.to,text:c.text}),t)for(var p in c)(l=p.match(/^spans_(\d+)$/))&&V(t,Number(l[1]))>-1&&(Q(u)[p]=c[p],delete c[p])}}}return r}function jo(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 Lo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new ro([jo(e.sel.primary(),t,n,i)],0),r)}function Po(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]=jo(e.sel.ranges[o],t[o],null,i);Uo(e,oo(e.cm,r,e.sel.primIndex),n)}function Mo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Uo(e,oo(e.cm,i,e.sel.primIndex),r)}function Bo(e,t,n,r){Uo(e,ao(t,n),r)}function Ro(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 Vo(e,t,n){var r=e.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=t,qo(e,t,n)):Uo(e,t,n)}function Uo(e,t,n){qo(e,t,n),wo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function qo(e,t,n){(De(e,"beforeSelectionChange")||e.cm&&De(e.cm,"beforeSelectionChange"))&&(t=Ro(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);Ho(e,Wo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ai(e.cm)}function Ho(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),On(e,"cursorActivity",e))}function Go(e){Ho(e,Wo(e,e.sel,null,!1))}function Wo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],u=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Ko(e,a.anchor,u&&u.anchor,n,r),c=Ko(e,a.head,u&&u.head,n,r);(i||s!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new io(s,c))}return i?oo(e.cm,i,t.primIndex):t}function zo(e,t,n,r,i){var o=Je(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var u=o.markedSpans[a],s=u.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,l="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==u.from||(c?u.from<=t.ch:u.from<t.ch))&&(null==u.to||(l?u.to>=t.ch:u.to>t.ch))){if(i&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var p=s.find(r<0?1:-1),f=void 0;if((r<0?l:c)&&(p=$o(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=ot(p,n))&&(r<0?f<0:f>0))return zo(e,p,t,r,i)}var d=s.find(r<0?-1:1);return(r<0?c:l)&&(d=$o(e,d,r,d.line==t.line?o:null)),d?zo(e,d,t,r,i):null}}return t}function Ko(e,t,n,r,i){var o=r||1,a=zo(e,t,n,o,i)||!i&&zo(e,t,n,o,!0)||zo(e,t,n,-o,i)||!i&&zo(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function $o(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||Je(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 Qo(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),H)}function Jo(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 Yo(e,t,n){if(e.cm){if(!e.cm.curOp)return Fi(e.cm,Yo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(De(e,"beforeChange")||e.cm&&De(e.cm,"beforeChange"))||(t=Jo(e,t,!0))){var r=Ot&&!n&&Vt(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=co(e,t);Ao(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Bt(e,t));var r=[];go(e,(function(e,n){n||-1!=V(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,Bt(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,u="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c<u.length&&(i=u[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=u.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=u.pop()).ranges){if(r)return void u.push(i);break}if(Oo(i,s),n&&!i.equals(e.sel))return void Uo(e,i,{clearRedo:!1});a=i}var l=[];Oo(a,s),s.push({changes:l,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var p=De(e,"beforeChange")||e.cm&&De(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,p&&!Jo(e,r,!1))return u.length=0,{};l.push(Co(e,r));var o=n?co(e,r):Q(u);ta(e,r,o,_o(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:uo(r)});var a=[];go(e,(function(e,t){t||-1!=V(a,e.history)||(aa(e.history,r),a.push(e.history)),ta(e,r,null,_o(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=f(d);if(h)return h.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(J(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)){Pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Mr(e.cm,r,"gutter")}}function ta(e,t,n,r){if(e.cm&&!e.cm.curOp)return Fi(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:[Q(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),n||(n=co(e,t)),e.cm?na(e.cm,t,r):vo(e,t,r),qo(e,n,H),e.cantEdit&&Ko(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,u=!1,s=o.line;e.options.lineWrapping||(s=et(Yt(Je(r,o.line))),r.iter(s,a.line+1,(function(e){if(e==i.maxLine)return u=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,_r(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,(function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,u=!1)})),u&&(e.curOp.updateMaxLine=!0)),wt(r,o.line),ji(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Pr(e,o.line,a.line+1,c):Mr(e,o.line,"text");var l=De(e,"changes"),p=De(e,"change");if(p||l){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&On(e,"change",e,f),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}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)),Yo(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 u=0;u<o.ranges.length;u++)ia(o.ranges[u].anchor,t,n,r),ia(o.ranges[u].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(n<c.from.line)c.from=it(c.from.line+r,c.from.ch),c.to=it(c.to.line+r,c.to.ch);else if(t<=c.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 ua(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Je(e,lt(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&Mr(e.cm,i,n),o)}function sa(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 ca(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 ct(this.anchor,this.head)},io.prototype.to=function(){return st(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},sa.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,ln(i),On(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}},ca.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 sa))){var u=[];this.collapse(u),this.children=[new sa(u)],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,u=a;u<i.lines.length;){var s=new sa(i.lines.slice(u,u+=25));i.height-=s.height,this.children.splice(++r,0,s),s.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 ca(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=V(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ca(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 la=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 fa(e,t,n,r){var i=new la(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ua(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+qn(i)),r&&oi(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&On(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}la.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=qn(this);Ze(n,Math.max(0,n.height-o)),e&&(Ni(e,(function(){pa(e,n,-o),Mr(e,r,"widget")})),On(e,"lineWidgetCleared",e,this,r))}},la.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=qn(this)-t;i&&(nn(this.doc,r)||Ze(r,r.height+i),n&&Ni(n,(function(){n.curOp.forceUpdate=!0,pa(n,r,i),On(n,"lineWidgetChanged",n,e,et(r))})))},Ee(la);var da=0,ha=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++da};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 Fi(e.cm,ma)(e,t,n,r,i);var o=new ha(e,i),a=ot(t,n);if(r&&M(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=N("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Jt(e,t.line,t,n,o)||t.line!=n.line&&Jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ft()}o.addToHistory&&Ao(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,s=t.line,c=e.cm;if(e.iter(s,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&Yt(r)==c.display.maxLine&&(u=!0),o.collapsed&&s!=t.line&&Ze(r,0),Lt(r,new _t(o,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s})),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&&(Nt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++da,o.atomic=!0),c){if(u&&(c.curOp.updateMaxLine=!0),o.collapsed)Pr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=t.line;l<=n.line;l++)Mr(c,l,"text");o.atomic&&Go(c.doc),On(c,"markerAdded",c,o)}return o}ha.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ci(e),De(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],u=It(a.markedSpans,this);e&&!this.collapsed?Mr(e,et(a),"text"):e&&(null!=u.to&&(i=et(a)),null!=u.from&&(r=et(a))),a.markedSpans=jt(a.markedSpans,u),null==u.from&&this.collapsed&&!nn(this.doc,a)&&e&&Ze(a,Or(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=Yt(this.lines[s]),l=an(c);l>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&On(e,"markerCleared",e,this,r,i),t&&Ti(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=It(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&&Ni(r,(function(){var i=t.line,o=et(t.line),a=er(r,o);if(a&&(cr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nn(n.doc,i)&&null!=n.height){var u=n.height;n.height=null;var s=qn(n)-u;s&&Ze(i,i.height+s)}On(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!=V(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ha.prototype.detachLine=function(e){if(this.lines.splice(V(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ee(ha);var 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=M(r)).shared=!1;var o=[ma(e,t,n,r,i)],a=o[0],u=r.widgetNode;return go(e,(function(e){u&&(r.widgetNode=u.cloneNode(!0)),o.push(ma(e,pt(e,t),pt(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=Q(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 u=ma(e,o,a,r.primary,r.primary.type);r.markers.push(u),u.parent=r}}}function Da(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==V(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();On(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},Ee(va);var Ea=0,Ca=function e(t,n,r,i,o){if(!(this instanceof e))return new e(t,n,r,i,o);null==r&&(r=0),ca.call(this,[new sa([new sn("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=it(r,0);this.sel=ao(a),this.history=new Eo(null),this.id=++Ea,this.modeOption=n,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),vo(this,{from:a,to:a,text:t}),Uo(this,ao(a),H)};Ca.prototype=Z(ca.prototype,{constructor:Ca,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:Ii((function(e){var t=it(this.first,0),n=this.first+this.size-1;Yo(this,{from:t,to:it(n,Je(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ui(this.cm,0,0),Uo(this,ao(t),H)})),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=Ye(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 Je(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Je(this,e)),Yt(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:Ii((function(e,t,n){Bo(this,pt(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:Ii((function(e,t,n){Bo(this,pt(this,e),pt(this,t||e),n)})),extendSelection:Ii((function(e,t,n){Lo(this,pt(this,e),t&&pt(this,t),n)})),extendSelections:Ii((function(e,t){Po(this,dt(this,e),t)})),extendSelectionsBy:Ii((function(e,t){Po(this,dt(this,J(this.sel.ranges,e)),t)})),setSelections:Ii((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)),Uo(this,oo(this.cm,r,t),n)}})),addSelection:Ii((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new io(pt(this,e),pt(this,t||e))),Uo(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=Ye(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=Ye(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:Ii((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 u=t&&"end"!=t&&po(this,r,t),s=r.length-1;s>=0;s--)Yo(this,r[s]);u?Vo(this,u):this.cm&&ai(this.cm)})),undo:Ii((function(){Zo(this,"undo")})),redo:Ii((function(){Zo(this,"redo")})),undoSelection:Ii((function(){Zo(this,"undo",!0)})),redoSelection:Ii((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 Eo(this.history),go(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Io(this.history.done),undone:Io(this.history.undone)}},setHistory:function(e){var t=this.history=new Eo(this.history);t.done=Io(e.done.slice(0),null,!0),t.undone=Io(e.undone.slice(0),null,!0)},setGutterMarker:Ii((function(e,t,n){return ua(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Ii((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ua(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=Je(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:Ii((function(e,t,n){return ua(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(x(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Ii((function(e,t,n){return ua(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(x(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Ii((function(e,t,n){return fa(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=Je(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 u=0;u<a.length;u++){var s=a[u];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.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 Ca(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 Ca(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 Pu&&(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),Da(ya(this));break}if(e.history==this.history){var n=[e.id];go(e,(function(e){return n.push(e.id)}),!0),e.history=new Eo(null),e.history.done=Io(this.history.done,n),e.history.undone=Io(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):Ie(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ii((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Do(this.cm))}))}),Ca.prototype.eachLine=Ca.prototype.iter;var Ta=0;function xa(e){var t=this;if(wa(t),!ye(t,e)&&!Hn(t.display,e)){Ce(e),a&&(Ta=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),u=0,s=function(){++u==i&&Fi(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"};Yo(t.doc,e),Vo(t.doc,ao(pt(t.doc,n),pt(t.doc,uo(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==V(t.options.allowDropFileTypes,e.type))s();else{var r=new FileReader;r.onerror=function(){return s()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),s()},r.readAsText(e)}},l=0;l<r.length;l++)c(r[l],l);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 f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),qo(t.doc,ao(n,n)),f)for(var d=0;d<f.length;++d)ra(t.doc,"",f[d].anchor,f[d].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(h){}}}}function Aa(e,t){if(a&&(!e.state.draggingText||+new Date-Ta<100))Ae(t);else if(!ye(e,t)&&!Hn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=k("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=jr(e,t);if(n){var r=document.createDocumentFragment();Gr(e,n,r),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}function wa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Oa(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 ka=!1;function Na(){ka||(Fa(),ka=!0)}function Fa(){var e;he(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Oa(_a)}),100))})),he(window,"blur",(function(){return Oa(Yr)}))}function _a(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ia={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Ia[ja+48]=Ia[ja+96]=String(ja);for(var La=65;La<=90;La++)Ia[La]=String.fromCharCode(La);for(var Pa=1;Pa<=12;Pa++)Ia[Pa+111]=Ia[Pa+63235]="F"+Pa;var Ma={};function Ba(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var u=o[a];if(/^(cmd|meta|m)$/i.test(u))i=!0;else if(/^a(lt)?$/i.test(u))t=!0;else if(/^(c|ctrl|control)$/i.test(u))n=!0;else{if(!/^s(hift)?$/i.test(u))throw new Error("Unrecognized modifier name: "+u);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ra(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=J(n.split(" "),Ba),o=0;o<i.length;o++){var a=void 0,u=void 0;o==i.length-1?(u=i.join(" "),a=r):(u=i.slice(0,o+1).join(" "),a="...");var s=t[u];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+u)}else t[u]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Va(e,t,n,r){var i=(t=Ga(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 Va(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Va(e,t.fallthrough[o],n,r);if(a)return a}}}function Ua(e){var t="string"==typeof e?e:Ia[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ha(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Ia[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),qa(n,e,t))}function Ga(e){return"string"==typeof e?Ma[e]:e}function Wa(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,Q(r).to)<=0;){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ni(e,(function(){for(var t=r.length-1;t>=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)}))}function za(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ka(e,t,n){var r=za(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function $a(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,u=i<0?Q(o):o[0],s=i<0==(1==u.level)?"after":"before";if(u.level>0||"rtl"==t.doc.direction){var c=tr(t,n);a=i<0?n.text.length-1:0;var l=nr(t,c,a).top;a=ue((function(e){return nr(t,c,e).top==l}),i<0==(1==u.level)?u.from:u.to-1,a),"before"==s&&(a=za(n,a,1))}else a=i<0?u.to:u.from;return new it(r,a,s)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function Qa(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return Ka(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=le(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 Ka(t,n,r);var u,s=function(e,n){return za(t,e instanceof it?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(u=u||tr(e,t),Tr(e,t,u,n)):{begin:0,end:t.text.length}},l=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,f=s(n,p?1:-1);if(null!=f&&(p?f<=a.to&&f<=l.end:f>=a.from&&f>=l.begin)){var d=p?"before":"after";return new it(n.line,f,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,s(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],u=t>0==(1!=a.level),c=u?r.begin:s(r.end,-1);if(a.from<=c&&c<a.to)return o(c,u);if(c=u?a.from:s(a.to,-1),r.begin<=c&&c<r.end)return o(c,u)}},m=h(o+r,r,l);if(m)return m;var v=r>0?l.end:s(l.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,c(v)))?null:m}Ma.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ma.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ma.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ma.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ma.default=y?Ma.macDefault:Ma.pcDefault;var Ja={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),H)},killLine:function(e){return Wa(e,(function(t){if(t.empty()){var n=Je(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 Wa(e,(function(t){return{from:it(t.from().line,0),to:pt(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return Wa(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Wa(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 Wa(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 Ya(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")}),W)},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")}),W)},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}),W)},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=B(e.getLine(o.line),o.ch,r);t.push($(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ni(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Je(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=Je(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 Ni(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 Ya(e,t){var n=Je(e.doc,t),r=Yt(n);return r!=n&&(t=et(r)),$a(!0,e,r,t,1)}function Xa(e,t){var n=Je(e.doc,t),r=Xt(n);return r!=n&&(t=et(r)),$a(!0,e,n,t,-1)}function Za(e,t){var n=Ya(e,t.line),r=Je(e.doc,n.line),i=fe(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 eu(e,t,n){if("string"==typeof t&&!(t=Ja[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)!=q}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function tu(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Va(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Va(t,e.options.extraKeys,n,e)||Va(t,e.options.keyMap,n,e)}var nu=new R;function ru(e,t,n,r){var i=e.state.keySeq;if(i){if(Ua(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:nu.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),iu(e,i+" "+t,n,r))return!0}return iu(e,t,n,r)}function iu(e,t,n,r){var i=tu(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&On(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ce(n),Kr(e)),!!i}function ou(e,t){var n=Ha(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ru(e,"Shift-"+n,t,(function(t){return eu(e,t,!0)}))||ru(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return eu(e,t)})):ru(e,n,t,(function(t){return eu(e,t)})))}function au(e,t,n){return ru(e,"'"+n+"'",t,(function(t){return eu(e,t,!0)}))}var uu=null;function su(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=_(),!ye(t,e))){a&&u<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ou(t,e);p&&(uu=i?r:null,i||88!=r||Le||!(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)||cu(t)}}function cu(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))}I(t,"CodeMirror-crosshair"),he(document,"keyup",n),he(document,"mouseover",n)}function lu(e){16==e.keyCode&&(this.doc.sel.shift=!1),ye(this,e)}function pu(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(Hn(t.display,e)||ye(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==uu)return uu=null,void Ce(e);if(!p||e.which&&!(e.which<10)||!ou(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(au(t,e,i)||t.display.input.onKeyPress(e))}}}var fu,du,hu=400,mu=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vu(e,t){var n=+new Date;return du&&du.compare(n,e,t)?(fu=du=null,"triple"):fu&&fu.compare(n,e,t)?(du=new mu(n,e,t),fu=null,"double"):(fu=new mu(n,e,t),du=null,"single")}function gu(e){var t=this,n=t.display;if(!(ye(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Hn(n,e))s||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Su(t,e)){var r=jr(t,e),i=we(e),o=r?vu(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&yu(t,i,r,o,e)||(1==i?r?Du(t,r,o,e):Se(e)==n.scroller&&Ce(e):2==i?(r&&Lo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(T?t.display.input.onContextMenu(e):Qr(t)))}}function yu(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ru(e,qa(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=Ja[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=q}finally{e.state.suppressEdits=!1}return r}))}function bu(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 Du(e,t,n,r){a?setTimeout(P($r,e),0):e.curOp.focus=_();var i,o=bu(e,n,r),u=e.doc.sel;e.options.dragDrop&&Ne&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(ot((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?Eu(e,r,t,o):Tu(e,r,t,o)}function Eu(e,t,n,r){var i=e.display,o=!1,c=Fi(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qr(e)),ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",l),ve(i.scroller,"dragstart",p),ve(i.scroller,"drop",c),o||(Ce(t),r.addNew||Lo(e.doc,n,null,null,r.extend),s&&!f||a&&9==u?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,he(i.wrapper.ownerDocument,"mouseup",c),he(i.wrapper.ownerDocument,"mousemove",l),he(i.scroller,"dragstart",p),he(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Cu(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 Tu(e,t,n,r){a&&Qr(e);var i=e.display,o=e.doc;Ce(t);var u,s,c=o.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),u=s>-1?l[s]:new io(n,n)):(u=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(u=new io(n,n)),n=jr(e,t,!0,!0),s=-1;else{var p=Cu(e,n,r.unit);u=r.extend?jo(u,p.anchor,p.head,r.extend):p}r.addNew?-1==s?(s=l.length,Uo(o,oo(e,l.concat([u]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Uo(o,oo(e,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Mo(o,s,u,G):(s=0,Uo(o,new ro([u],0),G),c=o.sel);var f=n;function d(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,l=B(Je(o,n.line).text,n.ch,a),p=B(Je(o,t.line).text,t.ch,a),d=Math.min(l,p),h=Math.max(l,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=Je(o,m).text,y=z(g,d,a);d==h?i.push(new io(it(m,y),it(m,y))):g.length>y&&i.push(new io(it(m,y),it(m,z(g,h,a))))}i.length||i.push(new io(n,n)),Uo(o,oo(e,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,D=u,E=Cu(e,t,r.unit),C=D.anchor;ot(E.anchor,C)>0?(b=E.head,C=ct(D.from(),E.anchor)):(b=E.anchor,C=st(D.to(),E.head));var T=c.ranges.slice(0);T[s]=xu(e,new io(pt(o,C),b)),Uo(o,oo(e,T,s),G)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,a=jr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,f)){e.curOp.focus=_(),d(a);var u=ei(i,o);(a.line>=u.to||a.line<u.from)&&setTimeout(Fi(e,(function(){m==n&&v(t)})),150)}else{var s=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;s&&setTimeout(Fi(e,(function(){m==n&&(i.scroller.scrollTop+=s,v(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(Ce(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Fi(e,(function(e){0!==e.buttons&&we(e)?v(e):g(e)})),b=Fi(e,g);e.state.selectingText=b,he(i.wrapper.ownerDocument,"mousemove",y),he(i.wrapper.ownerDocument,"mouseup",b)}function xu(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=le(o,n.ch,n.sticky),u=o[a];if(u.from!=n.ch&&u.to!=n.ch)return t;var s,c=a+(u.from==n.ch==(1!=u.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=le(o,r.ch,r.sticky),p=l-a||(r.ch-n.ch)*(1==u.level?-1:1);s=l==c-1||l==c?p<0:p>0}var f=o[c+(s?-1:0)],d=s==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new io(new it(n.line,h,m),r)}function Au(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(l){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,u=a.lineDiv.getBoundingClientRect();if(o>u.bottom||!De(e,n))return xe(t);o-=u.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=a.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i)return ge(e,n,e,tt(e.doc,o),e.display.gutterSpecs[s].className,t),xe(t)}}function Su(e,t){return Au(e,t,"gutterClick",!0)}function wu(e,t){Hn(e.display,t)||Ou(e,t)||ye(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function Ou(e,t){return!!De(e,"gutterContextMenu")&&Au(e,t,"gutterContextMenu",!1)}function ku(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)}mu.prototype.compare=function(e,t,n){return this.time+hu>e&&0==ot(t,this.pos)&&n==this.button};var Nu={toString:function(){return"CodeMirror.Init"}},Fu={},_u={};function Iu(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Nu&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Nu,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),Pr(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!=Nu&&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",!D),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){ku(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ga(t),i=n!=Nu&&Ga(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Lu,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=$i(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Fr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return gi(e)}),!0),n("scrollbarStyle","native",(function(e){Di(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=$i(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,qr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Yr(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,ju),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,qr,!0),n("singleCursorHeightPerLine",!0,qr,!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 ju(e,t,n){if(!t!=!(n&&n!=Nu)){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 Lu(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),un(e)),Ir(e),Pr(e),pr(e),setTimeout((function(){return gi(e)}),100)}function Pu(e,t){var n=this;if(!(this instanceof Pu))return new Pu(e,t);this.options=t=t?M(t):{},M(Fu,t,!1);var r=t.value;"string"==typeof r?r=new Ca(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Pu.inputStyles[t.inputStyle](this),o=this.display=new Yi(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,ku(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Di(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 R,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&u<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Mu(this),Na(),Ci(this),this.curOp.forceUpdate=!0,yo(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):Yr(this),_u)_u.hasOwnProperty(c)&&_u[c](this,t[c],Nu);Ki(this),t.finishInit&&t.finishInit(this);for(var l=0;l<Bu.length;++l)Bu[l](this);Ti(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Mu(e){var t=e.display;he(t.scroller,"mousedown",Fi(e,gu)),he(t.scroller,"dblclick",a&&u<11?Fi(e,(function(t){if(!ye(e,t)){var n=jr(e,t);if(n&&!Su(e,t)&&!Hn(e.display,t)){Ce(t);var r=e.findWordAt(n);Lo(e.doc,r.anchor,r.head)}}})):function(t){return ye(e,t)||Ce(t)}),he(t.scroller,"contextmenu",(function(t){return wu(e,t)})),he(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||wu(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 s(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)&&!Su(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&&!Hn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||s(r,r.prev)?new io(a,a):!r.prev.prev||s(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(),Ce(n)}i()})),he(t.scroller,"touchcancel",i),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(pi(e,t.scroller.scrollTop),di(e,t.scroller.scrollLeft,!0),ge(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return no(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ye(e,t)||Ae(t)},over:function(t){ye(e,t)||(Sa(e,t),Ae(t))},start:function(t){return Aa(e,t)},drop:Fi(e,xa),leave:function(t){ye(e,t)||wa(e)}};var c=t.input.getField();he(c,"keyup",(function(t){return lu.call(e,t)})),he(c,"keydown",Fi(e,su)),he(c,"keypress",Fi(e,pu)),he(c,"focus",(function(t){return Jr(e,t)})),he(c,"blur",(function(t){return Yr(e,t)}))}Pu.defaults=Fu,Pu.optionHandlers=_u;var Bu=[];function Ru(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,u=Je(o,t),s=B(u.text,null,a);u.stateAfter&&(u.stateAfter=null);var c,l=u.text.match(/^\s*/)[0];if(r||/\S/.test(u.text)){if("smart"==n&&((c=o.mode.indent(i,u.text.slice(l.length),u.text))==q||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?B(Je(o,t-1).text,null,a):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)f+=a,p+="\t";if(f<c&&(p+=$(c-f)),p!=l)return ra(o,p,it(t,0),it(t,l.length),"+input"),u.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<l.length){var v=it(t,l.length);Mo(o,h,new io(v,v));break}}}Pu.defineInitHook=function(e){return Bu.push(e)};var Vu=null;function Uu(e){Vu=e}function qu(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,u="paste"==i||e.state.pasteIncoming>a,s=Ie(t),c=null;if(u&&r.ranges.length>1)if(Vu&&Vu.text.join("\n")==t){if(r.ranges.length%Vu.text.length==0){c=[];for(var l=0;l<Vu.text.length;l++)c.push(o.splitLines(Vu.text[l]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=J(s,(function(e){return[e]})));for(var p=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!u?m=it(m.line,Math.min(Je(o,m.line).text.length,m.ch+Q(s).length)):u&&Vu&&Vu.lineWise&&Vu.text.join("\n")==s.join("\n")&&(h=m=it(h.line,0)));var v={from:h,to:m,text:c?c[f%c.length]:s,origin:i||(u?"paste":e.state.cutIncoming>a?"cut":"+input")};Yo(e.doc,v),On(e,"inputRead",e,v)}t&&!u&&Gu(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Hu(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ni(t,(function(){return qu(t,n,0,null,"paste")})),!0}function Gu(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 u=0;u<o.electricChars.length;u++)if(t.indexOf(o.electricChars.charAt(u))>-1){a=Ru(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ru(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function Wu(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 zu(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ku(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),zu(e),t}function $u(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)&&Fi(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"](Ga(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:_i((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");Y(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Pr(this)})),removeOverlay:_i((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 Pr(this)}})),indentLine:_i((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)&&Ru(this,e,t,n)})),indentSelection:_i((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&&(Ru(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(),u=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=u;s<n;++s)Ru(this,s,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Mo(this.doc,r,new io(o,c[r].to()),H)}}})),getTokenAt:function(e,t){return Tt(this,e,t)},getLineTokens:function(e,t){return Tt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=pt(this.doc,e);var t,n=gt(this,Je(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 u=t?t.indexOf("overlay "):-1;return u<0?t:0==u?null:t.slice(0,u-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 u=i[o[t][a]];u&&r.push(u)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var s=0;s<i._global.length;s++){var c=i._global[s];c.pred(o,this)&&-1==V(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return yt(this,(e=lt(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 Er(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=Je(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 Or(this.display)},defaultCharWidth:function(){return kr(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,u=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 s=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),u+t.offsetWidth>c&&(u=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(u=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&ri(this,{left:u,top:a,right:u+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:_i(su),triggerOnKeyPress:_i(pu),triggerOnKeyUp:lu,triggerOnMouseDown:_i(gu),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:_i((function(e){Gu(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=Qu(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:_i((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Qu(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),W)})),deleteH:_i((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Wa(this,(function(n){var i=Qu(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),u=0;u<t;++u){var s=yr(this,a,"div");if(null==o?o=s.left:s.left=o,(a=Ju(this,s,i,n)).hitSide)break}return a},moveV:_i((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 u=yr(n,a.head,"div");null!=a.goalColumn&&(u.left=a.goalColumn),i.push(u.left);var s=Ju(n,u,e,t);return"page"==t&&a==r.sel.primary()&&oi(n,gr(n,s,"div").top-u.top),s}),W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Je(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)?I(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()==_()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:_i((function(e,t){ui(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Kn(this)-this.display.barHeight,width:e.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Qn(this),clientWidth:$n(this)}},scrollIntoView:_i((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?si(this,e):li(this,e.from,e.to,e.margin)})),setSize:_i((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&&lr(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){Mr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ge(this,"refresh",this)})),operation:function(e){return Ni(this,e)},startOperation:function(){return Ci(this)},endOperation:function(){return Ti(this)},refresh:_i((function(){var e=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,pr(this),ui(this,this.doc.scrollLeft,this.doc.scrollTop),Gi(this.display),(null==e||Math.abs(e-Or(this.display))>.5||this.options.lineWrapping)&&Ir(this),ge(this,"refresh",this)})),swapDoc:_i((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(),ui(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ee(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Qu(e,t,n,r,i){var o=t,a=n,u=Je(e,t.line),s=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+s;return!(n<e.first||n>=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),u=Je(e,n))}function l(o){var a;if("codepoint"==r){var l=u.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(l))a=null;else{var p=n>0?l>=55296&&l<56320:l>=56320&&l<57343;a=new it(t.line,Math.max(0,Math.min(u.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?Qa(e.cm,u,t,n):Ka(u,t,n);if(null==a){if(o||!c())return!1;t=$a(i,e.cm,u,t.line,s)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var p=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var m=u.text.charAt(t.ch)||"\n",v=ne(m,d)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(!f||h||v||(v="s"),p&&p!=v){n<0&&(n=1,l(),t.sticky="after");break}if(v&&(p=v),n>0&&!l(!h))break}var g=Ko(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function Ju(e,t,n,r){var i,o,a=e.doc,u=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*Or(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Er(e,u,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Yu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Xu(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Yn(n,r,t.line),o=fe(r,e.doc.direction),a="left";o&&(a=le(o,t.ch)%2?"right":"left");var u=or(i.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function Zu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function es(e,t){return t&&(e.bad=!0),e}function ts(e,t,n,r,i){var o="",a=!1,u=e.doc.lineSeparator(),s=!1;function c(e){return function(t){return t.id==e}}function l(){a&&(o+=u,s&&(o+=u),a=s=!1)}function p(e){e&&(l(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void p(n);var o,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(it(r,0),it(i+1,0),c(+d));return void(h.length&&(o=h[0].find(0))&&p(Ye(e.doc,o.from,o.to).join(u)))}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&&l();for(var v=0;v<t.childNodes.length;v++)f(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),m&&(a=!0)}else 3==t.nodeType&&p(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;f(t),t!=n;)t=t.nextSibling,s=!1;return o}function ns(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return es(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 rs(o,t,n)}}function rs(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!F(r,t))return es(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Q(e.rest):e.line;return es(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,u=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));u.parentNode!=r;)u=u.parentNode;var s=e.measure,c=s.maps;function l(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?s.map:c[i],a=0;a<o.length;a+=3){var u=o[a+2];if(u==t||u==n){var l=et(i<0?e.line:e.rest[i]),p=o[a]+r;return(r<0||u!=t)&&(p=o[a+(r?1:0)]),it(l,p)}}}var p=l(a,u,n);if(p)return es(p,i);for(var f=u.nextSibling,d=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(p=l(f,f.firstChild,0))return es(it(p.line,p.ch-d),i);d+=f.textContent.length}for(var h=u.previousSibling,m=n;h;h=h.previousSibling){if(p=l(h,h.firstChild,-1))return es(it(p.line,p.ch+m),i);m+=h.textContent.length}}Yu.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())Uu({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Wu(r);Uu({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,H),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Vu.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var u=Ku(),s=u.firstChild;r.display.lineSpace.insertBefore(u,r.display.lineSpace.firstChild),s.value=Vu.text.join("\n");var c=_();L(s),setTimeout((function(){r.display.lineSpace.removeChild(u),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,zu(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),he(i,"paste",(function(e){!o(e)||ye(r,e)||Hu(e,r)||u<=11&&setTimeout(Fi(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)},Yu.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Yu.prototype.prepareSelection=function(){var e=Hr(this.cm,!1);return e.focus=_()==this.div,e},Yu.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Yu.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Yu.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=ns(t,e.anchorNode,e.anchorOffset),u=ns(t,e.focusNode,e.focusOffset);if(!a||a.bad||!u||u.bad||0!=ot(ct(a,u),i)||0!=ot(st(a,u),o)){var s=t.display.view,c=i.line>=t.display.viewFrom&&Xu(t,i)||{node:s[0].measure.map[2],offset:0},l=o.line<t.display.viewTo&&Xu(t,o);if(!l){var p=s[s.length-1].measure,f=p.maps?p.maps[p.maps.length-1]:p.map;l={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&l){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=A(c.node,c.offset,l.offset,l.node)}catch(m){}d&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Yu.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)},Yu.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},Yu.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Yu.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return F(this.div,t)},Yu.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&_()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Yu.prototype.blur=function(){this.div.blur()},Yu.prototype.getField=function(){return this.div},Yu.prototype.supportsTouch=function(){return!0},Yu.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):Ni(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},Yu.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Yu.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&l&&this.cm.display.gutterSpecs.length&&Zu(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=ns(t,e.anchorNode,e.anchorOffset),r=ns(t,e.focusNode,e.focusOffset);n&&r&&Ni(t,(function(){Uo(t.doc,ao(n,r),H),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Yu.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(),u=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Je(r.doc,a.line-1).length)),u.ch==Je(r.doc,u.line).text.length&&u.line<r.lastLine()&&(u=it(u.line+1,0)),a.line<i.viewFrom||u.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Lr(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 s,c,l=Lr(r,u.line);if(l==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=et(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(ts(r,n,c,t,s)),f=Ye(r.doc,it(t,0),it(s,Je(r.doc,s).text.length));p.length>1&&f.length>1;)if(Q(p)==Q(f))p.pop(),f.pop(),s--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],v=f[0],g=Math.min(m.length,v.length);d<g&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=Q(p),b=Q(f),D=Math.min(y.length-(1==p.length?d:0),b.length-(1==f.length?d:0));h<D&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==f.length&&t==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var E=it(t,d),C=it(s,f.length?Q(f).length-h:0);return p.length>1||p[0]||ot(E,C)?(ra(r.doc,p,E,C,"+input"),!0):void 0},Yu.prototype.ensurePolled=function(){this.forceCompositionEnd()},Yu.prototype.reset=function(){this.forceCompositionEnd()},Yu.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Yu.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))},Yu.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ni(this.cm,(function(){return Pr(e.cm)}))},Yu.prototype.setUneditable=function(e){e.contentEditable="false"},Yu.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Fi(this.cm,qu)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Yu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Yu.prototype.onContextMenu=function(){},Yu.prototype.resetPosition=function(){},Yu.prototype.needsContentAttribute=!0;var is=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};function os(e,t){if((t=t?M(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=_();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=u.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(s){}}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 u=Pu((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return u}function as(e){e.off=ve,e.on=he,e.wheelEventPixels=to,e.Doc=Ca,e.splitLines=Ie,e.countColumn=B,e.findColumn=z,e.isWordChar=te,e.Pass=q,e.signal=ge,e.Line=sn,e.changeEnd=uo,e.scrollbarModel=bi,e.Pos=it,e.cmpPos=ot,e.modes=Be,e.mimeModes=Re,e.resolveMode=qe,e.getMode=He,e.modeExtensions=Ge,e.extendMode=We,e.copyState=ze,e.startState=$e,e.innerMode=Ke,e.commands=Ja,e.keyMap=Ma,e.keyName=Ha,e.isModifierKey=Ua,e.lookupKey=Va,e.normalizeKeyMap=Ra,e.StringStream=Qe,e.SharedTextMarker=va,e.TextMarker=ha,e.LineWidget=la,e.e_preventDefault=Ce,e.e_stopPropagation=Te,e.e_stop=Ae,e.addClass=I,e.contains=F,e.rmClass=S,e.keyNames=Ia}is.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())Uu({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Wu(r);Uu({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,H):(n.prevInput="",i.value=t.text.join("\n"),L(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&&u>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(i,"paste",(function(e){ye(r,e)||Hu(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),he(i,"cut",o),he(i,"copy",o),he(e.scroller,"paste",(function(t){if(!Hn(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){Hn(e,t)||Ce(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)}))},is.prototype.createField=function(e){this.wrapper=Ku(),this.textarea=this.wrapper.firstChild},is.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},is.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Hr(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},is.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},is.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&&L(this.textarea),a&&u>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&u>=9&&(this.hasSelection=null))}},is.prototype.getField=function(){return this.textarea},is.prototype.supportsTouch=function(){return!1},is.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||_()!=this.textarea))try{this.textarea.focus()}catch(e){}},is.prototype.blur=function(){this.textarea.blur()},is.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},is.prototype.receivedFocus=function(){this.slowPoll()},is.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},is.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)},is.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(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&&u>=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 s=0,c=Math.min(r.length,i.length);s<c&&r.charCodeAt(s)==i.charCodeAt(s);)++s;return Ni(t,(function(){qu(t,i.slice(s),r.length-s,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},is.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},is.prototype.onKeyPress=function(){a&&u>=9&&(this.hasSelection=null),this.fastPoll()},is.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=jr(n,e),c=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Fi(n,Uo)(n.doc,ao(o),H);var l,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(l=window.scrollY),r.input.focus(),s&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&u>=9&&m(),T?(Ae(e),he(window,"mouseup",(function e(){ve(window,"mouseup",e),setTimeout(v,20)}))):setTimeout(v,50)}function m(){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 v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&u<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&u<9)&&m();var e=0,o=function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Fi(n,Qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},is.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},is.prototype.setUneditable=function(){},is.prototype.needsContentAttribute=!1,Iu(Pu),$u(Pu);var us="iter insert remove copy getEditor constructor".split(" ");for(var ss in Ca.prototype)Ca.prototype.hasOwnProperty(ss)&&V(us,ss)<0&&(Pu.prototype[ss]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ca.prototype[ss]));return Ee(Ca),Pu.inputStyles={textarea:is,contenteditable:Yu},Pu.defineMode=function(e){Pu.defaults.mode||"null"==e||(Pu.defaults.mode=e),Ve.apply(this,arguments)},Pu.defineMIME=Ue,Pu.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Pu.defineMIME("text/plain","null"),Pu.defineExtension=function(e,t){Pu.prototype[e]=t},Pu.defineDocExtension=function(e,t){Ca.prototype[e]=t},Pu.fromTextArea=os,as(Pu),Pu.version="5.64.0",Pu}()},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"versionInfo",(function(){return i})),n.d(t,"graphql",(function(){return ue})),n.d(t,"graphqlSync",(function(){return se})),n.d(t,"GraphQLSchema",(function(){return le.a})),n.d(t,"GraphQLDirective",(function(){return D.c})),n.d(t,"GraphQLScalarType",(function(){return E.g})),n.d(t,"GraphQLObjectType",(function(){return E.f})),n.d(t,"GraphQLInterfaceType",(function(){return E.c})),n.d(t,"GraphQLUnionType",(function(){return E.h})),n.d(t,"GraphQLEnumType",(function(){return E.a})),n.d(t,"GraphQLInputObjectType",(function(){return E.b})),n.d(t,"GraphQLList",(function(){return E.d})),n.d(t,"GraphQLNonNull",(function(){return E.e})),n.d(t,"specifiedScalarTypes",(function(){return pe.g})),n.d(t,"GraphQLInt",(function(){return pe.d})),n.d(t,"GraphQLFloat",(function(){return pe.b})),n.d(t,"GraphQLString",(function(){return pe.e})),n.d(t,"GraphQLBoolean",(function(){return pe.a})),n.d(t,"GraphQLID",(function(){return pe.c})),n.d(t,"specifiedDirectives",(function(){return D.j})),n.d(t,"GraphQLIncludeDirective",(function(){return D.d})),n.d(t,"GraphQLSkipDirective",(function(){return D.e})),n.d(t,"GraphQLDeprecatedDirective",(function(){return D.b})),n.d(t,"GraphQLSpecifiedByDirective",(function(){return D.f})),n.d(t,"TypeKind",(function(){return b.TypeKind})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return D.a})),n.d(t,"introspectionTypes",(function(){return b.introspectionTypes})),n.d(t,"__Schema",(function(){return b.__Schema})),n.d(t,"__Directive",(function(){return b.__Directive})),n.d(t,"__DirectiveLocation",(function(){return b.__DirectiveLocation})),n.d(t,"__Type",(function(){return b.__Type})),n.d(t,"__Field",(function(){return b.__Field})),n.d(t,"__InputValue",(function(){return b.__InputValue})),n.d(t,"__EnumValue",(function(){return b.__EnumValue})),n.d(t,"__TypeKind",(function(){return b.__TypeKind})),n.d(t,"SchemaMetaFieldDef",(function(){return b.SchemaMetaFieldDef})),n.d(t,"TypeMetaFieldDef",(function(){return b.TypeMetaFieldDef})),n.d(t,"TypeNameMetaFieldDef",(function(){return b.TypeNameMetaFieldDef})),n.d(t,"isSchema",(function(){return le.c})),n.d(t,"isDirective",(function(){return D.h})),n.d(t,"isType",(function(){return E.S})),n.d(t,"isScalarType",(function(){return E.R})),n.d(t,"isObjectType",(function(){return E.N})),n.d(t,"isInterfaceType",(function(){return E.H})),n.d(t,"isUnionType",(function(){return E.T})),n.d(t,"isEnumType",(function(){return E.E})),n.d(t,"isInputObjectType",(function(){return E.F})),n.d(t,"isListType",(function(){return E.J})),n.d(t,"isNonNullType",(function(){return E.L})),n.d(t,"isInputType",(function(){return E.G})),n.d(t,"isOutputType",(function(){return E.O})),n.d(t,"isLeafType",(function(){return E.I})),n.d(t,"isCompositeType",(function(){return E.D})),n.d(t,"isAbstractType",(function(){return E.C})),n.d(t,"isWrappingType",(function(){return E.U})),n.d(t,"isNullableType",(function(){return E.M})),n.d(t,"isNamedType",(function(){return E.K})),n.d(t,"isRequiredArgument",(function(){return E.P})),n.d(t,"isRequiredInputField",(function(){return E.Q})),n.d(t,"isSpecifiedScalarType",(function(){return pe.f})),n.d(t,"isIntrospectionType",(function(){return b.isIntrospectionType})),n.d(t,"isSpecifiedDirective",(function(){return D.i})),n.d(t,"assertSchema",(function(){return le.b})),n.d(t,"assertDirective",(function(){return D.g})),n.d(t,"assertType",(function(){return E.x})),n.d(t,"assertScalarType",(function(){return E.w})),n.d(t,"assertObjectType",(function(){return E.u})),n.d(t,"assertInterfaceType",(function(){return E.o})),n.d(t,"assertUnionType",(function(){return E.y})),n.d(t,"assertEnumType",(function(){return E.l})),n.d(t,"assertInputObjectType",(function(){return E.m})),n.d(t,"assertListType",(function(){return E.q})),n.d(t,"assertNonNullType",(function(){return E.s})),n.d(t,"assertInputType",(function(){return E.n})),n.d(t,"assertOutputType",(function(){return E.v})),n.d(t,"assertLeafType",(function(){return E.p})),n.d(t,"assertCompositeType",(function(){return E.k})),n.d(t,"assertAbstractType",(function(){return E.j})),n.d(t,"assertWrappingType",(function(){return E.z})),n.d(t,"assertNullableType",(function(){return E.t})),n.d(t,"assertNamedType",(function(){return E.r})),n.d(t,"getNullableType",(function(){return E.B})),n.d(t,"getNamedType",(function(){return E.A})),n.d(t,"validateSchema",(function(){return s.b})),n.d(t,"assertValidSchema",(function(){return s.a})),n.d(t,"Token",(function(){return fe.b})),n.d(t,"Source",(function(){return de.a})),n.d(t,"Location",(function(){return fe.a})),n.d(t,"getLocation",(function(){return he.a})),n.d(t,"printLocation",(function(){return me.a})),n.d(t,"printSourceLocation",(function(){return me.b})),n.d(t,"Lexer",(function(){return ve.a})),n.d(t,"TokenKind",(function(){return ge.a})),n.d(t,"parse",(function(){return a.a})),n.d(t,"parseValue",(function(){return a.c})),n.d(t,"parseType",(function(){return a.b})),n.d(t,"print",(function(){return w.a})),n.d(t,"visit",(function(){return ye.c})),n.d(t,"visitInParallel",(function(){return ye.d})),n.d(t,"getVisitFn",(function(){return ye.b})),n.d(t,"BREAK",(function(){return ye.a})),n.d(t,"Kind",(function(){return y.a})),n.d(t,"DirectiveLocation",(function(){return be.a})),n.d(t,"isDefinitionNode",(function(){return De.a})),n.d(t,"isExecutableDefinitionNode",(function(){return De.b})),n.d(t,"isSelectionNode",(function(){return De.c})),n.d(t,"isValueNode",(function(){return De.i})),n.d(t,"isTypeNode",(function(){return De.f})),n.d(t,"isTypeSystemDefinitionNode",(function(){return De.g})),n.d(t,"isTypeDefinitionNode",(function(){return De.d})),n.d(t,"isTypeSystemExtensionNode",(function(){return De.h})),n.d(t,"isTypeExtensionNode",(function(){return De.e})),n.d(t,"execute",(function(){return R})),n.d(t,"executeSync",(function(){return V})),n.d(t,"defaultFieldResolver",(function(){return oe})),n.d(t,"defaultTypeResolver",(function(){return ie})),n.d(t,"responsePathAsArray",(function(){return m})),n.d(t,"getDirectiveValues",(function(){return M})),n.d(t,"subscribe",(function(){return Se})),n.d(t,"createSourceEventStream",(function(){return ke})),n.d(t,"validate",(function(){return u.c})),n.d(t,"ValidationContext",(function(){return Ne.b})),n.d(t,"specifiedRules",(function(){return Fe.a})),n.d(t,"ExecutableDefinitionsRule",(function(){return _e.a})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return Ie.a})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return je.a})),n.d(t,"KnownArgumentNamesRule",(function(){return Le.b})),n.d(t,"KnownDirectivesRule",(function(){return Pe.a})),n.d(t,"KnownFragmentNamesRule",(function(){return Me.a})),n.d(t,"KnownTypeNamesRule",(function(){return Be.a})),n.d(t,"LoneAnonymousOperationRule",(function(){return Re.a})),n.d(t,"NoFragmentCyclesRule",(function(){return Ve.a})),n.d(t,"NoUndefinedVariablesRule",(function(){return Ue.a})),n.d(t,"NoUnusedFragmentsRule",(function(){return qe.a})),n.d(t,"NoUnusedVariablesRule",(function(){return He.a})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return Ge.a})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return We.a})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return ze.b})),n.d(t,"ScalarLeafsRule",(function(){return Ke.a})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return $e.a})),n.d(t,"UniqueArgumentNamesRule",(function(){return Qe.a})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return Je.a})),n.d(t,"UniqueFragmentNamesRule",(function(){return Ye.a})),n.d(t,"UniqueInputFieldNamesRule",(function(){return Xe.a})),n.d(t,"UniqueOperationNamesRule",(function(){return Ze.a})),n.d(t,"UniqueVariableNamesRule",(function(){return et.a})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return tt.a})),n.d(t,"VariablesAreInputTypesRule",(function(){return nt.a})),n.d(t,"VariablesInAllowedPositionRule",(function(){return rt.a})),n.d(t,"LoneSchemaDefinitionRule",(function(){return it.a})),n.d(t,"UniqueOperationTypesRule",(function(){return ot.a})),n.d(t,"UniqueTypeNamesRule",(function(){return at.a})),n.d(t,"UniqueEnumValueNamesRule",(function(){return ut.a})),n.d(t,"UniqueFieldDefinitionNamesRule",(function(){return st.a})),n.d(t,"UniqueDirectiveNamesRule",(function(){return ct.a})),n.d(t,"PossibleTypeExtensionsRule",(function(){return lt.a})),n.d(t,"NoDeprecatedCustomRule",(function(){return pt.a})),n.d(t,"NoSchemaIntrospectionCustomRule",(function(){return ft})),n.d(t,"GraphQLError",(function(){return v.a})),n.d(t,"syntaxError",(function(){return dt.a})),n.d(t,"locatedError",(function(){return g.a})),n.d(t,"printError",(function(){return v.b})),n.d(t,"formatError",(function(){return ht})),n.d(t,"getIntrospectionQuery",(function(){return mt.a})),n.d(t,"getOperationAST",(function(){return vt})),n.d(t,"getOperationRootType",(function(){return T})),n.d(t,"introspectionFromSchema",(function(){return bt})),n.d(t,"buildClientSchema",(function(){return Dt.a})),n.d(t,"buildASTSchema",(function(){return _t})),n.d(t,"buildSchema",(function(){return It})),n.d(t,"getDescription",(function(){return Ft})),n.d(t,"extendSchema",(function(){return St})),n.d(t,"lexicographicSortSchema",(function(){return Rt})),n.d(t,"printSchema",(function(){return Gt})),n.d(t,"printType",(function(){return Qt})),n.d(t,"printIntrospectionSchema",(function(){return Wt})),n.d(t,"typeFromAST",(function(){return C.a})),n.d(t,"valueFromAST",(function(){return O.a})),n.d(t,"valueFromASTUntyped",(function(){return on.a})),n.d(t,"astFromValue",(function(){return Ht.a})),n.d(t,"TypeInfo",(function(){return an.a})),n.d(t,"visitWithTypeInfo",(function(){return an.b})),n.d(t,"coerceInputValue",(function(){return _})),n.d(t,"concatAST",(function(){return un})),n.d(t,"separateOperations",(function(){return sn})),n.d(t,"stripIgnoredCharacters",(function(){return pn})),n.d(t,"isEqualType",(function(){return dn.b})),n.d(t,"isTypeSubTypeOf",(function(){return dn.c})),n.d(t,"doTypesOverlap",(function(){return dn.a})),n.d(t,"assertValidName",(function(){return hn.a})),n.d(t,"isValidNameError",(function(){return hn.b})),n.d(t,"BreakingChangeType",(function(){return yn})),n.d(t,"DangerousChangeType",(function(){return bn})),n.d(t,"findBreakingChanges",(function(){return Dn})),n.d(t,"findDangerousChanges",(function(){return En})),n.d(t,"findDeprecatedUsages",(function(){return jn}));var r="15.8.0",i=Object.freeze({major:15,minor:8,patch:0,preReleaseTag:null});function o(e){return"function"===typeof(null===e||void 0===e?void 0:e.then)}var a=n(944),u=n(946),s=n(962),c=n(912);var l=n(915),p=n(919),f=n(922),d=n(960);function h(e,t,n){return{prev:e,key:t,typename:n}}function m(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}var v=n(908),g=n(963),y=n(914),b=n(916),D=n(918),E=n(911),C=n(923);function T(e,t){if("query"===t.operation){var n=e.getQueryType();if(!n)throw new v.a("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){var r=e.getMutationType();if(!r)throw new v.a("Schema is not configured for mutations.",t);return r}if("subscription"===t.operation){var i=e.getSubscriptionType();if(!i)throw new v.a("Schema is not configured for subscriptions.",t);return i}throw new v.a("Can only have query, mutation and subscription operations.",t)}var x=n(935),A=n(925);function S(e){return e.map((function(e){return"number"===typeof e?"["+e.toString()+"]":"."+e})).join("")}var w=n(920),O=n(972),k=n(917),N=n(927),F=n(926);function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;return j(e,t,n)}function I(e,t,n){var r="Invalid value "+Object(c.a)(t);throw e.length>0&&(r+=' at "value'.concat(S(e),'"')),n.message=r+": "+n.message,n}function j(e,t,n,r){if(Object(E.L)(t))return null!=e?j(e,t.ofType,n,r):void n(m(r),e,new v.a('Expected non-nullable type "'.concat(Object(c.a)(t),'" not to be null.')));if(null==e)return null;if(Object(E.J)(t)){var i=t.ofType,o=Object(d.a)(e,(function(e,t){var o=h(r,t,void 0);return j(e,i,n,o)}));return null!=o?o:[j(e,i,n,r)]}if(Object(E.F)(t)){if(!Object(f.a)(e))return void n(m(r),e,new v.a('Expected type "'.concat(t.name,'" to be an object.')));for(var a={},u=t.getFields(),s=0,p=Object(k.a)(u);s<p.length;s++){var g=p[s],y=e[g.name];if(void 0!==y)a[g.name]=j(y,g.type,n,h(r,g.name,t.name));else if(void 0!==g.defaultValue)a[g.name]=g.defaultValue;else if(Object(E.L)(g.type)){var b=Object(c.a)(g.type);n(m(r),e,new v.a('Field "'.concat(g.name,'" of required type "').concat(b,'" was not provided.')))}}for(var D=0,C=Object.keys(e);D<C.length;D++){var T=C[D];if(!u[T]){var x=Object(F.a)(T,Object.keys(t.getFields()));n(m(r),e,new v.a('Field "'.concat(T,'" is not defined by type "').concat(t.name,'".')+Object(N.a)(x)))}}return a}if(Object(E.I)(t)){var A;try{A=t.parseValue(e)}catch(S){return void(S instanceof v.a?n(m(r),e,S):n(m(r),e,new v.a('Expected type "'.concat(t.name,'". ')+S.message,void 0,void 0,void 0,void 0,S)))}return void 0===A&&n(m(r),e,new v.a('Expected type "'.concat(t.name,'".'))),A}Object(l.a)(0,"Unexpected input type: "+Object(c.a)(t))}function L(e,t,n,r){var i=[],o=null===r||void 0===r?void 0:r.maxErrors;try{var a=function(e,t,n,r){for(var i={},o=function(o){var a=t[o],u=a.variable.name.value,s=Object(C.a)(e,a.type);if(!Object(E.G)(s)){var l=Object(w.a)(a.type);return r(new v.a('Variable "$'.concat(u,'" expected value of type "').concat(l,'" which cannot be used as an input type.'),a.type)),"continue"}if(!B(n,u)){if(a.defaultValue)i[u]=Object(O.a)(a.defaultValue,s);else if(Object(E.L)(s)){var p=Object(c.a)(s);r(new v.a('Variable "$'.concat(u,'" of required type "').concat(p,'" was not provided.'),a))}return"continue"}var f=n[u];if(null===f&&Object(E.L)(s)){var d=Object(c.a)(s);return r(new v.a('Variable "$'.concat(u,'" of non-null type "').concat(d,'" must not be null.'),a)),"continue"}i[u]=_(f,s,(function(e,t,n){var i='Variable "$'.concat(u,'" got invalid value ')+Object(c.a)(t);e.length>0&&(i+=' at "'.concat(u).concat(S(e),'"')),r(new v.a(i+"; "+n.message,a,void 0,void 0,void 0,n.originalError))}))},a=0;a<t.length;a++)o(a);return i}(e,t,n,(function(e){if(null!=o&&i.length>=o)throw new v.a("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:a}}catch(u){i.push(u)}return{errors:i}}function P(e,t,n){for(var r,i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],a=Object(A.a)(o,(function(e){return e.name.value})),u=0,s=e.args;u<s.length;u++){var l=s[u],p=l.name,f=l.type,d=a[p];if(d){var h=d.value,m=h.kind===y.a.NULL;if(h.kind===y.a.VARIABLE){var g=h.name.value;if(null==n||!B(n,g)){if(void 0!==l.defaultValue)i[p]=l.defaultValue;else if(Object(E.L)(f))throw new v.a('Argument "'.concat(p,'" of required type "').concat(Object(c.a)(f),'" ')+'was provided the variable "$'.concat(g,'" which was not provided a runtime value.'),h);continue}m=null==n[g]}if(m&&Object(E.L)(f))throw new v.a('Argument "'.concat(p,'" of non-null type "').concat(Object(c.a)(f),'" ')+"must not be null.",h);var b=Object(O.a)(h,f,n);if(void 0===b)throw new v.a('Argument "'.concat(p,'" has invalid value ').concat(Object(w.a)(h),"."),h);i[p]=b}else if(void 0!==l.defaultValue)i[p]=l.defaultValue;else if(Object(E.L)(f))throw new v.a('Argument "'.concat(p,'" of required type "').concat(Object(c.a)(f),'" ')+"was not provided.",t)}return i}function M(e,t,n){var r=t.directives&&Object(x.a)(t.directives,(function(t){return t.name.value===e.name}));if(r)return P(e,r,n)}function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e,t,n,r,i,o,a,u){return U(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:u})}function V(e){var t=U(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function U(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,a=e.variableValues,u=e.operationName,s=e.fieldResolver,c=e.typeResolver;H(t,n,a);var l=G(t,n,r,i,a,u,s,c);if(Array.isArray(l))return{errors:l};var p=function(e,t,n){var r=T(e.schema,t),i=z(e,r,t.selectionSet,Object.create(null),Object.create(null)),a=void 0;try{var u="mutation"===t.operation?function(e,t,n,r,i){return a=Object.keys(i),u=function(a,u){var s=i[u],c=h(r,u,t.name),l=Q(e,t,n,s,c);return void 0===l?a:o(l)?l.then((function(e){return a[u]=e,a})):(a[u]=l,a)},s=Object.create(null),a.reduce((function(e,t){return o(e)?e.then((function(e){return u(e,t)})):u(e,t)}),s);var a,u,s}(e,r,n,a,i):W(e,r,n,a,i);return o(u)?u.then(void 0,(function(t){return e.errors.push(t),Promise.resolve(null)})):u}catch(s){return e.errors.push(s),null}}(l,l.operation,r);return q(l,p)}function q(e,t){return o(t)?t.then((function(t){return q(e,t)})):0===e.errors.length?{data:t}:{errors:e.errors,data:t}}function H(e,t,n){t||Object(p.a)(0,"Must provide document."),Object(s.a)(e),null==n||Object(f.a)(n)||Object(p.a)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function G(e,t,n,r,i,o,a,u){for(var s,c,l,p=Object.create(null),f=0,d=t.definitions;f<d.length;f++){var h=d[f];switch(h.kind){case y.a.OPERATION_DEFINITION:if(null==o){if(void 0!==l)return[new v.a("Must provide operation name if query contains multiple operations.")];l=h}else(null===(s=h.name)||void 0===s?void 0:s.value)===o&&(l=h);break;case y.a.FRAGMENT_DEFINITION:p[h.name.value]=h}}if(!l)return null!=o?[new v.a('Unknown operation named "'.concat(o,'".'))]:[new v.a("Must provide an operation.")];var m=L(e,null!==(c=l.variableDefinitions)&&void 0!==c?c:[],null!==i&&void 0!==i?i:{},{maxErrors:50});return m.errors?m.errors:{schema:e,fragments:p,rootValue:n,contextValue:r,operation:l,variableValues:m.coerced,fieldResolver:null!==a&&void 0!==a?a:oe,typeResolver:null!==u&&void 0!==u?u:ie,errors:[]}}function W(e,t,n,r,i){for(var a=Object.create(null),u=!1,s=0,c=Object.keys(i);s<c.length;s++){var l=c[s],p=Q(e,t,n,i[l],h(r,l,t.name));void 0!==p&&(a[l]=p,o(p)&&(u=!0))}return u?function(e){var t=Object.keys(e),n=t.map((function(t){return e[t]}));return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return e[t[r]]=n,e}),Object.create(null))}))}(a):a}function z(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var u=a[o];switch(u.kind){case y.a.FIELD:if(!K(e,u))continue;var s=(p=u).alias?p.alias.value:p.name.value;r[s]||(r[s]=[]),r[s].push(u);break;case y.a.INLINE_FRAGMENT:if(!K(e,u)||!$(e,u,t))continue;z(e,t,u.selectionSet,r,i);break;case y.a.FRAGMENT_SPREAD:var c=u.name.value;if(i[c]||!K(e,u))continue;i[c]=!0;var l=e.fragments[c];if(!l||!$(e,l,t))continue;z(e,t,l.selectionSet,r,i)}}var p;return r}function K(e,t){var n=M(D.e,t,e.variableValues);if(!0===(null===n||void 0===n?void 0:n.if))return!1;var r=M(D.d,t,e.variableValues);return!1!==(null===r||void 0===r?void 0:r.if)}function $(e,t,n){var r=t.typeCondition;if(!r)return!0;var i=Object(C.a)(e.schema,r);return i===n||!!Object(E.C)(i)&&e.schema.isSubType(i,n)}function Q(e,t,n,r,i){var a,u=r[0].name.value,s=ae(e.schema,t,u);if(s){var c=s.type,l=null!==(a=s.resolve)&&void 0!==a?a:e.fieldResolver,p=J(e,s,r,t,i);try{var f,d=l(n,P(s,r[0],e.variableValues),e.contextValue,p);return f=o(d)?d.then((function(t){return X(e,c,r,p,i,t)})):X(e,c,r,p,i,d),o(f)?f.then(void 0,(function(t){return Y(Object(g.a)(t,r,m(i)),c,e)})):f}catch(h){return Y(Object(g.a)(h,r,m(i)),c,e)}}}function J(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 Y(e,t,n){if(Object(E.L)(t))throw e;return n.errors.push(e),null}function X(e,t,n,r,i,a){if(a instanceof Error)throw a;if(Object(E.L)(t)){var u=X(e,t.ofType,n,r,i,a);if(null===u)throw new Error("Cannot return null for non-nullable field ".concat(r.parentType.name,".").concat(r.fieldName,"."));return u}return null==a?null:Object(E.J)(t)?function(e,t,n,r,i,a){var u=t.ofType,s=!1,c=Object(d.a)(a,(function(t,a){var c=h(i,a,void 0);try{var l;return l=o(t)?t.then((function(t){return X(e,u,n,r,c,t)})):X(e,u,n,r,c,t),o(l)?(s=!0,l.then(void 0,(function(t){return Y(Object(g.a)(t,n,m(c)),u,e)}))):l}catch(p){return Y(Object(g.a)(p,n,m(c)),u,e)}}));if(null==c)throw new v.a('Expected Iterable, but did not find one for field "'.concat(r.parentType.name,".").concat(r.fieldName,'".'));return s?Promise.all(c):c}(e,t,n,r,i,a):Object(E.I)(t)?function(e,t){var n=e.serialize(t);if(void 0===n)throw new Error('Expected a value of type "'.concat(Object(c.a)(e),'" but ')+"received: ".concat(Object(c.a)(t)));return n}(t,a):Object(E.C)(t)?function(e,t,n,r,i,a){var u,s=null!==(u=t.resolveType)&&void 0!==u?u:e.typeResolver,c=e.contextValue,l=s(a,c,r,t);if(o(l))return l.then((function(o){return ee(e,Z(o,e,t,n,r,a),n,r,i,a)}));return ee(e,Z(l,e,t,n,r,a),n,r,i,a)}(e,t,n,r,i,a):Object(E.N)(t)?ee(e,t,n,r,i,a):void Object(l.a)(0,"Cannot complete value of unexpected output type: "+Object(c.a)(t))}function Z(e,t,n,r,i,o){if(null==e)throw new v.a('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(n.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),r);var a=Object(E.K)(e)?e.name:e;if("string"!==typeof a)throw new v.a('Abstract type "'.concat(n.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat(Object(c.a)(o),', received "').concat(Object(c.a)(e),'".'));var u=t.schema.getType(a);if(null==u)throw new v.a('Abstract type "'.concat(n.name,'" was resolve to a type "').concat(a,'" that does not exist inside schema.'),r);if(!Object(E.N)(u))throw new v.a('Abstract type "'.concat(n.name,'" was resolve to a non-object type "').concat(a,'".'),r);if(!t.schema.isSubType(n,u))throw new v.a('Runtime Object type "'.concat(u.name,'" is not a possible type for "').concat(n.name,'".'),r);return u}function ee(e,t,n,r,i,a){if(t.isTypeOf){var u=t.isTypeOf(a,e.contextValue,r);if(o(u))return u.then((function(r){if(!r)throw te(t,a,n);return ne(e,t,n,i,a)}));if(!u)throw te(t,a,n)}return ne(e,t,n,i,a)}function te(e,t,n){return new v.a('Expected value of type "'.concat(e.name,'" but got: ').concat(Object(c.a)(t),"."),n)}function ne(e,t,n,r,i){return W(e,t,i,r,re(e,t,n))}var re=function(e){var t;return function(n,r,i){t||(t=new WeakMap);var o,a=t.get(n);if(a){if(o=a.get(r)){var u=o.get(i);if(void 0!==u)return u}}else a=new WeakMap,t.set(n,a);o||(o=new WeakMap,a.set(r,o));var s=e(n,r,i);return o.set(i,s),s}}((function(e,t,n){for(var r=Object.create(null),i=Object.create(null),o=0;o<n.length;o++){var a=n[o];a.selectionSet&&(r=z(e,t,a.selectionSet,r,i))}return r}));var ie=function(e,t,n,r){if(Object(f.a)(e)&&"string"===typeof e.__typename)return e.__typename;for(var i=n.schema.getPossibleTypes(r),a=[],u=0;u<i.length;u++){var s=i[u];if(s.isTypeOf){var c=s.isTypeOf(e,t,n);if(o(c))a[u]=c;else if(c)return s.name}}return a.length?Promise.all(a).then((function(e){for(var t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},oe=function(e,t,n,r){if(Object(f.a)(e)||"function"===typeof e){var i=e[r.fieldName];return"function"===typeof i?e[r.fieldName](t,n,r):i}};function ae(e,t,n){return n===b.SchemaMetaFieldDef.name&&e.getQueryType()===t?b.SchemaMetaFieldDef:n===b.TypeMetaFieldDef.name&&e.getQueryType()===t?b.TypeMetaFieldDef:n===b.TypeNameMetaFieldDef.name?b.TypeNameMetaFieldDef:t.getFields()[n]}function ue(e,t,n,r,i,o,a,u){var s=arguments;return new Promise((function(c){return c(1===s.length?ce(e):ce({schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,typeResolver:u}))}))}function se(e,t,n,r,i,a,u,s){var c=ce(1===arguments.length?e:{schema:e,source:t,rootValue:n,contextValue:r,variableValues:i,operationName:a,fieldResolver:u,typeResolver:s});if(o(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function ce(e){var t,n=e.schema,r=e.source,i=e.rootValue,o=e.contextValue,c=e.variableValues,l=e.operationName,p=e.fieldResolver,f=e.typeResolver,d=Object(s.b)(n);if(d.length>0)return{errors:d};try{t=Object(a.a)(r)}catch(dt){return{errors:[dt]}}var h=Object(u.c)(n,t);return h.length>0?{errors:h}:R({schema:n,document:t,rootValue:i,contextValue:o,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f})}var le=n(936),pe=n(924),fe=n(939),de=n(990),he=n(988),me=n(1019),ve=n(991),ge=n(945),ye=n(928),be=n(943),De=n(934),Ee=n(921);function Ce(e){return"function"===typeof(null===e||void 0===e?void 0:e[Ee.a])}function Te(e,t,n){var r,i,o,a,u,s,c=e[Ee.a].call(e);function l(e){return e.done?e:xe(e.value,t).then(Ae,i)}if("function"===typeof c.return&&(r=c.return,i=function(e){var t=function(){return Promise.reject(e)};return r.call(c).then(t,t)}),n){var p=n;o=function(e){return xe(e,p).then(Ae,i)}}return a={next:function(){return c.next().then(l,o)},return:function(){return r?r.call(c).then(l,o):Promise.resolve({value:void 0,done:!0})},throw:function(e){return"function"===typeof c.throw?c.throw(e).then(l,o):Promise.reject(e).catch(i)}},u=Ee.a,s=function(){return this},u in a?Object.defineProperty(a,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[u]=s,a}function xe(e,t){return new Promise((function(n){return n(t(e))}))}function Ae(e){return{value:e,done:!1}}function Se(e,t,n,r,i,o,a,u){return Oe(1===arguments.length?e:{schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,fieldResolver:a,subscribeFieldResolver:u})}function we(e){if(e instanceof v.a)return{errors:[e]};throw e}function Oe(e){var t=e.schema,n=e.document,r=e.rootValue,i=e.contextValue,o=e.variableValues,a=e.operationName,u=e.fieldResolver,s=e.subscribeFieldResolver,c=ke(t,n,r,i,o,a,s),l=function(e){return R({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:a,fieldResolver:u})};return c.then((function(e){return Ce(e)?Te(e,l,we):e}))}function ke(e,t,n,r,i,o,a){return H(e,t,i),new Promise((function(u){var s=G(e,t,n,r,i,o,a);u(Array.isArray(s)?{errors:s}:function(e){var t=e.schema,n=e.operation,r=e.variableValues,i=e.rootValue,o=T(t,n),a=z(e,o,n.selectionSet,Object.create(null),Object.create(null)),u=Object.keys(a)[0],s=a[u],l=s[0].name.value,p=ae(t,o,l);if(!p)throw new v.a('The subscription field "'.concat(l,'" is not defined.'),s);var f=h(void 0,u,o.name),d=J(e,p,s,o,f);return new Promise((function(t){var n,o=P(p,s[0],r),a=e.contextValue;t((null!==(n=p.subscribe)&&void 0!==n?n:e.fieldResolver)(i,o,a,d))})).then((function(e){if(e instanceof Error)throw Object(g.a)(e,s,m(f));if(!Ce(e))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat(Object(c.a)(e),"."));return e}),(function(e){throw Object(g.a)(e,s,m(f))}))}(s))})).catch(we)}var Ne=n(1056),Fe=n(1033),_e=n(1034),Ie=n(1041),je=n(1038),Le=n(1050),Pe=n(1028),Me=n(1043),Be=n(1027),Re=n(1036),Ve=n(1046),Ue=n(1048),qe=n(1044),He=n(1049),Ge=n(1054),We=n(1045),ze=n(1052),Ke=n(1040),$e=n(1037),Qe=n(1031),Je=n(1029),Ye=n(1042),Xe=n(1032),Ze=n(1035),et=n(1047),tt=n(1051),nt=n(1039),rt=n(1053),it=n(1021),ot=n(1022),at=n(1023),ut=n(1024),st=n(1025),ct=n(1026),lt=n(1030),pt=n(1057);function ft(e){return{Field:function(t){var n=Object(E.A)(e.getType());n&&Object(b.isIntrospectionType)(n)&&e.reportError(new v.a('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var dt=n(992);function ht(e){var t;e||Object(p.a)(0,"Received null or undefined error.");var n=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",r=e.locations,i=e.path,o=e.extensions;return o&&Object.keys(o).length>0?{message:n,locations:r,path:i,extensions:o}:{message:n,locations:r,path:i}}var mt=n(1120);function vt(e,t){for(var n=null,r=0,i=e.definitions;r<i.length;r++){var o,a=i[r];if(a.kind===y.a.OPERATION_DEFINITION)if(null==t){if(n)return null;n=a}else if((null===(o=a.name)||void 0===o?void 0:o.value)===t)return a}return n}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=V({schema:e,document:Object(a.a)(Object(mt.a)(n))});return!r.errors&&r.data||Object(l.a)(0),r.data}var Dt=n(1167),Et=n(987),Ct=n(933);function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function St(e,t,n){Object(le.b)(e),null!=t&&t.kind===y.a.DOCUMENT||Object(p.a)(0,"Must provide valid Document AST."),!0!==(null===n||void 0===n?void 0:n.assumeValid)&&!0!==(null===n||void 0===n?void 0:n.assumeValidSDL)&&Object(u.b)(t,e);var r=e.toConfig(),i=wt(r,t,n);return r===i?e:new le.a(i)}function wt(e,t,n){for(var r,i,o,a,u,s=[],p=Object.create(null),f=[],d=[],h=0,m=t.definitions;h<m.length;h++){var v=m[h];if(v.kind===y.a.SCHEMA_DEFINITION)u=v;else if(v.kind===y.a.SCHEMA_EXTENSION)d.push(v);else if(Object(De.d)(v))s.push(v);else if(Object(De.e)(v)){var g=v.name.value,C=p[g];p[g]=C?C.concat([v]):[v]}else v.kind===y.a.DIRECTIVE_DEFINITION&&f.push(v)}if(0===Object.keys(p).length&&0===s.length&&0===f.length&&0===d.length&&null==u)return e;for(var T=Object.create(null),x=0,A=e.types;x<A.length;x++){var S=A[x];T[S.name]=P(S)}for(var w=0;w<s.length;w++){var N,F=s[w],_=F.name.value;T[_]=null!==(N=Ot[_])&&void 0!==N?N:$(F)}var I=xt(xt({query:e.query&&L(e.query),mutation:e.mutation&&L(e.mutation),subscription:e.subscription&&L(e.subscription)},u&&R([u])),R(d));return xt(xt({description:null===(r=u)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value},I),{},{types:Object(k.a)(T),directives:[].concat(e.directives.map((function(e){var t=e.toConfig();return new D.c(xt(xt({},t),{},{args:Object(Et.a)(t.args,B)}))})),f.map((function(e){var t=e.locations.map((function(e){return e.value}));return new D.c({name:e.name.value,description:Ft(e,n),locations:t,isRepeatable:e.repeatable,args:H(e.arguments),astNode:e})}))),extensions:void 0,astNode:null!==(o=u)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(a=null===n||void 0===n?void 0:n.assumeValid)&&void 0!==a&&a});function j(e){return Object(E.J)(e)?new E.d(j(e.ofType)):Object(E.L)(e)?new E.e(j(e.ofType)):L(e)}function L(e){return T[e.name]}function P(e){return Object(b.isIntrospectionType)(e)||Object(pe.f)(e)?e:Object(E.R)(e)?function(e){for(var t,n=e.toConfig(),r=null!==(t=p[n.name])&&void 0!==t?t:[],i=n.specifiedByUrl,o=0;o<r.length;o++){var a;i=null!==(a=Nt(r[o]))&&void 0!==a?a:i}return new E.g(xt(xt({},n),{},{specifiedByUrl:i,extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(E.N)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=p[n.name])&&void 0!==t?t:[];return new E.f(xt(xt({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(L),z(r))},fields:function(){return xt(xt({},Object(Et.a)(n.fields,M)),q(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(E.H)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=p[n.name])&&void 0!==t?t:[];return new E.c(xt(xt({},n),{},{interfaces:function(){return[].concat(e.getInterfaces().map(L),z(r))},fields:function(){return xt(xt({},Object(Et.a)(n.fields,M)),q(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(E.T)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=p[n.name])&&void 0!==t?t:[];return new E.h(xt(xt({},n),{},{types:function(){return[].concat(e.getTypes().map(L),K(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(E.E)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=p[e.name])&&void 0!==t?t:[];return new E.a(xt(xt({},n),{},{values:xt(xt({},n.values),W(r)),extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):Object(E.F)(e)?function(e){var t,n=e.toConfig(),r=null!==(t=p[n.name])&&void 0!==t?t:[];return new E.b(xt(xt({},n),{},{fields:function(){return xt(xt({},Object(Et.a)(n.fields,(function(e){return xt(xt({},e),{},{type:j(e.type)})}))),G(r))},extensionASTNodes:n.extensionASTNodes.concat(r)}))}(e):void Object(l.a)(0,"Unexpected type: "+Object(c.a)(e))}function M(e){return xt(xt({},e),{},{type:j(e.type),args:Object(Et.a)(e.args,B)})}function B(e){return xt(xt({},e),{},{type:j(e.type)})}function R(e){for(var t={},n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t[a.operation]=V(a.type)}return t}function V(e){var t,n=e.name.value,r=null!==(t=Ot[n])&&void 0!==t?t:T[n];if(void 0===r)throw new Error('Unknown type: "'.concat(n,'".'));return r}function U(e){return e.kind===y.a.LIST_TYPE?new E.d(U(e.type)):e.kind===y.a.NON_NULL_TYPE?new E.e(U(e.type)):V(e)}function q(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var u=o[a];t[u.name.value]={type:U(u.type),description:Ft(u,n),args:H(u.arguments),deprecationReason:kt(u),astNode:u}}return t}function H(e){for(var t=null!==e&&void 0!==e?e:[],r=Object.create(null),i=0;i<t.length;i++){var o=t[i],a=U(o.type);r[o.name.value]={type:a,description:Ft(o,n),defaultValue:Object(O.a)(o.defaultValue,a),deprecationReason:kt(o),astNode:o}}return r}function G(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].fields)&&void 0!==i?i:[],a=0;a<o.length;a++){var u=o[a],s=U(u.type);t[u.name.value]={type:s,description:Ft(u,n),defaultValue:Object(O.a)(u.defaultValue,s),deprecationReason:kt(u),astNode:u}}return t}function W(e){for(var t=Object.create(null),r=0;r<e.length;r++)for(var i,o=null!==(i=e[r].values)&&void 0!==i?i:[],a=0;a<o.length;a++){var u=o[a];t[u.name.value]={description:Ft(u,n),deprecationReason:kt(u),astNode:u}}return t}function z(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].interfaces)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(V(a))}return t}function K(e){for(var t=[],n=0;n<e.length;n++)for(var r,i=null!==(r=e[n].types)&&void 0!==r?r:[],o=0;o<i.length;o++){var a=i[o];t.push(V(a))}return t}function $(e){var t,r=e.name.value,i=Ft(e,n),o=null!==(t=p[r])&&void 0!==t?t:[];switch(e.kind){case y.a.OBJECT_TYPE_DEFINITION:var a=o,u=[e].concat(a);return new E.f({name:r,description:i,interfaces:function(){return z(u)},fields:function(){return q(u)},astNode:e,extensionASTNodes:a});case y.a.INTERFACE_TYPE_DEFINITION:var s=o,f=[e].concat(s);return new E.c({name:r,description:i,interfaces:function(){return z(f)},fields:function(){return q(f)},astNode:e,extensionASTNodes:s});case y.a.ENUM_TYPE_DEFINITION:var d=o,h=[e].concat(d);return new E.a({name:r,description:i,values:W(h),astNode:e,extensionASTNodes:d});case y.a.UNION_TYPE_DEFINITION:var m=o,v=[e].concat(m);return new E.h({name:r,description:i,types:function(){return K(v)},astNode:e,extensionASTNodes:m});case y.a.SCALAR_TYPE_DEFINITION:var g=o;return new E.g({name:r,description:i,specifiedByUrl:Nt(e),astNode:e,extensionASTNodes:g});case y.a.INPUT_OBJECT_TYPE_DEFINITION:var b=o,D=[e].concat(b);return new E.b({name:r,description:i,fields:function(){return G(D)},astNode:e,extensionASTNodes:b})}Object(l.a)(0,"Unexpected type definition node: "+Object(c.a)(e))}}var Ot=Object(A.a)(pe.g.concat(b.introspectionTypes),(function(e){return e.name}));function kt(e){var t=M(D.b,e);return null===t||void 0===t?void 0:t.reason}function Nt(e){var t=M(D.f,e);return null===t||void 0===t?void 0:t.url}function Ft(e,t){if(e.description)return e.description.value;if(!0===(null===t||void 0===t?void 0:t.commentDescriptions)){var n=function(e){var t=e.loc;if(!t)return;var n=[],r=t.startToken.prev;for(;null!=r&&r.kind===ge.a.COMMENT&&r.next&&r.prev&&r.line+1===r.next.line&&r.line!==r.prev.line;){var i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join("\n"):void 0}(e);if(void 0!==n)return Object(Ct.a)("\n"+n)}}function _t(e,t){null!=e&&e.kind===y.a.DOCUMENT||Object(p.a)(0,"Must provide valid Document AST."),!0!==(null===t||void 0===t?void 0:t.assumeValid)&&!0!==(null===t||void 0===t?void 0:t.assumeValidSDL)&&Object(u.a)(e);var n=wt({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(var r=0,i=n.types;r<i.length;r++){var o=i[r];switch(o.name){case"Query":n.query=o;break;case"Mutation":n.mutation=o;break;case"Subscription":n.subscription=o}}for(var a=n.directives,s=function(e){var t=D.j[e];a.every((function(e){return e.name!==t.name}))&&a.push(t)},c=0;c<D.j.length;c++)s(c);return new le.a(n)}function It(e,t){return _t(Object(a.a)(e,{noLocation:null===t||void 0===t?void 0:t.noLocation,allowLegacySDLEmptyFields:null===t||void 0===t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null===t||void 0===t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null===t||void 0===t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null===t||void 0===t?void 0:t.commentDescriptions,assumeValidSDL:null===t||void 0===t?void 0:t.assumeValidSDL,assumeValid:null===t||void 0===t?void 0:t.assumeValid})}var jt=n(941),Lt=n(942);function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rt(e){var t=e.toConfig(),n=Object(jt.a)(Ut(t.types),(function(e){return e.name}),(function(e){if(Object(E.R)(e)||Object(b.isIntrospectionType)(e))return e;if(Object(E.N)(e)){var t=e.toConfig();return new E.f(Mt(Mt({},t),{},{interfaces:function(){return s(t.interfaces)},fields:function(){return u(t.fields)}}))}if(Object(E.H)(e)){var n=e.toConfig();return new E.c(Mt(Mt({},n),{},{interfaces:function(){return s(n.interfaces)},fields:function(){return u(n.fields)}}))}if(Object(E.T)(e)){var i=e.toConfig();return new E.h(Mt(Mt({},i),{},{types:function(){return s(i.types)}}))}if(Object(E.E)(e)){var o=e.toConfig();return new E.a(Mt(Mt({},o),{},{values:Vt(o.values)}))}if(Object(E.F)(e)){var a=e.toConfig();return new E.b(Mt(Mt({},a),{},{fields:function(){return Vt(a.fields,(function(e){return Mt(Mt({},e),{},{type:r(e.type)})}))}}))}Object(l.a)(0,"Unexpected type: "+Object(c.a)(e))}));return new le.a(Mt(Mt({},t),{},{types:Object(k.a)(n),directives:Ut(t.directives).map((function(e){var t=e.toConfig();return new D.c(Mt(Mt({},t),{},{locations:qt(t.locations,(function(e){return e})),args:a(t.args)}))})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(e){return Object(E.J)(e)?new E.d(r(e.ofType)):Object(E.L)(e)?new E.e(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return Vt(e,(function(e){return Mt(Mt({},e),{},{type:r(e.type)})}))}function u(e){return Vt(e,(function(e){return Mt(Mt({},e),{},{type:r(e.type),args:a(e.args)})}))}function s(e){return Ut(e).map(i)}}function Vt(e,t){for(var n=Object.create(null),r=qt(Object.keys(e),(function(e){return e})),i=0;i<r.length;i++){var o=r[i],a=e[o];n[o]=t?t(a):a}return n}function Ut(e){return qt(e,(function(e){return e.name}))}function qt(e,t){return e.slice().sort((function(e,n){var r=t(e),i=t(n);return Object(Lt.a)(r,i)}))}var Ht=n(959);function Gt(e,t){return Kt(e,(function(e){return!Object(D.i)(e)}),zt,t)}function Wt(e,t){return Kt(e,D.i,b.isIntrospectionType,t)}function zt(e){return!Object(pe.f)(e)&&!Object(b.isIntrospectionType)(e)}function Kt(e,t,n,r){var i=e.getDirectives().filter(t),o=Object(k.a)(e.getTypeMap()).filter(n);return[$t(e)].concat(i.map((function(e){return function(e,t){return nn(t,e)+"directive @"+e.name+Zt(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,r)})),o.map((function(e){return Qt(e,r)}))).filter(Boolean).join("\n\n")+"\n"}function $t(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;var r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e)){var t=[],n=e.getQueryType();n&&t.push(" query: ".concat(n.name));var r=e.getMutationType();r&&t.push(" mutation: ".concat(r.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),nn({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function Qt(e,t){return Object(E.R)(e)?function(e,t){return nn(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=e.specifiedByUrl,n=Object(Ht.a)(t,pe.e);return n||Object(l.a)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+Object(w.a)(n)+")"}(e)}(e,t):Object(E.N)(e)?function(e,t){return nn(t,e)+"type ".concat(e.name)+Jt(e)+Yt(t,e)}(e,t):Object(E.H)(e)?function(e,t){return nn(t,e)+"interface ".concat(e.name)+Jt(e)+Yt(t,e)}(e,t):Object(E.T)(e)?function(e,t){var n=e.getTypes(),r=n.length?" = "+n.join(" | "):"";return nn(t,e)+"union "+e.name+r}(e,t):Object(E.E)(e)?function(e,t){var n=e.getValues().map((function(e,n){return nn(t,e," ",!n)+" "+e.name+tn(e.deprecationReason)}));return nn(t,e)+"enum ".concat(e.name)+Xt(n)}(e,t):Object(E.F)(e)?function(e,t){var n=Object(k.a)(e.getFields()).map((function(e,n){return nn(t,e," ",!n)+" "+en(e)}));return nn(t,e)+"input ".concat(e.name)+Xt(n)}(e,t):void Object(l.a)(0,"Unexpected type: "+Object(c.a)(e))}function Jt(e){var t=e.getInterfaces();return t.length?" implements "+t.map((function(e){return e.name})).join(" & "):""}function Yt(e,t){return Xt(Object(k.a)(t.getFields()).map((function(t,n){return nn(e,t," ",!n)+" "+t.name+Zt(e,t.args," ")+": "+String(t.type)+tn(t.deprecationReason)})))}function Xt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every((function(e){return!e.description}))?"("+t.map(en).join(", ")+")":"(\n"+t.map((function(t,r){return nn(e,t," "+n,!r)+" "+n+en(t)})).join("\n")+"\n"+n+")"}function en(e){var t=Object(Ht.a)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=" = ".concat(Object(w.a)(t))),n+tn(e.deprecationReason)}function tn(e){if(null==e)return"";var t=Object(Ht.a)(e,pe.e);return t&&e!==D.a?" @deprecated(reason: "+Object(w.a)(t)+")":" @deprecated"}function nn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null===e||void 0===e?void 0:e.commentDescriptions))return rn(i,n,r);var o=i.length>70,a=Object(Ct.c)(i,"",o),u=n&&!r?"\n"+n:n;return u+a.replace(/\n/g,"\n"+n)+"\n"}function rn(e,t,n){return(t&&!n?"\n":"")+e.split("\n").map((function(e){return t+(""!==e?"# "+e:"#")})).join("\n")+"\n"}var on=n(1018),an=n(994);function un(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t=t.concat(r.definitions)}return{kind:"Document",definitions:t}}function sn(e){for(var t=[],n=Object.create(null),r=0,i=e.definitions;r<i.length;r++){var o=i[r];switch(o.kind){case y.a.OPERATION_DEFINITION:t.push(o);break;case y.a.FRAGMENT_DEFINITION:n[o.name.value]=ln(o.selectionSet)}}for(var a=Object.create(null),u=function(r){for(var i=t[r],o=new Set,u=0,s=ln(i.selectionSet);u<s.length;u++){var c=s[u];cn(o,n,c)}var l=i.name?i.name.value:"";a[l]={kind:y.a.DOCUMENT,definitions:e.definitions.filter((function(e){return e===i||e.kind===y.a.FRAGMENT_DEFINITION&&o.has(e.name.value)}))}},s=0;s<t.length;s++)u(s);return a}function cn(e,t,n){if(!e.has(n)){e.add(n);var r=t[n];if(void 0!==r)for(var i=0;i<r.length;i++){cn(e,t,r[i])}}}function ln(e){var t=[];return Object(ye.c)(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function pn(e){for(var t=Object(de.b)(e)?e:new de.a(e),n=t.body,r=new ve.a(t),i="",o=!1;r.advance().kind!==ge.a.EOF;){var a=r.token,u=a.kind,s=!Object(ve.b)(a.kind);o&&(s||a.kind===ge.a.SPREAD)&&(i+=" ");var c=n.slice(a.start,a.end);u===ge.a.BLOCK_STRING?i+=fn(c):i+=c,o=s}return i}function fn(e){var t=e.slice(3,-3),n=Object(Ct.a)(t);Object(Ct.b)(n)>0&&(n="\n"+n);var r=n[n.length-1];return('"'===r&&'\\"""'!==n.slice(-4)||"\\"===r)&&(n+="\n"),'"""'+n+'"""'}var dn=n(961),hn=n(1055);function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yn=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),bn=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Dn(e,t){return Cn(e,t).filter((function(e){return e.type in yn}))}function En(e,t){return Cn(e,t).filter((function(e){return e.type in bn}))}function Cn(e,t){return[].concat(function(e,t){for(var n=[],r=In(Object(k.a)(e.getTypeMap()),Object(k.a)(t.getTypeMap())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:yn.TYPE_REMOVED,description:Object(pe.f)(a)?"Standard scalar ".concat(a.name," was removed because it is not referenced anymore."):"".concat(a.name," was removed.")})}for(var u=0,s=r.persisted;u<s.length;u++){var c=s[u],l=c[0],p=c[1];Object(E.E)(l)&&Object(E.E)(p)?n.push.apply(n,An(l,p)):Object(E.T)(l)&&Object(E.T)(p)?n.push.apply(n,xn(l,p)):Object(E.F)(l)&&Object(E.F)(p)?n.push.apply(n,Tn(l,p)):Object(E.N)(l)&&Object(E.N)(p)||Object(E.H)(l)&&Object(E.H)(p)?n.push.apply(n,wn(l,p).concat(Sn(l,p))):l.constructor!==p.constructor&&n.push({type:yn.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(Fn(l)," to ").concat(Fn(p),".")})}return n}(e,t),function(e,t){for(var n=[],r=In(e.getDirectives(),t.getDirectives()),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:yn.DIRECTIVE_REMOVED,description:"".concat(a.name," was removed.")})}for(var u=0,s=r.persisted;u<s.length;u++){for(var c=s[u],l=c[0],p=c[1],f=In(l.args,p.args),d=0,h=f.added;d<h.length;d++){var m=h[d];Object(E.P)(m)&&n.push({type:yn.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(m.name," on directive ").concat(l.name," was added.")})}for(var v=0,g=f.removed;v<g.length;v++){var y=g[v];n.push({type:yn.DIRECTIVE_ARG_REMOVED,description:"".concat(y.name," was removed from ").concat(l.name,".")})}l.isRepeatable&&!p.isRepeatable&&n.push({type:yn.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(l.name,".")});for(var b=0,D=l.locations;b<D.length;b++){var C=D[b];-1===p.locations.indexOf(C)&&n.push({type:yn.DIRECTIVE_LOCATION_REMOVED,description:"".concat(C," was removed from ").concat(l.name,".")})}}return n}(e,t))}function Tn(e,t){for(var n=[],r=In(Object(k.a)(e.getFields()),Object(k.a)(t.getFields())),i=0,o=r.added;i<o.length;i++){var a=o[i];Object(E.Q)(a)?n.push({type:yn.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(a.name," on input type ").concat(e.name," was added.")}):n.push({type:bn.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(a.name," on input type ").concat(e.name," was added.")})}for(var u=0,s=r.removed;u<s.length;u++){var c=s[u];n.push({type:yn.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,p=r.persisted;l<p.length;l++){var f=p[l],d=f[0],h=f[1];Nn(d.type,h.type)||n.push({type:yn.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(d.name," changed type from ")+"".concat(String(d.type)," to ").concat(String(h.type),".")})}return n}function xn(e,t){for(var n=[],r=In(e.getTypes(),t.getTypes()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:bn.TYPE_ADDED_TO_UNION,description:"".concat(a.name," was added to union type ").concat(e.name,".")})}for(var u=0,s=r.removed;u<s.length;u++){var c=s[u];n.push({type:yn.TYPE_REMOVED_FROM_UNION,description:"".concat(c.name," was removed from union type ").concat(e.name,".")})}return n}function An(e,t){for(var n=[],r=In(e.getValues(),t.getValues()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:bn.VALUE_ADDED_TO_ENUM,description:"".concat(a.name," was added to enum type ").concat(e.name,".")})}for(var u=0,s=r.removed;u<s.length;u++){var c=s[u];n.push({type:yn.VALUE_REMOVED_FROM_ENUM,description:"".concat(c.name," was removed from enum type ").concat(e.name,".")})}return n}function Sn(e,t){for(var n=[],r=In(e.getInterfaces(),t.getInterfaces()),i=0,o=r.added;i<o.length;i++){var a=o[i];n.push({type:bn.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(a.name," added to interfaces implemented by ").concat(e.name,".")})}for(var u=0,s=r.removed;u<s.length;u++){var c=s[u];n.push({type:yn.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(c.name,".")})}return n}function wn(e,t){for(var n=[],r=In(Object(k.a)(e.getFields()),Object(k.a)(t.getFields())),i=0,o=r.removed;i<o.length;i++){var a=o[i];n.push({type:yn.FIELD_REMOVED,description:"".concat(e.name,".").concat(a.name," was removed.")})}for(var u=0,s=r.persisted;u<s.length;u++){var c=s[u],l=c[0],p=c[1];n.push.apply(n,On(e,l,p)),kn(l.type,p.type)||n.push({type:yn.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(p.type),".")})}return n}function On(e,t,n){for(var r=[],i=In(t.args,n.args),o=0,a=i.removed;o<a.length;o++){var u=a[o];r.push({type:yn.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(u.name," was removed.")})}for(var s=0,c=i.persisted;s<c.length;s++){var l=c[s],p=l[0],f=l[1];if(Nn(p.type,f.type)){if(void 0!==p.defaultValue)if(void 0===f.defaultValue)r.push({type:bn.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," defaultValue was removed.")});else{var d=_n(p.defaultValue,p.type),h=_n(f.defaultValue,f.type);d!==h&&r.push({type:bn.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed defaultValue from ").concat(d," to ").concat(h,".")})}}else r.push({type:yn.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(p.name," has changed type from ")+"".concat(String(p.type)," to ").concat(String(f.type),".")})}for(var m=0,v=i.added;m<v.length;m++){var g=v[m];Object(E.P)(g)?r.push({type:yn.REQUIRED_ARG_ADDED,description:"A required arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")}):r.push({type:bn.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")})}return r}function kn(e,t){return Object(E.J)(e)?Object(E.J)(t)&&kn(e.ofType,t.ofType)||Object(E.L)(t)&&kn(e,t.ofType):Object(E.L)(e)?Object(E.L)(t)&&kn(e.ofType,t.ofType):Object(E.K)(t)&&e.name===t.name||Object(E.L)(t)&&kn(e,t.ofType)}function Nn(e,t){return Object(E.J)(e)?Object(E.J)(t)&&Nn(e.ofType,t.ofType):Object(E.L)(e)?Object(E.L)(t)&&Nn(e.ofType,t.ofType)||!Object(E.L)(t)&&Nn(e.ofType,t):Object(E.K)(t)&&e.name===t.name}function Fn(e){return Object(E.R)(e)?"a Scalar type":Object(E.N)(e)?"an Object type":Object(E.H)(e)?"an Interface type":Object(E.T)(e)?"a Union type":Object(E.E)(e)?"an Enum type":Object(E.F)(e)?"an Input type":void Object(l.a)(0,"Unexpected type: "+Object(c.a)(e))}function _n(e,t){var n=Object(Ht.a)(e,t);null!=n||Object(l.a)(0);var r=Object(ye.c)(n,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort((function(e,t){return Object(Lt.a)(e.name.value,t.name.value)})),vn(vn({},e),{},{fields:t})}});return Object(w.a)(r)}function In(e,t){for(var n=[],r=[],i=[],o=Object(A.a)(e,(function(e){return e.name})),a=Object(A.a)(t,(function(e){return e.name})),u=0;u<e.length;u++){var s=e[u],c=a[s.name];void 0===c?r.push(s):i.push([s,c])}for(var l=0;l<t.length;l++){var p=t[l];void 0===o[p.name]&&n.push(p)}return{added:n,persisted:i,removed:r}}function jn(e,t){return Object(u.c)(e,t,[pt.a])}},function(e,t,n){"use strict";n.d(t,"S",(function(){return T})),n.d(t,"x",(function(){return x})),n.d(t,"R",(function(){return A})),n.d(t,"w",(function(){return S})),n.d(t,"N",(function(){return w})),n.d(t,"u",(function(){return O})),n.d(t,"H",(function(){return k})),n.d(t,"o",(function(){return N})),n.d(t,"T",(function(){return F})),n.d(t,"y",(function(){return _})),n.d(t,"E",(function(){return I})),n.d(t,"l",(function(){return j})),n.d(t,"F",(function(){return L})),n.d(t,"m",(function(){return P})),n.d(t,"J",(function(){return M})),n.d(t,"q",(function(){return B})),n.d(t,"L",(function(){return R})),n.d(t,"s",(function(){return V})),n.d(t,"G",(function(){return U})),n.d(t,"n",(function(){return q})),n.d(t,"O",(function(){return H})),n.d(t,"v",(function(){return G})),n.d(t,"I",(function(){return W})),n.d(t,"p",(function(){return z})),n.d(t,"D",(function(){return K})),n.d(t,"k",(function(){return $})),n.d(t,"C",(function(){return Q})),n.d(t,"j",(function(){return J})),n.d(t,"d",(function(){return Y})),n.d(t,"e",(function(){return X})),n.d(t,"U",(function(){return Z})),n.d(t,"z",(function(){return ee})),n.d(t,"M",(function(){return te})),n.d(t,"t",(function(){return ne})),n.d(t,"B",(function(){return re})),n.d(t,"K",(function(){return ie})),n.d(t,"r",(function(){return oe})),n.d(t,"A",(function(){return ae})),n.d(t,"g",(function(){return ce})),n.d(t,"f",(function(){return le})),n.d(t,"i",(function(){return me})),n.d(t,"P",(function(){return ve})),n.d(t,"c",(function(){return ge})),n.d(t,"h",(function(){return ye})),n.d(t,"a",(function(){return De})),n.d(t,"b",(function(){return Ce})),n.d(t,"Q",(function(){return xe}));var r=n(932),i=n(921),o=n(912),a=n(925),u=n(987),s=n(958),c=n(919),l=n(941),p=n(940),f=n(927),d=n(922);function h(e){return e}var m=n(957),v=n(926),g=n(908),y=n(914),b=n(920),D=n(1018);function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function T(e){return A(e)||w(e)||k(e)||F(e)||I(e)||L(e)||M(e)||R(e)}function x(e){if(!T(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL type."));return e}function A(e){return Object(p.a)(e,ce)}function S(e){if(!A(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Scalar type."));return e}function w(e){return Object(p.a)(e,le)}function O(e){if(!w(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Object type."));return e}function k(e){return Object(p.a)(e,ge)}function N(e){if(!k(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Interface type."));return e}function F(e){return Object(p.a)(e,ye)}function _(e){if(!F(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Union type."));return e}function I(e){return Object(p.a)(e,De)}function j(e){if(!I(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Enum type."));return e}function L(e){return Object(p.a)(e,Ce)}function P(e){if(!L(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Input Object type."));return e}function M(e){return Object(p.a)(e,Y)}function B(e){if(!M(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL List type."));return e}function R(e){return Object(p.a)(e,X)}function V(e){if(!R(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL Non-Null type."));return e}function U(e){return A(e)||I(e)||L(e)||Z(e)&&U(e.ofType)}function q(e){if(!U(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL input type."));return e}function H(e){return A(e)||w(e)||k(e)||F(e)||I(e)||Z(e)&&H(e.ofType)}function G(e){if(!H(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL output type."));return e}function W(e){return A(e)||I(e)}function z(e){if(!W(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL leaf type."));return e}function K(e){return w(e)||k(e)||F(e)}function $(e){if(!K(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL composite type."));return e}function Q(e){return k(e)||F(e)}function J(e){if(!Q(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL abstract type."));return e}function Y(e){if(!(this instanceof Y))return new Y(e);this.ofType=x(e)}function X(e){if(!(this instanceof X))return new X(e);this.ofType=ne(e)}function Z(e){return M(e)||R(e)}function ee(e){if(!Z(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL wrapping type."));return e}function te(e){return T(e)&&!R(e)}function ne(e){if(!te(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL nullable type."));return e}function re(e){if(e)return R(e)?e.ofType:e}function ie(e){return A(e)||w(e)||k(e)||F(e)||I(e)||L(e)}function oe(e){if(!ie(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL named type."));return e}function ae(e){if(e){for(var t=e;Z(t);)t=t.ofType;return t}}function ue(e){return"function"===typeof e?e():e}function se(e){return e&&e.length>0?e:void 0}Y.prototype.toString=function(){return"["+String(this.ofType)+"]"},Y.prototype.toJSON=function(){return this.toString()},Object.defineProperty(Y.prototype,i.c,{get:function(){return"GraphQLList"}}),Object(m.a)(Y),X.prototype.toString=function(){return String(this.ofType)+"!"},X.prototype.toJSON=function(){return this.toString()},Object.defineProperty(X.prototype,i.c,{get:function(){return"GraphQLNonNull"}}),Object(m.a)(X);var ce=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:h;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:h,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i(Object(D.a)(e,t))},this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=se(e.extensionASTNodes),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.specifiedByUrl||"string"===typeof e.specifiedByUrl||Object(c.a)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(Object(o.a)(e.specifiedByUrl),".")),null==e.serialize||"function"===typeof e.serialize||Object(c.a)(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),e.parseLiteral&&("function"===typeof e.parseValue&&"function"===typeof e.parseLiteral||Object(c.a)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},C(e,[{key:i.c,get:function(){return"GraphQLScalarType"}}]),e}();Object(m.a)(ce);var le=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=se(e.extensionASTNodes),this._fields=fe.bind(void 0,e),this._interfaces=pe.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.isTypeOf||"function"===typeof e.isTypeOf||Object(c.a)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(Object(o.a)(e.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},C(e,[{key:i.c,get:function(){return"GraphQLObjectType"}}]),e}();function pe(e){var t,n=null!==(t=ue(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||Object(c.a)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),n}function fe(e){var t=ue(e.fields);return de(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(u.a)(t,(function(t,n){var i;de(t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),null==t.resolve||"function"===typeof t.resolve||Object(c.a)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(Object(o.a)(t.resolve),"."));var a=null!==(i=t.args)&&void 0!==i?i:{};de(a)||Object(c.a)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var u=Object(r.a)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Object(s.a)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:u,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode}}))}function de(e){return Object(d.a)(e)&&!Array.isArray(e)}function he(e){return Object(u.a)(e,(function(e){return{description:e.description,type:e.type,args:me(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function me(e){return Object(l.a)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ve(e){return R(e.type)&&void 0===e.defaultValue}Object(m.a)(le);var ge=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=se(e.extensionASTNodes),this._fields=fe.bind(void 0,e),this._interfaces=pe.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(o.a)(e.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return"function"===typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:he(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},C(e,[{key:i.c,get:function(){return"GraphQLInterfaceType"}}]),e}();Object(m.a)(ge);var ye=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=se(e.extensionASTNodes),this._types=be.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name."),null==e.resolveType||"function"===typeof e.resolveType||Object(c.a)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(Object(o.a)(e.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return"function"===typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},C(e,[{key:i.c,get:function(){return"GraphQLUnionType"}}]),e}();function be(e){var t=ue(e.types);return Array.isArray(t)||Object(c.a)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}Object(m.a)(ye);var De=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=se(e.extensionASTNodes),this._values=(t=this.name,de(n=e.values)||Object(c.a)(0,"".concat(t," values must be an object with value names as keys.")),Object(r.a)(n).map((function(e){var n=e[0],r=e[1];return de(r)||Object(c.a)(0,"".concat(t,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(Object(o.a)(r),".")),!("isDeprecated"in r)||Object(c.a)(0,"".concat(t,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&Object(s.a)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=Object(a.a)(this._values,(function(e){return e.name})),"string"===typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g.a('Enum "'.concat(this.name,'" cannot represent value: ').concat(Object(o.a)(e)));return t.name},t.parseValue=function(e){if("string"!==typeof e){var t=Object(o.a)(e);throw new g.a('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+Ee(this,t))}var n=this.getValue(e);if(null==n)throw new g.a('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==y.a.ENUM){var n=Object(b.a)(e);throw new g.a('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+Ee(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=Object(b.a)(e);throw new g.a('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+Ee(this,i),e)}return r.value},t.toConfig=function(){var e,t=Object(l.a)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},C(e,[{key:i.c,get:function(){return"GraphQLEnumType"}}]),e}();function Ee(e,t){var n=e.getValues().map((function(e){return e.name})),r=Object(v.a)(t,n);return Object(f.a)("the enum value",r)}Object(m.a)(De);var Ce=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=se(e.extensionASTNodes),this._fields=Te.bind(void 0,e),"string"===typeof e.name||Object(c.a)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return"function"===typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=Object(u.a)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},C(e,[{key:i.c,get:function(){return"GraphQLInputObjectType"}}]),e}();function Te(e){var t=ue(e.fields);return de(t)||Object(c.a)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Object(u.a)(t,(function(t,n){return!("resolve"in t)||Object(c.a)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Object(s.a)(t.extensions),astNode:t.astNode}}))}function xe(e){return R(e.type)&&void 0===e.defaultValue}Object(m.a)(Ce)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(985);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+a(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(u.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=n(995);var p=/[&<>"]/,f=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function h(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var v=n(967);t.lib={},t.lib.mdurl=n(996),t.lib.ucmicro=n(1066),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(u,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,n){return t||function(e,t){var n=0;return i(l,t)?l[t]:35===t.charCodeAt(0)&&c.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(f,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()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",(function(){return p})),n.d(t,"__Directive",(function(){return f})),n.d(t,"__DirectiveLocation",(function(){return d})),n.d(t,"__Type",(function(){return h})),n.d(t,"__Field",(function(){return m})),n.d(t,"__InputValue",(function(){return v})),n.d(t,"__EnumValue",(function(){return g})),n.d(t,"TypeKind",(function(){return y})),n.d(t,"__TypeKind",(function(){return b})),n.d(t,"SchemaMetaFieldDef",(function(){return D})),n.d(t,"TypeMetaFieldDef",(function(){return E})),n.d(t,"TypeNameMetaFieldDef",(function(){return C})),n.d(t,"introspectionTypes",(function(){return T})),n.d(t,"isIntrospectionType",(function(){return x}));var r=n(917),i=n(912),o=n(915),a=n(920),u=n(943),s=n(959),c=n(924),l=n(911),p=new l.f({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:c.e,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new l.e(new l.d(new l.e(h))),resolve:function(e){return Object(r.a)(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new l.e(h),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:h,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:h,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new l.e(new l.d(new l.e(f))),resolve:function(e){return e.getDirectives()}}}}}),f=new l.f({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function(){return{name:{type:new l.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isRepeatable:{type:new l.e(c.a),resolve:function(e){return e.isRepeatable}},locations:{type:new l.e(new l.d(new l.e(d))),resolve:function(e){return e.locations}},args:{type:new l.e(new l.d(new l.e(v))),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),d=new l.a({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:u.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:u.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:u.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:u.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:u.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:u.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:u.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:u.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:u.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:u.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:u.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:u.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:u.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:u.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:u.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:u.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:u.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:u.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:u.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),h=new l.f({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new l.e(b),resolve:function(e){return Object(l.R)(e)?y.SCALAR:Object(l.N)(e)?y.OBJECT:Object(l.H)(e)?y.INTERFACE:Object(l.T)(e)?y.UNION:Object(l.E)(e)?y.ENUM:Object(l.F)(e)?y.INPUT_OBJECT:Object(l.J)(e)?y.LIST:Object(l.L)(e)?y.NON_NULL:void Object(o.a)(0,'Unexpected type: "'.concat(Object(i.a)(e),'".'))}},name:{type:c.e,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:c.e,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:c.e,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new l.d(new l.e(m)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.N)(e)||Object(l.H)(e)){var i=Object(r.a)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new l.d(new l.e(h)),resolve:function(e){if(Object(l.N)(e)||Object(l.H)(e))return e.getInterfaces()}},possibleTypes:{type:new l.d(new l.e(h)),resolve:function(e,t,n,r){var i=r.schema;if(Object(l.C)(e))return i.getPossibleTypes(e)}},enumValues:{type:new l.d(new l.e(g)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.E)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new l.d(new l.e(v)),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if(Object(l.F)(e)){var i=Object(r.a)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:h,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),m=new l.f({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new l.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},args:{type:new l.e(new l.d(new l.e(v))),args:{includeDeprecated:{type:c.a,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new l.e(h),resolve:function(e){return e.type}},isDeprecated:{type:new l.e(c.a),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),v=new l.f({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new l.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},type:{type:new l.e(h),resolve:function(e){return e.type}},defaultValue:{type:c.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var t=e.type,n=e.defaultValue,r=Object(s.a)(n,t);return r?Object(a.a)(r):null}},isDeprecated:{type:new l.e(c.a),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),g=new l.f({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new l.e(c.e),resolve:function(e){return e.name}},description:{type:c.e,resolve:function(e){return e.description}},isDeprecated:{type:new l.e(c.a),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:c.e,resolve:function(e){return e.deprecationReason}}}}}),y=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),b=new l.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:y.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:y.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:y.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:y.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:y.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:y.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:y.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:y.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),D={name:"__schema",type:new l.e(p),description:"Access the current type schema of this server.",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},E={name:"__type",type:h,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new l.e(c.e),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},C={name:"__typename",type:new l.e(c.e),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},T=Object.freeze([p,f,d,h,m,v,g,b]);function x(e){return T.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){"use strict";var r=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};t.a=r},function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return E})),n.d(t,"f",(function(){return C})),n.d(t,"j",(function(){return T})),n.d(t,"i",(function(){return x}));var r=n(932),i=n(921),o=n(912),a=n(958),u=n(919),s=n(940),c=n(922),l=n(957),p=n(943),f=n(924),d=n(911);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return Object(s.a)(e,g)}function v(e){if(!m(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL directive."));return e}var g=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,e.name||Object(u.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(u.a)(0,"@".concat(e.name," locations must be an Array."));var i=null!==(n=e.args)&&void 0!==n?n:{};Object(c.a)(i)&&!Array.isArray(i)||Object(u.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(r.a)(i).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Object(a.a)(n.extensions),astNode:n.astNode}}))}var t,n,o,s=e.prototype;return s.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(d.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},s.toString=function(){return"@"+this.name},s.toJSON=function(){return this.toString()},t=e,(n=[{key:i.c,get:function(){return"GraphQLDirective"}}])&&h(t.prototype,n),o&&h(t,o),e}();Object(l.a)(g);var y=new g({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:new d.e(f.a),description:"Included when true."}}}),b=new g({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:new d.e(f.a),description:"Skipped when true."}}}),D="No longer supported",E=new g({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[p.a.FIELD_DEFINITION,p.a.ARGUMENT_DEFINITION,p.a.INPUT_FIELD_DEFINITION,p.a.ENUM_VALUE],args:{reason:{type:f.e,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:D}}}),C=new g({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[p.a.SCALAR],args:{url:{type:new d.e(f.e),description:"The URL that specifies the behaviour of this scalar."}}}),T=Object.freeze([y,b,E,C]);function x(e){return T.some((function(t){return t.name===e.name}))}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(928),i=n(933);function o(e){return Object(r.c)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",s(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=l("",t,": ")+n,u=a+l("(",s(r,", "),")");return u.length>80&&(u=a+l("(\n",p(s(r,"\n")),"\n)")),s([u,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",l("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(l("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.c)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:u((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),c(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:u((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:u((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")})),FieldDefinition:u((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l("(\n",p(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+": "+r+l(" ",s(i," "))})),InputValueDefinition:u((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,l("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:u((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")})),UnionTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),c(r)]," ")})),EnumValueDefinition:u((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),c(r)]," ")})),DirectiveDefinition:u((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?l("(\n",p(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),c(r)]," ")}};function u(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function c(e){return l("{\n",p(s(e,"\n")),"\n}")}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function p(e){return l(" ",e.replace(/\n/g,"\n "))}function f(e){return-1!==e.indexOf("\n")}function d(e){return null!=e&&e.some(f)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}));var r="function"===typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator",i="function"===typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator",o="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag"},function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){return"object"==r(e)&&null!==e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(912),i=n(915),o=n(914),a=n(911);function u(e,t){var n;return t.kind===o.a.LIST_TYPE?(n=u(e,t.type))&&new a.d(n):t.kind===o.a.NON_NULL_TYPE?(n=u(e,t.type))&&new a.e(n):t.kind===o.a.NAMED_TYPE?e.getType(t.name.value):void Object(i.a)(0,"Unexpected type node: "+Object(r.a)(t))}},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"f",(function(){return D}));var r=n(989),i=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},o=n(912),a=n(922),u=n(914),s=n(920),c=n(908),l=n(911),p=2147483647,f=-2147483648;var d=new l.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:function(e){var t=m(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!i(n))throw new c.a("Int cannot represent non-integer value: ".concat(Object(o.a)(t)));if(n>p||n<f)throw new c.a("Int cannot represent non 32-bit signed integer value: "+Object(o.a)(t));return n},parseValue:function(e){if(!i(e))throw new c.a("Int cannot represent non-integer value: ".concat(Object(o.a)(e)));if(e>p||e<f)throw new c.a("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==u.a.INT)throw new c.a("Int cannot represent non-integer value: ".concat(Object(s.a)(e)),e);var t=parseInt(e.value,10);if(t>p||t<f)throw new c.a("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return t}});var h=new l.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:function(e){var t=m(e);if("boolean"===typeof t)return t?1:0;var n=t;if("string"===typeof t&&""!==t&&(n=Number(t)),!Object(r.a)(n))throw new c.a("Float cannot represent non numeric value: ".concat(Object(o.a)(t)));return n},parseValue:function(e){if(!Object(r.a)(e))throw new c.a("Float cannot represent non numeric value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind!==u.a.FLOAT&&e.kind!==u.a.INT)throw new c.a("Float cannot represent non numeric value: ".concat(Object(s.a)(e)),e);return parseFloat(e.value)}});function m(e){if(Object(a.a)(e)){if("function"===typeof e.valueOf){var t=e.valueOf();if(!Object(a.a)(t))return t}if("function"===typeof e.toJSON)return e.toJSON()}return e}var v=new l.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:function(e){var t=m(e);if("string"===typeof t)return t;if("boolean"===typeof t)return t?"true":"false";if(Object(r.a)(t))return t.toString();throw new c.a("String cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"!==typeof e)throw new c.a("String cannot represent a non string value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind!==u.a.STRING)throw new c.a("String cannot represent a non string value: ".concat(Object(s.a)(e)),e);return e.value}});var g=new l.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var t=m(e);if("boolean"===typeof t)return t;if(Object(r.a)(t))return 0!==t;throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(t)))},parseValue:function(e){if("boolean"!==typeof e)throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(o.a)(e)));return e},parseLiteral:function(e){if(e.kind!==u.a.BOOLEAN)throw new c.a("Boolean cannot represent a non boolean value: ".concat(Object(s.a)(e)),e);return e.value}});var y=new l.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:function(e){var t=m(e);if("string"===typeof t)return t;if(i(t))return String(t);throw new c.a("ID cannot represent value: ".concat(Object(o.a)(e)))},parseValue:function(e){if("string"===typeof e)return e;if(i(e))return e.toString();throw new c.a("ID cannot represent value: ".concat(Object(o.a)(e)))},parseLiteral:function(e){if(e.kind!==u.a.STRING&&e.kind!==u.a.INT)throw new c.a("ID cannot represent a non-string and non-integer value: "+Object(s.a)(e),e);return e.value}}),b=Object.freeze([v,d,h,g,y]);function D(e){return b.some((function(t){var n=t.name;return e.name===n}))}},function(e,t,n){"use strict";function r(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(942);function i(e,t){for(var n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1,u=0;u<t.length;u++){var s=t[u],c=i.measure(s,a);void 0!==c&&(n[s]=c)}return Object.keys(n).sort((function(e,t){var i=n[e]-n[t];return 0!==i?i:Object(r.a)(e,t)}))}var o=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}return e.prototype.measure=function(e,t){if(this._input===e)return 0;var n=e.toLowerCase();if(this._inputLowerCase===n)return 1;var r=a(n),i=this._inputArray;if(r.length<i.length){var o=r;r=i,i=o}var u=r.length,s=i.length;if(!(u-s>t)){for(var c=this._rows,l=0;l<=s;l++)c[0][l]=l;for(var p=1;p<=u;p++){for(var f=c[(p-1)%3],d=c[p%3],h=d[0]=p,m=1;m<=s;m++){var v=r[p-1]===i[m-1]?0:1,g=Math.min(f[m]+1,d[m-1]+1,f[m-1]+v);if(p>1&&m>1&&r[p-1]===i[m-2]&&r[p-2]===i[m-1]){var y=c[(p-2)%3][m-2];g=Math.min(g,y+1)}g<h&&(h=g),d[m]=g}if(h>t)return}var b=c[u%3][s];return b<=t?b:void 0}},e}();function a(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){var n="string"===typeof e?[e,t]:[void 0,e],r=n[0],i=" Did you mean ";r&&(i+=r+" ");var o=n[1].map((function(e){return'"'.concat(e,'"')}));switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}var a=o.slice(0,5),u=a.pop();return i+a.join(", ")+", or "+u+"?"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(912),i=n(939),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u=void 0,s=Array.isArray(e),l=[e],p=-1,f=[],d=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++p===l.length,D=b&&0!==f.length;if(b){if(h=0===g.length?void 0:v[v.length-1],d=m,m=g.pop(),D){if(s)d=d.slice();else{for(var E={},C=0,T=Object.keys(d);C<T.length;C++){var x=T[C];E[x]=d[x]}d=E}for(var A=0,S=0;S<f.length;S++){var w=f[S][0],O=f[S][1];s&&(w-=A),s&&null===O?(d.splice(w,1),A++):d[w]=O}}p=u.index,l=u.keys,f=u.edits,s=u.inArray,u=u.prev}else{if(h=m?s?p:l[p]:void 0,null===(d=m?m[h]:y)||void 0===d)continue;m&&v.push(h)}var k,N=void 0;if(!Array.isArray(d)){if(!Object(i.c)(d))throw new Error("Invalid AST Node: ".concat(Object(r.a)(d),"."));var F=c(t,d.kind,b);if(F){if((N=F.call(t,d,h,m,v,g))===a)break;if(!1===N){if(!b){v.pop();continue}}else if(void 0!==N&&(f.push([h,N]),!b)){if(!Object(i.c)(N)){v.pop();continue}d=N}}}if(void 0===N&&D&&f.push([h,d]),b)v.pop();else u={inArray:s,index:p,keys:l,edits:f,prev:u},l=(s=Array.isArray(d))?d:null!==(k=n[d.kind])&&void 0!==k?k:[],p=-1,f=[],m&&g.push(m),m=d}while(void 0!==u);return 0!==f.length&&(y=f[f.length-1][1]),y}function s(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!1);if(i){var o=i.apply(e[r],arguments);if(!1===o)t[r]=n;else if(o===a)t[r]=a;else if(void 0!==o)return o}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var i=c(e[r],n.kind,!0);if(i){var o=i.apply(e[r],arguments);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}}else t[r]===n&&(t[r]=null)}}}function c(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}},function(e,t,n){!function(e){"use strict";var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function u(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,u=e.lastLine();i<=u;i++,a=0){t.lastIndex=a;var s=e.getLine(i),c=t.exec(s);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function s(e,t,n){if(!a(t))return u(e,t,n);t=o(t,"gm");for(var i,s=1,c=n.line,l=e.lastLine();c<=l;){for(var p=0;p<s&&!(c>l);p++){var f=e.getLine(c++);i=null==i?f:i+"\n"+f}s*=2,t.lastIndex=n.ch;var d=t.exec(i);if(d){var h=i.slice(0,d.index).split("\n"),m=d[0].split("\n"),v=n.line+h.length-1,g=h[h.length-1].length;return{from:r(v,g),to:r(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function l(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,u=e.firstLine();i>=u;i--,a=-1){var s=e.getLine(i),l=c(s,t,a<0?0:s.length-a);if(l)return{from:r(i,l.index),to:r(i,l.index+l[0].length),match:l}}}function p(e,t,n){if(!a(t))return l(e,t,n);t=o(t,"gm");for(var i,u=1,s=e.getLine(n.line).length-n.ch,p=n.line,f=e.firstLine();p>=f;){for(var d=0;d<u&&p>=f;d++){var h=e.getLine(p--);i=null==i?h:h+"\n"+i}u*=2;var m=c(i,t,s);if(m){var v=i.slice(0,m.index).split("\n"),g=m[0].split("\n"),y=p+v.length,b=v[v.length-1].length;return{from:r(y,b),to:r(y+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:m}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,u=r(e.slice(0,a)).length;if(u==n)return a;u>n?o=a:i=a+1}}function d(e,i,o,a){if(!i.length)return null;var u=a?t:n,s=u(i).split(/\r|\n\r?/);e:for(var c=o.line,l=o.ch,p=e.lastLine()+1-s.length;c<=p;c++,l=0){var d=e.getLine(c).slice(l),h=u(d);if(1==s.length){var m=h.indexOf(s[0]);if(-1==m)continue e;return o=f(d,h,m,u)+l,{from:r(c,f(d,h,m,u)+l),to:r(c,f(d,h,m+s[0].length,u)+l)}}var v=h.length-s[0].length;if(h.slice(v)==s[0]){for(var g=1;g<s.length-1;g++)if(u(e.getLine(c+g))!=s[g])continue e;var y=e.getLine(c+s.length-1),b=u(y),D=s[s.length-1];if(b.slice(0,D.length)==D)return{from:r(c,f(d,h,v,u)+l),to:r(c+s.length-1,f(y,b,D.length,u))}}}}function h(e,i,o,a){if(!i.length)return null;var u=a?t:n,s=u(i).split(/\r|\n\r?/);e:for(var c=o.line,l=o.ch,p=e.firstLine()-1+s.length;c>=p;c--,l=-1){var d=e.getLine(c);l>-1&&(d=d.slice(0,l));var h=u(d);if(1==s.length){var m=h.lastIndexOf(s[0]);if(-1==m)continue e;return{from:r(c,f(d,h,m,u)),to:r(c,f(d,h,m+s[0].length,u))}}var v=s[s.length-1];if(h.slice(0,v.length)==v){var g=1;for(o=c-s.length+1;g<s.length-1;g++)if(u(e.getLine(o+g))!=s[g])continue e;var y=e.getLine(c+1-s.length),b=u(y);if(b.slice(b.length-s[0].length)==s[0])return{from:r(c+1-s.length,f(y,b,y.length-s[0].length,u)),to:r(c,f(d,h,v.length,u))}}}}function m(e,t,n,i){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?a=i.caseFold:(a=i,i=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(n,r){return(n?h:d)(e,t,r,a)}):(t=o(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?l:u)(e,t,r)}:this.matches=function(n,r){return(n?p:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),m.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new m(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new m(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(909))},function(e,t,n){!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),u=!1,s=this;function c(t){if("string"==typeof t)p.value=t;else{if(u)return;u=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),s.focus(),o.onClose&&o.onClose(a)}}var l,p=a.getElementsByTagName("input")[0];return p?(p.focus(),o.value&&(p.value=o.value,!1!==o.selectValueOnOpen&&p.select()),o.onInput&&e.on(p,"input",(function(e){o.onInput(e,p.value,c)})),o.onKeyUp&&e.on(p,"keyup",(function(e){o.onKeyUp(e,p.value,c)})),e.on(p,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,p.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(p.blur(),e.e_stop(t),c()),13==t.keyCode&&i(p.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(l=a.getElementsByTagName("button")[0])&&(e.on(l,"click",(function(){c(),s.focus()})),!1!==o.closeOnBlur&&e.on(l,"blur",c),l.focus()),c})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),u=a.getElementsByTagName("button"),s=!1,c=this,l=1;function p(){s||(s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}u[0].focus();for(var f=0;f<u.length;++f){var d=u[f];!function(t){e.on(d,"click",(function(n){e.e_preventDefault(n),p(),t&&t(c)}))}(i[f]),e.on(d,"blur",(function(){--l,setTimeout((function(){l<=0&&p()}),200)})),e.on(d,"focus",(function(){++l}))}})),e.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),u=!1,s=i&&"undefined"!==typeof i.duration?i.duration:5e3;function c(){u||(u=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),c()})),s&&(o=setTimeout(c,s)),c}))}(n(909))},function(e,t,n){"use strict";n.r(t),n.d(t,"getAutocompleteSuggestions",(function(){return Ze})),n.d(t,"getDefinitionQueryResultForDefinitionNode",(function(){return nn})),n.d(t,"getDefinitionQueryResultForFragmentSpread",(function(){return tn})),n.d(t,"getDefinitionQueryResultForNamedType",(function(){return en})),n.d(t,"getDefinitionState",(function(){return o})),n.d(t,"getDiagnostics",(function(){return dn})),n.d(t,"getFieldDef",(function(){return a})),n.d(t,"getFragmentDefinitions",(function(){return nt})),n.d(t,"getHoverInformation",(function(){return Cn})),n.d(t,"getOutline",(function(){return Dn})),n.d(t,"getRange",(function(){return gn})),n.d(t,"getTokenAtPosition",(function(){return rt})),n.d(t,"getTypeInfo",(function(){return at})),n.d(t,"getVariableCompletions",(function(){return tt})),n.d(t,"GraphQLLanguageService",(function(){return Xn})),n.d(t,"SEVERITY",(function(){return ln})),n.d(t,"DIAGNOSTIC_SEVERITY",(function(){return pn})),n.d(t,"canUseDirective",(function(){return ot})),n.d(t,"SuggestionCommand",(function(){return Xe})),n.d(t,"onlineParser",(function(){return qe})),n.d(t,"ParseRules",(function(){return Re})),n.d(t,"CharacterStream",(function(){return Fe})),n.d(t,"RuleKinds",(function(){return Ye})),n.d(t,"LexRules",(function(){return Be})),n.d(t,"isIgnored",(function(){return Me})),n.d(t,"p",(function(){return Le})),n.d(t,"list",(function(){return Ie})),n.d(t,"t",(function(){return je})),n.d(t,"opt",(function(){return _e})),n.d(t,"CompletionItemKind",(function(){return Yn})),n.d(t,"FileChangeTypeKind",(function(){return Zn})),n.d(t,"getASTNodeAtPosition",(function(){return Dt})),n.d(t,"getFragmentDependencies",(function(){return pt})),n.d(t,"getFragmentDependenciesForAST",(function(){return ft})),n.d(t,"getOperationASTFacts",(function(){return zt})),n.d(t,"getOperationFacts",(function(){return Kt})),n.d(t,"getQueryFacts",(function(){return $t})),n.d(t,"getVariablesJSONSchema",(function(){return bt})),n.d(t,"offsetToPosition",(function(){return xt})),n.d(t,"pointToOffset",(function(){return Et})),n.d(t,"Position",(function(){return Tt})),n.d(t,"collectVariables",(function(){return Wt})),n.d(t,"validateWithCustomRules",(function(){return Ht})),n.d(t,"Range",(function(){return Ct}));var r=n(911),i=n(916);function o(e){var t;return u(e,(function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}})),t}function a(e,t,n){return n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t?i.SchemaMetaFieldDef:n===i.TypeMetaFieldDef.name&&e.getQueryType()===t?i.TypeMetaFieldDef:n===i.TypeNameMetaFieldDef.name&&Object(r.D)(t)?i.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[n]:null}function u(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}function s(e){for(var t=Object.keys(e),n=t.length,r=new Array(n),i=0;i<n;++i)r[i]=e[t[i]];return r}function c(e,t){return function(e,t){if(!t)return l(e,(function(e){return!e.isDeprecated}));return l(l(e.map((function(e){return{proximity:f(p(e.label),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length})).map((function(e){return e.entry}))}(t,p(e.string))}function l(e,t){var n=e.filter(t);return 0===n.length?e:n}function p(e){return e.toLowerCase().replace(/\W/g,"")}function f(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var u=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]+u),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]+u))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var d,h,m,v,g,y,b,D,E,C,T,x,A,S,w,O,k,N,F,_,I,j,L,P,M,B,R,V,U=n(49);!function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(d||(d={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(h||(h={})),(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=h.MAX_VALUE),t===Number.MAX_VALUE&&(t=h.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.uinteger(t.line)&&Ee.uinteger(t.character)},(y=g||(g={})).create=function(e,t,n,r){if(Ee.uinteger(e)&&Ee.uinteger(t)&&Ee.uinteger(n)&&Ee.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},y.is=function(e){var t=e;return Ee.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Ee.defined(t)&&g.is(t.range)&&(Ee.string(t.uri)||Ee.undefined(t.uri))}}(b||(b={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return Ee.defined(t)&&g.is(t.targetRange)&&Ee.string(t.targetUri)&&(g.is(t.targetSelectionRange)||Ee.undefined(t.targetSelectionRange))&&(g.is(t.originSelectionRange)||Ee.undefined(t.originSelectionRange))}}(D||(D={})),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 Ee.numberRange(t.red,0,1)&&Ee.numberRange(t.green,0,1)&&Ee.numberRange(t.blue,0,1)&&Ee.numberRange(t.alpha,0,1)}}(E||(E={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return g.is(t.range)&&E.is(t.color)}}(C||(C={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Ee.string(t.label)&&(Ee.undefined(t.textEdit)||_.is(t))&&(Ee.undefined(t.additionalTextEdits)||Ee.typedArray(t.additionalTextEdits,_.is))}}(T||(T={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(x||(x={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return Ee.defined(n)&&(o.startCharacter=n),Ee.defined(r)&&(o.endCharacter=r),Ee.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return Ee.uinteger(t.startLine)&&Ee.uinteger(t.startLine)&&(Ee.undefined(t.startCharacter)||Ee.uinteger(t.startCharacter))&&(Ee.undefined(t.endCharacter)||Ee.uinteger(t.endCharacter))&&(Ee.undefined(t.kind)||Ee.string(t.kind))}}(A||(A={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Ee.defined(t)&&b.is(t.location)&&Ee.string(t.message)}}(S||(S={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(w||(w={})),function(e){e.Unnecessary=1,e.Deprecated=2}(O||(O={})),function(e){e.is=function(e){var t=e;return void 0!==t&&null!==t&&Ee.string(t.href)}}(k||(k={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return Ee.defined(n)&&(a.severity=n),Ee.defined(r)&&(a.code=r),Ee.defined(i)&&(a.source=i),Ee.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t,n=e;return Ee.defined(n)&&g.is(n.range)&&Ee.string(n.message)&&(Ee.number(n.severity)||Ee.undefined(n.severity))&&(Ee.integer(n.code)||Ee.string(n.code)||Ee.undefined(n.code))&&(Ee.undefined(n.codeDescription)||Ee.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ee.string(n.source)||Ee.undefined(n.source))&&(Ee.undefined(n.relatedInformation)||Ee.typedArray(n.relatedInformation,S.is))}}(N||(N={})),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 Ee.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.title)&&Ee.string(t.command)}}(F||(F={})),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 Ee.objectLiteral(t)&&Ee.string(t.newText)&&g.is(t.range)}}(_||(_={})),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 void 0!==t&&Ee.objectLiteral(t)&&Ee.string(t.label)&&(Ee.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ee.string(t.description)||void 0===t.description)}}(I||(I={})),function(e){e.is=function(e){return"string"===typeof e}}(j||(j={})),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 _.is(t)&&(I.is(t.annotationId)||j.is(t.annotationId))}}(L||(L={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Ee.defined(t)&&G.is(t.textDocument)&&Array.isArray(t.edits)}}(P||(P={})),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&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||j.is(t.annotationId))}}(M||(M={})),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&&Ee.string(t.oldUri)&&Ee.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||j.is(t.annotationId))}}(B||(B={})),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&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ee.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ee.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||j.is(t.annotationId))}}(R||(R={})),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 Ee.string(e.kind)?M.is(e)||B.is(e)||R.is(e):P.is(e)})))}}(V||(V={}));var q,H,G,W,z,K,$,Q,J,Y,X,Z,ee,te,ne,re,ie,oe,ae,ue,se,ce,le,pe,fe,de,he,me,ve,ge,ye=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=_.insert(e,t):j.is(n)?(i=n,r=L.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=L.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=_.replace(e,t):j.is(n)?(i=n,r=L.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=L.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=_.del(e):j.is(t)?(r=t,n=L.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=L.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}(),be=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(j.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+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 be(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(P.is(e)){var n=new ye(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ye(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(G.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 ye(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 ye(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new be,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(I.is(t)||j.is(t)?r=t:n=t,void 0===r?i=M.create(e,n):(o=j.is(r)?r:this._changeAnnotations.manage(r),i=M.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(I.is(n)||j.is(n)?i=n:r=n,void 0===i?o=B.create(e,t,r):(a=j.is(i)?i:this._changeAnnotations.manage(i),o=B.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(I.is(t)||j.is(t)?r=t:n=t,void 0===r?i=R.create(e,n):(o=j.is(r)?r:this._changeAnnotations.manage(r),i=R.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 Ee.defined(t)&&Ee.string(t.uri)}}(q||(q={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.integer(t.version)}}(H||(H={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&(null===t.version||Ee.integer(t.version))}}(G||(G={})),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 Ee.defined(t)&&Ee.string(t.uri)&&Ee.string(t.languageId)&&Ee.integer(t.version)&&Ee.string(t.text)}}(W||(W={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(z||(z={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(z||(z={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(e)&&z.is(t.kind)&&Ee.string(t.value)}}(K||(K={})),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}($||($={})),function(e){e.PlainText=1,e.Snippet=2}(Q||(Q={})),function(e){e.Deprecated=1}(J||(J={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Ee.string(t.newText)&&g.is(t.insert)&&g.is(t.replace)}}(Y||(Y={})),function(e){e.asIs=1,e.adjustIndentation=2}(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 Ee.string(t)||Ee.objectLiteral(t)&&Ee.string(t.language)&&Ee.string(t.value)}}(te||(te={})),function(e){e.is=function(e){var t=e;return!!t&&Ee.objectLiteral(t)&&(K.is(t.contents)||te.is(t.contents)||Ee.typedArray(t.contents,te.is))&&(void 0===e.range||g.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 Ee.defined(t)&&(i.documentation=t),Ee.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 Ee.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}(ue||(ue={})),function(e){e.Deprecated=1}(se||(se={})),function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(ce||(ce={})),function(e){e.create=function(e,t,n,r,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&&Ee.string(t.name)&&Ee.number(t.kind)&&g.is(t.range)&&g.is(t.selectionRange)&&(void 0===t.detail||Ee.string(t.detail))&&(void 0===t.deprecated||Ee.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(le||(le={})),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"}(pe||(pe={})),function(e){e.create=function(e,t){var n={diagnostics:e};return void 0!==t&&null!==t&&(n.only=t),n},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.typedArray(t.diagnostics,N.is)&&(void 0===t.only||Ee.typedArray(t.only,Ee.string))}}(fe||(fe={})),function(e){e.create=function(e,t,n){var r={title:e},i=!0;return"string"===typeof t?(i=!1,r.kind=t):F.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&&Ee.string(t.title)&&(void 0===t.diagnostics||Ee.typedArray(t.diagnostics,N.is))&&(void 0===t.kind||Ee.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||F.is(t.command))&&(void 0===t.isPreferred||Ee.boolean(t.isPreferred))&&(void 0===t.edit||V.is(t.edit))}}(de||(de={})),function(e){e.create=function(e,t){var n={range:e};return Ee.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return Ee.defined(t)&&g.is(t.range)&&(Ee.undefined(t.command)||F.is(t.command))}}(he||(he={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.uinteger(t.tabSize)&&Ee.boolean(t.insertSpaces)}}(me||(me={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return Ee.defined(t)&&g.is(t.range)&&(Ee.undefined(t.target)||Ee.string(t.target))}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return void 0!==n&&g.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(ge||(ge={}));var De;!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,u=0,s=0;a<i.length&&u<o.length;){var c=n(i[a],o[u]);e[s++]=c<=0?i[a++]:o[u++]}for(;a<i.length;)e[s++]=i[a++];for(;u<o.length;)e[s++]=o[u++];return e}e.create=function(e,t,n,r){return new Ce(e,t,n,r)},e.is=function(e){var t=e;return!!(Ee.defined(t)&&Ee.string(t.uri)&&(Ee.undefined(t.languageId)||Ee.string(t.languageId))&&Ee.uinteger(t.lineCount)&&Ee.func(t.getText)&&Ee.func(t.positionAt)&&Ee.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 u=i[a],s=e.offsetAt(u.range.start),c=e.offsetAt(u.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,s)+u.newText+r.substring(c,r.length),o=s}return r}}(De||(De={}));var Ee,Ce=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 m.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 m.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)}}(Ee||(Ee={}));var Te=n(914),xe=n(943),Ae=n(928),Se=n(944),we=n(924),Oe=n(961),ke=n(85),Ne=n(86),Fe=function(){function e(t){var n=this;Object(ke.a)(this,e),this.getStartOfToken=function(){return n._start},this.getCurrentPosition=function(){return n._pos},this.eol=function(){return n._sourceText.length===n._pos},this.sol=function(){return 0===n._pos},this.peek=function(){return n._sourceText.charAt(n._pos)?n._sourceText.charAt(n._pos):null},this.next=function(){var e=n._sourceText.charAt(n._pos);return n._pos++,e},this.eat=function(e){if(n._testNextCharacter(e))return n._start=n._pos,n._pos++,n._sourceText.charAt(n._pos-1)},this.eatWhile=function(e){var t=n._testNextCharacter(e),r=!1;for(t&&(r=t,n._start=n._pos);t;)n._pos++,t=n._testNextCharacter(e),r=!0;return r},this.eatSpace=function(){return n.eatWhile(/[\s\u00a0]/)},this.skipToEnd=function(){n._pos=n._sourceText.length},this.skipTo=function(e){n._pos=e},this.match=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null,o=null;if("string"===typeof e){var a=new RegExp(e,r?"i":"g");o=a.test(n._sourceText.substr(n._pos,e.length)),i=e}else e instanceof RegExp&&(i=(o=n._sourceText.slice(n._pos).match(e))&&o[0]);return!(null==o||!("string"===typeof e||o instanceof Array&&n._sourceText.startsWith(o[0],n._pos)))&&(t&&(n._start=n._pos,i&&i.length&&(n._pos+=i.length)),o)},this.backUp=function(e){n._pos-=e},this.column=function(){return n._pos},this.indentation=function(){var e=n._sourceText.match(/\s*/),t=0;if(e&&0!==e.length)for(var r=e[0],i=0;r.length>i;)9===r.charCodeAt(i)?t+=2:t++,i++;return t},this.current=function(){return n._sourceText.slice(n._start,n._pos)},this._start=0,this._pos=0,this._sourceText=t}return Object(Ne.a)(e,[{key:"_testNextCharacter",value:function(e){var t=this._sourceText.charAt(this._pos);return"string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t)}}]),e}();function _e(e){return{ofRule:e}}function Ie(e,t){return{ofRule:e,isList:!0,separator:t}}function je(e,t){return{style:t,match:function(t){return t.kind===e}}}function Le(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}var Pe,Me=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e},Be={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:/^#.*/},Re={Document:[Ie("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Te.a.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:[Ve("query"),_e(Ue("def")),_e("VariableDefinitions"),Ie("Directive"),"SelectionSet"],Mutation:[Ve("mutation"),_e(Ue("def")),_e("VariableDefinitions"),Ie("Directive"),"SelectionSet"],Subscription:[Ve("subscription"),_e(Ue("def")),_e("VariableDefinitions"),Ie("Directive"),"SelectionSet"],VariableDefinitions:[Le("("),Ie("VariableDefinition"),Le(")")],VariableDefinition:["Variable",Le(":"),"Type",_e("DefaultValue")],Variable:[Le("$","variable"),Ue("variable")],DefaultValue:[Le("="),"Value"],SelectionSet:[Le("{"),Ie("Selection"),Le("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Ue("property"),Le(":"),Ue("qualifier"),_e("Arguments"),Ie("Directive"),_e("SelectionSet")],Field:[Ue("property"),_e("Arguments"),Ie("Directive"),_e("SelectionSet")],Arguments:[Le("("),Ie("Argument"),Le(")")],Argument:[Ue("attribute"),Le(":"),"Value"],FragmentSpread:[Le("..."),Ue("def"),Ie("Directive")],InlineFragment:[Le("..."),_e("TypeCondition"),Ie("Directive"),"SelectionSet"],FragmentDefinition:[Ve("fragment"),_e(function(e,t){var n=e.match;return e.match=function(e){var r=!1;return n&&(r=n(e)),r&&t.every((function(t){return t.match&&!t.match(e)}))},e}(Ue("def"),[Ve("on")])),"TypeCondition",Ie("Directive"),"SelectionSet"],TypeCondition:[Ve("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[je("Number","number")],StringValue:[{style:"string",match:function(e){return"String"===e.kind},update:function(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[je("Name","builtin")],NullValue:[je("Name","keyword")],EnumValue:[Ue("string-2")],ListValue:[Le("["),Ie("Value"),Le("]")],ObjectValue:[Le("{"),Ie("ObjectField"),Le("}")],ObjectField:[Ue("attribute"),Le(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[Le("["),"Type",Le("]"),_e(Le("!"))],NonNullType:["NamedType",_e(Le("!"))],NamedType:[(Pe="atom",{style:Pe,match:function(e){return"Name"===e.kind},update:function(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[Le("@","meta"),Ue("meta"),_e("Arguments")],DirectiveDef:[Ve("directive"),Le("@","meta"),Ue("meta"),_e("ArgumentsDef"),Ve("on"),Ie("DirectiveLocation",Le("|"))],InterfaceDef:[Ve("interface"),Ue("atom"),_e("Implements"),Ie("Directive"),Le("{"),Ie("FieldDef"),Le("}")],Implements:[Ve("implements"),Ie("NamedType",Le("&"))],DirectiveLocation:[Ue("string-2")],SchemaDef:[Ve("schema"),Ie("Directive"),Le("{"),Ie("OperationTypeDef"),Le("}")],OperationTypeDef:[Ue("keyword"),Le(":"),Ue("atom")],ScalarDef:[Ve("scalar"),Ue("atom"),Ie("Directive")],ObjectTypeDef:[Ve("type"),Ue("atom"),_e("Implements"),Ie("Directive"),Le("{"),Ie("FieldDef"),Le("}")],FieldDef:[Ue("property"),_e("ArgumentsDef"),Le(":"),"Type",Ie("Directive")],ArgumentsDef:[Le("("),Ie("InputValueDef"),Le(")")],InputValueDef:[Ue("attribute"),Le(":"),"Type",_e("DefaultValue"),Ie("Directive")],UnionDef:[Ve("union"),Ue("atom"),Ie("Directive"),Le("="),Ie("UnionMember",Le("|"))],UnionMember:["NamedType"],EnumDef:[Ve("enum"),Ue("atom"),Ie("Directive"),Le("{"),Ie("EnumValueDef"),Le("}")],EnumValueDef:[Ue("string-2"),Ie("Directive")],InputDef:[Ve("input"),Ue("atom"),Ie("Directive"),Le("{"),Ie("InputValueDef"),Le("}")],ExtendDef:[Ve("extend"),"ObjectTypeDef"]};function Ve(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function Ue(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{eatWhitespace:function(e){return e.eatWhile(Me)},lexRules:Be,parseRules:Re,editorConfig:{}};return{startState:function(){var t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return ze(e.parseRules,t,Te.a.DOCUMENT),t},token:function(t,n){return He(t,n,e)}}}function He(e,t,n){if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");var r=n.lexRules,i=n.parseRules,o=n.eatWhitespace,a=n.editorConfig;if(t.rule&&0===t.rule.length?Ke(t):t.needsAdvance&&(t.needsAdvance=!1,$e(t,!0)),e.sol()){var u=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/u)}if(o(e))return"ws";var s=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(r,e);if(!s)return e.match(/\S+/)||e.match(/\s/),ze(We,t,"Invalid"),"invalidchar";if("Comment"===s.kind)return ze(We,t,"Comment"),"comment";var c=Ge({},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)){var l=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&l.length>0&&l[l.length-1]<t.indentLevel&&(t.indentLevel=l[l.length-1])}for(;t.rule;){var p="function"===typeof t.rule?0===t.step?t.rule(s,e):null:t.rule[t.step];if(t.needsSeperator&&(p=p&&(null===p||void 0===p?void 0:p.separator)),p){if(p.ofRule&&(p=p.ofRule),"string"===typeof p){ze(i,t,p);continue}if(p.match&&p.match(s))return p.update&&p.update(t,s),"Punctuation"===s.kind?$e(t,!0):t.needsAdvance=!0,p.style}Je(t)}return Ge(t,c),ze(We,t,"Invalid"),"invalidchar"}function Ge(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}var We={Invalid:[],Comment:[]};function ze(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 Ke(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 $e(e,t){if(Qe(e)&&e.rule){var n=e.rule[e.step];if(n.separator){var r=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&r.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Ke(e),e.rule&&(Qe(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function Qe(e){var t=Array.isArray(e.rule)&&"string"!==typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function Je(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)Ke(e);e.rule&&$e(e,!1)}var Ye=Object.assign(Object.assign({},Te.a),{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"}),Xe={command:"editor.action.triggerSuggest",title:"Suggestions"};function Ze(e,t,n,a,u,l){var p,f=Object.assign(Object.assign({},l),{schema:e}),d=a||rt(t,n),h="Invalid"===d.state.kind?d.state.prevState:d.state;if(!h)return[];var m=h.kind,v=h.step,g=at(e,d.state);if(m===Ye.DOCUMENT)return c(d,[{label:"query",kind:$.Function},{label:"mutation",kind:$.Function},{label:"subscription",kind:$.Function},{label:"fragment",kind:$.Function},{label:"{",kind:$.Constructor}]);if(m===Ye.IMPLEMENTS||m===Ye.NAMED_TYPE&&(null===(p=h.prevState)||void 0===p?void 0:p.kind)===Ye.IMPLEMENTS)return function(e,t,n,i,o){if(t.needsSeperator)return[];var a=s(n.getTypeMap()).filter(r.H),u=a.map((function(e){return e.name})),l=new Set;it(i,(function(e,t){var i,a,s,c,p;if(t.name&&(t.kind!==Ye.INTERFACE_DEF||u.includes(t.name)||l.add(t.name),t.kind===Ye.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===Ye.IMPLEMENTS))if(o.interfaceDef){if(null===(a=o.interfaceDef)||void 0===a?void 0:a.getInterfaces().find((function(e){return e.name===t.name})))return;var f=n.getType(t.name),d=null===(s=o.interfaceDef)||void 0===s?void 0:s.toConfig();o.interfaceDef=new r.c(Object.assign(Object.assign({},d),{interfaces:[].concat(Object(U.a)(d.interfaces),[f||new r.c({name:t.name,fields:{}})])}))}else if(o.objectTypeDef){if(null===(c=o.objectTypeDef)||void 0===c?void 0:c.getInterfaces().find((function(e){return e.name===t.name})))return;var h=n.getType(t.name),m=null===(p=o.objectTypeDef)||void 0===p?void 0:p.toConfig();o.objectTypeDef=new r.f(Object.assign(Object.assign({},m),{interfaces:[].concat(Object(U.a)(m.interfaces),[h||new r.c({name:t.name,fields:{}})])}))}}));var p=o.interfaceDef||o.objectTypeDef,f=((null===p||void 0===p?void 0:p.getInterfaces())||[]).map((function(e){return e.name})),d=a.concat(Object(U.a)(l).map((function(e){return{name:e}}))).filter((function(e){var t=e.name;return t!==(null===p||void 0===p?void 0:p.name)&&!f.includes(t)}));return c(e,d.map((function(e){var t={label:e.name,kind:$.Interface,type:e};return(null===e||void 0===e?void 0:e.description)&&(t.documentation=e.description),t})))}(d,h,e,t,g);if(m===Ye.SELECTION_SET||m===Ye.FIELD||m===Ye.ALIASED_FIELD)return function(e,t,n){var o;if(t.parentType){var a=t.parentType,u=[];return"getFields"in a&&(u=s(a.getFields())),Object(r.D)(a)&&u.push(i.TypeNameMetaFieldDef),a===(null===(o=null===n||void 0===n?void 0:n.schema)||void 0===o?void 0:o.getQueryType())&&u.push(i.SchemaMetaFieldDef,i.TypeMetaFieldDef),c(e,u.map((function(e,t){var n,i={sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:$.Field,type:e.type},o=function(e){var t=e.type;if(Object(r.D)(t))return et;if(Object(r.J)(t)&&Object(r.D)(t.ofType))return et;if(Object(r.L)(t)){if(Object(r.D)(t.ofType))return et;if(Object(r.J)(t.ofType)&&Object(r.D)(t.ofType.ofType))return et}return null}(e);return o&&(i.insertText=e.name+o,i.insertTextFormat=Q.Snippet,i.command=Xe),i})))}return[]}(d,g,f);if(m===Ye.ARGUMENTS||m===Ye.ARGUMENT&&0===v){var y=g.argDefs;if(y)return c(d,y.map((function(e){var t;return{label:e.name,insertText:e.name+": ",command:Xe,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:$.Variable,type:e.type}})))}if((m===Ye.OBJECT_VALUE||m===Ye.OBJECT_FIELD&&0===v)&&g.objectFieldDefs){var b=s(g.objectFieldDefs),D=m===Ye.OBJECT_VALUE?$.Value:$.Field;return c(d,b.map((function(e){var t;return{label:e.name,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:D,type:e.type}})))}if(m===Ye.ENUM_VALUE||m===Ye.LIST_VALUE&&1===v||m===Ye.OBJECT_FIELD&&2===v||m===Ye.ARGUMENT&&2===v)return function(e,t,n,i){var o=Object(r.A)(t.inputType),a=tt(n,i,e).filter((function(e){return e.detail===o.name}));if(o instanceof r.a)return c(e,o.getValues().map((function(e){var t;return{label:e.name,detail:String(o),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:$.EnumMember,type:o}})).concat(a));if(o===we.a)return c(e,a.concat([{label:"true",detail:String(we.a),documentation:"Not false.",kind:$.Variable,type:we.a},{label:"false",detail:String(we.a),documentation:"Not true.",kind:$.Variable,type:we.a}]));return a}(d,g,t,e);if(m===Ye.VARIABLE&&1===v){var E=Object(r.A)(g.inputType);return c(d,tt(t,e,d).filter((function(e){return e.detail===(null===E||void 0===E?void 0:E.name)})))}return m===Ye.TYPE_CONDITION&&1===v||m===Ye.NAMED_TYPE&&null!=h.prevState&&h.prevState.kind===Ye.TYPE_CONDITION?function(e,t,n,i){var o;if(t.parentType)if(Object(r.C)(t.parentType)){var a=Object(r.j)(t.parentType),u=n.getPossibleTypes(a),l=Object.create(null);u.forEach((function(e){e.getInterfaces().forEach((function(e){l[e.name]=e}))})),o=u.concat(s(l))}else o=[t.parentType];else{o=s(n.getTypeMap()).filter(r.D)}return c(e,o.map((function(e){var t=Object(r.A)(e);return{label:String(e),documentation:t&&t.description||"",kind:$.Field}})))}(d,g,e):m===Ye.FRAGMENT_SPREAD&&1===v?function(e,t,n,i,a){if(!i)return[];var u=n.getTypeMap(),s=o(e.state),l=nt(i);a&&a.length>0&&l.push.apply(l,Object(U.a)(a));var p=l.filter((function(e){return u[e.typeCondition.name.value]&&!(s&&s.kind===Ye.FRAGMENT_DEFINITION&&s.name===e.name.value)&&Object(r.D)(t.parentType)&&Object(r.D)(u[e.typeCondition.name.value])&&Object(Oe.a)(n,t.parentType,u[e.typeCondition.name.value])}));return c(e,p.map((function(e){return{label:e.name.value,detail:String(u[e.typeCondition.name.value]),documentation:"fragment ".concat(e.name.value," on ").concat(e.typeCondition.name.value),kind:$.Field,type:u[e.typeCondition.name.value]}})))}(d,g,e,t,Array.isArray(u)?u:function(e){var t=[];return e&&Object(Ae.c)(Object(Se.a)(e),{FragmentDefinition:function(e){t.push(e)}}),t}(u)):m===Ye.VARIABLE_DEFINITION&&2===v||m===Ye.LIST_TYPE&&1===v||m===Ye.NAMED_TYPE&&h.prevState&&(h.prevState.kind===Ye.VARIABLE_DEFINITION||h.prevState.kind===Ye.LIST_TYPE||h.prevState.kind===Ye.NON_NULL_TYPE)?function(e,t,n){var i=s(t.getTypeMap()).filter(r.G);return c(e,i.map((function(e){return{label:e.name,documentation:e.description,kind:$.Variable}})))}(d,e):m===Ye.DIRECTIVE?function(e,t,n,r){if(t.prevState&&t.prevState.kind){return c(e,n.getDirectives().filter((function(e){return ot(t.prevState,e)})).map((function(e){return{label:e.name,documentation:e.description||"",kind:$.Function}})))}return[]}(d,h,e):[]}var et=" {\n $1\n}";function tt(e,t,n){var r,i=null,o=Object.create({});return it(e,(function(e,a){if((null===a||void 0===a?void 0:a.kind)===Ye.VARIABLE&&a.name&&(i=a.name),(null===a||void 0===a?void 0:a.kind)===Ye.NAMED_TYPE&&i){var u=function(e,t){var n,r,i,o,a,u,s,c,l,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===(u=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===u?void 0:u.kind)===t?e.prevState.prevState.prevState:(null===(p=null===(l=null===(c=null===(s=e.prevState)||void 0===s?void 0:s.prevState)||void 0===c?void 0:c.prevState)||void 0===l?void 0:l.prevState)||void 0===p?void 0:p.kind)===t?e.prevState.prevState.prevState.prevState:void 0}(a,Ye.TYPE);(null===u||void 0===u?void 0:u.type)&&(r=t.getType(null===u||void 0===u?void 0:u.type))}i&&r&&(o[i]||(o[i]={detail:r.toString(),insertText:"$"===n.string?i:"$"+i,label:i,type:r,kind:$.Variable},i=null,r=null))})),s(o)}function nt(e){var t=[];return it(e,(function(e,n){n.kind===Ye.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Ye.FRAGMENT_DEFINITION,name:{kind:Te.a.NAME,value:n.name},selectionSet:{kind:Ye.SELECTION_SET,selections:[]},typeCondition:{kind:Ye.NAMED_TYPE,name:{kind:Te.a.NAME,value:n.type}}})})),t}function rt(e,t){var n=null,r=null,i=null,o=it(e,(function(e,o,a,u){if(u===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 it(e,t){for(var n=e.split("\n"),r=qe(),i=r.startState(),o="",a=new Fe(""),u=0;u<n.length;u++){for(a=new Fe(n[u]);!a.eol();){if("BREAK"===t(a,i,o=r.token(a,i),u))break}t(a,i,o,u),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}function ot(e,t){if(!e||!e.kind)return!1;var n=e.kind,r=t.locations;switch(n){case Ye.QUERY:return-1!==r.indexOf(xe.a.QUERY);case Ye.MUTATION:return-1!==r.indexOf(xe.a.MUTATION);case Ye.SUBSCRIPTION:return-1!==r.indexOf(xe.a.SUBSCRIPTION);case Ye.FIELD:case Ye.ALIASED_FIELD:return-1!==r.indexOf(xe.a.FIELD);case Ye.FRAGMENT_DEFINITION:return-1!==r.indexOf(xe.a.FRAGMENT_DEFINITION);case Ye.FRAGMENT_SPREAD:return-1!==r.indexOf(xe.a.FRAGMENT_SPREAD);case Ye.INLINE_FRAGMENT:return-1!==r.indexOf(xe.a.INLINE_FRAGMENT);case Ye.SCHEMA_DEF:return-1!==r.indexOf(xe.a.SCHEMA);case Ye.SCALAR_DEF:return-1!==r.indexOf(xe.a.SCALAR);case Ye.OBJECT_TYPE_DEF:return-1!==r.indexOf(xe.a.OBJECT);case Ye.FIELD_DEF:return-1!==r.indexOf(xe.a.FIELD_DEFINITION);case Ye.INTERFACE_DEF:return-1!==r.indexOf(xe.a.INTERFACE);case Ye.UNION_DEF:return-1!==r.indexOf(xe.a.UNION);case Ye.ENUM_DEF:return-1!==r.indexOf(xe.a.ENUM);case Ye.ENUM_VALUE:return-1!==r.indexOf(xe.a.ENUM_VALUE);case Ye.INPUT_DEF:return-1!==r.indexOf(xe.a.INPUT_OBJECT);case Ye.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case Ye.ARGUMENTS_DEF:return-1!==r.indexOf(xe.a.ARGUMENT_DEFINITION);case Ye.INPUT_DEF:return-1!==r.indexOf(xe.a.INPUT_FIELD_DEFINITION)}}return!1}function at(e,t){var n,i,o,s,c,l,p,f,d,h,m;return u(t,(function(t){switch(t.kind){case Ye.QUERY:case"ShortQuery":h=e.getQueryType();break;case Ye.MUTATION:h=e.getMutationType();break;case Ye.SUBSCRIPTION:h=e.getSubscriptionType();break;case Ye.INLINE_FRAGMENT:case Ye.FRAGMENT_DEFINITION:t.type&&(h=e.getType(t.type));break;case Ye.FIELD:case Ye.ALIASED_FIELD:h&&t.name?(c=d?a(e,d,t.name):null,h=c?c.type:null):c=null;break;case Ye.SELECTION_SET:d=Object(r.A)(h);break;case Ye.DIRECTIVE:o=t.name?e.getDirective(t.name):null;break;case Ye.INTERFACE_DEF:t.name&&(p=null,m=new r.c({name:t.name,interfaces:[],fields:{}}));break;case Ye.OBJECT_TYPE_DEF:t.name&&(m=null,p=new r.f({name:t.name,interfaces:[],fields:{}}));break;case Ye.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Ye.FIELD:i=c&&c.args;break;case Ye.DIRECTIVE:i=o&&o.args;break;case Ye.ALIASED_FIELD:var u=t.prevState&&t.prevState.name;if(!u){i=null;break}var v=d?a(e,d,u):null;if(!v){i=null;break}i=v.args;break;default:i=null}else i=null;break;case Ye.ARGUMENT:if(i)for(var g=0;g<i.length;g++)if(i[g].name===t.name){n=i[g];break}l=n&&n.type;break;case Ye.ENUM_VALUE:var y=Object(r.A)(l);s=y instanceof r.a?y.getValues().find((function(e){return e.value===t.name})):null;break;case Ye.LIST_VALUE:var b=Object(r.B)(l);l=b instanceof r.d?b.ofType:null;break;case Ye.OBJECT_VALUE:var D=Object(r.A)(l);f=D instanceof r.b?D.getFields():null;break;case Ye.OBJECT_FIELD:var E=t.name&&f?f[t.name]:null;l=E&&E.type;break;case Ye.NAMED_TYPE:t.name&&(h=e.getType(t.name))}})),{argDef:n,argDefs:i,directiveDef:o,enumValue:s,fieldDef:c,inputType:l,objectFieldDefs:f,parentType:d,type:h,interfaceDef:m,objectTypeDef:p}}var ut=n(13),st=n.n(ut),ct=n(1020),lt=n.n(ct),pt=function(e,t){if(!t)return[];var n;try{n=Object(Se.a)(e)}catch(r){return[]}return ft(n,t)},ft=function(e,t){if(!t)return[];var n=new Map,r=new Set;Object(Ae.c)(e,{FragmentDefinition:function(e){n.set(e.name.value,!0)},FragmentSpread:function(e){r.has(e.name.value)||r.add(e.name.value)}});var i=new Set;r.forEach((function(e){!n.has(e)&&t.has(e)&&i.add(lt()(t.get(e)))}));var o=[];return i.forEach((function(e){Object(Ae.c)(e,{FragmentSpread:function(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add(lt()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||o.push(e)})),o},dt=n(10);function ht(e,t){e.push(t)}function mt(e,t){Object(r.L)(t)?(mt(e,t.ofType),ht(e,"!")):Object(r.J)(t)?(ht(e,"["),mt(e,t.ofType),ht(e,"]")):ht(e,t.name)}function vt(e,t){var n=[];return t&&ht(n,"```graphql\n"),mt(n,e),t&&ht(n,"\n```"),n.join("")}var gt={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"};function yt(e,t){var n,i=!1,o=Object.create(null),a=Object.create(null);if("defaultValue"in e&&void 0!==e.defaultValue&&(o.default=e.defaultValue),Object(r.E)(e)&&(o.type="string",o.enum=e.getValues().map((function(e){return e.name}))),Object(r.R)(e)&&(o.type=null!==(n=gt[e.name])&&void 0!==n?n:"any"),Object(r.J)(e)){o.type="array";var u=yt(e.ofType,t),s=u.definition,c=u.definitions;s.$ref?o.items={$ref:s.$ref}:o.items=s,c&&Object.keys(c).forEach((function(e){a[e]=c[e]}))}if(Object(r.L)(e)){i=!0;var l=yt(e.ofType,t),p=l.definition,f=l.definitions;o=p,f&&Object.keys(f).forEach((function(e){a[e]=f[e]}))}if(Object(r.F)(e)){o.$ref="#/definitions/".concat(e.name);var d=e.getFields(),h={type:"object",properties:{},required:[]};e.description?(h.description=e.description+"\n"+vt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(h.markdownDescription=e.description+"\n"+vt(e,!0))):(h.description=vt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(h.markdownDescription=vt(e,!0))),Object.keys(d).forEach((function(e){var n=d[e],r=yt(n.type,t),i=r.required,o=r.definition,u=r.definitions,s=yt(n,t).definition;h.properties[e]=Object.assign(Object.assign({},o),s);var c=vt(n.type);if(h.properties[e].description=n.description?n.description+"\n"+c:c,null===t||void 0===t?void 0:t.useMarkdownDescription){var l=vt(n.type,!0);h.properties[e].markdownDescription=n.description?n.description+"\n"+l:l}i&&h.required.push(e),u&&Object.keys(u).map((function(e){a[e]=u[e]}))})),a[e.name]=h}return"description"in e&&!Object(r.R)(e)&&e.description&&!o.description?(o.description=e.description+"\n"+vt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=e.description+"\n"+vt(e,!0))):(o.description=vt(e),(null===t||void 0===t?void 0:t.useMarkdownDescription)&&(o.markdownDescription=vt(e,!0))),{required:i,definition:o,definitions:a}}function bt(e,t){var n={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach((function(e){var r,i=Object(dt.a)(e,2),o=i[0],a=yt(i[1],t),u=a.definition,s=a.required,c=a.definitions;n.properties[o]=u,s&&(null===(r=n.required)||void 0===r||r.push(o)),c&&(n.definitions=Object.assign(Object.assign({},null===n||void 0===n?void 0:n.definitions),c))})),n}function Dt(e,t,n){var r,i=Et(e,n);return Object(Ae.c)(t,{enter:function(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=i&&i<=e.loc.end))return!1;r=e},leave:function(e){if(e.loc&&e.loc.start<=i&&i<=e.loc.end)return!1}}),r}function Et(e,t){var n=e.split("\n").slice(0,t.line);return t.character+n.map((function(e){return e.length+1})).reduce((function(e,t){return e+t}),0)}var Ct=function(){function e(t,n){var r=this;Object(ke.a)(this,e),this.containsPosition=function(e){return r.start.line===e.line?r.start.character<=e.character:r.end.line===e.line?r.end.character>=e.character:r.start.line<=e.line&&r.end.line>=e.line},this.start=t,this.end=n}return Object(Ne.a)(e,[{key:"setStart",value:function(e,t){this.start=new Tt(e,t)}},{key:"setEnd",value:function(e,t){this.end=new Tt(e,t)}}]),e}(),Tt=function(){function e(t,n){var r=this;Object(ke.a)(this,e),this.lessThanOrEqualTo=function(e){return r.line<e.line||r.line===e.line&&r.character<=e.character},this.line=t,this.character=n}return Object(Ne.a)(e,[{key:"setLine",value:function(e){this.line=e}},{key:"setCharacter",value:function(e){this.character=e}}]),e}();function xt(e,t){var n=e.slice(0,t),r=n.split("\n").length-1,i=n.lastIndexOf("\n");return new Tt(r,t-i-1)}var At=n(1021),St=n(1022),wt=n(1023),Ot=n(1024),kt=n(1025),Nt=n(1026),Ft=n(1027),_t=n(1028),It=n(1029),jt=n(1030),Lt=n(1031),Pt=n(1032),Mt=n(1033),Bt=n(1044),Rt=n(1034),Vt=n(1043),Ut=n(946),qt=[At.a,St.a,wt.a,Ot.a,kt.a,Nt.a,Ft.a,_t.a,It.a,jt.a,Lt.a,Pt.a];function Ht(e,t,n,r,i){var o=Mt.a.filter((function(e){return e!==Bt.a&&e!==Rt.a&&(!r||e!==Vt.a)}));return n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,qt),Object(Ut.c)(e,t,o).filter((function(e){if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){var t=e.nodes[0];if(t&&t.kind===Te.a.DIRECTIVE){var n=t.name.value;if("arguments"===n||"argumentDefinitions"===n)return!1}}return!0}))}var Gt=n(923);function Wt(e,t){var n=Object.create(null);return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind){var r=t.variableDefinitions;r&&r.forEach((function(t){var r=t.variable,i=t.type,o=Object(Gt.a)(e,i);o?n[r.name.value]=o:i.kind===Te.a.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=we.b)}))}})),n}function zt(e,t){var n=t?Wt(t,e):void 0,r=[];return Object(Ae.c)(e,{OperationDefinition:function(e){r.push(e)}}),{variableToType:n,operations:r}}function Kt(e,t){if(t)try{var n=Object(Se.a)(t);return Object.assign(Object.assign({},zt(n,e)),{documentAST:n})}catch(r){return}}var $t=Kt,Qt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},Jt="GraphQL";function Yt(e,t){if(!e)throw new Error(t)}function Xt(e,t){var n=t.loc;return Yt(n,"Expected ASTNode to have a location."),function(e,t){var n=xt(e,t.start),r=xt(e,t.end);return new Ct(n,r)}(e,n)}function Zt(e,t){var n=t.loc;return Yt(n,"Expected ASTNode to have a location."),xt(e,n.start)}function en(e,t,n){return Qt(this,void 0,void 0,st.a.mark((function r(){var i,o,a;return st.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.name.value,0!==(o=n.filter((function(e){var t=e.definition;return t.name&&t.name.value===i}))).length){r.next=4;break}throw Error("Definition not found for GraphQL type ".concat(i));case 4:return a=o.map((function(e){return on(e.filePath||"",e.content,e.definition)})),r.abrupt("return",{definitions:a,queryRange:a.map((function(n){return Xt(e,t)}))});case 6:case"end":return r.stop()}}),r)})))}function tn(e,t,n){return Qt(this,void 0,void 0,st.a.mark((function r(){var i,o,a;return st.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.name.value,0!==(o=n.filter((function(e){return e.definition.name.value===i}))).length){r.next=4;break}throw Error("Definition not found for GraphQL fragment ".concat(i));case 4:return a=o.map((function(e){return rn(e.filePath||"",e.content,e.definition)})),r.abrupt("return",{definitions:a,queryRange:a.map((function(n){return Xt(e,t)}))});case 6:case"end":return r.stop()}}),r)})))}function nn(e,t,n){return{definitions:[rn(e,t,n)],queryRange:n.name?[Xt(t,n.name)]:[]}}function rn(e,t,n){var r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:Zt(t,n),range:Xt(t,n),name:r.value||"",language:Jt,projectRoot:e}}function on(e,t,n){var r=n.name;return Yt(r,"Expected ASTNode to have a Name."),{path:e,position:Zt(t,n),range:Xt(t,n),name:r.value||"",language:Jt,projectRoot:e}}var an,un=n(52),sn=n(920),cn=n(1057),ln={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},pn=(an={},Object(un.a)(an,ln.Error,1),Object(un.a)(an,ln.Warning,2),Object(un.a)(an,ln.Information,3),Object(un.a)(an,ln.Hint,4),an),fn=function(e,t){if(!e)throw new Error(t)};function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=null;i&&(e+="string"===typeof i?"\n\n"+i:"\n\n"+i.reduce((function(e,t){return e+=Object(sn.a)(t)+"\n\n"}),""));try{o=Object(Se.a)(e)}catch(u){var a=gn(u.locations[0],e);return[{severity:pn.Error,message:u.message,source:"GraphQL: Syntax",range:a}]}return hn(o,t,n,r)}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!t)return[];var i=mn(Ht(t,e,n,r),(function(e){return vn(e,pn.Error,"Validation")})),o=mn(Object(Ut.c)(t,e,[cn.a]),(function(e){return vn(e,pn.Warning,"Deprecation")}));return i.concat(o)}function mn(e,t){return Array.prototype.concat.apply([],e.map(t))}function vn(e,t,n){if(!e.nodes)return[];var r=[];return e.nodes.forEach((function(i){var o="Variable"!==i.kind&&"name"in i&&void 0!==i.name?i.name:"variable"in i&&void 0!==i.variable?i.variable:i;if(o){fn(e.locations,"GraphQL validation error requires locations.");var a=e.locations[0],u=function(e){var t=e.loc;return fn(t,"Expected ASTNode to have a location."),t}(o),s=a.column+(u.end-u.start);r.push({source:"GraphQL: ".concat(n),message:e.message,severity:t,range:new Ct(new Tt(a.line-1,a.column-1),new Tt(a.line-1,s))})}})),r}function gn(e,t){var n=qe(),r=n.startState(),i=t.split("\n");fn(i.length>=e.line,"Query text must have more lines than where the error happened");for(var o=null,a=0;a<e.line;a++)for(o=new Fe(i[a]);!o.eol();){if("invalidchar"===n.token(o,r))break}fn(o,"Expected Parser stream to be available.");var u=e.line-1,s=o.getStartOfToken(),c=o.getCurrentPosition();return new Ct(new Tt(u,s),new Tt(u,c))}var yn,bn=Te.a.INLINE_FRAGMENT;function Dn(e){var t;try{t=Object(Se.a)(e)}catch(r){return null}var n=function(e){var t=function(t){return{representativeName:t.name,startPosition:xt(e,t.loc.start),endPosition:xt(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]}};return{Field:function(e){var n=e.alias?[En("plain",e.alias),En("plain",": ")]:[];return n.push(En("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:function(e){return Object.assign({tokenizedText:[En("keyword",e.operation),En("whitespace"," "),En("class-name",e.name)]},t(e))},Document:function(e){return e.definitions},SelectionSet:function(e){return function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);Array.isArray(i)?n.push.apply(n,Object(U.a)(i)):n.push(i)}return n}(e.selections,(function(e){return e.kind===bn?e.selectionSet:e}))},Name:function(e){return e.value},FragmentDefinition:function(e){return Object.assign({tokenizedText:[En("keyword","fragment"),En("whitespace"," "),En("class-name",e.name)]},t(e))},InterfaceTypeDefinition:function(e){return Object.assign({tokenizedText:[En("keyword","interface"),En("whitespace"," "),En("class-name",e.name)]},t(e))},EnumTypeDefinition:function(e){return Object.assign({tokenizedText:[En("keyword","enum"),En("whitespace"," "),En("class-name",e.name)]},t(e))},EnumValueDefinition:function(e){return Object.assign({tokenizedText:[En("plain",e.name)]},t(e))},ObjectTypeDefinition:function(e){return Object.assign({tokenizedText:[En("keyword","type"),En("whitespace"," "),En("class-name",e.name)]},t(e))},InputObjectTypeDefinition:function(e){return Object.assign({tokenizedText:[En("keyword","input"),En("whitespace"," "),En("class-name",e.name)]},t(e))},FragmentSpread:function(e){return Object.assign({tokenizedText:[En("plain","..."),En("class-name",e.name)]},t(e))},InputValueDefinition:function(e){return Object.assign({tokenizedText:[En("plain",e.name)]},t(e))},FieldDefinition:function(e){return Object.assign({tokenizedText:[En("plain",e.name)]},t(e))},InlineFragment:function(e){return e.selectionSet}}}(e);return{outlineTrees:Object(Ae.c)(t,{leave:function(e){return void 0!==n&&e.kind in n?n[e.kind](e):null}})}}function En(e,t){return{kind:e,value:t}}function Cn(e,t,n,r,i){var o=r||rt(t,n);if(!e||!o||!o.state)return"";var a=o.state,u=a.kind,s=a.step,c=at(e,o.state),l=Object.assign(Object.assign({},i),{schema:e});if("Field"===u&&0===s&&c.fieldDef||"AliasedField"===u&&2===s&&c.fieldDef){var p=[];return Tn(p,l),function(e,t,n){An(e,t,n),wn(e,t,n,t.type)}(p,c,l),xn(p,l),kn(p,l,c.fieldDef),p.join("").trim()}if("Directive"===u&&1===s&&c.directiveDef){var f=[];return Tn(f,l),Sn(f,c,l),xn(f,l),kn(f,l,c.directiveDef),f.join("").trim()}if("Argument"===u&&0===s&&c.argDef){var d=[];return Tn(d,l),function(e,t,n){t.directiveDef?Sn(e,t,n):t.fieldDef&&An(e,t,n);if(!t.argDef)return;var r=t.argDef.name;Nn(e,"("),Nn(e,r),wn(e,t,n,t.inputType),Nn(e,")")}(d,c,l),xn(d,l),kn(d,l,c.argDef),d.join("").trim()}if("EnumValue"===u&&c.enumValue&&"description"in c.enumValue){var h=[];return Tn(h,l),function(e,t,n){if(!t.enumValue)return;var r=t.enumValue.name;On(e,t,n,t.inputType),Nn(e,"."),Nn(e,r)}(h,c,l),xn(h,l),kn(h,l,c.enumValue),h.join("").trim()}if("NamedType"===u&&c.type&&"description"in c.type){var m=[];return Tn(m,l),On(m,c,l,c.type),xn(m,l),kn(m,l,c.type),m.join("").trim()}return""}function Tn(e,t){t.useMarkdown&&Nn(e,"```graphql\n")}function xn(e,t){t.useMarkdown&&Nn(e,"\n```")}function An(e,t,n){if(t.fieldDef){var r=t.fieldDef.name;"__"!==r.slice(0,2)&&(On(e,t,n,t.parentType),Nn(e,".")),Nn(e,r)}}function Sn(e,t,n){t.directiveDef&&Nn(e,"@"+t.directiveDef.name)}function wn(e,t,n,r){Nn(e,": "),On(e,t,n,r)}function On(e,t,n,i){i&&(i instanceof r.e?(On(e,t,n,i.ofType),Nn(e,"!")):i instanceof r.d?(Nn(e,"["),On(e,t,n,i.ofType),Nn(e,"]")):Nn(e,i.name))}function kn(e,t,n){if(n){var r="string"===typeof n.description?n.description:null;r&&(Nn(e,"\n\n"),Nn(e,r)),function(e,t,n){if(!n)return;var r=n.deprecationReason?n.deprecationReason:null;if(!r)return;Nn(e,"\n\n"),Nn(e,"Deprecated: "),Nn(e,r)}(e,0,n)}}function Nn(e,t){e.push(t)}var Fn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},_n=Te.a.FRAGMENT_DEFINITION,In=Te.a.OBJECT_TYPE_DEFINITION,jn=Te.a.INTERFACE_TYPE_DEFINITION,Ln=Te.a.ENUM_TYPE_DEFINITION,Pn=Te.a.UNION_TYPE_DEFINITION,Mn=Te.a.SCALAR_TYPE_DEFINITION,Bn=Te.a.INPUT_OBJECT_TYPE_DEFINITION,Rn=Te.a.SCALAR_TYPE_EXTENSION,Vn=Te.a.OBJECT_TYPE_EXTENSION,Un=Te.a.INTERFACE_TYPE_EXTENSION,qn=Te.a.UNION_TYPE_EXTENSION,Hn=Te.a.ENUM_TYPE_EXTENSION,Gn=Te.a.INPUT_OBJECT_TYPE_EXTENSION,Wn=Te.a.DIRECTIVE_DEFINITION,zn=Te.a.FRAGMENT_SPREAD,Kn=Te.a.OPERATION_DEFINITION,$n=Te.a.NAMED_TYPE,Qn=(yn={},Object(un.a)(yn,Te.a.FIELD,ue.Field),Object(un.a)(yn,Te.a.OPERATION_DEFINITION,ue.Class),Object(un.a)(yn,Te.a.FRAGMENT_DEFINITION,ue.Class),Object(un.a)(yn,Te.a.FRAGMENT_SPREAD,ue.Struct),Object(un.a)(yn,Te.a.OBJECT_TYPE_DEFINITION,ue.Class),Object(un.a)(yn,Te.a.ENUM_TYPE_DEFINITION,ue.Enum),Object(un.a)(yn,Te.a.ENUM_VALUE_DEFINITION,ue.EnumMember),Object(un.a)(yn,Te.a.INPUT_OBJECT_TYPE_DEFINITION,ue.Class),Object(un.a)(yn,Te.a.INPUT_VALUE_DEFINITION,ue.Field),Object(un.a)(yn,Te.a.FIELD_DEFINITION,ue.Field),Object(un.a)(yn,Te.a.INTERFACE_TYPE_DEFINITION,ue.Interface),Object(un.a)(yn,Te.a.DOCUMENT,ue.File),Object(un.a)(yn,"FieldWithArguments",ue.Method),yn);function Jn(e){return"FieldDefinition"===e.kind&&e.children&&e.children.length>0?Qn.FieldWithArguments:Qn[e.kind]}var Yn,Xn=function(){function e(t){Object(ke.a)(this,e),this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}return Object(Ne.a)(e,[{key:"getConfigForURI",value:function(e){var t=this._graphQLCache.getProjectForFile(e);if(t)return t;throw Error("No config found for uri: ".concat(e))}},{key:"getDiagnostics",value:function(e,t,n){return Fn(this,void 0,void 0,st.a.mark((function r(){var i,o,a,u,s,c,l,p,f,d,h,m,v,g;return st.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=!1,o=this.getConfigForURI(t)){r.next=4;break}return r.abrupt("return",[]);case 4:a=o.schema,u=o.name,s=o.extensions,r.prev=5,c=Object(Se.a)(e),a&&t===a||(i=c.definitions.some((function(e){switch(e.kind){case In:case jn:case Ln:case Pn:case Mn:case Bn:case Rn:case Vn:case Un:case qn:case Hn:case Gn:case Wn:return!0}return!1}))),r.next=14;break;case 10:return r.prev=10,r.t0=r.catch(5),l=gn(r.t0.locations[0],e),r.abrupt("return",[{severity:pn.Error,message:r.t0.message,source:"GraphQL: Syntax",range:l}]);case 14:return p=e,r.next=17,this._graphQLCache.getFragmentDefinitions(o);case 17:return f=r.sent,r.next=20,this._graphQLCache.getFragmentDependencies(e,f);case 20:d=r.sent,h=d.reduce((function(e,t){return"".concat(e," ").concat(Object(sn.a)(t.definition))}),""),p="".concat(p," ").concat(h),m=null,r.prev=24,m=Object(Se.a)(p),r.next=31;break;case 28:return r.prev=28,r.t1=r.catch(24),r.abrupt("return",[]);case 31:return v=null,(null===s||void 0===s?void 0:s.customValidationRules)&&"function"===typeof s.customValidationRules&&(v=s.customValidationRules(this._graphQLConfig)),r.next=35,this._graphQLCache.getSchema(u,i);case 35:if(g=r.sent){r.next=38;break}return r.abrupt("return",[]);case 38:return r.abrupt("return",hn(m,g,v,n));case 39:case"end":return r.stop()}}),r,this,[[5,10],[24,28]])})))}},{key:"getAutocompleteSuggestions",value:function(e,t,n){return Fn(this,void 0,void 0,st.a.mark((function r(){var i,o,a,u;return st.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=this.getConfigForURI(n),r.next=3,this._graphQLCache.getSchema(i.name);case 3:return o=r.sent,r.next=6,this._graphQLCache.getFragmentDefinitions(i);case 6:if(a=r.sent,u=Array.from(a).map((function(e){return Object(dt.a)(e,2)[1].definition})),!o){r.next=10;break}return r.abrupt("return",Ze(o,e,t,void 0,u));case 10:return r.abrupt("return",[]);case 11:case"end":return r.stop()}}),r,this)})))}},{key:"getHoverInformation",value:function(e,t,n,r){return Fn(this,void 0,void 0,st.a.mark((function i(){var o,a;return st.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=this.getConfigForURI(n),i.next=3,this._graphQLCache.getSchema(o.name);case 3:if(!(a=i.sent)){i.next=6;break}return i.abrupt("return",Cn(a,e,t,void 0,r));case 6:return i.abrupt("return","");case 7:case"end":return i.stop()}}),i,this)})))}},{key:"getDefinition",value:function(e,t,n){return Fn(this,void 0,void 0,st.a.mark((function r(){var i,o,a;return st.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=this.getConfigForURI(n),r.prev=1,o=Object(Se.a)(e),r.next=8;break;case 5:return r.prev=5,r.t0=r.catch(1),r.abrupt("return",null);case 8:if(!(a=Dt(e,o,t))){r.next=16;break}r.t1=a.kind,r.next=r.t1===zn?13:r.t1===_n||r.t1===Kn?14:r.t1===$n?15:16;break;case 13:return r.abrupt("return",this._getDefinitionForFragmentSpread(e,o,a,n,i));case 14:return r.abrupt("return",nn(n,e,a));case 15:return r.abrupt("return",this._getDefinitionForNamedType(e,o,a,n,i));case 16:return r.abrupt("return",null);case 17:case"end":return r.stop()}}),r,this,[[1,5]])})))}},{key:"getDocumentSymbols",value:function(e,t){return Fn(this,void 0,void 0,st.a.mark((function n(){var r,i,o,a,u;return st.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getOutline(e);case 2:if(r=n.sent){n.next=5;break}return n.abrupt("return",[]);case 5:i=[],o=r.outlineTrees.map((function(e){return[null,e]})),a=function(){var e=o.pop();if(!e)return{v:[]};var n=Object(dt.a)(e,2),r=n[0],a=n[1];if(!a)return{v:[]};i.push({name:a.representativeName,kind:Jn(a),location:{uri:t,range:{start:a.startPosition,end:a.endPosition}},containerName:r?r.representativeName:void 0}),o.push.apply(o,Object(U.a)(a.children.map((function(e){return[a,e]}))))};case 8:if(!(o.length>0)){n.next=14;break}if("object"!==typeof(u=a())){n.next=12;break}return n.abrupt("return",u.v);case 12:n.next=8;break;case 14:return n.abrupt("return",i);case 15:case"end":return n.stop()}}),n,this)})))}},{key:"_getDefinitionForNamedType",value:function(e,t,n,r,i){return Fn(this,void 0,void 0,st.a.mark((function o(){var a,u,s,c,l;return st.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this._graphQLCache.getObjectTypeDefinitions(i);case 2:return a=o.sent,o.next=5,this._graphQLCache.getObjectTypeDependenciesForAST(t,a);case 5:return u=o.sent,s=t.definitions.filter((function(e){return e.kind===In||e.kind===Bn||e.kind===Ln||e.kind===Mn||e.kind===jn})),c=s.map((function(t){return{filePath:r,content:e,definition:t}})),o.next=11,en(e,n,u.concat(c));case 11:return l=o.sent,o.abrupt("return",l);case 13:case"end":return o.stop()}}),o,this)})))}},{key:"_getDefinitionForFragmentSpread",value:function(e,t,n,r,i){return Fn(this,void 0,void 0,st.a.mark((function o(){var a,u,s,c,l;return st.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this._graphQLCache.getFragmentDefinitions(i);case 2:return a=o.sent,o.next=5,this._graphQLCache.getFragmentDependenciesForAST(t,a);case 5:return u=o.sent,s=t.definitions.filter((function(e){return e.kind===_n})),c=s.map((function(t){return{filePath:r,content:e,definition:t}})),o.next=11,tn(e,n,u.concat(c));case 11:return l=o.sent,o.abrupt("return",l);case 13:case"end":return o.stop()}}),o,this)})))}},{key:"getOutline",value:function(e){return Fn(this,void 0,void 0,st.a.mark((function t(){return st.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Dn(e));case 1:case"end":return t.stop()}}),t)})))}}]),e}(),Zn={Created:1,Changed:2,Deleted:3};!function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Yn||(Yn={}))},function(e,t,n){"use strict";var r=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};t.a=r},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var a=0;a<t.length&&i(t[a]);)++a;for(var u=t.length;u>a&&i(t[u-1]);)--u;return t.slice(a,u).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],u=!r||o||a||n,s="";return!u||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,u&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return p})),n.d(t,"e",(function(){return f}));var r=n(914);function i(e){return o(e)||c(e)||p(e)}function o(e){return e.kind===r.a.OPERATION_DEFINITION||e.kind===r.a.FRAGMENT_DEFINITION}function a(e){return e.kind===r.a.FIELD||e.kind===r.a.FRAGMENT_SPREAD||e.kind===r.a.INLINE_FRAGMENT}function u(e){return e.kind===r.a.VARIABLE||e.kind===r.a.INT||e.kind===r.a.FLOAT||e.kind===r.a.STRING||e.kind===r.a.BOOLEAN||e.kind===r.a.NULL||e.kind===r.a.ENUM||e.kind===r.a.LIST||e.kind===r.a.OBJECT}function s(e){return e.kind===r.a.NAMED_TYPE||e.kind===r.a.LIST_TYPE||e.kind===r.a.NON_NULL_TYPE}function c(e){return e.kind===r.a.SCHEMA_DEFINITION||l(e)||e.kind===r.a.DIRECTIVE_DEFINITION}function l(e){return e.kind===r.a.SCALAR_TYPE_DEFINITION||e.kind===r.a.OBJECT_TYPE_DEFINITION||e.kind===r.a.INTERFACE_TYPE_DEFINITION||e.kind===r.a.UNION_TYPE_DEFINITION||e.kind===r.a.ENUM_TYPE_DEFINITION||e.kind===r.a.INPUT_OBJECT_TYPE_DEFINITION}function p(e){return e.kind===r.a.SCHEMA_EXTENSION||f(e)}function f(e){return e.kind===r.a.SCALAR_TYPE_EXTENSION||e.kind===r.a.OBJECT_TYPE_EXTENSION||e.kind===r.a.INTERFACE_TYPE_EXTENSION||e.kind===r.a.UNION_TYPE_EXTENSION||e.kind===r.a.ENUM_TYPE_EXTENSION||e.kind===r.a.INPUT_OBJECT_TYPE_EXTENSION}},function(e,t,n){"use strict";var r=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}};t.a=r},function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return y}));var r=n(935),i=n(993),o=n(917),a=n(921),u=n(912),s=n(958),c=n(919),l=n(940),p=n(922),f=n(916),d=n(918),h=n(911);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return Object(l.a)(e,y)}function g(e){if(!v(e))throw new Error("Expected ".concat(Object(u.a)(e)," to be a GraphQL schema."));return e}var y=function(){function e(e){var t;this.__validationErrors=!0===e.assumeValid?[]:void 0,Object(p.a)(e)||Object(c.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(c.a)(0,'"types" must be Array if provided but got: '.concat(Object(u.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(c.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(u.a)(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&Object(s.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:d.j;var n=new Set(e.types);if(null!=e.types)for(var r=0,o=e.types;r<o.length;r++){var a=o[r];n.delete(a),b(a,n)}null!=this._queryType&&b(this._queryType,n),null!=this._mutationType&&b(this._mutationType,n),null!=this._subscriptionType&&b(this._subscriptionType,n);for(var l=0,m=this._directives;l<m.length;l++){var v=m[l];if(Object(d.h)(v))for(var g=0,y=v.args;g<y.length;g++){b(y[g].type,n)}}b(f.__Schema,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var D=0,E=Object(i.a)(n);D<E.length;D++){var C=E[D];if(null!=C){var T=C.name;if(T||Object(c.a)(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[T])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(T,'".'));if(this._typeMap[T]=C,Object(h.H)(C))for(var x=0,A=C.getInterfaces();x<A.length;x++){var S=A[x];if(Object(h.H)(S)){var w=this._implementationsMap[S.name];void 0===w&&(w=this._implementationsMap[S.name]={objects:[],interfaces:[]}),w.interfaces.push(C)}}else if(Object(h.N)(C))for(var O=0,k=C.getInterfaces();O<k.length;O++){var N=k[O];if(Object(h.H)(N)){var F=this._implementationsMap[N.name];void 0===F&&(F=this._implementationsMap[N.name]={objects:[],interfaces:[]}),F.objects.push(C)}}}}}var t,n,l,v=e.prototype;return v.getQueryType=function(){return this._queryType},v.getMutationType=function(){return this._mutationType},v.getSubscriptionType=function(){return this._subscriptionType},v.getTypeMap=function(){return this._typeMap},v.getType=function(e){return this.getTypeMap()[e]},v.getPossibleTypes=function(e){return Object(h.T)(e)?e.getTypes():this.getImplementations(e).objects},v.getImplementations=function(e){var t=this._implementationsMap[e.name];return null!==t&&void 0!==t?t:{objects:[],interfaces:[]}},v.isPossibleType=function(e,t){return this.isSubType(e,t)},v.isSubType=function(e,t){var n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Object(h.T)(e))for(var r=0,i=e.getTypes();r<i.length;r++){n[i[r].name]=!0}else{for(var o=this.getImplementations(e),a=0,u=o.objects;a<u.length;a++){n[u[a].name]=!0}for(var s=0,c=o.interfaces;s<c.length;s++){n[c[s].name]=!0}}this._subTypeMap[e.name]=n}return void 0!==n[t.name]},v.getDirectives=function(){return this._directives},v.getDirective=function(e){return Object(r.a)(this.getDirectives(),(function(t){return t.name===e}))},v.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object(o.a)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},t=e,(n=[{key:a.c,get:function(){return"GraphQLSchema"}}])&&m(t.prototype,n),l&&m(t,l),e}();function b(e,t){var n=Object(h.A)(e);if(!t.has(n))if(t.add(n),Object(h.T)(n))for(var r=0,i=n.getTypes();r<i.length;r++){b(i[r],t)}else if(Object(h.N)(n)||Object(h.H)(n)){for(var a=0,u=n.getInterfaces();a<u.length;a++){b(u[a],t)}for(var s=0,c=Object(o.a)(n.getFields());s<c.length;s++){var l=c[s];b(l.type,t);for(var p=0,f=l.args;p<f.length;p++){b(f[p].type,t)}}}else if(Object(h.F)(n))for(var d=0,m=Object(o.a)(n.getFields());d<m.length;d++){b(m[d].type,t)}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(911),i=n(1114),o=n.n(i),a=n(966),u=new(n.n(a).a);function s(e,t,r){var i,o;n(909).on(t,"select",(function(e,t){if(!i){var n,a=t.parentNode;(i=document.createElement("div")).className="CodeMirror-hint-information",a.appendChild(i),(o=document.createElement("div")).className="CodeMirror-hint-deprecation",a.appendChild(o),a.addEventListener("DOMNodeRemoved",n=function(e){e.target===a&&(a.removeEventListener("DOMNodeRemoved",n),i=null,o=null,n=null)})}var s=e.description?u.render(e.description):"Self descriptive.",l=e.type?'<span class="infoType">'+c(e.type)+"</span>":"";if(i.innerHTML='<div class="content">'+("<p>"===s.slice(0,3)?"<p>"+l+s.slice(3):l+s)+"</div>",e&&o&&e.deprecationReason){var p=e.deprecationReason?u.render(e.deprecationReason):"";o.innerHTML='<span class="deprecation-label">Deprecated</span>'+p,o.style.display="block"}else o&&(o.style.display="none");r&&r(i)}))}function c(e){return e instanceof r.e?c(e.ofType)+"!":e instanceof r.d?"["+c(e.ofType)+"]":'<a class="typeName">'+o()(e.name)+"</a>"}},function(e,t,n){var r=n(981);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(957),i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();Object(r.a)(i);var o=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"===typeof e.kind}Object(r.a)(o)},function(e,t,n){"use strict";t.a=function(e,t){return e instanceof t}},function(e,t,n){"use strict";function r(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=0;n<e.length&&r<t.length;){var a=e.charCodeAt(n),u=t.charCodeAt(r);if(o(a)&&o(u)){var s=0;do{++n,s=10*s+a-i,a=e.charCodeAt(n)}while(o(a)&&s>0);var c=0;do{++r,c=10*c+u-i,u=t.charCodeAt(r)}while(o(u)&&c>0);if(s<c)return-1;if(s>c)return 1}else{if(a<u)return-1;if(a>u)return 1;++n,++r}}return e.length-t.length}n.d(t,"a",(function(){return r}));var i=48;function o(e){return!isNaN(e)&&i<=e&&e<=57}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(992),i=n(914),o=n(939),a=n(945),u=n(990),s=n(943),c=n(991);function l(e,t){return new d(e,t).parseDocument()}function p(e,t){var n=new d(e,t);n.expectToken(a.a.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(a.a.EOF),r}function f(e,t){var n=new d(e,t);n.expectToken(a.a.SOF);var r=n.parseTypeReference();return n.expectToken(a.a.EOF),r}var d=function(){function e(e,t){var n=Object(u.b)(e)?e:new u.a(e);this._lexer=new c.a(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(a.a.NAME);return{kind:i.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:i.a.DOCUMENT,definitions:this.many(a.a.SOF,this.parseDefinition,a.a.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(a.a.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(a.a.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(a.a.BRACE_L))return{kind:i.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(a.a.NAME)&&(t=this.parseName()),{kind:i.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(a.a.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(a.a.PAREN_L,this.parseVariableDefinition,a.a.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:i.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(a.a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.a.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(a.a.DOLLAR),{kind:i.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:i.a.SELECTION_SET,selections:this.many(a.a.BRACE_L,this.parseSelection,a.a.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(a.a.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(a.a.COLON)?(e=r,t=this.parseName()):t=r,{kind:i.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.a.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.a.PAREN_L,t,a.a.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(a.a.COLON),{kind:i.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:i.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(a.a.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(a.a.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(a.a.NAME)?{kind:i.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:i.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:i.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:i.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case a.a.BRACKET_L:return this.parseList(e);case a.a.BRACE_L:return this.parseObject(e);case a.a.INT:return this._lexer.advance(),{kind:i.a.INT,value:t.value,loc:this.loc(t)};case a.a.FLOAT:return this._lexer.advance(),{kind:i.a.FLOAT,value:t.value,loc:this.loc(t)};case a.a.STRING:case a.a.BLOCK_STRING:return this.parseStringLiteral();case a.a.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:i.a.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:i.a.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:i.a.NULL,loc:this.loc(t)};default:return{kind:i.a.ENUM,value:t.value,loc:this.loc(t)}}case a.a.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:i.a.STRING,value:e.value,block:e.kind===a.a.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:i.a.LIST,values:this.any(a.a.BRACKET_L,(function(){return t.parseValueLiteral(e)}),a.a.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:i.a.OBJECT,fields:this.any(a.a.BRACE_L,(function(){return t.parseObjectField(e)}),a.a.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(a.a.COLON),{kind:i.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(a.a.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(a.a.AT),{kind:i.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(a.a.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(a.a.BRACKET_R),e={kind:i.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(a.a.BANG)?{kind:i.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:i.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===a.a.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(a.a.STRING)||this.peek(a.a.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(a.a.BRACE_L,this.parseOperationTypeDefinition,a.a.BRACE_R);return{kind:i.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.a.COLON);var n=this.parseNamedType();return{kind:i.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(a.a.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(a.a.AMP)||this.peek(a.a.NAME));return t}return this.delimitedMany(a.a.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(a.a.BRACE_L)&&this._lexer.lookahead().kind===a.a.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(a.a.BRACE_L,this.parseFieldDefinition,a.a.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(a.a.COLON);var o=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:i.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:u,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(a.a.PAREN_L,this.parseInputValueDef,a.a.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(a.a.COLON);var r,o=this.parseTypeReference();this.expectOptionalToken(a.a.EQUALS)&&(r=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:i.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:o,defaultValue:r,directives:u,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:i.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:i.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(a.a.EQUALS)?this.delimitedMany(a.a.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:i.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(a.a.BRACE_L,this.parseEnumValueDefinition,a.a.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:i.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:i.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(a.a.BRACE_L,this.parseInputValueDef,a.a.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===a.a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(a.a.BRACE_L,this.parseOperationTypeDefinition,a.a.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:i.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:i.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return{kind:i.a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:i.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.a.AT);var n=this.parseName(),r=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:i.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:o,locations:u,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(a.a.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==s.a[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new o.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw Object(r.a)(this._lexer.source,t.start,"Expected ".concat(m(e),", found ").concat(h(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==a.a.NAME||t.value!==e)throw Object(r.a)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(h(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===a.a.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return Object(r.a)(this._lexer.source,t.start,"Unexpected ".concat(h(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function h(e){var t=e.value;return m(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function m(e){return Object(c.b)(e)?'"'.concat(e,'"'):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(919),i=n(908),o=n(928),a=n(962),u=n(994),s=n(1033),c=n(1056);function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new u.a(e),p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};t||Object(r.a)(0,"Must provide document."),Object(a.a)(e);var f=Object.freeze({}),d=[],h=new c.b(e,t,l,(function(e){if(null!=p.maxErrors&&d.length>=p.maxErrors)throw d.push(new i.a("Too many validation errors, error limit reached. Validation aborted.")),f;d.push(e)})),m=Object(o.d)(n.map((function(e){return e(h)})));try{Object(o.c)(t,Object(u.b)(l,m))}catch(v){if(v!==f)throw v}return d}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.b,r=[],i=new c.a(e,t,(function(e){r.push(e)})),a=n.map((function(e){return e(i)}));return Object(o.c)(e,Object(o.d)(a)),r}function f(e){var t=p(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}function d(e,t){var n=p(e,t);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(0),i=n.n(r),o=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)}}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n._node=null,n._listener=null,n.handleOpen=function(e){s(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return o(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e=this,t=this.state.visible;return i.a.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:s,ref:function(t){t&&(e._node=t)},title:this.props.title},this.props.label,i.a.createElement("svg",{width:"14",height:"8"},i.a.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),i.a.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}(i.a.Component),u=function(e){var t=e.onSelect,n=e.title,r=e.label;return i.a.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:s,onMouseUp:t,title:n},r)};function s(e){e.preventDefault()}},function(e,t,n){"use strict";var r,i=!1;"object"===typeof window&&(i="MacIntel"===window.navigator.platform);var o=((r={})[i?"Cmd-F":"Ctrl-F"]="findPersistent",r["Cmd-G"]="findPersistent",r["Ctrl-G"]="findPersistent",r["Ctrl-Left"]="goSubwordLeft",r["Ctrl-Right"]="goSubwordRight",r["Alt-Left"]="goGroupLeft",r["Alt-Right"]="goGroupRight",r);t.a=o},function(e,t,n){!function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var i=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(e,t,n){var r=e.options.hintOptions,i={};for(var o in h)i[o]=h[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function u(e){return"string"==typeof e?e:e.text}function s(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var u=e.options.extraKeys;if(u)for(var a in u)u.hasOwnProperty(a)&&o(a,u[a]);return i}function c(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function l(r,i){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=r,this.data=i,this.picked=!1;var o=this,a=r.cm,l=a.getInputField().ownerDocument,p=l.defaultView||l.parentWindow,f=this.hints=l.createElement("ul");f.setAttribute("role","listbox"),f.setAttribute("aria-expanded","true"),f.id=this.id;var d=r.cm.options.theme;f.className="CodeMirror-hints "+d,this.selectedHint=i.selectedHint||0;for(var h=i.list,m=0;m<h.length;++m){var v=f.appendChild(l.createElement("li")),g=h[m],y=t+(m!=this.selectedHint?"":" "+n);null!=g.className&&(y=g.className+" "+y),v.className=y,m==this.selectedHint&&v.setAttribute("aria-selected","true"),v.id=this.id+"-"+m,v.setAttribute("role","option"),g.render?g.render(v,i,g):v.appendChild(l.createTextNode(g.displayText||u(g))),v.hintId=m}var b=r.options.container||l.body,D=a.cursorCoords(r.options.alignWithWord?i.from:null),E=D.left,C=D.bottom,T=!0,x=0,A=0;if(b!==l.body){var S=-1!==["absolute","relative","fixed"].indexOf(p.getComputedStyle(b).position)?b:b.offsetParent,w=S.getBoundingClientRect(),O=l.body.getBoundingClientRect();x=w.left-O.left-S.scrollLeft,A=w.top-O.top-S.scrollTop}f.style.left=E-x+"px",f.style.top=C-A+"px";var k=p.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),N=p.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);b.appendChild(f),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var F,_=r.options.moveOnOverlap?f.getBoundingClientRect():new DOMRect,I=!!r.options.paddingForScrollbar&&f.scrollHeight>f.clientHeight+1;if(setTimeout((function(){F=a.getScrollInfo()})),_.bottom-N>0){var j=_.bottom-_.top;if(D.top-(D.bottom-_.top)-j>0)f.style.top=(C=D.top-j-A)+"px",T=!1;else if(j>N){f.style.height=N-5+"px",f.style.top=(C=D.bottom-_.top-A)+"px";var L=a.getCursor();i.from.ch!=L.ch&&(D=a.cursorCoords(L),f.style.left=(E=D.left-x)+"px",_=f.getBoundingClientRect())}}var P,M=_.right-k;if(I&&(M+=a.display.nativeBarWidth),M>0&&(_.right-_.left>k&&(f.style.width=k-5+"px",M-=_.right-_.left-k),f.style.left=(E=D.left-M-x)+"px"),I)for(var B=f.firstChild;B;B=B.nextSibling)B.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=s(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:h.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){P=setTimeout((function(){r.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(P)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();F||(F=a.getScrollInfo());var n=C+F.top-e.top,i=n-(p.pageYOffset||(l.documentElement||l.body).scrollTop);if(T||(i+=f.offsetHeight),i<=t.top||i>=t.bottom)return r.close();f.style.top=n+"px",f.style.left=E+F.left-e.left+"px"}),e.on(f,"dblclick",(function(e){var t=c(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(f,"click",(function(e){var t=c(f,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())})),e.on(f,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var R=this.getSelectedHintRange();return 0===R.from&&0===R.to||this.scrollToActive(),e.signal(i,"select",h[this.selectedHint],f.childNodes[this.selectedHint]),!0}function p(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function f(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}function d(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=p(e,i);function o(i){if(i==r.length)return t(null);f(r[i],e,n,(function(e){e&&e.list.length>0?t(e):o(i+1)}))}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(u(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var r=this;this.debounce=i((function(){r.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;f(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new l(this,t),e.signal(t,"shown")))}},l.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=t]).className+=" "+n,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:d}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),u=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var s=[],c=0;c<n.words.length;c++){var l=n.words[c];l.slice(0,r.length)==r&&s.push(l)}if(s.length)return{list:s,from:a,to:u}})),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(n(909))},function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var u=e.getLineHandle(t.line),s=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var l=i(o),p=!c&&s>=0&&l.test(u.text.charAt(s))&&r[u.text.charAt(s)]||l.test(u.text.charAt(s+1))&&r[u.text.charAt(++s)];if(!p)return null;var f=">"==p.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(s==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,s+1)),h=a(e,n(t.line,s+(f>0?1:0)),f,d,o);return null==h?null:{from:n(t.line,s),to:h&&h.pos,match:h&&h.ch==p.charAt(0),forward:f>0}}function a(e,t,o,a,u){for(var s=u&&u.maxScanLineLength||1e4,c=u&&u.maxScanLines||1e3,l=[],p=i(u),f=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),d=t.line;d!=f;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>s))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var g=h.charAt(m);if(p.test(g)&&(void 0===a||(e.getTokenTypeAt(n(d,m+1))||"")==(a||""))){var y=r[g];if(y&&">"==y.charAt(1)==o>0)l.push(g);else{if(!l.length)return{pos:n(d,m),ch:g};l.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function u(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,u=i&&i.highlightNonMatching,s=[],c=e.listSelections(),l=0;l<c.length;l++){var p=c[l].empty()&&o(e,c[l].head,i);if(p&&(p.match||!1!==u)&&e.getLine(p.from.line).length<=a){var f=p.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(p.from,n(p.from.line,p.from.ch+1),{className:f})),p.to&&e.getLine(p.to.line).length<=a&&s.push(e.markText(p.to,n(p.to.line,p.to.ch+1),{className:f}))}}if(s.length){t&&e.state.focused&&e.focus();var d=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return d;setTimeout(d,800)}}function s(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=u(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",s),t.off("focus",s),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",s),t.on("focus",s),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){u(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(909))},function(e,t,n){!function(e){"use strict";e.defineOption("foldGutter",!1,(function(t,i,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",c),t.off("changes",l),t.off("viewportChange",p),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",l)),i&&(t.state.foldGutter=new n(r(i)),s(t),t.on("gutterClick",c),t.on("changes",l),t.on("viewportChange",p),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",l))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function o(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function a(e,n,r){var a=e.state.foldGutter.options,s=n-1,c=e.foldOption(a,"minFoldSize"),l=e.foldOption(a,"rangeFinder"),p="string"==typeof a.indicatorFolded&&u(a.indicatorFolded),f="string"==typeof a.indicatorOpen&&u(a.indicatorOpen);e.eachLine(n,r,(function(n){++s;var r=null,u=n.gutterMarkers;if(u&&(u=u[a.gutter]),i(e,s)){if(p&&u&&p.test(u.className))return;r=o(a.indicatorFolded)}else{var d=t(s,0),h=l&&l(e,d);if(h&&h.to.line-h.from.line>=c){if(f&&u&&f.test(u.className))return;r=o(a.indicatorOpen)}}(r||u)&&e.setGutterMarker(n,a.gutter,r)}))}function u(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){a(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function c(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var u=i(e,n);u?u.clear():e.foldCode(t(n,0),a)}}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function p(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.from<t.from&&(a(e,n.from,t.from),t.from=n.from),n.to>t.to&&(a(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&a(e,r,r+1)}}}(n(909),n(1116))},function(e,t,n){!function(e){"use strict";e.registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var u=n.ch,s=0;;){var c=u<=0?-1:o.lastIndexOf(a,u-1);if(-1!=c){if(1==s&&c<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(r))return c+1;u=c-1}else{if(1==s)break;s=1,u=o.length}}}var u,s,c,l=a("{"),p=a("[");if(null!=l&&(null==p||p>l))c=l,u="{",s="}";else{if(null==p)return;c=p,u="[",s="]"}var f,d,h=1,m=t.lastLine();e:for(var v=i;v<=m;++v)for(var g=t.getLine(v),y=v==i?c:0;;){var b=g.indexOf(u,y),D=g.indexOf(s,y);if(b<0&&(b=g.length),D<0&&(D=g.length),(y=Math.min(b,D))==g.length)break;if(t.getTokenTypeAt(e.Pos(v,y+1))==r)if(y==b)++h;else if(!--h){f=v,d=y;break e}++y}if(null!=f&&i!=f)return{from:e.Pos(i,c),to:e.Pos(f,d)}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var u=a.end;;){var s=r(u.line+1);if(null==s)break;u=s.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:u}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(909))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function n(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}function r(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var i=e.getCursor();t(e,n(e),e.phrase("Jump to line:"),i.line+1+":"+i.ch,(function(t){var n;if(t)if(n=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(r(e,n[1]),Number(n[2]));else if(n=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var o=Math.round(e.lineCount()*Number(n[1])/100);/^[-+]/.test(n[1])&&(o=i.line+o+1),e.setCursor(o-1,i.ch)}else(n=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(r(e,n[1]),i.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(909),n(930))},function(e,t,n){!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,u="start",s=r.ch,c=s,l=i<0?0:o.length,p=0;c!=l;c+=i,p++){var f=o.charAt(i<0?c-1:c),d="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==u)"o"!=d?(u="in",a=d):s=c+i;else if("in"==u&&a!=d){if("w"==a&&"W"==d&&i<0&&c--,"W"==a&&"w"==d&&i>0){if(c==s+1){a="w";continue}c--}break}}return n(r.line,c)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var u=t.listSelections()[a].head;if(!(u.line<=o)){var s=n(u.line+(r?0:1),0);t.replaceRange("\n",s,null,"+insertLine"),t.indentLine(s.line,null,!0),i.push({head:s,anchor:s}),o=u.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function a(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function u(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),u=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,u.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var s={anchor:a,head:u};r.push(o),r.push(s)}e.setSelections(r)}function s(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),u=o.line;u<=a.line;++u)a.line>o.line&&u==a.line&&0==a.ch||r.push({anchor:u==o.line?o:n(u,0),head:u==a.line?a:n(u)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return o(e,!1)},t.insertLineBefore=function(e){return o(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var u=a(t,r);if(!u.word)return;t.setSelection(u.from,u.to),o=!0}else{var c=t.getRange(r,i),l=o?new RegExp("\\b"+c+"\\b"):c,p=t.getSearchCursor(l,i),f=p.findNext();if(f||(f=(p=t.getSearchCursor(l,n(t.firstLine(),0))).findNext()),!f||s(t.listSelections(),p.from(),p.to()))return;t.addSelection(p.from(),p.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){u(e,-1)},t.addCursorToNextLine=function(e){u(e,1)};var c="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],u=a.head,s=t.scanForBracket(u,-1);if(!s)return!1;for(;;){var l=t.scanForBracket(u,1);if(!l)return!1;if(l.ch==c.charAt(c.indexOf(s.ch)+1)){var p=n(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(p,a.from())||0!=e.cmpPos(l.pos,a.to())){i.push({anchor:p,head:l.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}u=n(l.pos.line,l.pos.ch+1)}}return t.setSelections(i),!0}function p(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function f(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),u=[],s=0;s<a.length;s++){var c=a[s];if(!c.empty()){for(var l=c.from().line,p=c.to().line;s<a.length-1&&a[s+1].from().line==p;)p=a[++s].to().line;a[s].to().ch||p--,u.push(l,p)}}u.length?o=!0:u.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<u.length;a+=2){var s=u[a],c=u[a+1],l=n(s,0),p=n(c),f=t.getRange(l,p,!1);r?f.sort((function(e,t){return e<t?-i:e==t?0:i})):f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(f,l,p),o&&e.push({anchor:l,head:n(c+1,0)})}o&&t.setSelections(e,0)}))}function d(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],o=[],u=0;u<r.length;u++)(c=r[u]).empty()?(i.push(u),o.push("")):o.push(n(t.getRange(c.from(),c.to())));var s;for(t.replaceSelections(o,"around","case"),u=i.length-1;u>=0;u--){var c=r[i[u]];if(!(s&&e.cmpPos(c.head,s)>0)){var l=a(t,c.head);s=l.from,t.replaceRange(n(l.word),l.from,l.to)}}}))}function h(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function m(e,t){var r=h(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,p(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,p(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],u=0;u<r.length;u++){var s=r[u],c=s.from().line-1,l=s.to().line;a.push({anchor:n(s.anchor.line-1,s.anchor.ch),head:n(s.head.line-1,s.head.ch)}),0!=s.to().ch||s.empty()||--l,c>o?i.push(c,l):i.length&&(i[i.length-1]=l),o=l}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],u=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+u,n(t.lastLine()),null,"+swapLine"):t.replaceRange(u+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var u=r[a],s=u.to().line+1,c=u.from().line;0!=u.to().ch||u.empty()||s--,s<o?i.push(s,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),u=a.line,s=o.to().line;i<t.length-1&&t[i+1].from().line==s;)s=t[++i].to().line;r.push({start:u,end:s,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,u=r[o],s=u.anchor&&n(u.anchor.line-t,u.anchor.ch),c=u.start;c<=u.end;c++){var l=c-t;c==u.end&&(a=n(l,e.getLine(l).length+1)),l<e.lastLine()&&(e.replaceRange(" ",n(l),n(l+1,/^\s*/.exec(e.getLine(l+1))[0].length)),++t)}i.push({anchor:s||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){f(e,!0,1)},t.reverseSortLines=function(e){f(e,!0,-1)},t.sortLinesInsensitive=function(e){f(e,!1,1)},t.reverseSortLinesInsensitive=function(e){f(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),u=0;u<a.length;u++)if(a[u].sublimeBookmark){a[u].clear();for(var s=0;s<n.length;s++)n[s]==a[u]&&n.splice(s--,1);break}u==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,u=t.getRange({line:a.line,ch:0},a),s=e.countColumn(u,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(u&&!/\S/.test(u)&&s%i==0){var l=new n(a.line,e.findColumn(u,s-i,i));l.ch!=a.ch&&(c=l)}t.replaceRange("",c,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){d(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){d(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var v=e.keyMap;v.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(v.macSublime),v.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(v.pcSublime);var g=v.default==v.macDefault;v.sublime=g?v.macSublime:v.pcSublime}(n(909),n(929),n(950))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(980),i=n(1014),o=n(938),a=n(982);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(915),i=n(985);function o(e){var t=e.prototype.toJSON;"function"===typeof t||Object(r.a)(0),e.prototype.inspect=t,i.a&&(e.prototype[i.a]=t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(932);function i(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,i=Object(r.a)(e);n<i.length;n++){var o=i[n],a=o[0],u=o[1];t[a]=u}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(989),i=n(917),o=n(912),a=n(915),u=n(922),s=n(960),c=n(914),l=n(924),p=n(911);function f(e,t){if(Object(p.L)(t)){var n=f(e,t.ofType);return(null===n||void 0===n?void 0:n.kind)===c.a.NULL?null:n}if(null===e)return{kind:c.a.NULL};if(void 0===e)return null;if(Object(p.J)(t)){var h=t.ofType,m=Object(s.a)(e);if(null!=m){for(var v=[],g=0;g<m.length;g++){var y=f(m[g],h);null!=y&&v.push(y)}return{kind:c.a.LIST,values:v}}return f(e,h)}if(Object(p.F)(t)){if(!Object(u.a)(e))return null;for(var b=[],D=0,E=Object(i.a)(t.getFields());D<E.length;D++){var C=E[D],T=f(e[C.name],C.type);T&&b.push({kind:c.a.OBJECT_FIELD,name:{kind:c.a.NAME,value:C.name},value:T})}return{kind:c.a.OBJECT,fields:b}}if(Object(p.I)(t)){var x=t.serialize(e);if(null==x)return null;if("boolean"===typeof x)return{kind:c.a.BOOLEAN,value:x};if("number"===typeof x&&Object(r.a)(x)){var A=String(x);return d.test(A)?{kind:c.a.INT,value:A}:{kind:c.a.FLOAT,value:A}}if("string"===typeof x)return Object(p.E)(t)?{kind:c.a.ENUM,value:x}:t===l.c&&d.test(x)?{kind:c.a.INT,value:x}:{kind:c.a.STRING,value:x};throw new TypeError("Cannot convert value to AST: ".concat(Object(o.a)(x),"."))}Object(a.a)(0,"Unexpected input type: "+Object(o.a)(t))}var d=/^-?(?:0|[1-9][0-9]*)$/},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(921);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==i(e))return null;if(Array.isArray(e))return e.map(t);var n=e[r.b];if("function"===typeof n){for(var o,a=n.call(e),u=[],s=0;!(o=a.next()).done;++s)u.push(t(o.value,s));return u}var c=e.length;if("number"===typeof c&&c>=0&&c%1===0){for(var l=[],p=0;p<c;++p){if(!Object.prototype.hasOwnProperty.call(e,p))return null;l.push(t(e[String(p)],p))}return l}return null}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(911);function i(e,t){return e===t||(Object(r.L)(e)&&Object(r.L)(t)||!(!Object(r.J)(e)||!Object(r.J)(t)))&&i(e.ofType,t.ofType)}function o(e,t,n){return t===n||(Object(r.L)(n)?!!Object(r.L)(t)&&o(e,t.ofType,n.ofType):Object(r.L)(t)?o(e,t.ofType,n):Object(r.J)(n)?!!Object(r.J)(t)&&o(e,t.ofType,n.ofType):!Object(r.J)(t)&&(Object(r.C)(n)&&(Object(r.H)(t)||Object(r.N)(t))&&e.isSubType(n,t)))}function a(e,t,n){return t===n||(Object(r.C)(t)?Object(r.C)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!Object(r.C)(n)&&e.isSubType(n,t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n(935),i=n(917),o=n(912),a=n(908),u=n(963),s=n(1055),c=n(961),l=n(936),p=n(916),f=n(918),d=n(911);function h(e){if(Object(l.b)(e),e.__validationErrors)return e.__validationErrors;var t=new v(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!Object(d.N)(n)){var r;e.reportError("Query root type must be Object type, it cannot be ".concat(Object(o.a)(n),"."),null!==(r=g(t,"query"))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);var i,a=t.getMutationType();a&&!Object(d.N)(a)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(Object(o.a)(a),"."),null!==(i=g(t,"mutation"))&&void 0!==i?i:a.astNode);var u,s=t.getSubscriptionType();s&&!Object(d.N)(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(Object(o.a)(s),"."),null!==(u=g(t,"subscription"))&&void 0!==u?u:s.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t<n.length;t++){var r=n[t];if(Object(f.h)(r)){y(e,r);for(var i=0,a=r.args;i<a.length;i++){var u,s=a[i];if(y(e,s),Object(d.G)(s.type)||e.reportError("The type of @".concat(r.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat(Object(o.a)(s.type),"."),s.astNode),Object(d.P)(s)&&null!=s.deprecationReason)e.reportError("Required argument @".concat(r.name,"(").concat(s.name,":) cannot be deprecated."),[N(s.astNode),null===(u=s.astNode)||void 0===u?void 0:u.type])}}else e.reportError("Expected directive but got: ".concat(Object(o.a)(r),"."),null===r||void 0===r?void 0:r.astNode)}}(t),function(e){for(var t=function(e){var t=Object.create(null),n=[],r=Object.create(null);return o;function o(a){if(!t[a.name]){t[a.name]=!0,r[a.name]=n.length;for(var u=Object(i.a)(a.getFields()),s=0;s<u.length;s++){var c=u[s];if(Object(d.L)(c.type)&&Object(d.F)(c.type.ofType)){var l=c.type.ofType,p=r[l.name];if(n.push(c),void 0===p)o(l);else{var f=n.slice(p),h=f.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(l.name,'" within itself through a series of non-null fields: "').concat(h,'".'),f.map((function(e){return e.astNode})))}n.pop()}}r[a.name]=void 0}}}(e),n=e.schema.getTypeMap(),r=0,a=Object(i.a)(n);r<a.length;r++){var u=a[r];Object(d.K)(u)?(Object(p.isIntrospectionType)(u)||y(e,u),Object(d.N)(u)||Object(d.H)(u)?(b(e,u),D(e,u)):Object(d.T)(u)?T(e,u):Object(d.E)(u)?x(e,u):Object(d.F)(u)&&(A(e,u),t(u))):e.reportError("Expected GraphQL named type but got: ".concat(Object(o.a)(u),"."),u.astNode)}}(t);var n=t.getErrors();return e.__validationErrors=n,n}function m(e){var t=h(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join("\n\n"))}var v=function(){function e(e){this._errors=[],this.schema=e}var t=e.prototype;return t.reportError=function(e,t){var n=Array.isArray(t)?t.filter(Boolean):t;this.addError(new a.a(e,n))},t.addError=function(e){this._errors.push(e)},t.getErrors=function(){return this._errors},e}();function g(e,t){for(var n=w(e,(function(e){return e.operationTypes})),r=0;r<n.length;r++){var i=n[r];if(i.operation===t)return i.type}}function y(e,t){var n=Object(s.b)(t.name);n&&e.addError(Object(u.a)(n,t.astNode))}function b(e,t){var n=Object(i.a)(t.getFields());0===n.length&&e.reportError("Type ".concat(t.name," must define one or more fields."),S(t));for(var r=0;r<n.length;r++){var a,u=n[r];if(y(e,u),!Object(d.O)(u.type))e.reportError("The type of ".concat(t.name,".").concat(u.name," must be Output Type ")+"but got: ".concat(Object(o.a)(u.type),"."),null===(a=u.astNode)||void 0===a?void 0:a.type);for(var s=0,c=u.args;s<c.length;s++){var l,p,f=c[s],h=f.name;if(y(e,f),!Object(d.G)(f.type))e.reportError("The type of ".concat(t.name,".").concat(u.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat(Object(o.a)(f.type),"."),null===(l=f.astNode)||void 0===l?void 0:l.type);if(Object(d.P)(f)&&null!=f.deprecationReason)e.reportError("Required argument ".concat(t.name,".").concat(u.name,"(").concat(h,":) cannot be deprecated."),[N(f.astNode),null===(p=f.astNode)||void 0===p?void 0:p.type])}}}function D(e,t){for(var n=Object.create(null),r=0,i=t.getInterfaces();r<i.length;r++){var a=i[r];Object(d.H)(a)?t!==a?n[a.name]?e.reportError("Type ".concat(t.name," can only implement ").concat(a.name," once."),O(t,a)):(n[a.name]=!0,C(e,t,a),E(e,t,a)):e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),O(t,a)):e.reportError("Type ".concat(Object(o.a)(t)," must only implement Interface types, ")+"it cannot implement ".concat(Object(o.a)(a),"."),O(t,a))}}function E(e,t,n){for(var a=t.getFields(),u=0,s=Object(i.a)(n.getFields());u<s.length;u++){var l=s[u],p=l.name,f=a[p];if(f){var h,m;if(!Object(c.c)(e.schema,f.type,l.type))e.reportError("Interface field ".concat(n.name,".").concat(p," expects type ")+"".concat(Object(o.a)(l.type)," but ").concat(t.name,".").concat(p," ")+"is type ".concat(Object(o.a)(f.type),"."),[null===(h=l.astNode)||void 0===h?void 0:h.type,null===(m=f.astNode)||void 0===m?void 0:m.type]);for(var v=function(i,a){var u,s,l=a[i],d=l.name,h=Object(r.a)(f.args,(function(e){return e.name===d}));if(!h)return e.reportError("Interface field argument ".concat(n.name,".").concat(p,"(").concat(d,":) expected but ").concat(t.name,".").concat(p," does not provide it."),[l.astNode,f.astNode]),"continue";Object(c.b)(l.type,h.type)||e.reportError("Interface field argument ".concat(n.name,".").concat(p,"(").concat(d,":) ")+"expects type ".concat(Object(o.a)(l.type)," but ")+"".concat(t.name,".").concat(p,"(").concat(d,":) is type ")+"".concat(Object(o.a)(h.type),"."),[null===(u=l.astNode)||void 0===u?void 0:u.type,null===(s=h.astNode)||void 0===s?void 0:s.type])},g=0,y=l.args;g<y.length;g++)v(g,y);for(var b=function(i,o){var a=o[i],u=a.name;!Object(r.a)(l.args,(function(e){return e.name===u}))&&Object(d.P)(a)&&e.reportError("Object field ".concat(t.name,".").concat(p," includes required argument ").concat(u," that is missing from the Interface field ").concat(n.name,".").concat(p,"."),[a.astNode,l.astNode])},D=0,E=f.args;D<E.length;D++)b(D,E)}else e.reportError("Interface field ".concat(n.name,".").concat(p," expected but ").concat(t.name," does not provide it."),[l.astNode].concat(S(t)))}}function C(e,t,n){for(var r=t.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];-1===r.indexOf(a)&&e.reportError(a===t?"Type ".concat(t.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(O(n,a),O(t,n)))}}function T(e,t){var n=t.getTypes();0===n.length&&e.reportError("Union type ".concat(t.name," must define one or more member types."),S(t));for(var r=Object.create(null),i=0;i<n.length;i++){var a=n[i];r[a.name]?e.reportError("Union type ".concat(t.name," can only include type ").concat(a.name," once."),k(t,a.name)):(r[a.name]=!0,Object(d.N)(a)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat(Object(o.a)(a),"."),k(t,String(a))))}}function x(e,t){var n=t.getValues();0===n.length&&e.reportError("Enum type ".concat(t.name," must define one or more values."),S(t));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;y(e,i),"true"!==o&&"false"!==o&&"null"!==o||e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function A(e,t){var n=Object(i.a)(t.getFields());0===n.length&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),S(t));for(var r=0;r<n.length;r++){var a,u,s=n[r];if(y(e,s),!Object(d.G)(s.type))e.reportError("The type of ".concat(t.name,".").concat(s.name," must be Input Type ")+"but got: ".concat(Object(o.a)(s.type),"."),null===(a=s.astNode)||void 0===a?void 0:a.type);if(Object(d.Q)(s)&&null!=s.deprecationReason)e.reportError("Required input field ".concat(t.name,".").concat(s.name," cannot be deprecated."),[N(s.astNode),null===(u=s.astNode)||void 0===u?void 0:u.type])}}function S(e){var t=e.astNode,n=e.extensionASTNodes;return t?n?[t].concat(n):[t]:null!==n&&void 0!==n?n:[]}function w(e,t){for(var n=[],r=0,i=S(e);r<i.length;r++){var o,a=i[r];n=n.concat(null!==(o=t(a))&&void 0!==o?o:[])}return n}function O(e,t){return w(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===t.name}))}function k(e,t){return w(e,(function(e){return e.types})).filter((function(e){return e.name.value===t}))}function N(e){var t;return null===e||void 0===e||null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return e.name.value===f.b.name}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(912),i=n(908);function o(e,t,n){var o,a=e instanceof Error?e:new Error("Unexpected error value: "+Object(r.a)(e));return Array.isArray(a.path)?a:new i.a(a.message,null!==(o=a.nodes)&&void 0!==o?o:t,a.source,a.positions,n,a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=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)}}(),a=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 o(t,e),t.prototype.render=function(){var e=this.state.error;return i.a.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}(i.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n.n(r);function o(e){var t=e.children;return i.a.createElement("div",{className:"toolbar-button-group"},t)}},function(e,t,n){"use strict";e.exports=n(1060)},function(e,t){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]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.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))}))}))},r.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},r.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},r.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},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.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},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.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},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(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}r.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},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.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=r},function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:s,Enter:c};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(e){return function(t){return f(t,e)}}function u(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function s(t){var i=u(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var c=d(t,a[s].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(s=a.length-1;s>=0;s--){var l=a[s].head;t.replaceRange("",n(l.line,l.ch-1),n(l.line,l.ch+1),"+delete")}}function c(t){var n=u(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var s=d(t,o[a].head);if(!s||i.indexOf(s)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),l(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}function l(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var u=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:u,head:u})}e.setSelections(n,i)}function p(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function f(t,i){var o=u(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),s=a.indexOf(i);if(-1==s)return e.Pass;for(var c,f=r(o,"closeBefore"),d=r(o,"triples"),m=a.charAt(s+1)==i,v=t.listSelections(),g=s%2==0,y=0;y<v.length;y++){var b,D=v[y],E=D.head,C=t.getRange(E,n(E.line,E.ch+1));if(g&&!D.empty())b="surround";else if(!m&&g||C!=i)if(m&&E.ch>1&&d.indexOf(i)>=0&&t.getRange(n(E.line,E.ch-2),E)==i+i){if(E.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(E.line,E.ch-2))))return e.Pass;b="addFour"}else if(m){var T=0==E.ch?" ":t.getRange(n(E.line,E.ch-1),E);if(e.isWordChar(C)||T==i||e.isWordChar(T))return e.Pass;b="both"}else{if(!g||!(0===C.length||/\s/.test(C)||f.indexOf(C)>-1))return e.Pass;b="both"}else b=m&&h(t,E)?"both":d.indexOf(i)>=0&&t.getRange(E,n(E.line,E.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=b)return e.Pass}else c=b}var x=s%2?a.charAt(s-1):i,A=s%2?i:a.charAt(s+1);t.operation((function(){if("skip"==c)l(t,1);else if("skipThree"==c)l(t,3);else if("surround"==c){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=x+e[n]+A;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=p(e[n]);t.setSelections(e)}else"both"==c?(t.replaceSelection(x+A,null),t.triggerElectric(x+A),l(t,-1)):"addFour"==c&&(t.replaceSelection(x+x+x+x,"before"),l(t,1))}))}function d(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function h(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(909))},function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function r(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}function i(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&i(e),e.style.opacity=0,setTimeout((function(){i(e)}),600))}function a(t,n,i,a){var u=r(t,n,i);function s(){e.off(a,"mouseout",s),u&&(o(u),u=null)}var c=setInterval((function(){if(u)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!u)return clearInterval(c)}),400);e.on(a,"mouseout",s)}function u(e,t,n){for(var r in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},s)this.options[r]=s[r];for(var r in t)s.hasOwnProperty(r)?null!=t[r]&&(this.options[r]=t[r]):t.options||(this.linterOptions[r]=t[r]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){D(e,t)},this.waitingFor=0}var s={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function c(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&l(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function l(e){e.eachLine((function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])}))}function p(t,n,r,i,o){var u=document.createElement("div"),s=u;return u.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+r,i&&((s=u.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=o&&e.on(s,"mouseover",(function(e){a(t,e,n,s)})),u}function f(e,t){return"error"==e?e:t}function d(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}function h(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,"undefined"!=typeof e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function m(t,n){var r=t.state.lint,i=++r.waitingFor;function o(){i=-1,t.off("change",o)}t.on("change",o),n(t.getValue(),(function(n,a){t.off("change",o),r.waitingFor==i&&(a&&n instanceof e&&(n=a),t.operation((function(){g(t,n)})))}),r.linterOptions,t)}function v(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)m(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){g(t,e)}))})):t.operation((function(){g(t,o)}))}}}function g(e,r){var i=e.state.lint;if(i){var o=i.options;c(e);for(var a=d(r),u=0;u<a.length;++u){var s=a[u];if(s){var l=[];s=s.filter((function(e){return!(l.indexOf(e.message)>-1)&&l.push(e.message)}));for(var m=null,v=i.hasGutter&&document.createDocumentFragment(),g=0;g<s.length;++g){var y=s[g],b=y.severity;b||(b="error"),m=f(m,b),o.formatAnnotation&&(y=o.formatAnnotation(y)),i.hasGutter&&v.appendChild(h(y)),y.to&&i.marked.push(e.markText(y.from,y.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+b,__annotation:y}))}i.hasGutter&&e.setGutterMarker(u,t,p(e,v,m,a[u].length>1,o.tooltips)),o.highlightLines&&e.addLineClass(u,"wrap",n+m)}}o.onUpdateLinting&&o.onUpdateLinting(r,a,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){v(e)}),t.options.delay))}function b(e,t,n){for(var r=n.target||n.srcElement,i=document.createDocumentFragment(),o=0;o<t.length;o++){var u=t[o];i.appendChild(h(u))}a(e,n,i,r)}function D(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2,a=e.findMarksAt(e.coordsChar({left:i,top:o},"client")),u=[],s=0;s<a.length;++s){var c=a[s].__annotation;c&&u.push(c)}u.length&&b(e,u,t)}}e.defineOption("lint",!1,(function(n,r,i){if(i&&i!=e.Init&&(c(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",y),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var o=n.getOption("gutters"),a=!1,s=0;s<o.length;++s)o[s]==t&&(a=!0);var l=n.state.lint=new u(n,r,a);l.options.lintOnChange&&n.on("change",y),0!=l.options.tooltips&&"gutter"!=l.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",l.onMouseOver),v(n)}})),e.defineExtension("performLint",(function(){v(this)}))}(n(909))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(917),i=n(925),o=n(912),a=n(915),u=n(914),s=n(911);function c(e,t,n){if(e){if(e.kind===u.a.VARIABLE){var p=e.name.value;if(null==n||void 0===n[p])return;var f=n[p];if(null===f&&Object(s.L)(t))return;return f}if(Object(s.L)(t)){if(e.kind===u.a.NULL)return;return c(e,t.ofType,n)}if(e.kind===u.a.NULL)return null;if(Object(s.J)(t)){var d=t.ofType;if(e.kind===u.a.LIST){for(var h=[],m=0,v=e.values;m<v.length;m++){var g=v[m];if(l(g,n)){if(Object(s.L)(d))return;h.push(null)}else{var y=c(g,d,n);if(void 0===y)return;h.push(y)}}return h}var b=c(e,d,n);if(void 0===b)return;return[b]}if(Object(s.F)(t)){if(e.kind!==u.a.OBJECT)return;for(var D=Object.create(null),E=Object(i.a)(e.fields,(function(e){return e.name.value})),C=0,T=Object(r.a)(t.getFields());C<T.length;C++){var x=T[C],A=E[x.name];if(A&&!l(A.value,n)){var S=c(A.value,x.type,n);if(void 0===S)return;D[x.name]=S}else if(void 0!==x.defaultValue)D[x.name]=x.defaultValue;else if(Object(s.L)(x.type))return}return D}if(Object(s.I)(t)){var w;try{w=t.parseLiteral(e,n)}catch(O){return}if(void 0===w)return;return w}Object(a.a)(0,"Unexpected input type: "+Object(o.a)(t))}}function l(e,t){return e.kind===u.a.VARIABLE&&(null==t||void 0===t[e.name.value])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(937),a=n(948),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(){return s=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},s.apply(this,arguments)},c=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(e,t){var r=t.keyCode;n.editor&&(r>=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){Object(o.a)(e,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return u(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(909),n(949),n(950),n(970),n(952),n(951),n(971),n(929),n(953),n(930),n(954),n(1126),n(1128),n(1130);var t=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:s({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},a.a)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(909),this.editor){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 i.a.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.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(i.a.Component)},function(e,t,n){"use strict";function r(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]}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(944),i=n(994),o=n(928),a=n(920),u=n(911),s=n(914);function c(e,t,n){var u,s=[];if(!e||!t)return{insertions:s,result:t};try{u=Object(r.a)(t)}catch(h){return{insertions:s,result:t}}var c=n||l,d=new i.a(e);return Object(o.c)(u,{leave:function(e){d.leave(e)},enter:function(e){if(d.enter(e),"Field"===e.kind&&!e.selectionSet){var n=p(function(e){if(e)return e}(d.getType()),c);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);s.push({index:e.loc.end,string:" "+Object(a.a)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:s,result:f(t,s)}}function l(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){Object(u.I)(t[e].type)&&n.push(e)})),n}function p(e,t){var n=Object(u.A)(e);if(e&&!Object(u.I)(e)){var r=t(n);if(Array.isArray(r)&&0!==r.length&&"getFields"in n)return{kind:s.a.SELECTION_SET,selections:r.map((function(e){var r=n.getFields()[e],i=r?r.type:null;return{kind:s.a.FIELD,name:{kind:s.a.NAME,value:e},selectionSet:p(i,t)}}))}}}function f(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(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(911),i=n(914),o=n(994),a=n(928),u=function(){return u=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},u.apply(this,arguments)},s=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.")},c=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(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},l=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e};function p(e,t,n){var o,a,u,c=n?Object(r.A)(n).name:null,f=[],d=[];try{for(var h=s(t),m=h.next();!m.done;m=h.next()){var v=m.value;if("FragmentSpread"===v.kind){var g=v.name.value;if(!v.directives||0===v.directives.length){if(d.indexOf(g)>=0)continue;d.push(g)}var y=e[v.name.value];if(y){var b=y.typeCondition,D=y.directives,E=y.selectionSet;v={kind:i.a.INLINE_FRAGMENT,typeCondition:b,directives:D,selectionSet:E}}}if(v.kind===i.a.INLINE_FRAGMENT&&(!v.directives||0===(null===(u=v.directives)||void 0===u?void 0:u.length))){var C=v.typeCondition?v.typeCondition.name.value:null;if(!C||C===c){f.push.apply(f,l(p(e,v.selectionSet.selections,n)));continue}}f.push(v)}}catch(T){o={error:T}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return f}function f(e,t){var n,r,c=t?new o.a(t):null,f=Object.create(null);try{for(var d=s(e.definitions),h=d.next();!h.done;h=d.next()){var m=h.value;m.kind===i.a.FRAGMENT_DEFINITION&&(f[m.name.value]=m)}}catch(g){n={error:g}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var v={SelectionSet:function(e){var t=c?c.getParentType():null,n=e.selections;return n=function(e,t){var n,r,i=new Map,o=[];try{for(var a=s(e),c=a.next();!c.done;c=a.next()){var p=c.value;if("Field"===p.kind){var f=t(p),d=i.get(f);if(p.directives&&p.directives.length){var h=u({},p);o.push(h)}else d&&d.selectionSet&&p.selectionSet?d.selectionSet.selections=l(d.selectionSet.selections,p.selectionSet.selections):d||(h=u({},p),i.set(f,h),o.push(h))}else o.push(p)}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}(n=p(f,n,t),(function(e){return e.alias?e.alias.value:e.name.value})),u(u({},e),{selections:n})},FragmentDefinition:function(){return null}};return Object(a.c)(e,c?Object(o.b)(c,v):v)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(0),i=n.n(r),o=n(911);function a(e){var t=e.onClick?e.onClick:function(){return null};return u(e.type,t)}function u(e,t){return e instanceof o.e?i.a.createElement("span",null,u(e.ofType,t),"!"):e instanceof o.d?i.a.createElement("span",null,"[",u(e.ofType,t),"]"):i.a.createElement("a",{className:"type-name",onClick:function(n){n.preventDefault(),t(e,n)},href:"#"},null===e||void 0===e?void 0:e.name)}var s=n(920),c=n(959);function l(e){var t,n=e.field;return"defaultValue"in n&&void 0!==n.defaultValue?i.a.createElement("span",null," = ",i.a.createElement("span",{className:"arg-default-value"},(t=Object(c.a)(n.defaultValue,n.type))?Object(s.a)(t):"")):null}function p(e){var t=e.arg,n=e.onClickType,r=e.showDefaultValue;return i.a.createElement("span",{className:"arg"},i.a.createElement("span",{className:"arg-name"},t.name),": ",i.a.createElement(a,{type:t.type,onClick:n}),!1!==r&&i.a.createElement(l,{field:t}))}function f(e){var t=e.directive;return i.a.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var d=n(966),h=new(n.n(d).a)({linkify:!0});function m(e){var t=e.markdown,n=e.className;return t?i.a.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:h.render(t)}}):i.a.createElement("div",null)}var v=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(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function g(e){var t,n,r,o=e.field,u=e.onClickType,s=v(i.a.useState(!1),2),c=s[0],l=s[1];if(o&&"args"in o&&o.args.length>0){t=i.a.createElement("div",{id:"doc-args",className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"arguments"),o.args.filter((function(e){return!e.deprecationReason})).map((function(e){return i.a.createElement("div",{key:e.name,className:"doc-category-item"},i.a.createElement("div",null,i.a.createElement(p,{arg:e,onClickType:u})),i.a.createElement(m,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i.a.createElement(m,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})));var d=o.args.filter((function(e){return Boolean(e.deprecationReason)}));d.length>0&&(n=i.a.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"deprecated arguments"),c?d.map((function(e,t){return i.a.createElement("div",{key:t},i.a.createElement("div",null,i.a.createElement(p,{arg:e,onClickType:u})),i.a.createElement(m,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&i.a.createElement(m,{className:"doc-deprecation",markdown:null===e||void 0===e?void 0:e.deprecationReason}))})):i.a.createElement("button",{className:"show-btn",onClick:function(){return l(!c)}},"Show deprecated arguments...")))}return o&&o.astNode&&o.astNode.directives&&o.astNode.directives.length>0&&(r=i.a.createElement("div",{id:"doc-directives",className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"directives"),o.astNode.directives.map((function(e){return i.a.createElement("div",{key:e.name.value,className:"doc-category-item"},i.a.createElement("div",null,i.a.createElement(f,{directive:e})))})))),i.a.createElement("div",null,i.a.createElement(m,{className:"doc-type-description",markdown:(null===o||void 0===o?void 0:o.description)||"No Description"}),o&&"deprecationReason"in o&&i.a.createElement(m,{className:"doc-deprecation",markdown:null===o||void 0===o?void 0:o.deprecationReason}),i.a.createElement("div",{className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"type"),i.a.createElement(a,{type:null===o||void 0===o?void 0:o.type,onClick:u})),t,r,n)}function y(e){var t=e.schema,n=e.onClickType,r=t.getQueryType(),o=t.getMutationType&&t.getMutationType(),u=t.getSubscriptionType&&t.getSubscriptionType();return i.a.createElement("div",null,i.a.createElement(m,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),i.a.createElement("div",{className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"root types"),i.a.createElement("div",{className:"doc-category-item"},i.a.createElement("span",{className:"keyword"},"query"),": ",i.a.createElement(a,{type:r,onClick:n})),o&&i.a.createElement("div",{className:"doc-category-item"},i.a.createElement("span",{className:"keyword"},"mutation"),": ",i.a.createElement(a,{type:o,onClick:n})),u&&i.a.createElement("div",{className:"doc-category-item"},i.a.createElement("span",{className:"keyword"},"subscription"),": ",i.a.createElement(a,{type:u,onClick:n}))))}var b=n(1008),D=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.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=Object(b.a)(200,n.props.onSearch),n}return D(t,e),t.prototype.render=function(){return i.a.createElement("label",{className:"search-box"},i.a.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"\u26b2"),i.a.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&i.a.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"\u2715"))},t}(i.a.Component),C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=function(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.")},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return C(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,r=this.props.withinType,o=this.props.schema,u=this.props.onClickType,s=this.props.onClickField,c=[],l=[],f=[],d=o.getTypeMap(),h=Object.keys(d);r&&(h=h.filter((function(e){return e!==r.name}))).unshift(r.name);var m=function(e){if(c.length+l.length+f.length>=100)return"break";var t=d[e];if(r!==t&&S(e,n)&&l.push(i.a.createElement("div",{className:"doc-category-item",key:e},i.a.createElement(a,{type:t,onClick:u}))),t&&"getFields"in t){var o=t.getFields();Object.keys(o).forEach((function(l){var d,h=o[l];if(!S(l,n)){if(!("args"in h)||!h.args.length)return;if(0===(d=h.args.filter((function(e){return S(e.name,n)}))).length)return}var m=i.a.createElement("div",{className:"doc-category-item",key:e+"."+l},r!==t&&[i.a.createElement(a,{key:"type",type:t,onClick:u}),"."],i.a.createElement("a",{className:"field-name",onClick:function(e){return s(h,t,e)}},h.name),d&&["(",i.a.createElement("span",{key:"args"},d.map((function(e){return i.a.createElement(p,{key:e.name,arg:e,onClickType:u,showDefaultValue:!1})}))),")"]);r===t?c.push(m):f.push(m)}))}};try{for(var v=T(h),g=v.next();!g.done;g=v.next()){if("break"===m(g.value))break}}catch(y){e={error:y}}finally{try{g&&!g.done&&(t=v.return)&&t.call(v)}finally{if(e)throw e.error}}return c.length+l.length+f.length===0?i.a.createElement("span",{className:"doc-alert-text"},"No results found."):r&&l.length+f.length>0?i.a.createElement("div",null,c,i.a.createElement("div",{className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"other results"),l,f)):i.a.createElement("div",{className:"doc-search-items"},c,l,f)},t}(i.a.Component),A=x;function S(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 w=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)}}(),O=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 w(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,r,u,s=this.props.schema,c=this.props.type,l=this.props.onClickType,p=this.props.onClickField,f=null,d=[];if(c instanceof o.h?(f="possible types",d=s.getPossibleTypes(c)):c instanceof o.c?(f="implementations",d=s.getPossibleTypes(c)):c instanceof o.f&&(f="implements",d=c.getInterfaces()),d&&d.length>0&&(e=i.a.createElement("div",{id:"doc-types",className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},f),d.map((function(e){return i.a.createElement("div",{key:e.name,className:"doc-category-item"},i.a.createElement(a,{type:e,onClick:l}))})))),c&&"getFields"in c){var h=c.getFields(),v=Object.keys(h).map((function(e){return h[e]}));t=i.a.createElement("div",{id:"doc-fields",className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"fields"),v.filter((function(e){return!e.deprecationReason})).map((function(e){return i.a.createElement(k,{key:e.name,type:c,field:e,onClickType:l,onClickField:p})})));var g=v.filter((function(e){return Boolean(e.deprecationReason)}));g.length>0&&(n=i.a.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?g.map((function(e){return i.a.createElement(k,{key:e.name,type:c,field:e,onClickType:l,onClickField:p})})):i.a.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(c instanceof o.a){var y=c.getValues();r=i.a.createElement("div",{className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"values"),y.filter((function(e){return Boolean(!e.deprecationReason)})).map((function(e){return i.a.createElement(N,{key:e.name,value:e})})));var b=y.filter((function(e){return Boolean(e.deprecationReason)}));b.length>0&&(u=i.a.createElement("div",{className:"doc-category"},i.a.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?b.map((function(e){return i.a.createElement(N,{key:e.name,value:e})})):i.a.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return i.a.createElement("div",null,i.a.createElement(m,{className:"doc-type-description",markdown:"description"in c&&c.description||"No Description"}),c instanceof o.f&&e,t,n,r,u,!(c instanceof o.f)&&e)},t}(i.a.Component);function k(e){var t=e.type,n=e.field,r=e.onClickType,o=e.onClickField;return i.a.createElement("div",{className:"doc-category-item"},i.a.createElement("a",{className:"field-name",onClick:function(e){return o(n,t,e)}},n.name),"args"in n&&n.args&&n.args.length>0&&["(",i.a.createElement("span",{key:"args"},n.args.filter((function(e){return!e.deprecationReason})).map((function(e){return i.a.createElement(p,{key:e.name,arg:e,onClickType:r})}))),")"],": ",i.a.createElement(a,{type:n.type,onClick:r}),i.a.createElement(l,{field:n}),n.description&&i.a.createElement(m,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&i.a.createElement(m,{className:"doc-deprecation",markdown:n.deprecationReason}))}function N(e){var t=e.value;return i.a.createElement("div",{className:"doc-category-item"},i.a.createElement("div",{className:"enum-value"},t.name),i.a.createElement(m,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&i.a.createElement(m,{className:"doc-deprecation",markdown:t.deprecationReason}))}var F=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(){return _=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},_.apply(this,arguments)},I={name:"Schema",title:"Documentation Explorer"},j=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:[I]},n}return F(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,r=t.schemaErrors,a=this.state.navStack,u=a[a.length-1];e=r?i.a.createElement("div",{className:"error-container"},"Error fetching schema"):void 0===n?i.a.createElement("div",{className:"spinner-container"},i.a.createElement("div",{className:"spinner"})):n?u.search?i.a.createElement(A,{searchValue:u.search,withinType:u.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===a.length?i.a.createElement(y,{schema:n,onClickType:this.handleClickType}):Object(o.S)(u.def)?i.a.createElement(O,{schema:n,type:u.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):i.a.createElement(g,{field:u.def,onClickType:this.handleClickType}):i.a.createElement("div",{className:"error-container"},"No Schema Available");var s,c=1===a.length||Object(o.S)(u.def)&&"getFields"in u.def;return a.length>1&&(s=a[a.length-2].name),i.a.createElement("section",{className:"doc-explorer",key:u.name,"aria-label":"Documentation Explorer"},i.a.createElement("div",{className:"doc-explorer-title-bar"},s&&i.a.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+s},s),i.a.createElement("div",{className:"doc-explorer-title"},u.title||u.name),i.a.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),i.a.createElement("div",{className:"doc-explorer-contents"},c&&i.a.createElement(E,{value:u.search,placeholder:"Search "+u.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]=_(_({},n),{search:e}),this.setState({navStack:t})},t.prototype.reset=function(){this.setState({navStack:[I]})},t}(i.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(0),i=n.n(r),o=n(966),a=n.n(o),u=Array.from({length:11},(function(e,t){return String.fromCharCode(8192+t)})).concat(["\u2028","\u2029","\u202f","\xa0"]),s=new RegExp("["+u.join("")+"]","g");function c(e){return e.replace(s," ")}var l=n(937),p=n(948),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(){return d=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},d.apply(this,arguments)},h=new a.a,m=/^[a-zA-Z0-9_@(]$/,v=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n.ignoreChangeEvent=!1,n._node=null,n._onKeyUp=function(e,t){m.test(t.key)&&n.editor&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.ignoreChangeEvent&&n.editor&&(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(e,t){Object(l.a)(e,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return f(t,e),t.prototype.componentDidMount=function(){var e,t,r,i=this,o=n(909);n(949),n(1115),n(950),n(970),n(951),n(952),n(1003),n(929),n(953),n(930),n(971),n(954),n(1117),n(1118),n(1119),n(1121),n(1123);var a=this.editor=o(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema,validationRules:null!==(e=this.props.validationRules)&&void 0!==e?e:null,externalFragments:null===(t=this.props)||void 0===t?void 0:t.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 h.render(e)},onClick:function(e){return i.props.onClickReference&&i.props.onClickReference(e)}},jump:{schema:this.props.schema,onClick:function(e){return i.props.onClickReference&&i.props.onClickReference(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:d(d({"Cmd-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Ctrl-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Alt-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Shift-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Shift-Alt-Space":function(){return a.showHint({completeSingle:!0,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-C":function(){i.props.onCopyQuery&&i.props.onCopyQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},p.a),{"Cmd-S":function(){i.props.onRunQuery},"Ctrl-S":function(){i.props.onRunQuery}})});a&&(a.on("change",this._onEdit),a.on("keyup",this._onKeyUp),a.on("hasCompletion",this._onHasCompletion),a.on("beforeChange",this._onBeforeChange))},t.prototype.componentDidUpdate=function(e){var t=n(909);this.ignoreChangeEvent=!0,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.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),this.editor=null)},t.prototype.render=function(){var e=this;return i.a.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(t){e._node=t}})},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(c);t.update(t.from,t.to,n)}},t}(i.a.Component)},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(1015),i=n(984),o=n(938),a=n(1016);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return $}));var r=n(0),i=n.n(r),o=n(908),a=n(920),u=n(944),s=n(1120),c=n(1167),l=n(928),p=n(365),f=n.n(p),d=n(931),h=n(1058),m=n(1059),v=n(964),g=n(965),y=n(947),b=n(979),D=n(973),E=n(1131),C=n(1133),T=n(978),x=n(1160),A=n(1135),S=n(1136),w=n(974),O=n(1008),k=n(1137),N=n(975),F=n(1138),_=n(976),I=n(1139),j=n(1140),L=n(1011),P=n(962),M=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)}}(),B=function(){return B=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},B.apply(this,arguments)},R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},V=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:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){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(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},U=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},q=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 W?W(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)}))}}},H=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(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},G=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(H(arguments[t]));return e},W=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(i.a.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 z=function(e){return JSON.stringify(e,null,2)},K=function(e){return e instanceof o.a?e.toString():e instanceof Error?function(e){return B(B({},e),{message:e.message,stack:e.stack})}(e):e},$=function(t){function n(e){var r,i,o,c,l,p,h=t.call(this,e)||this;if(h._editorQueryID=0,h.safeSetState=function(e,t){h.componentIsMounted&&h.setState(e,t)},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 R(h,void 0,void 0,(function(){var t,r,i,o,a,u,s,c,l,p=this;return V(this,(function(f){switch(f.label){case 0:this._editorQueryID++,t=this._editorQueryID,r=this.autoCompleteLeafs()||this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.shouldPersistHeaders,u=this.state.operationName,e&&e!==u&&(u=e,this.handleEditOperationName(u)),f.label=1;case 1:return f.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:u}),this._storage.set("operationName",u),this._queryHistory?this._queryHistory.onUpdateHistory(r,i,o,u):this._historyStore&&this._historyStore.updateHistory(r,i,o,u),s={data:{}},[4,this._fetchQuery(r,i,o,u,a,(function(e){var r,i;if(t===p._editorQueryID){var o=!!Array.isArray(e)&&e;if(!o&&"string"!==typeof e&&null!==e&&"hasNext"in e&&(o=[e]),o){var a={data:s.data},u=G((null===s||void 0===s?void 0:s.errors)||[],o.map((function(e){return e.errors})).flat().filter(Boolean));u.length&&(a.errors=u);try{for(var c=W(o),l=c.next();!l.done;l=c.next()){var f=l.value,d=f.path,h=f.data,m=(f.errors,U(f,["path","data","errors"]));if(d){if(!h)throw new Error("Expected part to contain a data property, but got "+f);Object(j.a)(a.data,d,h)}else h&&(a.data=f.data);s=B(B({},a),m)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}p.setState({isWaitingForResponse:!1,response:n.formatResult(s)})}else p.setState({isWaitingForResponse:!1,response:n.formatResult(e)})}}))];case 2:return c=f.sent(),this.setState({subscription:c}),[3,4];case 3:return l=f.sent(),this.setState({isWaitingForResponse:!1,response:l.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=Object(a.a)(Object(u.a)(i));o!==i&&(null===r||void 0===r||r.setValue(o));var s=h.getVariableEditor(),p=null!==(t=null===s||void 0===s?void 0:s.getValue())&&void 0!==t?t:"";try{var f=JSON.stringify(JSON.parse(p),null,2);f!==p&&(null===s||void 0===s||s.setValue(f))}catch(c){}var d=h.getHeaderEditor(),m=null!==(n=null===d||void 0===d?void 0:d.getValue())&&void 0!==n?n:"";try{var v=JSON.stringify(JSON.parse(m),null,2);v!==m&&(null===d||void 0===d||d.setValue(v))}catch(l){}},h.handleMergeQuery=function(){var e=h.getQueryEditor();if(e.getValue()){var t=h.state.documentAST;e.setValue(Object(a.a)(Object(_.a)(t,h.state.schema)))}},h.handleEditQuery=Object(O.a)(100,(function(e){var t=h._updateQueryFacts(e,h.state.operationName,h.state.operations,h.state.schema);if(h.setState(B({query:e},t)),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 f()(t),h.props.onCopyQuery?h.props.onCopyQuery(t):void 0},h._updateQueryFacts=function(e,t,n,r){var i=Object(d.getOperationFacts)(r,e);if(i){var o=Object(w.a)(n,t,i.operations),a=h.props.onEditOperationName;return a&&o&&t!==o&&a(o),B({operationName:o},i)}},h.handleEditVariables=function(e){h.setState({variables:e}),Object(O.a)(500,(function(){return h._storage.set("variables",e)}))(),h.props.onEditVariables&&h.props.onEditVariables(e)},h.handleEditHeaders=function(e){h.setState({headers:e}),h.props.shouldPersistHeaders&&Object(O.a)(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)})),Object(O.a)(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-Object(F.a)(e.target),n=function(e){if(0===e.buttons)return r();var n=h.editorBarComponent,i=e.clientX-Object(F.a)(n)-t,o=n.clientWidth-i;h.setState({editorFlex:i/o}),Object(O.a)(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-Object(F.a)(e.target),r=function(e){if(0===e.buttons)return i();var t=h.graphiqlContainer,r=e.clientX-Object(F.a)(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)}),Object(O.a)(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}),Object(O.a)(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}),Object(O.a)(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-Object(F.b)(e.target),o=function(e){if(0===e.buttons)return a();t=!0;var n=h.editorBarComponent,o=e.clientY-Object(F.b)(n)-i,u=n.clientHeight-o;u<60?h.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):h.setState({secondaryEditorOpen:!0,secondaryEditorHeight:u}),Object(O.a)(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 e.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");h._storage=new S.a(e.storage);var m=null!==(r=e.maxHistoryLength)&&void 0!==r?r:20;h._historyStore=new L.a(h._storage,m),h.componentIsMounted=!1;var v,g=void 0!==e.query?e.query:h._storage.get("query")?h._storage.get("query"):void 0!==e.defaultQuery?e.defaultQuery:X,y=Object(d.getOperationFacts)(e.schema,g),b=void 0!==e.variables?e.variables:h._storage.get("variables"),D=void 0!==e.headers?e.headers:h._storage.get("headers"),E=void 0!==e.operationName?e.operationName:Object(w.a)(void 0,h._storage.get("operationName"),y&&y.operations),C=e.docExplorerOpen||!1;h._storage.get("docExplorerOpen")&&(C="true"===h._storage.get("docExplorerOpen")),v=void 0!==e.defaultVariableEditorOpen?e.defaultVariableEditorOpen:void 0!==e.defaultSecondaryEditorOpen?e.defaultSecondaryEditorOpen:Boolean(b||D);var T=null===(i=e.headerEditorEnabled)||void 0===i||i,x=null!==(o=e.shouldPersistHeaders)&&void 0!==o&&o,A=e.schema,k=e.response,N=void 0;if(A&&!h.props.dangerouslyAssumeSchemaIsValid){var M=Object(P.b)(A);M&&M.length>0&&(k=n.formatError(M),A=void 0,N=M)}return h._introspectionQuery=Object(s.a)({schemaDescription:null!==(c=e.schemaDescription)&&void 0!==c?c:void 0,inputValueDeprecation:null!==(l=e.inputValueDeprecation)&&void 0!==l?l:void 0}),h._introspectionQueryName=null!==(p=e.introspectionQueryName)&&void 0!==p?p:I.a,h._introspectionQuerySansSubscriptions=h._introspectionQuery.replace("subscriptionType { name }",""),h.state=B({schema:A,query:g,variables:b,headers:D,operationName:E,docExplorerOpen:C,schemaErrors:N,response:k,editorFlex:Number(h._storage.get("editorFlex"))||1,secondaryEditorOpen:v,secondaryEditorHeight:Number(h._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==h._storage.get("variableEditorActive")&&!e.headerEditorEnabled||"true"!==h._storage.get("headerEditorActive"),headerEditorActive:"true"===h._storage.get("headerEditorActive"),headerEditorEnabled:T,shouldPersistHeaders:x,historyPaneOpen:"true"===h._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(h._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:m},y),h}return M(n,t),n.formatResult=function(e){return JSON.stringify(e,null,2)},n.prototype.componentDidMount=function(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new A.a,e.g=this},n.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},n.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,u=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&&(u=e.response),r&&n&&(n!==this.state.schema||r!==this.state.query||a!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var s=Object(P.b)(n);s&&s.length>0&&(this.handleSchemaErrors(s),n=void 0)}var c=this._updateQueryFacts(r,a,this.state.operations,n);void 0!==c&&(a=c.operationName,this.setState(c))}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:u},(function(){void 0===t.state.schema&&(t.docExplorerComponent&&t.docExplorerComponent.reset(),t.fetchSchema())}))},n.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},n.prototype.render=function(){var e,t=this,r=i.a.Children.toArray(this.props.children),o=Object(k.a)(r,(function(e){return re(e,n.Logo)}))||i.a.createElement(n.Logo,null),a=Object(k.a)(r,(function(e){return re(e,n.Toolbar)}))||i.a.createElement(n.Toolbar,null,i.a.createElement(v.a,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),i.a.createElement(v.a,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),i.a.createElement(v.a,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),i.a.createElement(v.a,{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),u=Object(k.a)(r,(function(e){return re(e,n.Footer)})),s={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},c={display:"block",width:this.state.docExplorerWidth},l="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),p={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},f=this.state.secondaryEditorOpen,d={height:f?this.state.secondaryEditorHeight:void 0};return i.a.createElement("div",{ref:function(e){t.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&i.a.createElement("div",{className:"historyPaneWrap",style:p},i.a.createElement(x.a,{ref:function(e){t._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},i.a.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"\u2715"))),i.a.createElement("div",{className:"editorWrap"},i.a.createElement("div",{className:"topBarWrap"},i.a.createElement("div",{className:"topBar"},o,i.a.createElement(h.a,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),a),!this.state.docExplorerOpen&&i.a.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),i.a.createElement("div",{ref:function(e){t.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},i.a.createElement("div",{className:"queryWrap",style:s},i.a.createElement(b.a,{ref:function(e){t.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}),i.a.createElement("section",{className:"variable-editor secondary-editor",style:d,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},i.a.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:f?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},i.a.createElement("div",{style:{cursor:"pointer",color:this.state.variableEditorActive?"#000":"gray",display:"inline-block"},onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&i.a.createElement("div",{style:{cursor:"pointer",color:this.state.headerEditorActive?"#000":"gray",display:"inline-block",marginLeft:"20px"},onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),i.a.createElement(D.a,{ref:function(e){t.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&&i.a.createElement(E.a,{ref:function(e){t.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}))),i.a.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&i.a.createElement("div",{className:"spinner-container"},i.a.createElement("div",{className:"spinner"})),i.a.createElement(C.a,{registerRef:function(e){t.resultViewerElement=e},ref:function(e){t.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:m.a}),u))),this.state.docExplorerOpen&&i.a.createElement("div",{className:l,style:c},i.a.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),i.a.createElement(T.a,{ref:function(e){t.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},i.a.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"\u2715"))))},n.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},n.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},n.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},n.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()},n.prototype.autoCompleteLeafs=function(){var e=Object(N.a)(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 u=i;t.forEach((function(e){var t=e.index,n=e.string;t<i&&(u+=n.length)})),r.setCursor(r.posFromIndex(u))}))}return n},n.prototype.fetchSchema=function(){var e=this,t=this.props.fetcher,r={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};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));var i=ne(t({query:this._introspectionQuery,operationName:this._introspectionQueryName},r));Z(i)?i.then((function(n){if("string"!==typeof n&&"data"in n)return n;var o=ne(t({query:e._introspectionQuerySansSubscriptions,operationName:e._introspectionQueryName},r));if(!Z(i))throw new Error("Fetcher did not return a Promise for introspection.");return o})).then((function(t){if(void 0===e.state.schema)if(t&&t.data&&"__schema"in(null===t||void 0===t?void 0:t.data)){var r=Object(c.a)(t.data);if(!e.props.dangerouslyAssumeSchemaIsValid){var i=Object(P.b)(r);i&&i.length>0&&(r=void 0,e.handleSchemaErrors(i))}if(r){var o=Object(d.getOperationFacts)(r,e.state.query);e.safeSetState(B(B({schema:r},o),{schemaErrors:void 0}))}}else{var a="string"===typeof t?t:n.formatResult(t);e.handleSchemaErrors([a])}})).catch((function(t){e.handleSchemaErrors([t])})):this.setState({response:"Fetcher did not return a Promise for introspection."})},n.prototype.handleSchemaErrors=function(e){this.safeSetState({response:e?n.formatError(e):void 0,schema:void 0,schemaErrors:e})},n.prototype._fetchQuery=function(e,t,r,i,o,s){return R(this,void 0,void 0,(function(){var c,p,f,h,m,v,g=this;return V(this,(function(y){c=this.props.fetcher,p=null,f=null;try{p=t&&""!==t.trim()?JSON.parse(t):null}catch(b){throw new Error("Variables are invalid JSON: "+b.message+".")}if("object"!==typeof p)throw new Error("Variables are not a JSON object.");try{f=r&&""!==r.trim()?JSON.parse(r):null}catch(b){throw new Error("Headers are invalid JSON: "+b.message+".")}if("object"!==typeof f)throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(h=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach((function(e){h.set(e.name.value,e)})):Object(l.c)(Object(u.a)(this.props.externalFragments,{}),{FragmentDefinition:function(e){h.set(e.name.value,e)}}),(m=Object(d.getFragmentDependenciesForAST)(this.state.documentAST,h)).length>0&&(e+="\n"+m.map((function(e){return Object(a.a)(e)})).join("\n"))),v=c({query:e,variables:p,operationName:i},{headers:f,shouldPersistHeaders:o,documentAST:this.state.documentAST}),[2,Promise.resolve(v).then((function(e){return ee(e)?e.subscribe({next:s,error:function(e){g.safeSetState({isWaitingForResponse:!1,response:e?n.formatError(e):void 0,subscription:null})},complete:function(){g.safeSetState({isWaitingForResponse:!1,subscription:null})}}):te(e)?(R(g,void 0,void 0,(function(){var t,r,i,o,a,u,c;return V(this,(function(l){switch(l.label){case 0:l.trys.push([0,13,,14]),l.label=1;case 1:l.trys.push([1,6,7,12]),t=q(e),l.label=2;case 2:return[4,t.next()];case 3:if((r=l.sent()).done)return[3,5];i=r.value,s(i),l.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return o=l.sent(),u={error:o},[3,12];case 7:return l.trys.push([7,,10,11]),r&&!r.done&&(c=t.return)?[4,c.call(t)]:[3,9];case 8:l.sent(),l.label=9;case 9:return[3,11];case 10:if(u)throw u.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return a=l.sent(),this.safeSetState({isWaitingForResponse:!1,response:a?n.formatError(a):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)}}):(s(e),null)})).catch((function(e){return g.safeSetState({isWaitingForResponse:!1,response:e?n.formatError(e):void 0}),null}))]}))}))},n.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)}},n.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},n.formatError=function(e){return Array.isArray(e)?z({errors:e.map((function(e){return K(e)}))}):z({errors:K(e)})},n.Logo=Q,n.Toolbar=J,n.Footer=Y,n.QueryEditor=b.a,n.VariableEditor=D.a,n.HeaderEditor=E.a,n.ResultViewer=C.a,n.Button=v.a,n.ToolbarButton=v.a,n.Group=g.a,n.Menu=y.a,n.MenuItem=y.b,n}(i.a.Component);function Q(e){return i.a.createElement("div",{className:"title"},e.children||i.a.createElement("span",null,"Graph",i.a.createElement("em",null,"i"),"QL"))}function J(e){return i.a.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function Y(e){return i.a.createElement("div",{className:"footer"},e.children)}Q.displayName="GraphiQLLogo",J.displayName="GraphiQLToolbar",Y.displayName="GraphiQLFooter";var X='# 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 Z(e){return"object"===typeof e&&"function"===typeof e.then}function ee(e){return"object"===typeof e&&"subscribe"in e&&"function"===typeof e.subscribe}function te(e){return"object"===typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function ne(e){return Promise.resolve(e).then((function(e){return te(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)}))}))):ee(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 re(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}}).call(this,n(186))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(932);function i(e,t){for(var n=Object.create(null),i=0,o=Object(r.a)(e);i<o.length;i++){var a=o[i],u=a[0],s=a[1];n[u]=t(s,u)}return n}},function(e,t,n){"use strict";function r(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=Number.isFinite||function(e){return"number"===typeof e&&isFinite(e)};t.a=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(921),i=n(912),o=n(919),a=n(940);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||Object(o.a)(0,"Body must be a string. Received: ".concat(Object(i.a)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(o.a)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(o.a)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,a;return t=e,(n=[{key:r.c,get:function(){return"Source"}}])&&u(t.prototype,n),a&&u(t,a),e}();function c(e){return Object(a.a)(e,s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));var r=n(992),i=n(939),o=n(945),a=n(933),u=function(){function e(e){var t=new i.b(o.a.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==o.a.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=l(this,e)}while(e.kind===o.a.COMMENT);return e},e}();function s(e){return e===o.a.BANG||e===o.a.DOLLAR||e===o.a.AMP||e===o.a.PAREN_L||e===o.a.PAREN_R||e===o.a.SPREAD||e===o.a.COLON||e===o.a.EQUALS||e===o.a.AT||e===o.a.BRACKET_L||e===o.a.BRACKET_R||e===o.a.BRACE_L||e===o.a.PIPE||e===o.a.BRACE_R}function c(e){return isNaN(e)?o.a.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){for(var n=e.source,a=n.body,u=a.length,s=t.end;s<u;){var c=a.charCodeAt(s),l=e.line,h=1+s-e.lineStart;switch(c){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++e.line,e.lineStart=s;continue;case 13:10===a.charCodeAt(s+1)?s+=2:++s,++e.line,e.lineStart=s;continue;case 33:return new i.b(o.a.BANG,s,s+1,l,h,t);case 35:return f(n,s,l,h,t);case 36:return new i.b(o.a.DOLLAR,s,s+1,l,h,t);case 38:return new i.b(o.a.AMP,s,s+1,l,h,t);case 40:return new i.b(o.a.PAREN_L,s,s+1,l,h,t);case 41:return new i.b(o.a.PAREN_R,s,s+1,l,h,t);case 46:if(46===a.charCodeAt(s+1)&&46===a.charCodeAt(s+2))return new i.b(o.a.SPREAD,s,s+3,l,h,t);break;case 58:return new i.b(o.a.COLON,s,s+1,l,h,t);case 61:return new i.b(o.a.EQUALS,s,s+1,l,h,t);case 64:return new i.b(o.a.AT,s,s+1,l,h,t);case 91:return new i.b(o.a.BRACKET_L,s,s+1,l,h,t);case 93:return new i.b(o.a.BRACKET_R,s,s+1,l,h,t);case 123:return new i.b(o.a.BRACE_L,s,s+1,l,h,t);case 124:return new i.b(o.a.PIPE,s,s+1,l,h,t);case 125:return new i.b(o.a.BRACE_R,s,s+1,l,h,t);case 34:return 34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)?v(n,s,l,h,t,e):m(n,s,l,h,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d(n,s,c,l,h,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return y(n,s,l,h,t)}throw Object(r.a)(n,s,p(c))}var g=e.line,b=1+s-e.lineStart;return new i.b(o.a.EOF,u,u,g,b,t)}function p(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(c(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(c(e),".")}function f(e,t,n,r,a){var u,s=e.body,c=t;do{u=s.charCodeAt(++c)}while(!isNaN(u)&&(u>31||9===u));return new i.b(o.a.COMMENT,t,c,n,r,a,s.slice(t+1,c))}function d(e,t,n,a,u,s){var l=e.body,p=n,f=t,d=!1;if(45===p&&(p=l.charCodeAt(++f)),48===p){if((p=l.charCodeAt(++f))>=48&&p<=57)throw Object(r.a)(e,f,"Invalid number, unexpected digit after 0: ".concat(c(p),"."))}else f=h(e,f,p),p=l.charCodeAt(f);if(46===p&&(d=!0,p=l.charCodeAt(++f),f=h(e,f,p),p=l.charCodeAt(f)),69!==p&&101!==p||(d=!0,43!==(p=l.charCodeAt(++f))&&45!==p||(p=l.charCodeAt(++f)),f=h(e,f,p),p=l.charCodeAt(f)),46===p||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(p))throw Object(r.a)(e,f,"Invalid number, expected digit but got: ".concat(c(p),"."));return new i.b(d?o.a.FLOAT:o.a.INT,t,f,a,u,s,l.slice(t,f))}function h(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=i.charCodeAt(++o)}while(a>=48&&a<=57);return o}throw Object(r.a)(e,o,"Invalid number, expected digit but got: ".concat(c(a),"."))}function m(e,t,n,a,u){for(var s,l,p,f,d=e.body,h=t+1,m=h,v=0,y="";h<d.length&&!isNaN(v=d.charCodeAt(h))&&10!==v&&13!==v;){if(34===v)return y+=d.slice(m,h),new i.b(o.a.STRING,t,h+1,n,a,u,y);if(v<32&&9!==v)throw Object(r.a)(e,h,"Invalid character within String: ".concat(c(v),"."));if(++h,92===v){switch(y+=d.slice(m,h-1),v=d.charCodeAt(h)){case 34:y+='"';break;case 47:y+="/";break;case 92:y+="\\";break;case 98:y+="\b";break;case 102:y+="\f";break;case 110:y+="\n";break;case 114:y+="\r";break;case 116:y+="\t";break;case 117:var b=(s=d.charCodeAt(h+1),l=d.charCodeAt(h+2),p=d.charCodeAt(h+3),f=d.charCodeAt(h+4),g(s)<<12|g(l)<<8|g(p)<<4|g(f));if(b<0){var D=d.slice(h+1,h+5);throw Object(r.a)(e,h,"Invalid character escape sequence: \\u".concat(D,"."))}y+=String.fromCharCode(b),h+=4;break;default:throw Object(r.a)(e,h,"Invalid character escape sequence: \\".concat(String.fromCharCode(v),"."))}m=++h}}throw Object(r.a)(e,h,"Unterminated string.")}function v(e,t,n,u,s,l){for(var p=e.body,f=t+3,d=f,h=0,m="";f<p.length&&!isNaN(h=p.charCodeAt(f));){if(34===h&&34===p.charCodeAt(f+1)&&34===p.charCodeAt(f+2))return m+=p.slice(d,f),new i.b(o.a.BLOCK_STRING,t,f+3,n,u,s,Object(a.a)(m));if(h<32&&9!==h&&10!==h&&13!==h)throw Object(r.a)(e,f,"Invalid character within String: ".concat(c(h),"."));10===h?(++f,++l.line,l.lineStart=f):13===h?(10===p.charCodeAt(f+1)?f+=2:++f,++l.line,l.lineStart=f):92===h&&34===p.charCodeAt(f+1)&&34===p.charCodeAt(f+2)&&34===p.charCodeAt(f+3)?(m+=p.slice(d,f)+'"""',d=f+=4):++f}throw Object(r.a)(e,f,"Unterminated string.")}function g(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y(e,t,n,r,a){for(var u=e.body,s=u.length,c=t+1,l=0;c!==s&&!isNaN(l=u.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new i.b(o.a.NAME,t,c,n,r,a,u.slice(t,c))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e,t,n){return new r.a("Syntax Error: ".concat(n),void 0,e,[t])}},function(e,t,n){"use strict";var r=n(921),i=Array.from||function(e,t,n){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var i=e[r.b];if("function"===typeof i){for(var o,a=i.call(e),u=[],s=0;!(o=a.next()).done;++s)if(u.push(t.call(n,o.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return u}var c=e.length;if("number"===typeof c&&c>=0&&c%1===0){for(var l=[],p=0;p<c;++p)Object.prototype.hasOwnProperty.call(e,p)&&l.push(t.call(n,e[p],p));return l}return[]};t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r=n(935),i=n(914),o=n(939),a=n(928),u=n(911),s=n(916),c=n(923),l=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!==t&&void 0!==t?t:p,n&&(Object(u.G)(n)&&this._inputTypeStack.push(n),Object(u.D)(n)&&this._parentTypeStack.push(n),Object(u.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case i.a.SELECTION_SET:var n=Object(u.A)(this.getType());this._parentTypeStack.push(Object(u.D)(n)?n:void 0);break;case i.a.FIELD:var o,a,s=this.getParentType();s&&(o=this._getFieldDef(t,s,e))&&(a=o.type),this._fieldDefStack.push(o),this._typeStack.push(Object(u.O)(a)?a:void 0);break;case i.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case i.a.OPERATION_DEFINITION:var l;switch(e.operation){case"query":l=t.getQueryType();break;case"mutation":l=t.getMutationType();break;case"subscription":l=t.getSubscriptionType()}this._typeStack.push(Object(u.N)(l)?l:void 0);break;case i.a.INLINE_FRAGMENT:case i.a.FRAGMENT_DEFINITION:var p=e.typeCondition,f=p?Object(c.a)(t,p):Object(u.A)(this.getType());this._typeStack.push(Object(u.O)(f)?f:void 0);break;case i.a.VARIABLE_DEFINITION:var d=Object(c.a)(t,e.type);this._inputTypeStack.push(Object(u.G)(d)?d:void 0);break;case i.a.ARGUMENT:var h,m,v,g=null!==(h=this.getDirective())&&void 0!==h?h:this.getFieldDef();g&&(m=Object(r.a)(g.args,(function(t){return t.name===e.name.value})))&&(v=m.type),this._argument=m,this._defaultValueStack.push(m?m.defaultValue:void 0),this._inputTypeStack.push(Object(u.G)(v)?v:void 0);break;case i.a.LIST:var y=Object(u.B)(this.getInputType()),b=Object(u.J)(y)?y.ofType:y;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(u.G)(b)?b:void 0);break;case i.a.OBJECT_FIELD:var D,E,C=Object(u.A)(this.getInputType());Object(u.F)(C)&&(E=C.getFields()[e.name.value])&&(D=E.type),this._defaultValueStack.push(E?E.defaultValue:void 0),this._inputTypeStack.push(Object(u.G)(D)?D:void 0);break;case i.a.ENUM:var T,x=Object(u.A)(this.getInputType());Object(u.E)(x)&&(T=x.getValue(e.value)),this._enumValue=T}},t.leave=function(e){switch(e.kind){case i.a.SELECTION_SET:this._parentTypeStack.pop();break;case i.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case i.a.DIRECTIVE:this._directive=null;break;case i.a.OPERATION_DEFINITION:case i.a.INLINE_FRAGMENT:case i.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case i.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case i.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.a.LIST:case i.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case i.a.ENUM:this._enumValue=null}},e}();function p(e,t,n){var 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&&Object(u.D)(t)?s.TypeNameMetaFieldDef:Object(u.N)(t)||Object(u.H)(t)?t.getFields()[r]:void 0}function f(e,t){return{enter:function(n){e.enter(n);var r=Object(a.b)(t,n.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(n),Object(o.c)(i)&&e.enter(i)),i}},leave:function(n){var r,i=Object(a.b)(t,n.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(n),r}}}},function(e,t,n){"use strict";e.exports=n(1061)},function(e,t,n){"use strict";e.exports.encode=n(1062),e.exports.decode=n(1063),e.exports.format=n(1064),e.exports.parse=n(1065)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",o=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+i+")");e.exports.HTML_TAG_RE=o,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,a,u=[],s=t.length;for(n=0;n<s;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&&u.push(o.token-1));for(;u.length;){for(r=(n=u.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.tokenize=function(e,t){var n,r,i,o,a=e.pos,u=e.src.charCodeAt(a);if(t)return!1;if(126!==u)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(u),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:u,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.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,a,u;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],u=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=u?"strong_open":"em_open",o.tag=u?"strong":"em",o.nesting=1,o.markup=u?a+a:a,o.content="",(o=e.tokens[i.token]).type=u?"strong_close":"em_close",o.tag=u?"strong":"em",o.nesting=-1,o.markup=u?a+a:a,o.content="",u&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.tokenize=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.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}},function(e,t,n){!function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,{caseFold:i(t),multiline:!0})}function a(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:i,bottom:e.options.search.bottom})}function u(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function s(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(n){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function p(e,n,r){n.queryText=r,n.query=l(r),e.removeOverlay(n.overlay,i(n.query)),n.overlay=t(n.query,i(n.query)),e.addOverlay(n.overlay),e.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=e.showMatchesOnScrollbar(n.query,i(n.query)))}function f(t,n,i,o){var s=r(t);if(s.query)return d(t,n);var c=t.getSelection()||s.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&t.openDialog){var l=null,f=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(p(t,s,n),s.posFrom=s.posTo=t.getCursor()),l&&(l.style.opacity=1),d(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((l=r).style.opacity=.4)})))};a(t,v(t),c,f,(function(n,i){var o=e.keyName(n),a=t.getOption("extraKeys"),u=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==u||"findPrev"==u||"findPersistentNext"==u||"findPersistentPrev"==u?(e.e_stop(n),p(t,r(t),i),t.execCommand(u)):"find"!=u&&"findPersistent"!=u||(e.e_stop(n),f(i,n))})),o&&c&&(p(t,s,c),d(t,n))}else u(t,v(t),"Search for:",c,(function(e){e&&!s.query&&t.operation((function(){p(t,s,e),s.posFrom=s.posTo=t.getCursor(),d(t,n)}))}))}function d(t,n,i){t.operation((function(){var a=r(t),u=o(t,a.query,n?a.posFrom:a.posTo);(u.find(n)||(u=o(t,a.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(n))&&(t.setSelection(u.from(),u.to()),t.scrollIntoView({from:u.from(),to:u.to()},20),a.posFrom=u.from(),a.posTo=u.to(),i&&i(u.from(),u.to()))}))}function h(e){e.operation((function(){var t=r(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function m(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function v(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function g(e){return m("",null," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function b(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",m("button",{},e.phrase("Yes"))," ",m("button",{},e.phrase("No"))," ",m("button",{},e.phrase("All"))," ",m("button",{},e.phrase("Stop")))}function D(e,t,n){e.operation((function(){for(var r=o(e,t);r.findNext();)if("string"!=typeof t){var i=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return i[t]})))}else r.replace(n)}))}function E(e,t){if(!e.getOption("readOnly")){var n=e.getSelection()||r(e).lastQuery,i=t?e.phrase("Replace all:"):e.phrase("Replace:"),a=m("",null,m("span",{className:"CodeMirror-search-label"},i),g(e));u(e,a,i,n,(function(n){n&&(n=l(n),u(e,y(e),e.phrase("Replace with:"),"",(function(r){if(r=c(r),t)D(e,n,r);else{h(e);var i=o(e,n,e.getCursor("from")),a=function t(){var a,c=i.from();!(a=i.findNext())&&(i=o(e,n),!(a=i.findNext())||c&&i.from().line==c.line&&i.from().ch==c.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),s(e,b(e),e.phrase("Replace?"),[function(){u(a)},t,function(){D(e,n,r)}]))},u=function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),a()};a()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){h(e),f(e)},e.commands.findPersistent=function(e){h(e),f(e,!1,!0)},e.commands.findPersistentNext=function(e){f(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){f(e,!0,!0,!0)},e.commands.findNext=f,e.commands.findPrev=function(e){f(e,!0)},e.commands.clearSearch=h,e.commands.replace=E,e.commands.replaceAll=function(e){E(e,!0)}}(n(909),n(929),n(930))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(910),o=n(916),a=r(n(1005));function u(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&i.isCompositeType(t)?o.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return a.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?u(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?i.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var r=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null:null;n.argDefs=r?r.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o<n.argDefs.length;o++)if(n.argDefs[o].name===t.name){n.argDef=n.argDefs[o];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var a=n.inputType?i.getNamedType(n.inputType):null;n.enumValue=a instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(a.getValues(),(function(e){return e.value===t.name})):null;break;case"ListValue":var s=n.inputType?i.getNullableType(n.inputType):null;n.inputType=s instanceof i.GraphQLList?s.ofType:null;break;case"ObjectValue":var c=n.inputType?i.getNamedType(n.inputType):null;n.objectFieldDefs=c instanceof i.GraphQLInputObjectType?c.getFields():null;break;case"ObjectField":var l=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=l&&l.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var r=n(910);function i(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?r.getNamedType(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909));function o(e,t){var n=e.state.info,r=t.target||t.srcElement;if(r instanceof HTMLElement&&"SPAN"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,c)},u=function t(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},s=function(){i.default.off(document,"mousemove",a),i.default.off(e.getWrapperElement(),"mouseout",u),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var u=o(a,r,e,n);u&&function(e,t,n){var r=document.createElement("div");r.className="CodeMirror-info",r.appendChild(n),document.body.appendChild(r);var o=r.getBoundingClientRect(),a=window.getComputedStyle(r),u=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),s=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),c=t.bottom;s>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(c=t.top-s);c<0&&(c=t.bottom);var l,p=Math.max(0,window.innerWidth-u-15);p>t.left&&(p=t.left);r.style.opacity="1",r.style.top=c+"px",r.style.left=p+"px";var f=function(){clearTimeout(l)},d=function(){clearTimeout(l),l=setTimeout(h,200)},h=function(){i.default.off(r,"mouseover",f),i.default.off(r,"mouseout",d),i.default.off(e.getWrapperElement(),"mouseout",d),r.style.opacity?(r.style.opacity="0",setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),600)):r.parentNode&&r.parentNode.removeChild(r)};i.default.on(r,"mouseover",f),i.default.on(r,"mouseout",d),i.default.on(e.getWrapperElement(),"mouseout",d)}(e,t,u)}}}(e,o)},c=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(s,c),i.default.on(document,"mousemove",a),i.default.on(e.getWrapperElement(),"mouseout",u)}}i.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=o.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))},function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(938);e.exports=function(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}},function(e,t){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){"use strict";var r=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(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e},o=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=i(this.items,[e]);this.maxSize&&n.length>this.maxSize&&n.shift();for(var r=0;r<5;r++){var o=this.storage.set(this.key,JSON.stringify(((t={})[this.key]=n,t)));if(o&&o.error){if(!o.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}(),a=n(944),u=function(){return u=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},u.apply(this,arguments)},s=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(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e},l=function(e,t){var n=this;this.storage=e,this.maxHistoryLength=t,this.shouldSaveQuery=function(e,t,n,r){if(!e)return!1;try{Object(a.a)(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 u={query:e,variables:t,headers:r,operationName:i,label:o};n.favorite.contains(u)?a&&(u.favorite=!1,n.favorite.delete(u)):(u.favorite=!0,n.favorite.push(u)),n.queries=c(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(u(u({},s),{favorite:a})):n.history.edit(s),n.queries=c(n.history.items,n.favorite.items)},this.history=new o("queries",this.storage,this.maxHistoryLength),this.favorite=new o("favorites",this.storage,null),this.queries=this.fetchAllQueries()};t.a=l},,function(e,t,n){(function(e){var r,i=n(956),o=n(983),a=n(13),u=n(1017);r=function(t){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){return"object"===typeof e&&null!==e}function s(e,t){return n.call(e,t)}function c(e,t){return n.call(e,t)&&r(e[t])}function l(e,t){return n.call(e,t)&&"string"===typeof e[t]}function p(e,t){return e.length<124?e:t}var f,d,h="graphql-transport-ws";function m(e){if(r(e)){if(!l(e,"type"))return!1;switch(e.type){case t.MessageType.ConnectionInit:case t.MessageType.ConnectionAck:case t.MessageType.Ping:case t.MessageType.Pong:return!s(e,"payload")||void 0===e.payload||r(e.payload);case t.MessageType.Subscribe:return l(e,"id")&&c(e,"payload")&&(!s(e.payload,"operationName")||void 0===e.payload.operationName||null===e.payload.operationName||"string"===typeof e.payload.operationName)&&l(e.payload,"query")&&(!s(e.payload,"variables")||void 0===e.payload.variables||null===e.payload.variables||c(e.payload,"variables"))&&(!s(e.payload,"extensions")||void 0===e.payload.extensions||null===e.payload.extensions||c(e.payload,"extensions"));case t.MessageType.Next:return l(e,"id")&&c(e,"payload");case t.MessageType.Error:return l(e,"id")&&(n=e.payload,Array.isArray(n)&&n.length>0&&n.every((function(e){return"message"in e})));case t.MessageType.Complete:return l(e,"id");default:return!1}}var n;return!1}function v(e,t){if(m(e))return e;if("string"!==typeof e)throw new Error("Message not parsable");var n=JSON.parse(e,t);if(!m(n))throw new Error("Invalid message");return n}function g(e,t){if(!m(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,t)}function y(e){return r(e)&&"code"in e&&"reason"in e}t.CloseCode=void 0,(f=t.CloseCode||(t.CloseCode={}))[f.InternalServerError=4500]="InternalServerError",f[f.InternalClientError=4005]="InternalClientError",f[f.BadRequest=4400]="BadRequest",f[f.BadResponse=4004]="BadResponse",f[f.Unauthorized=4401]="Unauthorized",f[f.Forbidden=4403]="Forbidden",f[f.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",f[f.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",f[f.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",f[f.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",f[f.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t.MessageType=void 0,(d=t.MessageType||(t.MessageType={})).ConnectionInit="connection_init",d.ConnectionAck="connection_ack",d.Ping="ping",d.Pong="pong",d.Subscribe="subscribe",d.Next="next",d.Error="error",d.Complete="complete",t.GRAPHQL_TRANSPORT_WS_PROTOCOL=h,t.createClient=function(n){var r,s,c=n.url,l=n.connectionParams,f=n.lazy,d=void 0===f||f,m=n.onNonLazyError,b=void 0===m?console.error:m,D=n.lazyCloseTimeout,E=void 0===D?0:D,C=n.keepAlive,T=void 0===C?0:C,x=n.disablePong,A=n.connectionAckWaitTimeout,S=void 0===A?0:A,w=n.retryAttempts,O=void 0===w?5:w,k=n.retryWait,N=void 0===k?function(){var e=u(a.mark((function e(t){var n,r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=1e3,r=0;r<t;r++)n*=2;return e.next=4,new Promise((function(e){return setTimeout(e,n+Math.floor(2700*Math.random()+300))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():k,F=n.isFatalConnectionProblem,_=void 0===F?function(e){return!y(e)}:F,I=n.on,j=n.webSocketImpl,L=n.generateID,P=void 0===L?function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}:L,M=n.jsonMessageReplacer,B=n.jsonMessageReviver;if(j){if(!("function"===typeof(s=j)&&"constructor"in s&&"CLOSED"in s&&"CLOSING"in s&&"CONNECTING"in s&&"OPEN"in s))throw new Error("Invalid WebSocket implementation provided");r=j}else"undefined"!==typeof WebSocket?r=WebSocket:"undefined"!==typeof e?r=e.WebSocket||e.MozWebSocket:"undefined"!==typeof window&&(r=window.WebSocket||window.MozWebSocket);if(!r)throw new Error("WebSocket implementation missing");var R=r,V=function(){var e=function(){var e={};return{on:function(t,n){return e[t]=n,function(){delete e[t]}},emit:function(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}}(),t={connecting:(null===I||void 0===I?void 0:I.connecting)?[I.connecting]:[],opened:(null===I||void 0===I?void 0:I.opened)?[I.opened]:[],connected:(null===I||void 0===I?void 0:I.connected)?[I.connected]:[],ping:(null===I||void 0===I?void 0:I.ping)?[I.ping]:[],pong:(null===I||void 0===I?void 0:I.pong)?[I.pong]:[],message:(null===I||void 0===I?void 0:I.message)?[e.emit,I.message]:[e.emit],closed:(null===I||void 0===I?void 0:I.closed)?[I.closed]:[],error:(null===I||void 0===I?void 0:I.error)?[I.error]:[]};return{onMessage:e.on,on:function(e,n){var r=t[e];return r.push(n),function(){r.splice(r.indexOf(n),1)}},emit:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var a=0,u=o(t[e]);a<u.length;a++){var s=u[a];s.apply(void 0,r)}}}}();function U(e){var t=[V.on("error",(function(n){t.forEach((function(e){return e()})),e(n)})),V.on("closed",(function(n){t.forEach((function(e){return e()})),e(n)}))]}var q,H=0,G=!1,W=0,z=!1;function K(){return $.apply(this,arguments)}function $(){return($=u(a.mark((function e(){var n,r,o,s,f,d;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null!==q&&void 0!==q?q:q=new Promise((function(e,n){return u(a.mark((function r(){var i,o,s,f,d;return a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(f=function(){isFinite(T)&&T>0&&(clearTimeout(s),s=setTimeout((function(){i.readyState===R.OPEN&&(i.send(g({type:t.MessageType.Ping})),V.emit("ping",!1,void 0))}),T))},!G){r.next=8;break}return r.next=4,N(W);case 4:if(H){r.next=7;break}return q=void 0,r.abrupt("return",n({code:1e3,reason:"All Subscriptions Gone"}));case 7:W++;case 8:if(V.emit("connecting"),r.t0=R,"function"!==typeof c){r.next=16;break}return r.next=13,c();case 13:r.t1=r.sent,r.next=17;break;case 16:r.t1=c;case 17:r.t2=r.t1,r.t3=h,i=new r.t0(r.t2,r.t3),U((function(e){q=void 0,clearTimeout(o),clearTimeout(s),n(e)})),i.onerror=function(e){return V.emit("error",e)},i.onclose=function(e){return V.emit("closed",e)},i.onopen=u(a.mark((function e(){var n;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,V.emit("opened",i),"function"!==typeof l){e.next=8;break}return e.next=5,l();case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=l;case 9:n=e.t0,i.send(g(n?{type:t.MessageType.ConnectionInit,payload:n}:{type:t.MessageType.ConnectionInit},M)),isFinite(S)&&S>0&&(o=setTimeout((function(){i.close(t.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),S)),f(),e.next=19;break;case 15:e.prev=15,e.t1=e.catch(0),V.emit("error",e.t1),i.close(t.CloseCode.InternalClientError,p(e.t1 instanceof Error?e.t1.message:new Error(e.t1).message,"Internal client error"));case 19:case"end":return e.stop()}}),e,null,[[0,15]])}))),d=!1,i.onmessage=function(n){var r=n.data;try{var a=v(r,B);if(V.emit("message",a),"ping"===a.type||"pong"===a.type)return V.emit(a.type,!0,a.payload),void("pong"===a.type?f():x||(i.send(g(a.payload?{type:t.MessageType.Pong,payload:a.payload}:{type:t.MessageType.Pong})),V.emit("pong",!1,a.payload)));if(d)return;if(a.type!==t.MessageType.ConnectionAck)throw new Error("First message cannot be of type ".concat(a.type));clearTimeout(o),d=!0,V.emit("connected",i,a.payload),G=!1,W=0,e([i,new Promise((function(e,t){return U(t)}))])}catch(u){i.onmessage=null,V.emit("error",u),i.close(t.CloseCode.BadResponse,p(u instanceof Error?u.message:new Error(u).message,"Bad response"))}};case 26:case"end":return r.stop()}}),r)})))()}));case 2:if(n=e.sent,r=i(n,2),o=r[0],s=r[1],o.readyState!==R.CLOSING){e.next=9;break}return e.next=9,s;case 9:return f=function(){},d=new Promise((function(e){return f=e})),e.abrupt("return",[o,f,Promise.race([d.then((function(){if(!H){var e=function(){return o.close(1e3,"Normal Closure")};isFinite(E)&&E>0?setTimeout((function(){H||o.readyState!==R.OPEN||e()}),E):e()}})),s])]);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){if(y(e)&&(n=e.code,![1e3,1001,1006,1005,1012,1013,1013].includes(n)&&n>=1e3&&n<=1999||[t.CloseCode.InternalServerError,t.CloseCode.InternalClientError,t.CloseCode.BadRequest,t.CloseCode.BadResponse,t.CloseCode.Unauthorized,t.CloseCode.SubprotocolNotAcceptable,t.CloseCode.SubscriberAlreadyExists,t.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var n;if(z)return!1;if(y(e)&&1e3===e.code)return H>0;if(!O||W>=O)throw e;if(_(e))throw e;return G=!0}return d||u(a.mark((function e(){var t,n,r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:H++;case 1:return e.prev=1,e.next=4,K();case 4:return t=e.sent,n=i(t,3),r=n[2],e.next=9,r;case 9:e.next=21;break;case 11:if(e.prev=11,e.t0=e.catch(1),e.prev=13,Q(e.t0)){e.next=16;break}return e.abrupt("return");case 16:e.next=21;break;case 18:return e.prev=18,e.t1=e.catch(13),e.abrupt("return",null===b||void 0===b?void 0:b(e.t1));case 21:e.next=1;break;case 23:case"end":return e.stop()}}),e,null,[[1,11],[13,18]])})))(),{on:V.on,subscribe:function(e,n){var r=P(),o=!1,s=!1,c=function(){H--,o=!0};return u(a.mark((function u(){var l;return a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:H++;case 1:return u.prev=1,u.delegateYield(a.mark((function u(){var l,p,f,d,h,m;return a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,K();case 2:if(l=a.sent,p=i(l,3),f=p[0],d=p[1],h=p[2],!o){a.next=9;break}return a.abrupt("return",{v:d()});case 9:return m=V.onMessage(r,(function(e){switch(e.type){case t.MessageType.Next:return void n.next(e.payload);case t.MessageType.Error:return s=!0,o=!0,n.error(e.payload),void c();case t.MessageType.Complete:return o=!0,void c()}})),f.send(g({id:r,type:t.MessageType.Subscribe,payload:e},M)),c=function(){o||f.readyState!==R.OPEN||f.send(g({id:r,type:t.MessageType.Complete},M)),H--,o=!0,d()},a.next=14,h.finally(m);case 14:return a.abrupt("return",{v:void 0});case 15:case"end":return a.stop()}}),u)}))(),"t0",3);case 3:if("object"!==typeof(l=u.t0)){u.next=6;break}return u.abrupt("return",l.v);case 6:u.next=12;break;case 8:if(u.prev=8,u.t1=u.catch(1),Q(u.t1)){u.next=12;break}return u.abrupt("return");case 12:u.next=1;break;case 14:case"end":return u.stop()}}),u,null,[[1,8]])})))().then((function(){s||n.complete()})).catch((function(e){n.error(e)})),function(){o||c()}},dispose:function(){return u(a.mark((function e(){var t;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(z=!0,!q){e.next=8;break}return e.next=4,q;case 4:t=e.sent,i(t,1)[0].close(1e3,"Normal Closure");case 8:case"end":return e.stop()}}),e)})))()}}},t.isMessage=m,t.parseMessage=v,t.stringifyMessage=g,Object.defineProperty(t,"__esModule",{value:!0})},r(t)}).call(this,n(186))},function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}}},function(e,t,n){var r=n(981);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(e,t,n,r,i,o,a){try{var u=e[o](a),s=u.value}catch(c){return void n(c)}u.done?t(s):Promise.resolve(s).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function u(e){n(a,i,o,u,s,"next",e)}function s(e){n(a,i,o,u,s,"throw",e)}u(void 0)}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(912),i=n(915),o=n(941),a=n(914);function u(e,t){switch(e.kind){case a.a.NULL:return null;case a.a.INT:return parseInt(e.value,10);case a.a.FLOAT:return parseFloat(e.value);case a.a.STRING:case a.a.ENUM:case a.a.BOOLEAN:return e.value;case a.a.LIST:return e.values.map((function(e){return u(e,t)}));case a.a.OBJECT:return Object(o.a)(e.fields,(function(e){return e.name.value}),(function(e){return u(e.value,t)}));case a.a.VARIABLE:return null===t||void 0===t?void 0:t[e.name.value]}Object(i.a)(0,"Unexpected value node: "+Object(r.a)(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(988);function i(e){return o(e.source,Object(r.a)(e.source,e.start))}function o(e,t){var n=e.locationOffset.column-1,r=u(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,c=1===t.line?n:0,l=t.column+c,p="".concat(e.name,":").concat(s,":").concat(l,"\n"),f=r.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){for(var h=Math.floor(l/80),m=l%80,v=[],g=0;g<d.length;g+=80)v.push(d.slice(g,g+80));return p+a([["".concat(s),v[0]]].concat(v.slice(1,h+1).map((function(e){return["",e]})),[[" ",u(m-1)+"^"],["",v[h+1]]]))}return p+a([["".concat(s-1),f[i-1]],["".concat(s),d],["",u(l-1)+"^"],["".concat(s+1),f[i+1]]])}function a(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return u(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function u(e){return Array(e+1).join(" ")}},function(e,t,n){"use strict";function r(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=r,e.exports.default=r,Object.defineProperty(e.exports,"__esModule",{value:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t,n,i,o=e.getSchema(),a=null!==(t=null!==(n=null!==(i=null===o||void 0===o?void 0:o.astNode)&&void 0!==i?i:null===o||void 0===o?void 0:o.getQueryType())&&void 0!==n?n:null===o||void 0===o?void 0:o.getMutationType())&&void 0!==t?t:null===o||void 0===o?void 0:o.getSubscriptionType(),u=0;return{SchemaDefinition:function(t){a?e.reportError(new r.a("Cannot define a new schema within a schema extension.",t)):(u>0&&e.reportError(new r.a("Must provide only one schema definition.",t)),++u)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(t){for(var o,a=null!==(o=t.operationTypes)&&void 0!==o?o:[],u=0;u<a.length;u++){var s=a[u],c=s.operation,l=n[c];i[c]?e.reportError(new r.a("Type for ".concat(c," already defined in the schema. It cannot be redefined."),s)):l?e.reportError(new r.a("There can be only one ".concat(c," type in schema."),[l,s])):n[c]=s}return!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){var o=i.name.value;if(null===n||void 0===n||!n.getType(o))return t[o]?e.reportError(new r.a('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r.a('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(908),i=n(911);function o(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),o=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(t){var a,u=t.name.value;o[u]||(o[u]=Object.create(null));for(var s=null!==(a=t.values)&&void 0!==a?a:[],c=o[u],l=0;l<s.length;l++){var p=s[l],f=p.name.value,d=n[u];Object(i.E)(d)&&d.getValue(f)?e.reportError(new r.a('Enum value "'.concat(u,".").concat(f,'" already exists in the schema. It cannot also be defined in this type extension.'),p.name)):c[f]?e.reportError(new r.a('Enum value "'.concat(u,".").concat(f,'" can only be defined once.'),[c[f],p.name])):c[f]=p.name}return!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(908),i=n(911);function o(e){var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(t){var o,u=t.name.value;i[u]||(i[u]=Object.create(null));for(var s=null!==(o=t.fields)&&void 0!==o?o:[],c=i[u],l=0;l<s.length;l++){var p=s[l],f=p.name.value;a(n[u],f)?e.reportError(new r.a('Field "'.concat(u,".").concat(f,'" already exists in the schema. It cannot also be defined in this type extension.'),p.name)):c[f]?e.reportError(new r.a('Field "'.concat(u,".").concat(f,'" can only be defined once.'),[c[f],p.name])):c[f]=p.name}return!1}}function a(e,t){return!!(Object(i.N)(e)||Object(i.H)(e)||Object(i.F)(e))&&null!=e.getFields()[t]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null),n=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(null===n||void 0===n||!n.getDirective(o))return t[o]?e.reportError(new r.a('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1;e.reportError(new r.a('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(927),i=n(926),o=n(908),a=n(934),u=n(924),s=n(916);function c(e){for(var t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),u=Object.create(null),s=0,c=e.getDocument().definitions;s<c.length;s++){var p=c[s];Object(a.d)(p)&&(u[p.name.value]=!0)}var f=Object.keys(n).concat(Object.keys(u));return{NamedType:function(t,s,c,p,d){var h,m=t.name.value;if(!n[m]&&!u[m]){var v,g=null!==(v=d[2])&&void 0!==v?v:c,y=null!=g&&(h=g,!Array.isArray(h)&&(Object(a.g)(h)||Object(a.h)(h)));if(y&&function(e){return-1!==l.indexOf(e)}(m))return;var b=Object(i.a)(m,y?l.concat(f):f);e.reportError(new o.a('Unknown type "'.concat(m,'".')+Object(r.a)(b),t))}}}}var l=[].concat(u.g,s.introspectionTypes).map((function(e){return e.name}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(912),i=n(915),o=n(908),a=n(914),u=n(943),s=n(918);function c(e){for(var t=Object.create(null),n=e.getSchema(),c=n?n.getDirectives():s.j,l=0;l<c.length;l++){var p=c[l];t[p.name]=p.locations}for(var f=e.getDocument().definitions,d=0;d<f.length;d++){var h=f[d];h.kind===a.a.DIRECTIVE_DEFINITION&&(t[h.name.value]=h.locations.map((function(e){return e.value})))}return{Directive:function(n,s,c,l,p){var f=n.name.value,d=t[f];if(d){var h=function(e){var t=e[e.length-1];switch(!Array.isArray(t)||Object(i.a)(0),t.kind){case a.a.OPERATION_DEFINITION:return function(e){switch(e){case"query":return u.a.QUERY;case"mutation":return u.a.MUTATION;case"subscription":return u.a.SUBSCRIPTION}Object(i.a)(0,"Unexpected operation: "+Object(r.a)(e))}(t.operation);case a.a.FIELD:return u.a.FIELD;case a.a.FRAGMENT_SPREAD:return u.a.FRAGMENT_SPREAD;case a.a.INLINE_FRAGMENT:return u.a.INLINE_FRAGMENT;case a.a.FRAGMENT_DEFINITION:return u.a.FRAGMENT_DEFINITION;case a.a.VARIABLE_DEFINITION:return u.a.VARIABLE_DEFINITION;case a.a.SCHEMA_DEFINITION:case a.a.SCHEMA_EXTENSION:return u.a.SCHEMA;case a.a.SCALAR_TYPE_DEFINITION:case a.a.SCALAR_TYPE_EXTENSION:return u.a.SCALAR;case a.a.OBJECT_TYPE_DEFINITION:case a.a.OBJECT_TYPE_EXTENSION:return u.a.OBJECT;case a.a.FIELD_DEFINITION:return u.a.FIELD_DEFINITION;case a.a.INTERFACE_TYPE_DEFINITION:case a.a.INTERFACE_TYPE_EXTENSION:return u.a.INTERFACE;case a.a.UNION_TYPE_DEFINITION:case a.a.UNION_TYPE_EXTENSION:return u.a.UNION;case a.a.ENUM_TYPE_DEFINITION:case a.a.ENUM_TYPE_EXTENSION:return u.a.ENUM;case a.a.ENUM_VALUE_DEFINITION:return u.a.ENUM_VALUE;case a.a.INPUT_OBJECT_TYPE_DEFINITION:case a.a.INPUT_OBJECT_TYPE_EXTENSION:return u.a.INPUT_OBJECT;case a.a.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===a.a.INPUT_OBJECT_TYPE_DEFINITION?u.a.INPUT_FIELD_DEFINITION:u.a.ARGUMENT_DEFINITION}}(p);h&&-1===d.indexOf(h)&&e.reportError(new o.a('Directive "@'.concat(f,'" may not be used on ').concat(h,"."),n))}else e.reportError(new o.a('Unknown directive "@'.concat(f,'".'),n))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(908),i=n(914),o=n(934),a=n(918);function u(e){for(var t=Object.create(null),n=e.getSchema(),u=n?n.getDirectives():a.j,s=0;s<u.length;s++){var c=u[s];t[c.name]=!c.isRepeatable}for(var l=e.getDocument().definitions,p=0;p<l.length;p++){var f=l[p];f.kind===i.a.DIRECTIVE_DEFINITION&&(t[f.name.value]=!f.repeatable)}var d=Object.create(null),h=Object.create(null);return{enter:function(n){if(null!=n.directives){var a;if(n.kind===i.a.SCHEMA_DEFINITION||n.kind===i.a.SCHEMA_EXTENSION)a=d;else if(Object(o.d)(n)||Object(o.e)(n)){var u=n.name.value;void 0===(a=h[u])&&(h[u]=a=Object.create(null))}else a=Object.create(null);for(var s=0,c=n.directives;s<c.length;s++){var l=c[s],p=l.name.value;t[p]&&(a[p]?e.reportError(new r.a('The directive "@'.concat(p,'" can only be used once at this location.'),[a[p],l])):a[p]=l)}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,i=n(912),o=n(915),a=n(927),u=n(926),s=n(908),c=n(914),l=n(934),p=n(911);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=e.getSchema(),n=Object.create(null),r=0,f=e.getDocument().definitions;r<f.length;r++){var d=f[r];Object(l.d)(d)&&(n[d.name.value]=d)}return{ScalarTypeExtension:m,ObjectTypeExtension:m,InterfaceTypeExtension:m,UnionTypeExtension:m,EnumTypeExtension:m,InputObjectTypeExtension:m};function m(r){var l,f=r.name.value,d=n[f],m=null===t||void 0===t?void 0:t.getType(f);if(d?l=h[d.kind]:m&&(l=function(e){if(Object(p.R)(e))return c.a.SCALAR_TYPE_EXTENSION;if(Object(p.N)(e))return c.a.OBJECT_TYPE_EXTENSION;if(Object(p.H)(e))return c.a.INTERFACE_TYPE_EXTENSION;if(Object(p.T)(e))return c.a.UNION_TYPE_EXTENSION;if(Object(p.E)(e))return c.a.ENUM_TYPE_EXTENSION;if(Object(p.F)(e))return c.a.INPUT_OBJECT_TYPE_EXTENSION;Object(o.a)(0,"Unexpected type: "+Object(i.a)(e))}(m)),l){if(l!==r.kind){var v=function(e){switch(e){case c.a.SCALAR_TYPE_EXTENSION:return"scalar";case c.a.OBJECT_TYPE_EXTENSION:return"object";case c.a.INTERFACE_TYPE_EXTENSION:return"interface";case c.a.UNION_TYPE_EXTENSION:return"union";case c.a.ENUM_TYPE_EXTENSION:return"enum";case c.a.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}Object(o.a)(0,"Unexpected kind: "+Object(i.a)(e))}(r.kind);e.reportError(new s.a("Cannot extend non-".concat(v,' type "').concat(f,'".'),d?[d,r]:r))}}else{var g=Object.keys(n);t&&(g=g.concat(Object.keys(t.getTypeMap())));var y=Object(u.a)(f,g);e.reportError(new s.a('Cannot extend type "'.concat(f,'" because it is not defined.')+Object(a.a)(y),r.name))}}}var h=(f(r={},c.a.SCALAR_TYPE_DEFINITION,c.a.SCALAR_TYPE_EXTENSION),f(r,c.a.OBJECT_TYPE_DEFINITION,c.a.OBJECT_TYPE_EXTENSION),f(r,c.a.INTERFACE_TYPE_DEFINITION,c.a.INTERFACE_TYPE_EXTENSION),f(r,c.a.UNION_TYPE_DEFINITION,c.a.UNION_TYPE_EXTENSION),f(r,c.a.ENUM_TYPE_DEFINITION,c.a.ENUM_TYPE_EXTENSION),f(r,c.a.INPUT_OBJECT_TYPE_DEFINITION,c.a.INPUT_OBJECT_TYPE_EXTENSION),r)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new r.a('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var i=t.name.value;n[i]?e.reportError(new r.a('There can be only one input field named "'.concat(i,'".'),[n[i],t.name])):n[i]=t.name}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return M}));var r=n(1034),i=n(1035),o=n(1036),a=n(1037),u=n(1027),s=n(1038),c=n(1039),l=n(1040),p=n(1041),f=n(1042),d=n(1043),h=n(1044),m=n(1045),v=n(1046),g=n(1047),y=n(1048),b=n(1049),D=n(1028),E=n(1029),C=n(1050),T=n(1031),x=n(1051),A=n(1052),S=n(1053),w=n(1054),O=n(1032),k=n(1021),N=n(1022),F=n(1023),_=n(1024),I=n(1025),j=n(1026),L=n(1030),P=Object.freeze([r.a,i.a,o.a,a.a,u.a,s.a,c.a,l.a,p.a,f.a,d.a,h.a,m.a,v.a,g.a,y.a,b.a,D.a,E.a,C.b,T.a,x.a,A.b,S.a,w.a,O.a]),M=Object.freeze([k.a,N.a,F.a,_.a,I.a,j.a,u.a,D.a,E.a,L.a,C.a,T.a,O.a,A.a])},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(908),i=n(914),o=n(934);function a(e){return{Document:function(t){for(var n=0,a=t.definitions;n<a.length;n++){var u=a[n];if(!Object(o.b)(u)){var s=u.kind===i.a.SCHEMA_DEFINITION||u.kind===i.a.SCHEMA_EXTENSION?"schema":'"'+u.name.value+'"';e.reportError(new r.a("The ".concat(s," definition is not executable."),u))}}return!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new r.a('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(908),i=n(914);function o(e){var t=0;return{Document:function(e){t=e.definitions.filter((function(e){return e.kind===i.a.OPERATION_DEFINITION})).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new r.a("This anonymous operation must be the only defined operation.",n))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){return{OperationDefinition:function(t){"subscription"===t.operation&&1!==t.selectionSet.selections.length&&e.reportError(new r.a(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(908),i=n(920),o=n(911),a=n(923);function u(e){return{InlineFragment:function(t){var n=t.typeCondition;if(n){var u=Object(a.a)(e.getSchema(),n);if(u&&!Object(o.D)(u)){var s=Object(i.a)(n);e.reportError(new r.a('Fragment cannot condition on non composite type "'.concat(s,'".'),n))}}},FragmentDefinition:function(t){var n=Object(a.a)(e.getSchema(),t.typeCondition);if(n&&!Object(o.D)(n)){var u=Object(i.a)(t.typeCondition);e.reportError(new r.a('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(u,'".'),t.typeCondition))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(908),i=n(920),o=n(911),a=n(923);function u(e){return{VariableDefinition:function(t){var n=Object(a.a)(e.getSchema(),t.type);if(n&&!Object(o.G)(n)){var u=t.variable.name.value,s=Object(i.a)(t.type);e.reportError(new r.a('Variable "$'.concat(u,'" cannot be non-input type "').concat(s,'".'),t.type))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(912),i=n(908),o=n(911);function a(e){return{Field:function(t){var n=e.getType(),a=t.selectionSet;if(n)if(Object(o.I)(Object(o.A)(n))){if(a){var u=t.name.value,s=Object(r.a)(n);e.reportError(new i.a('Field "'.concat(u,'" must not have a selection since type "').concat(s,'" has no subfields.'),a))}}else if(!a){var c=t.name.value,l=Object(r.a)(n);e.reportError(new i.a('Field "'.concat(c,'" of type "').concat(l,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(993),i=n(927),o=n(926),a=n(942),u=n(908),s=n(911);function c(e){return{Field:function(t){var n=e.getParentType();if(n&&!e.getFieldDef()){var c=e.getSchema(),l=t.name.value,p=Object(i.a)("to use an inline fragment on",function(e,t,n){if(!Object(s.C)(t))return[];for(var i=new Set,o=Object.create(null),u=0,c=e.getPossibleTypes(t);u<c.length;u++){var l=c[u];if(l.getFields()[n]){i.add(l),o[l.name]=1;for(var p=0,f=l.getInterfaces();p<f.length;p++){var d,h=f[p];h.getFields()[n]&&(i.add(h),o[h.name]=(null!==(d=o[h.name])&&void 0!==d?d:0)+1)}}}return Object(r.a)(i).sort((function(t,n){var r=o[n.name]-o[t.name];return 0!==r?r:Object(s.H)(t)&&e.isSubType(t,n)?-1:Object(s.H)(n)&&e.isSubType(n,t)?1:Object(a.a)(t.name,n.name)})).map((function(e){return e.name}))}(c,n,l));""===p&&(p=Object(i.a)(function(e,t){if(Object(s.N)(e)||Object(s.H)(e)){var n=Object.keys(e.getFields());return Object(o.a)(t,n)}return[]}(n,l))),e.reportError(new u.a('Cannot query field "'.concat(l,'" on type "').concat(n.name,'".')+p,t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new r.a('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){return{FragmentSpread:function(t){var n=t.name.value;e.getFragment(n)||e.reportError(new r.a('Unknown fragment "'.concat(n,'".'),t.name))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=[],n=[];return{OperationDefinition:function(e){return t.push(e),!1},FragmentDefinition:function(e){return n.push(e),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o<t.length;o++)for(var a=t[o],u=0,s=e.getRecursivelyReferencedFragments(a);u<s.length;u++){i[s[u].name.value]=!0}for(var c=0;c<n.length;c++){var l=n[c],p=l.name.value;!0!==i[p]&&e.reportError(new r.a('Fragment "'.concat(p,'" is never used.'),l))}}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(912),i=n(908),o=n(911),a=n(923),u=n(961);function s(e){return{InlineFragment:function(t){var n=e.getType(),a=e.getParentType();if(Object(o.D)(n)&&Object(o.D)(a)&&!Object(u.a)(e.getSchema(),n,a)){var s=Object(r.a)(a),c=Object(r.a)(n);e.reportError(new i.a('Fragment cannot be spread here as objects of type "'.concat(s,'" can never be of type "').concat(c,'".'),t))}},FragmentSpread:function(t){var n=t.name.value,s=function(e,t){var n=e.getFragment(t);if(n){var r=Object(a.a)(e.getSchema(),n.typeCondition);if(Object(o.D)(r))return r}}(e,n),c=e.getParentType();if(s&&c&&!Object(u.a)(e.getSchema(),s,c)){var l=Object(r.a)(c),p=Object(r.a)(s);e.reportError(new i.a('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(l,'" can never be of type "').concat(p,'".'),t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return o(e),!1}};function o(a){if(!t[a.name.value]){var u=a.name.value;t[u]=!0;var s=e.getFragmentSpreads(a.selectionSet);if(0!==s.length){i[u]=n.length;for(var c=0;c<s.length;c++){var l=s[c],p=l.name.value,f=i[p];if(n.push(l),void 0===f){var d=e.getFragment(p);d&&o(d)}else{var h=n.slice(f),m=h.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new r.a('Cannot spread fragment "'.concat(p,'" within itself')+(""!==m?" via ".concat(m,"."):"."),h))}n.pop()}i[u]=void 0}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new r.a('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++){var a=i[o].node,u=a.name.value;!0!==t[u]&&e.reportError(new r.a(n.name?'Variable "$'.concat(u,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(u,'" is not defined.'),[a,n]))}}},VariableDefinition:function(e){t[e.variable.name.value]=!0}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(908);function i(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),a=0;a<o.length;a++){i[o[a].node.name.value]=!0}for(var u=0,s=t;u<s.length;u++){var c=s[u],l=c.variable.name.value;!0!==i[l]&&e.reportError(new r.a(n.name?'Variable "$'.concat(l,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(l,'" is never used.'),c))}}},VariableDefinition:function(e){t.push(e)}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return f}));var r=n(927),i=n(926),o=n(908),a=n(914),u=n(918);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return c(c({},f(e)),{},{Argument:function(t){var n=e.getArgument(),a=e.getFieldDef(),u=e.getParentType();if(!n&&a&&u){var s=t.name.value,c=a.args.map((function(e){return e.name})),l=Object(i.a)(s,c);e.reportError(new o.a('Unknown argument "'.concat(s,'" on field "').concat(u.name,".").concat(a.name,'".')+Object(r.a)(l),t))}}})}function f(e){for(var t=Object.create(null),n=e.getSchema(),s=n?n.getDirectives():u.j,c=0;c<s.length;c++){var l=s[c];t[l.name]=l.args.map((function(e){return e.name}))}for(var p=e.getDocument().definitions,f=0;f<p.length;f++){var d=p[f];if(d.kind===a.a.DIRECTIVE_DEFINITION){var h,m=null!==(h=d.arguments)&&void 0!==h?h:[];t[d.name.value]=m.map((function(e){return e.name.value}))}}return{Directive:function(n){var a=n.name.value,u=t[a];if(n.arguments&&u)for(var s=0,c=n.arguments;s<c.length;s++){var l=c[s],p=l.name.value;if(-1===u.indexOf(p)){var f=Object(i.a)(p,u);e.reportError(new o.a('Unknown argument "'.concat(p,'" on directive "@').concat(a,'".')+Object(r.a)(f),l))}}return!1}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(917),i=n(925),o=n(912),a=n(927),u=n(926),s=n(908),c=n(920),l=n(911);function p(e){return{ListValue:function(t){var n=Object(l.B)(e.getParentInputType());if(!Object(l.J)(n))return f(e,t),!1},ObjectValue:function(t){var n=Object(l.A)(e.getInputType());if(!Object(l.F)(n))return f(e,t),!1;for(var a=Object(i.a)(t.fields,(function(e){return e.name.value})),u=0,c=Object(r.a)(n.getFields());u<c.length;u++){var p=c[u];if(!a[p.name]&&Object(l.Q)(p)){var d=Object(o.a)(p.type);e.reportError(new s.a('Field "'.concat(n.name,".").concat(p.name,'" of required type "').concat(d,'" was not provided.'),t))}}},ObjectField:function(t){var n=Object(l.A)(e.getParentInputType());if(!e.getInputType()&&Object(l.F)(n)){var r=Object(u.a)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.a('Field "'.concat(t.name.value,'" is not defined by type "').concat(n.name,'".')+Object(a.a)(r),t))}},NullValue:function(t){var n=e.getInputType();Object(l.L)(n)&&e.reportError(new s.a('Expected value of type "'.concat(Object(o.a)(n),'", found ').concat(Object(c.a)(t),"."),t))},EnumValue:function(t){return f(e,t)},IntValue:function(t){return f(e,t)},FloatValue:function(t){return f(e,t)},StringValue:function(t){return f(e,t)},BooleanValue:function(t){return f(e,t)}}}function f(e,t){var n=e.getInputType();if(n){var r=Object(l.A)(n);if(Object(l.I)(r))try{if(void 0===r.parseLiteral(t,void 0)){var i=Object(o.a)(n);e.reportError(new s.a('Expected value of type "'.concat(i,'", found ').concat(Object(c.a)(t),"."),t))}}catch(p){var a=Object(o.a)(n);p instanceof s.a?e.reportError(p):e.reportError(new s.a('Expected value of type "'.concat(a,'", found ').concat(Object(c.a)(t),"; ")+p.message,t,void 0,void 0,void 0,p))}else{var u=Object(o.a)(n);e.reportError(new s.a('Expected value of type "'.concat(u,'", found ').concat(Object(c.a)(t),"."),t))}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h}));var r=n(912),i=n(925),o=n(908),a=n(914),u=n(920),s=n(918),c=n(911);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){return p(p({},h(e)),{},{Field:{leave:function(t){var n,a=e.getFieldDef();if(!a)return!1;for(var u=null!==(n=t.arguments)&&void 0!==n?n:[],s=Object(i.a)(u,(function(e){return e.name.value})),l=0,p=a.args;l<p.length;l++){var f=p[l];if(!s[f.name]&&Object(c.P)(f)){var d=Object(r.a)(f.type);e.reportError(new o.a('Field "'.concat(a.name,'" argument "').concat(f.name,'" of type "').concat(d,'" is required, but it was not provided.'),t))}}}}})}function h(e){for(var t=Object.create(null),n=e.getSchema(),l=n?n.getDirectives():s.j,p=0;p<l.length;p++){var f=l[p];t[f.name]=Object(i.a)(f.args.filter(c.P),(function(e){return e.name}))}for(var d=e.getDocument().definitions,h=0;h<d.length;h++){var v=d[h];if(v.kind===a.a.DIRECTIVE_DEFINITION){var g,y=null!==(g=v.arguments)&&void 0!==g?g:[];t[v.name.value]=Object(i.a)(y.filter(m),(function(e){return e.name.value}))}}return{Directive:{leave:function(n){var a=n.name.value,s=t[a];if(s)for(var l,p=null!==(l=n.arguments)&&void 0!==l?l:[],f=Object(i.a)(p,(function(e){return e.name.value})),d=0,h=Object.keys(s);d<h.length;d++){var m=h[d];if(!f[m]){var v=s[m].type,g=Object(c.S)(v)?Object(r.a)(v):Object(u.a)(v);e.reportError(new o.a('Directive "@'.concat(a,'" argument "').concat(m,'" of type "').concat(g,'" is required, but it was not provided.'),n))}}}}}}function m(e){return e.type.kind===a.a.NON_NULL_TYPE&&null==e.defaultValue}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(912),i=n(908),o=n(914),a=n(911),u=n(923),s=n(961);function c(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var o=e.getRecursiveVariableUsages(n),a=0;a<o.length;a++){var s=o[a],c=s.node,p=s.type,f=s.defaultValue,d=c.name.value,h=t[d];if(h&&p){var m=e.getSchema(),v=Object(u.a)(m,h.type);if(v&&!l(m,v,h.defaultValue,p,f)){var g=Object(r.a)(v),y=Object(r.a)(p);e.reportError(new i.a('Variable "$'.concat(d,'" of type "').concat(g,'" used in position expecting type "').concat(y,'".'),[h,c]))}}}}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function l(e,t,n,r,i){if(Object(a.L)(r)&&!Object(a.L)(t)){if(!(null!=n&&n.kind!==o.a.NULL)&&!(void 0!==i))return!1;var u=r.ofType;return Object(s.c)(e,t,u)}return Object(s.c)(e,t,r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(935),i=n(932),o=n(912),a=n(908),u=n(914),s=n(920),c=n(911),l=n(923);function p(e){return Array.isArray(e)?e.map((function(e){var t=e[0],n=e[1];return'subfields "'.concat(t,'" conflict because ')+p(n)})).join(" and "):e}function f(e){var t=new E,n=new Map;return{SelectionSet:function(r){for(var o=function(e,t,n,r,o){var a=[],u=y(e,t,r,o),s=u[0],c=u[1];if(function(e,t,n,r,o){for(var a=0,u=Object(i.a)(o);a<u.length;a++){var s=u[a],c=s[0],l=s[1];if(l.length>1)for(var p=0;p<l.length;p++)for(var f=p+1;f<l.length;f++){var d=v(e,n,r,!1,c,l[p],l[f]);d&&t.push(d)}}}(e,a,t,n,s),0!==c.length)for(var l=0;l<c.length;l++){d(e,a,t,n,!1,s,c[l]);for(var p=l+1;p<c.length;p++)h(e,a,t,n,!1,c[l],c[p])}return a}(e,n,t,e.getParentType(),r),u=0;u<o.length;u++){var s=o[u],c=s[0],l=c[0],f=c[1],m=s[1],g=s[2],b=p(f);e.reportError(new a.a('Fields "'.concat(l,'" conflict because ').concat(b,". Use different aliases on the fields to fetch both if this was intentional."),m.concat(g)))}}}}function d(e,t,n,r,i,o,a){var u=e.getFragment(a);if(u){var s=b(e,n,u),c=s[0],l=s[1];if(o!==c){m(e,t,n,r,i,o,c);for(var p=0;p<l.length;p++)d(e,t,n,r,i,o,l[p])}}}function h(e,t,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var u=e.getFragment(o),s=e.getFragment(a);if(u&&s){var c=b(e,n,u),l=c[0],p=c[1],f=b(e,n,s),d=f[0],v=f[1];m(e,t,n,r,i,l,d);for(var g=0;g<v.length;g++)h(e,t,n,r,i,o,v[g]);for(var y=0;y<p.length;y++)h(e,t,n,r,i,p[y],a)}}}function m(e,t,n,r,i,o,a){for(var u=0,s=Object.keys(o);u<s.length;u++){var c=s[u],l=a[c];if(l)for(var p=o[c],f=0;f<p.length;f++)for(var d=0;d<l.length;d++){var h=v(e,n,r,i,c,p[f],l[d]);h&&t.push(h)}}}function v(e,t,n,i,a,u,l){var p=u[0],f=u[1],v=u[2],b=l[0],D=l[1],E=l[2],C=i||p!==b&&Object(c.N)(p)&&Object(c.N)(b);if(!C){var T,x,A=f.name.value,S=D.name.value;if(A!==S)return[[a,'"'.concat(A,'" and "').concat(S,'" are different fields')],[f],[D]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every((function(e){var n,i,o=Object(r.a)(t,(function(t){return t.name.value===e.name.value}));return!!o&&(n=e.value,i=o.value,Object(s.a)(n)===Object(s.a)(i))}))}(null!==(T=f.arguments)&&void 0!==T?T:[],null!==(x=D.arguments)&&void 0!==x?x:[]))return[[a,"they have differing arguments"],[f],[D]]}var w=null===v||void 0===v?void 0:v.type,O=null===E||void 0===E?void 0:E.type;if(w&&O&&g(w,O))return[[a,'they return conflicting types "'.concat(Object(o.a)(w),'" and "').concat(Object(o.a)(O),'"')],[f],[D]];var k=f.selectionSet,N=D.selectionSet;if(k&&N){var F=function(e,t,n,r,i,o,a,u){var s=[],c=y(e,t,i,o),l=c[0],p=c[1],f=y(e,t,a,u),v=f[0],g=f[1];if(m(e,s,t,n,r,l,v),0!==g.length)for(var b=0;b<g.length;b++)d(e,s,t,n,r,l,g[b]);if(0!==p.length)for(var D=0;D<p.length;D++)d(e,s,t,n,r,v,p[D]);for(var E=0;E<p.length;E++)for(var C=0;C<g.length;C++)h(e,s,t,n,r,p[E],g[C]);return s}(e,t,n,C,Object(c.A)(w),k,Object(c.A)(O),N);return function(e,t,n,r){if(e.length>0)return[[t,e.map((function(e){return e[0]}))],e.reduce((function(e,t){var n=t[1];return e.concat(n)}),[n]),e.reduce((function(e,t){var n=t[2];return e.concat(n)}),[r])]}(F,a,f,D)}}function g(e,t){return Object(c.J)(e)?!Object(c.J)(t)||g(e.ofType,t.ofType):!!Object(c.J)(t)||(Object(c.L)(e)?!Object(c.L)(t)||g(e.ofType,t.ofType):!!Object(c.L)(t)||!(!Object(c.I)(e)&&!Object(c.I)(t))&&e!==t)}function y(e,t,n,r){var i=t.get(r);if(!i){var o=Object.create(null),a=Object.create(null);D(e,n,r,o,a),i=[o,Object.keys(a)],t.set(r,i)}return i}function b(e,t,n){var r=t.get(n.selectionSet);if(r)return r;var i=Object(l.a)(e.getSchema(),n.typeCondition);return y(e,t,i,n.selectionSet)}function D(e,t,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case u.a.FIELD:var p=s.name.value,f=void 0;(Object(c.N)(t)||Object(c.H)(t))&&(f=t.getFields()[p]);var d=s.alias?s.alias.value:p;r[d]||(r[d]=[]),r[d].push([t,s,f]);break;case u.a.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case u.a.INLINE_FRAGMENT:var h=s.typeCondition,m=h?Object(l.a)(e.getSchema(),h):t;D(e,m,s.selectionSet,r,i)}}}var E=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(e,t,n){var r=this._data[e],i=r&&r[t];return void 0!==i&&(!1!==n||!1===i)},t.add=function(e,t,n){this._pairSetAdd(e,t,n),this._pairSetAdd(t,e,n)},t._pairSetAdd=function(e,t,n){var r=this._data[e];r||(r=Object.create(null),this._data[e]=r),r[t]=n},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(919),i=n(908),o=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function a(e){var t=u(e);if(t)throw t;return e}function u(e){return"string"===typeof e||Object(r.a)(0,"Expected name to be a string."),e.length>1&&"_"===e[0]&&"_"===e[1]?new i.a('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.')):o.test(e)?void 0:new i.a('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(914),i=n(928),o=n(994);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=function(){function e(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}var t=e.prototype;return t.reportError=function(e){this._onError(e)},t.getDocument=function(){return this._ast},t.getFragment=function(e){var t=this._fragments;return t||(this._fragments=t=this.getDocument().definitions.reduce((function(e,t){return t.kind===r.a.FRAGMENT_DEFINITION&&(e[t.name.value]=t),e}),Object.create(null))),t[e]},t.getFragmentSpreads=function(e){var t=this._fragmentSpreads.get(e);if(!t){t=[];for(var n=[e];0!==n.length;)for(var i=0,o=n.pop().selections;i<o.length;i++){var a=o[i];a.kind===r.a.FRAGMENT_SPREAD?t.push(a):a.selectionSet&&n.push(a.selectionSet)}this._fragmentSpreads.set(e,t)}return t},t.getRecursivelyReferencedFragments=function(e){var t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];for(var n=Object.create(null),r=[e.selectionSet];0!==r.length;)for(var i=r.pop(),o=0,a=this.getFragmentSpreads(i);o<a.length;o++){var u=a[o].name.value;if(!0!==n[u]){n[u]=!0;var s=this.getFragment(u);s&&(t.push(s),r.push(s.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t},e}(),s=function(e){function t(t,n,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i}return a(t,e),t.prototype.getSchema=function(){return this._schema},t}(u),c=function(e){function t(t,n,r,i){var o;return(o=e.call(this,n,i)||this)._schema=t,o._typeInfo=r,o._variableUsages=new Map,o._recursiveVariableUsages=new Map,o}a(t,e);var n=t.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(e){var t=this._variableUsages.get(e);if(!t){var n=[],r=new o.a(this._schema);Object(i.c)(e,Object(o.b)(r,{VariableDefinition:function(){return!1},Variable:function(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t},n.getRecursiveVariableUsages=function(e){var t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(var n=0,r=this.getRecursivelyReferencedFragments(e);n<r.length;n++){var i=r[n];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(e,t)}return t},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(u)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(915),i=n(908),o=n(911);function a(e){return{Field:function(t){var n=e.getFieldDef(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getParentType();null!=a||Object(r.a)(0),e.reportError(new i.a("The field ".concat(a.name,".").concat(n.name," is deprecated. ").concat(o),t))}},Argument:function(t){var n=e.getArgument(),o=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=o){var a=e.getDirective();if(null!=a)e.reportError(new i.a('Directive "@'.concat(a.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),t));else{var u=e.getParentType(),s=e.getFieldDef();null!=u&&null!=s||Object(r.a)(0),e.reportError(new i.a('Field "'.concat(u.name,".").concat(s.name,'" argument "').concat(n.name,'" is deprecated. ').concat(o),t))}}},ObjectField:function(t){var n=Object(o.A)(e.getParentInputType());if(Object(o.F)(n)){var r=n.getFields()[t.name.value],a=null===r||void 0===r?void 0:r.deprecationReason;null!=a&&e.reportError(new i.a("The input field ".concat(n.name,".").concat(r.name," is deprecated. ").concat(a),t))}},EnumValue:function(t){var n=e.getEnumValue(),a=null===n||void 0===n?void 0:n.deprecationReason;if(n&&null!=a){var u=Object(o.A)(e.getInputType());null!=u||Object(r.a)(0),e.reportError(new i.a('The enum value "'.concat(u.name,".").concat(n.name,'" is deprecated. ').concat(a),t))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=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)}}(),a=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 o(t,e),t.prototype.render=function(){var e,t=this,n=this.props.operations||[],r=this.state.optionsOpen,o=n&&n.length>1,a=null;if(o&&r){var u=this.state.highlight;a=i.a.createElement("ul",{className:"execute-options"},n.map((function(e,n){var r=e.name?e.name.value:"<Unnamed "+e.operation+">";return i.a.createElement("li",{key:r+"-"+n,className:e===u?"selected":void 0,onMouseOver:function(){return t.setState({highlight:e})},onMouseOut:function(){return t.setState({highlight:null})},onMouseUp:function(){return t._onOptionSelected(e)}},r)})))}!this.props.isRunning&&o||(e=this._onClick);var s=function(){};this.props.isRunning||!o||r||(s=this._onOptionsOpen);var c=this.props.isRunning?i.a.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):i.a.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return i.a.createElement("div",{className:"execute-button-wrap"},i.a.createElement("button",{type:"button",className:"execute-button",onMouseDown:s,onClick:e,title:"Execute Query (Ctrl-Enter)"},i.a.createElement("svg",{width:"34",height:"34"},c)),a)},t}(i.a.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=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 a(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 u=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 o(t,e),t.shouldRender=function(e){var t=a(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 r=this.state.width+"x"+this.state.height;null!==this.state.mime&&(r+=" "+this.state.mime),n=i.a.createElement("div",null,r)}return i.a.createElement("div",null,i.a.createElement("img",{onLoad:function(){return t._updateMetadata()},ref:function(e){t._node=e},src:null===(e=a(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}(i.a.Component)},function(e,t,n){"use strict";var r=n(913),i=n(1068),o=n(1072),a=n(1073),u=n(1081),s=n(1095),c=n(1108),l=n(996),p=n(1110),f={default:n(1111),zero:n(1112),commonmark:n(1113)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var v=["http:","https:","mailto:"];function g(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(n){}return l.encode(l.format(t))}function y(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(n){}return l.decode(l.format(t),l.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 s,this.block=new u,this.core=new a,this.renderer=new o,this.linkify=new c,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=f[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},function(e){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"}')},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,u,s,c,l="";for("string"!==typeof t&&(n=t,t=i.defaultChars),"undefined"===typeof n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(u=e.charCodeAt(o),n&&37===u&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(u<128)l+=c[u];else if(u>=55296&&u<=57343){if(u>=55296&&u<=56319&&o+1<a&&(s=e.charCodeAt(o+1))>=56320&&s<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";var r={};function i(e,t){var n;return"string"!==typeof t&&(t=i.defaultChars),n=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t<e.length;t++)i[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,u,s,c="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?c+=n[i]:192===(224&i)&&t+3<r&&128===(192&(o=parseInt(e.slice(t+4,t+6),16)))?(c+=(s=i<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(s),t+=3):224===(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&o)&&128===(192&a))?(c+=(s=i<<12&61440|o<<6&4032|63&a)<2048||s>=55296&&s<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(s),t+=6):240===(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),u=parseInt(e.slice(t+10,t+12),16),128===(192&o)&&128===(192&a)&&128===(192&u))?((s=i<<18&1835008|o<<12&258048|a<<6&4032|63&u)<65536||s>1114111?c+="\ufffd\ufffd\ufffd\ufffd":(s-=65536,c+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):c+="\ufffd";return c}))}i.defaultChars=";/?:@&=+$,#",i.componentChars="",e.exports=i},function(e,t,n){"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||""}},function(e,t,n){"use strict";function r(){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 i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(u),c=["%","/","?",";","#"].concat(s),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,o,u,s,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var v=a.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var g=i.exec(m);if(g&&(o=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===m.substr(0,2))||g&&d[g]||(m=m.substr(2),this.slashes=!0)),!d[g]&&(s||g&&!h[g])){var y,b,D=-1;for(n=0;n<l.length;n++)-1!==(u=m.indexOf(l[n]))&&(-1===D||u<D)&&(D=u);for(-1!==(b=-1===D?m.lastIndexOf("@"):m.lastIndexOf("@",D))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),D=-1,n=0;n<c.length;n++)-1!==(u=m.indexOf(c[n]))&&(-1===D||u<D)&&(D=u);-1===D&&(D=m.length),":"===m[D-1]&&D--;var E=m.slice(0,D);m=m.slice(D),this.parseHost(E),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C){var T=this.hostname.split(/\./);for(n=0,r=T.length;n<r;n++){var x=T[n];if(x&&!x.match(p)){for(var A="",S=0,w=x.length;S<w;S++)x.charCodeAt(S)>127?A+="x":A+=x[S];if(!A.match(p)){var O=T.slice(0,n),k=T.slice(n+1),N=x.match(f);N&&(O.push(N[1]),k.unshift(N[2])),k.length&&(m=k.join(".")+m),this.hostname=O.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=m.indexOf("#");-1!==F&&(this.hash=m.substr(F),m=m.slice(0,F));var _=m.indexOf("?");return-1!==_&&(this.search=m.substr(_),m=m.slice(0,_)),m&&(this.pathname=m),h[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=o.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,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(997),t.Cc=n(998),t.Cf=n(1067),t.P=n(967),t.Z=n(999)},function(e,t){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]/},function(e,t,n){"use strict";t.parseLinkLabel=n(1069),t.parseLinkDestination=n(1070),t.parseLinkTitle=n(1071)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,u=-1,s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){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=c,-1}return i&&(u=e.pos),e.pos=c,u}},function(e,t,n){"use strict";var r=n(913).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,u={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return u;if(60===i)return u;if(62===i)return u.pos=t+1,u.str=r(e.slice(a+1,t)),u.ok=!0,u;92===i&&t+1<n?t+=2:t++}return u}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 u;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(u.str=r(e.slice(a,t)),u.lines=0,u.pos=t,u.ok=!0),u}},function(e,t,n){"use strict";var r=n(913).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,u=t,s={ok:!1,pos:0,lines:0,str:""};if(t>=n)return s;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return s;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return s.pos=t+1,s.lines=a,s.str=r(e.slice(u+1,t)),s.ok=!0,s;if(40===i&&41===o)return s;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return s}},function(e,t,n){"use strict";var r=n(913).assign,i=n(913).unescapeAll,o=n(913).escapeHtml,a={};function u(){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 u,s,c,l,p,f=e[t],d=f.info?i(f.info).trim():"",h="",m="";return d&&(h=(c=d.split(/(\s+)/g))[0],m=c.slice(2).join("")),0===(u=n.highlight&&n.highlight(f.content,h,m)||o(f.content)).indexOf("<pre")?u+"\n":d?(s=f.attrIndex("class"),l=f.attrs?f.attrs.slice():[],s<0?l.push(["class",n.langPrefix+h]):(l[s]=l[s].slice(),l[s][1]+=" "+n.langPrefix+h),p={attrs:l},"<pre><code"+a.renderAttrs(p)+">"+u+"</code></pre>\n"):"<pre><code"+a.renderAttrs(f)+">"+u+"</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},u.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},u.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":">")},u.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,u=e.length;a<u;a++)"undefined"!==typeof o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},u.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},u.prototype.render=function(e,t,n){var r,i,o,a="",u=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 u[o]?a+=u[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=u},function(e,t,n){"use strict";var r=n(968),i=[["normalize",n(1074)],["block",n(1075)],["inline",n(1076)],["linkify",n(1077)],["replacements",n(1078)],["smartquotes",n(1079)]];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(1080),e.exports=o},function(e,t,n){"use strict";var r=/\r\n?|\n/g,i=/\0/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(i,"\ufffd"),e.src=t}},function(e,t,n){"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)}},function(e,t,n){"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)}},function(e,t,n){"use strict";var r=n(913).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,u,s,c,l,p,f,d,h,m,v,g,y,b,D,E=e.tokens;if(e.md.options.linkify)for(n=0,o=E.length;n<o;n++)if("inline"===E[n].type&&e.md.linkify.pretest(E[n].content))for(m=0,t=(a=E[n].children).length-1;t>=0;t--)if("link_close"!==(s=a[t]).type){if("html_inline"===s.type&&(D=s.content,/^<a[>\s]/i.test(D)&&m>0&&m--,i(s.content)&&m++),!(m>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(p=s.content,b=e.md.linkify.match(p),c=[],h=s.level,d=0,l=0;l<b.length;l++)v=b[l].url,g=e.md.normalizeLink(v),e.md.validateLink(g)&&(y=b[l].text,y=b[l].schema?"mailto:"!==b[l].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(f=b[l].index)>d&&((u=new e.Token("text","",0)).content=p.slice(d,f),u.level=h,c.push(u)),(u=new e.Token("link_open","a",1)).attrs=[["href",g]],u.level=h++,u.markup="linkify",u.info="auto",c.push(u),(u=new e.Token("text","",0)).content=y,u.level=h,c.push(u),(u=new e.Token("link_close","a",-1)).level=--h,u.markup="linkify",u.info="auto",c.push(u),d=b[l].lastIndex);d<p.length&&((u=new e.Token("text","",0)).content=p.slice(d),u.level=h,c.push(u)),E[n].children=a=r(a,t,c)}}else for(t--;a[t].level!==s.level&&"link_open"!==a[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,i=/\((c|tm|r|p)\)/i,o=/\((c|tm|r|p)\)/gi,a={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function u(e,t){return a[t.toLowerCase()]}function s(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(o,u)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function c(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}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&&(i.test(e.tokens[t].content)&&s(e.tokens[t].children),r.test(e.tokens[t].content)&&c(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(913).isWhiteSpace,i=n(913).isPunctChar,o=n(913).isMdAsciiPunct,a=/['"]/,u=/['"]/g;function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function c(e,t){var n,a,c,l,p,f,d,h,m,v,g,y,b,D,E,C,T,x,A,S,w;for(A=[],n=0;n<e.length;n++){for(a=e[n],d=e[n].level,T=A.length-1;T>=0&&!(A[T].level<=d);T--);if(A.length=T+1,"text"===a.type){p=0,f=(c=a.content).length;e:for(;p<f&&(u.lastIndex=p,l=u.exec(c));){if(E=C=!0,p=l.index+1,x="'"===l[0],m=32,l.index-1>=0)m=c.charCodeAt(l.index-1);else for(T=n-1;T>=0&&("softbreak"!==e[T].type&&"hardbreak"!==e[T].type);T--)if(e[T].content){m=e[T].content.charCodeAt(e[T].content.length-1);break}if(v=32,p<f)v=c.charCodeAt(p);else for(T=n+1;T<e.length&&("softbreak"!==e[T].type&&"hardbreak"!==e[T].type);T++)if(e[T].content){v=e[T].content.charCodeAt(0);break}if(g=o(m)||i(String.fromCharCode(m)),y=o(v)||i(String.fromCharCode(v)),b=r(m),(D=r(v))?E=!1:y&&(b||g||(E=!1)),b?C=!1:g&&(D||y||(C=!1)),34===v&&'"'===l[0]&&m>=48&&m<=57&&(C=E=!1),E&&C&&(E=g,C=y),E||C){if(C)for(T=A.length-1;T>=0&&(h=A[T],!(A[T].level<d));T--)if(h.single===x&&A[T].level===d){h=A[T],x?(S=t.md.options.quotes[2],w=t.md.options.quotes[3]):(S=t.md.options.quotes[0],w=t.md.options.quotes[1]),a.content=s(a.content,l.index,w),e[h.token].content=s(e[h.token].content,h.pos,S),p+=w.length-1,h.token===n&&(p+=S.length-1),f=(c=a.content).length,A.length=T;continue e}E?A.push({token:n,pos:l.index,single:x,level:d}):C&&x&&(a.content=s(a.content,l.index,"\u2019"))}else x&&(a.content=s(a.content,l.index,"\u2019"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&c(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(969);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},function(e,t,n){"use strict";var r=n(968),i=[["table",n(1082),["paragraph","reference"]],["code",n(1083)],["fence",n(1084),["paragraph","reference","blockquote","list"]],["blockquote",n(1085),["paragraph","reference","blockquote","list"]],["hr",n(1086),["paragraph","reference","blockquote","list"]],["list",n(1087),["paragraph","reference","blockquote"]],["reference",n(1088)],["html_block",n(1089),["paragraph","reference","blockquote"]],["heading",n(1091),["paragraph","reference","blockquote"]],["lheading",n(1092)],["paragraph",n(1093)]];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,u=!1,s=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!u,e.isEmpty(e.line-1)&&(u=!0),(a=e.line)<n&&e.isEmpty(a)&&(u=!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(1094),e.exports=o},function(e,t,n){"use strict";var r=n(913).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,u="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(u+=e.substring(a,r-1),a=r):(n.push(u+e.substring(a,r)),u="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(u+e.substring(a)),n}e.exports=function(e,t,n,a){var u,s,c,l,p,f,d,h,m,v,g,y,b,D,E,C,T,x;if(t+2>n)return!1;if(f=t+1,e.sCount[f]<e.blkIndent)return!1;if(e.sCount[f]-e.blkIndent>=4)return!1;if((c=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(T=e.src.charCodeAt(c++))&&45!==T&&58!==T)return!1;if(c>=e.eMarks[f])return!1;if(124!==(x=e.src.charCodeAt(c++))&&45!==x&&58!==x&&!r(x))return!1;if(45===T&&r(x))return!1;for(;c<e.eMarks[f];){if(124!==(u=e.src.charCodeAt(c))&&45!==u&&58!==u&&!r(u))return!1;c++}for(d=(s=i(e,t+1)).split("|"),v=[],l=0;l<d.length;l++){if(!(g=d[l].trim())){if(0===l||l===d.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===(s=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=o(s)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==v.length)return!1;if(a)return!0;for(D=e.parentType,e.parentType="table",C=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],l=0;l<d.length;l++)m=e.push("th_open","th",1),v[l]&&(m.attrs=[["style","text-align:"+v[l]]]),(m=e.push("inline","",0)).content=d[l].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),f=t+2;f<n&&!(e.sCount[f]<e.blkIndent);f++){for(E=!1,l=0,p=C.length;l<p;l++)if(C[l](e,f,n,!0)){E=!0;break}if(E)break;if(!(s=i(e,f).trim()))break;if(e.sCount[f]-e.blkIndent>=4)break;for((d=o(s)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),f===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[f,f+1],l=0;l<h;l++)m=e.push("td_open","td",1),v[l]&&(m.attrs=[["style","text-align:"+v[l]]]),(m=e.push("inline","",0)).content=d[l]?d[l].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]=f),m=e.push("table_close","table",-1),y[1]=f,e.parentType=D,e.line=f,!0}},function(e,t,n){"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}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o,a,u,s,c,l,p=!1,f=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>d)return!1;if(126!==(i=e.src.charCodeAt(f))&&96!==i)return!1;if(s=f,(o=(f=e.skipChars(f,i))-s)<3)return!1;if(l=e.src.slice(s,f),a=e.src.slice(f,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(u=t;!(++u>=n)&&!((f=s=e.bMarks[u]+e.tShift[u])<(d=e.eMarks[u])&&e.sCount[u]<e.blkIndent);)if(e.src.charCodeAt(f)===i&&!(e.sCount[u]-e.blkIndent>=4)&&!((f=e.skipChars(f,i))-s<o)&&!((f=e.skipSpaces(f))<d)){p=!0;break}return o=e.sCount[t],e.line=u+(p?1:0),(c=e.push("fence","code",0)).info=a,c.content=e.getLines(t+1,u,o,!0),c.markup=l,c.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(913).isSpace;e.exports=function(e,t,n,i){var o,a,u,s,c,l,p,f,d,h,m,v,g,y,b,D,E,C,T,x,A=e.lineMax,S=e.bMarks[t]+e.tShift[t],w=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(s=d=e.sCount[t]+1,32===e.src.charCodeAt(S)?(S++,s++,d++,o=!1,D=!0):9===e.src.charCodeAt(S)?(D=!0,(e.bsCount[t]+d)%4===3?(S++,s++,d++,o=!1):o=!0):D=!1,h=[e.bMarks[t]],e.bMarks[t]=S;S<w&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,S++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(D?1:0),l=S>=w,y=[e.sCount[t]],e.sCount[t]=d-s,b=[e.tShift[t]],e.tShift[t]=S-e.bMarks[t],C=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(x=e.sCount[f]<e.blkIndent,!((S=e.bMarks[f]+e.tShift[f])>=(w=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(S++)||x){if(l)break;for(E=!1,u=0,c=C.length;u<c;u++)if(C[u](e,f,n,!0)){E=!0;break}if(E){e.lineMax=f,0!==e.blkIndent&&(h.push(e.bMarks[f]),m.push(e.bsCount[f]),b.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}h.push(e.bMarks[f]),m.push(e.bsCount[f]),b.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}else{for(s=d=e.sCount[f]+1,32===e.src.charCodeAt(S)?(S++,s++,d++,o=!1,D=!0):9===e.src.charCodeAt(S)?(D=!0,(e.bsCount[f]+d)%4===3?(S++,s++,d++,o=!1):o=!0):D=!1,h.push(e.bMarks[f]),e.bMarks[f]=S;S<w&&(a=e.src.charCodeAt(S),r(a));)9===a?d+=4-(d+e.bsCount[f]+(o?1:0))%4:d++,S++;l=S>=w,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(D?1:0),y.push(e.sCount[f]),e.sCount[f]=d-s,b.push(e.tShift[f]),e.tShift[f]=S-e.bMarks[f]}for(v=e.blkIndent,e.blkIndent=0,(T=e.push("blockquote_open","blockquote",1)).markup=">",T.map=p=[t,0],e.md.block.tokenize(e,t,f),(T=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=A,e.parentType=g,p[1]=e.line,u=0;u<b.length;u++)e.bMarks[u+t]=h[u],e.tShift[u+t]=b[u],e.sCount[u+t]=y[u],e.bsCount[u+t]=m[u];return e.blkIndent=v,!0}},function(e,t,n){"use strict";var r=n(913).isSpace;e.exports=function(e,t,n,i){var o,a,u,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(c++))&&45!==o&&95!==o)return!1;for(a=1;c<l;){if((u=e.src.charCodeAt(c++))!==o&&!r(u))return!1;u===o&&a++}return!(a<3)&&(i||(e.line=t+1,(s=e.push("hr","hr",0)).map=[t,e.line],s.markup=Array(a+1).join(String.fromCharCode(o))),!0)}},function(e,t,n){"use strict";var r=n(913).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,u,s,c,l,p,f,d,h,m,v,g,y,b,D,E,C,T,x,A,S,w,O,k,N,F,_,I,j=!1,L=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(j=!0),(O=o(e,t))>=0){if(f=!0,N=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(N,O-1)),j&&1!==y)return!1}else{if(!((O=i(e,t))>=0))return!1;f=!1}if(j&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(O-1),r)return!0;for(v=e.tokens.length,f?(I=e.push("ordered_list_open","ol",1),1!==y&&(I.attrs=[["start",y]])):I=e.push("bullet_list_open","ul",1),I.map=m=[t,0],I.markup=String.fromCharCode(g),D=t,k=!1,_=e.md.block.ruler.getRules("list"),T=e.parentType,e.parentType="list";D<n;){for(w=O,b=e.eMarks[D],p=E=e.sCount[D]+O-(e.bMarks[t]+e.tShift[t]);w<b;){if(9===(a=e.src.charCodeAt(w)))E+=4-(E+e.bsCount[D])%4;else{if(32!==a)break;E++}w++}if((l=(u=w)>=b?1:E-p)>4&&(l=1),c=p+l,(I=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),I.map=d=[t,0],f&&(I.info=e.src.slice(N,O-1)),S=e.tight,A=e.tShift[t],x=e.sCount[t],C=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=u-e.bMarks[t],e.sCount[t]=E,u>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!k||(L=!1),k=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[t]=A,e.sCount[t]=x,e.tight=S,(I=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),D=t=e.line,d[1]=D,u=e.bMarks[t],D>=n)break;if(e.sCount[D]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(F=!1,s=0,h=_.length;s<h;s++)if(_[s](e,D,n,!0)){F=!0;break}if(F)break;if(f){if((O=o(e,D))<0)break;N=e.bMarks[D]+e.tShift[D]}else if((O=i(e,D))<0)break;if(g!==e.src.charCodeAt(O-1))break}return(I=f?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=D,e.line=D,e.parentType=T,L&&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}},function(e,t,n){"use strict";var r=n(913).normalizeReference,i=n(913).isSpace;e.exports=function(e,t,n,o){var a,u,s,c,l,p,f,d,h,m,v,g,y,b,D,E,C=0,T=e.bMarks[t]+e.tShift[t],x=e.eMarks[t],A=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(T))return!1;for(;++T<x;)if(93===e.src.charCodeAt(T)&&92!==e.src.charCodeAt(T-1)){if(T+1===x)return!1;if(58!==e.src.charCodeAt(T+1))return!1;break}for(c=e.lineMax,D=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";A<c&&!e.isEmpty(A);A++)if(!(e.sCount[A]-e.blkIndent>3)&&!(e.sCount[A]<0)){for(b=!1,p=0,f=D.length;p<f;p++)if(D[p](e,A,c,!0)){b=!0;break}if(b)break}for(x=(y=e.getLines(t,A,e.blkIndent,!1).trim()).length,T=1;T<x;T++){if(91===(a=y.charCodeAt(T)))return!1;if(93===a){h=T;break}(10===a||92===a&&++T<x&&10===y.charCodeAt(T))&&C++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(T=h+2;T<x;T++)if(10===(a=y.charCodeAt(T)))C++;else if(!i(a))break;if(!(v=e.md.helpers.parseLinkDestination(y,T,x)).ok)return!1;if(l=e.md.normalizeLink(v.str),!e.md.validateLink(l))return!1;for(u=T=v.pos,s=C+=v.lines,g=T;T<x;T++)if(10===(a=y.charCodeAt(T)))C++;else if(!i(a))break;for(v=e.md.helpers.parseLinkTitle(y,T,x),T<x&&g!==T&&v.ok?(E=v.str,T=v.pos,C+=v.lines):(E="",T=u,C=s);T<x&&(a=y.charCodeAt(T),i(a));)T++;if(T<x&&10!==y.charCodeAt(T)&&E)for(E="",T=u,C=s;T<x&&(a=y.charCodeAt(T),i(a));)T++;return!(T<x&&10!==y.charCodeAt(T))&&(!!(d=r(y.slice(1,h)))&&(o||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[d]&&(e.env.references[d]={title:E,href:l}),e.parentType=m,e.line=t+C+1),!0))}},function(e,t,n){"use strict";var r=n(1090),i=n(1e3).HTML_OPEN_CLOSE_TAG_RE,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,u,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(c))return!1;for(s=e.src.slice(c,l),i=0;i<o.length&&!o[i][0].test(s);i++);if(i===o.length)return!1;if(r)return o[i][2];if(a=t+1,!o[i][1].test(s))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],l=e.eMarks[a],s=e.src.slice(c,l),o[i][1].test(s)){0!==s.length&&a++;break}return e.line=a,(u=e.push("html_block","",0)).map=[t,a],u.content=e.getLines(t,a,e.blkIndent,!0),!0}},function(e,t,n){"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"]},function(e,t,n){"use strict";var r=n(913).isSpace;e.exports=function(e,t,n,i){var o,a,u,s,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(c))||c>=l)return!1;for(a=1,o=e.src.charCodeAt(++c);35===o&&c<l&&a<=6;)a++,o=e.src.charCodeAt(++c);return!(a>6||c<l&&!r(o))&&(i||(l=e.skipSpacesBack(l,c),(u=e.skipCharsBack(l,35,c))>c&&r(e.src.charCodeAt(u-1))&&(l=u),e.line=t+1,(s=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),s.map=[t,e.line],(s=e.push("inline","",0)).content=e.src.slice(c,l).trim(),s.map=[t,e.line],s.children=[],(s=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,u,s,c,l,p,f,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(f=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d])<(c=e.eMarks[d])&&(45===(p=e.src.charCodeAt(s))||61===p)&&(s=e.skipChars(s,p),(s=e.skipSpaces(s))>=c)){l=61===p?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!l&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(u=e.push("heading_open","h"+String(l),1)).markup=String.fromCharCode(p),u.map=[t,e.line],(u=e.push("inline","",0)).content=r,u.map=[t,e.line-1],u.children=[],(u=e.push("heading_close","h"+String(l),-1)).markup=String.fromCharCode(p),e.parentType=f,!0)}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,u,s=t+1,c=e.md.block.ruler.getRules("paragraph"),l=e.lineMax;for(u=e.parentType,e.parentType="paragraph";s<l&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3)&&!(e.sCount[s]<0)){for(r=!1,i=0,o=c.length;i<o;i++)if(c[i](e,s,l,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(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=u,!0}},function(e,t,n){"use strict";var r=n(969),i=n(913).isSpace;function o(e,t,n,r){var o,a,u,s,c,l,p,f;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="",f=!1,u=s=l=p=0,c=(a=this.src).length;s<c;s++){if(o=a.charCodeAt(s),!f){if(i(o)){l++,9===o?p+=4-p%4:p++;continue}f=!0}10!==o&&s!==c-1||(10!==o&&s++,this.bMarks.push(u),this.eMarks.push(s),this.tShift.push(l),this.sCount.push(p),this.bsCount.push(0),f=!1,l=0,p=0,u=s+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,u,s,c,l,p,f=e;if(e>=t)return"";for(l=new Array(t-e),o=0;f<t;f++,o++){for(a=0,p=s=this.bMarks[f],c=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];s<c&&a<n;){if(u=this.src.charCodeAt(s),i(u))9===u?a+=4-(a+this.bsCount[f])%4:a++;else{if(!(s-p<this.tShift[f]))break;a++}s++}l[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(s,c):this.src.slice(s,c)}return l.join("")},o.prototype.Token=r,e.exports=o},function(e,t,n){"use strict";var r=n(968),i=[["text",n(1096)],["newline",n(1097)],["escape",n(1098)],["backticks",n(1099)],["strikethrough",n(1001).tokenize],["emphasis",n(1002).tokenize],["link",n(1100)],["image",n(1101)],["autolink",n(1102)],["html_inline",n(1103)],["entity",n(1104)]],o=[["balance_pairs",n(1105)],["strikethrough",n(1001).postProcess],["emphasis",n(1002).postProcess],["text_collapse",n(1106)]];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,u=e.cache;if("undefined"===typeof u[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++,u[r]=e.pos}else e.pos=u[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,u=new this.State(e,t,n,r);for(this.tokenize(u),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](u)},a.prototype.State=n(1107),e.exports=a},function(e,t,n){"use strict";function r(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,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(913).isSpace;e.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&r(e.src.charCodeAt(o));)o++;return e.pos=o,!0}},function(e,t,n){"use strict";for(var r=n(913).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}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,u,s,c,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,r=e.posMax;l<r&&96===e.src.charCodeAt(l);)l++;if(s=(i=e.src.slice(n,l)).length,e.backticksScanned&&(e.backticks[s]||0)<=n)return t||(e.pending+=i),e.pos+=s,!0;for(a=u=l;-1!==(a=e.src.indexOf("`",u));){for(u=a+1;u<r&&96===e.src.charCodeAt(u);)u++;if((c=u-a)===s)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(l,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=u,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}},function(e,t,n){"use strict";var r=n(913).normalizeReference,i=n(913).isSpace;e.exports=function(e,t){var n,o,a,u,s,c,l,p,f="",d="",h=e.pos,m=e.posMax,v=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(s=e.pos+1,(u=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=u+1)<m&&40===e.src.charCodeAt(c)){for(g=!1,c++;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(c>=m)return!1;if(v=c,(l=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(f=e.md.normalizeLink(l.str),e.md.validateLink(f)?c=l.pos:f="",v=c;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);if(l=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<m&&v!==c&&l.ok)for(d=l.str,c=l.pos;c<m&&(o=e.src.charCodeAt(c),i(o)||10===o);c++);}(c>=m||41!==e.src.charCodeAt(c))&&(g=!0),c++}if(g){if("undefined"===typeof e.env.references)return!1;if(c<m&&91===e.src.charCodeAt(c)?(v=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?a=e.src.slice(v,c++):c=u+1):c=u+1,a||(a=e.src.slice(s,u)),!(p=e.env.references[r(a)]))return e.pos=h,!1;f=p.href,d=p.title}return t||(e.pos=s,e.posMax=u,e.push("link_open","a",1).attrs=n=[["href",f]],d&&n.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=c,e.posMax=m,!0}},function(e,t,n){"use strict";var r=n(913).normalizeReference,i=n(913).isSpace;e.exports=function(e,t){var n,o,a,u,s,c,l,p,f,d,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(c=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((l=s+1)<b&&40===e.src.charCodeAt(l)){for(l++;l<b&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(l>=b)return!1;for(v=l,(f=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(g=e.md.normalizeLink(f.str),e.md.validateLink(g)?l=f.pos:g=""),v=l;l<b&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);if(f=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<b&&v!==l&&f.ok)for(d=f.str,l=f.pos;l<b&&(o=e.src.charCodeAt(l),i(o)||10===o);l++);else d="";if(l>=b||41!==e.src.charCodeAt(l))return e.pos=y,!1;l++}else{if("undefined"===typeof e.env.references)return!1;if(l<b&&91===e.src.charCodeAt(l)?(v=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?u=e.src.slice(v,l++):l=s+1):l=s+1,u||(u=e.src.slice(c,s)),!(p=e.env.references[r(u)]))return e.pos=y,!1;g=p.href,d=p.title}return t||(a=e.src.slice(c,s),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,d&&n.push(["title",d])),e.pos=l,e.posMax=b,!0}},function(e,t,n){"use strict";var r=/^([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])?)*)$/,i=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,t){var n,o,a,u,s,c,l=e.pos;if(60!==e.src.charCodeAt(l))return!1;for(s=e.pos,c=e.posMax;;){if(++l>=c)return!1;if(60===(u=e.src.charCodeAt(l)))return!1;if(62===u)break}return n=e.src.slice(s+1,l),i.test(n)?(o=e.md.normalizeLink(n),!!e.md.validateLink(o)&&(t||((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(n),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=n.length+2,!0)):!!r.test(n)&&(o=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(o)&&(t||((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(n),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=n.length+2,!0))}},function(e,t,n){"use strict";var r=n(1e3).HTML_TAG_RE;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))))}},function(e,t,n){"use strict";var r=n(995),i=n(913).has,o=n(913).isValidEntityCode,a=n(913).fromCodePoint,u=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,c,l=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(l))return!1;if(l+1<p)if(35===e.src.charCodeAt(l+1)){if(c=e.src.slice(l).match(u))return t||(n="x"===c[1][0].toLowerCase()?parseInt(c[1].slice(1),16):parseInt(c[1],10),e.pending+=o(n)?a(n):a(65533)),e.pos+=c[0].length,!0}else if((c=e.src.slice(l).match(s))&&i(r,c[1]))return t||(e.pending+=r[c[1]]),e.pos+=c[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,a,u,s,c,l={},p=t.length;if(p){var f=0,d=-2,h=[];for(n=0;n<p;n++)if(i=t[n],h.push(0),t[f].marker===i.marker&&d===i.token-1||(f=n),d=i.token,i.length=i.length||0,i.close){for(l.hasOwnProperty(i.marker)||(l[i.marker]=[-1,-1,-1,-1,-1,-1]),a=l[i.marker][(i.open?3:0)+i.length%3],u=r=f-h[f]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(s=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(s=!0)),!s)){c=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+c,h[r]=c,i.open=!1,o.end=n,o.close=!1,u=-1,d=-2;break}-1!==u&&(l[i.marker][(i.open?3:0)+(i.length||0)%3]=u)}}}e.exports=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(0,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(0,n[t].delimiters)}},function(e,t,n){"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)}},function(e,t,n){"use strict";var r=n(969),i=n(913).isWhiteSpace,o=n(913).isPunctChar,a=n(913).isMdAsciiPunct;function u(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}u.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},u.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},u.prototype.scanDelims=function(e,t){var n,r,u,s,c,l,p,f,d,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 u=h-e,r=h<g?this.src.charCodeAt(h):32,p=a(n)||o(String.fromCharCode(n)),d=a(r)||o(String.fromCharCode(r)),l=i(n),(f=i(r))?m=!1:d&&(l||p||(m=!1)),l?v=!1:p&&(f||d||(v=!1)),t?(s=m,c=v):(s=m&&(!v||p),c=v&&(!m||d)),{can_open:s,can_close:c,length:u}},u.prototype.Token=r,e.exports=u},function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var u={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},c="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function l(e){var t=e.re=n(1109)(e.__opts__),r=e.__tlds__.slice();function u(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");var s=[];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):s.push(t)}})),s.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 l=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+"))("+l+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","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 p(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 p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||u.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},u,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},l(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,l(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,u,s;if(this.re.schema_test.test(e))for((u=this.re.schema_search).lastIndex=0;null!==(t=u.exec(e));)if(i=this.testSchemaAt(e,t[2],u.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(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},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),l(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,l(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(997).source,t.src_Cc=n(998).source,t.src_Z=n(999).source,t.src_P=n(967).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\uff5c]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){(function(e,r){var i;!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var u,s=2147483647,c=36,l=/^xn--/,p=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,m=String.fromCharCode;function v(e){throw new RangeError(d[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(f,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function D(e){return g(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function E(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=c)e=h(e/35);return h(r+36*e/(e+38))}function T(e){var t,n,r,i,o,a,u,l,p,f,d,m=[],g=e.length,y=0,b=128,E=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&v("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=y,a=1,u=c;i>=g&&v("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||l>h((s-y)/a))&&v("overflow"),y+=l*a,!(l<(p=u<=E?1:u>=E+26?26:u-E));u+=c)a>h(s/(f=c-p))&&v("overflow"),a*=f;E=C(y-o,t=m.length+1,0==o),h(y/t)>s-b&&v("overflow"),b+=h(y/t),y%=t,m.splice(y++,0,b)}return D(m)}function x(e){var t,n,r,i,o,a,u,l,p,f,d,g,y,D,T,x=[];for(g=(e=b(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(d=e[a])<128&&x.push(m(d));for(r=i=x.length,i&&x.push("-");r<g;){for(u=s,a=0;a<g;++a)(d=e[a])>=t&&d<u&&(u=d);for(u-t>h((s-n)/(y=r+1))&&v("overflow"),n+=(u-t)*y,t=u,a=0;a<g;++a)if((d=e[a])<t&&++n>s&&v("overflow"),d==t){for(l=n,p=c;!(l<(f=p<=o?1:p>=o+26?26:p-o));p+=c)T=l-f,D=c-f,x.push(m(E(f+T%D,0))),l=h(T/D);x.push(m(E(l,0))),o=C(n,y,r==i),n=0,++r}++n,++t}return x.join("")}u={version:"1.4.1",ucs2:{decode:b,encode:D},decode:T,encode:x,toASCII:function(e){return y(e,(function(e){return p.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return y(e,(function(e){return l.test(e)?T(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return u}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(331)(e),n(186))},function(e,t,n){"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:{}}}},function(e,t,n){"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"]}}}},function(e,t,n){"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"]}}}},function(e,t,n){"use strict";var r=/["'&<>]/;e.exports=function(e){var t,n=""+e,i=r.exec(n);if(!i)return n;var o="",a=0,u=0;for(a=i.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}u!==a&&(o+=n.substring(u,a)),u=a+1,o+=t}return u!==a?o+n.substring(u,a):o}},function(e,t,n){!function(e){"use strict";var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t,n){return/\bstring\b/.test(e.getTokenTypeAt(r(t.line,0)))&&!/^[\'\"\`]/.test(n)}function u(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,u=o.length-1;u>=0;u--){var s=o[u].from(),c=o[u].to();s.line>=i||(c.line>=i&&(c=r(i,0)),i=s.line,null==a?n.uncomment(s,c,e)?a="un":(n.lineComment(s,c,e),a="line"):"un"==a?n.uncomment(s,c,e):n.lineComment(s,c,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var c=this,l=u(c,e),p=c.getLine(e.line);if(null!=p&&!a(c,e,p)){var f=s.lineComment||l.lineComment;if(f){var d=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,c.lastLine()+1),h=null==s.padding?" ":s.padding,m=s.commentBlankLines||e.line==i.line;c.operation((function(){if(s.indent){for(var t=null,i=e.line;i<d;++i){var a=(u=c.getLine(i)).slice(0,o(u));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<d;++i){var u=c.getLine(i),l=t.length;(m||n.test(u))&&(u.slice(0,l)!=t&&(l=o(u)),c.replaceRange(t+f+h,r(i,0),r(i,l)))}}else for(i=e.line;i<d;++i)(m||n.test(c.getLine(i)))&&c.replaceRange(f+h,r(i,0))}))}else(s.blockCommentStart||l.blockCommentStart)&&(s.fullLines=!0,c.blockComment(e,i,s))}})),e.defineExtension("blockComment",(function(e,o,a){a||(a=t);var s=this,c=u(s,e),l=a.blockCommentStart||c.blockCommentStart,p=a.blockCommentEnd||c.blockCommentEnd;if(l&&p){if(!/\bcomment\b/.test(s.getTokenTypeAt(r(e.line,0)))){var f=Math.min(o.line,s.lastLine());f!=e.line&&0==o.ch&&n.test(s.getLine(f))&&--f;var d=null==a.padding?" ":a.padding;e.line>f||s.operation((function(){if(0!=a.fullLines){var t=n.test(s.getLine(f));s.replaceRange(d+p,r(f)),s.replaceRange(l+d,r(e.line,0));var u=a.blockCommentLead||c.blockCommentLead;if(null!=u)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&s.replaceRange(u+d,r(h,0))}else{var m=0==i(s.getCursor("to"),o),v=!s.somethingSelected();s.replaceRange(p,o),m&&s.setSelection(v?o:s.getCursor("from"),o),s.replaceRange(l,e)}}))}}else(a.lineComment||c.lineComment)&&0!=a.fullLines&&s.lineComment(e,o,a)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var a,s=this,c=u(s,e),l=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,s.lastLine()),p=Math.min(e.line,l),f=o.lineComment||c.lineComment,d=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=p;m<=l;++m){var v=s.getLine(m),g=v.indexOf(f);if(g>-1&&!/comment/.test(s.getTokenTypeAt(r(m,g+1)))&&(g=-1),-1==g&&n.test(v))break e;if(g>-1&&n.test(v.slice(0,g)))break e;d.push(v)}if(s.operation((function(){for(var e=p;e<=l;++e){var t=d[e-p],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),a=!0,s.replaceRange("",r(e,n),r(e,i)))}})),a)return!0}var y=o.blockCommentStart||c.blockCommentStart,b=o.blockCommentEnd||c.blockCommentEnd;if(!y||!b)return!1;var D=o.blockCommentLead||c.blockCommentLead,E=s.getLine(p),C=E.indexOf(y);if(-1==C)return!1;var T=l==p?E:s.getLine(l),x=T.indexOf(b,l==p?C+y.length:0),A=r(p,C+1),S=r(l,x+1);if(-1==x||!/comment/.test(s.getTokenTypeAt(A))||!/comment/.test(s.getTokenTypeAt(S))||s.getRange(A,S,"\n").indexOf(b)>-1)return!1;var w=E.lastIndexOf(y,e.ch),O=-1==w?-1:E.slice(0,e.ch).indexOf(b,w+y.length);if(-1!=w&&-1!=O&&O+b.length!=e.ch)return!1;O=T.indexOf(b,i.ch);var k=T.slice(i.ch).lastIndexOf(y,O-i.ch);return w=-1==O||-1==k?-1:i.ch+k,(-1==O||-1==w||w==i.ch)&&(s.operation((function(){s.replaceRange("",r(l,x-(h&&T.slice(x-h.length,x)==h?h.length:0)),r(l,x+b.length));var e=C+y.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),s.replaceRange("",r(p,C),r(p,e)),D)for(var t=p+1;t<=l;++t){var i=s.getLine(t),o=i.indexOf(D);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+D.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),s.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(909))},function(e,t,n){!function(e){"use strict";function t(t,r,o,a){if(o&&o.call){var u=o;o=null}else u=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var s=i(t,o,"minFoldSize");function c(e){var n=u(t,r);if(!n||n.to.line-n.from.line<s)return null;if("fold"===a)return n;for(var i=t.findMarksAt(n.from),o=0;o<i.length;++o)if(i[o].__isFold){if(!e)return null;n.cleared=!0,i[o].clear()}return n}var l=c(!0);if(i(t,o,"scanUp"))for(;!l&&r.line>t.firstLine();)r=e.Pos(r.line-1,0),l=c(!1);if(l&&!l.cleared&&"unfold"!==a){var p=n(t,o,l);e.on(p,"mousedown",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(l.from,l.to,{replacedWith:p,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,l.from,l.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var r={rangeFinder:e.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return i(this,e,t)}))}(n(909))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909));n(949);var o=n(931);i.default.registerHelper("hint","graphql",(function(e,t){var n=t.schema;if(n){var r=e.getCursor(),a=e.getTokenAt(r),u=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,s=new o.Position(r.line,u),c={list:o.getAutocompleteSuggestions(n,e.getValue(),s,a,t.externalFragments).map((function(e){return{text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})),from:{line:r.line,ch:u},to:{line:r.line,ch:a.end}};return c&&c.list&&c.list.length>0&&(c.from=i.default.Pos(c.from.line,c.from.ch),c.to=i.default.Pos(c.to.line,c.to.ch),i.default.signal(e,"hasCompletion",e,c,a)),c}}))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909)),o=n(931),a=["error","warning","information","hint"],u={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};i.default.registerHelper("lint","graphql",(function(e,t){var n=t.schema;return o.getDiagnostics(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?a[e.severity-1]:a[0],type:e.source?u[e.source]:void 0,from:i.default.Pos(e.range.start.line,e.range.start.character),to:i.default.Pos(e.range.end.line,e.range.end.character)}}))}))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(910),o=r(n(909)),a=r(n(1004)),u=n(1006);function s(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"";"__"!==i.slice(0,2)&&(p(e,t,n,t.parentType),d(e,".")),d(e,i,"field-name",n,u.getFieldReference(t))}function c(e,t,n){var r;d(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,u.getDirectiveReference(t))}function l(e,t,n,r){d(e,": "),p(e,t,n,r)}function p(e,t,n,r){r instanceof i.GraphQLNonNull?(p(e,t,n,r.ofType),d(e,"!")):r instanceof i.GraphQLList?(d(e,"["),p(e,t,n,r.ofType),d(e,"]")):d(e,(null===r||void 0===r?void 0:r.name)||"","type-name",n,u.getTypeReference(t,r))}function f(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(void 0===n&&(n=""),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement("a")).href="javascript:void 0",a.addEventListener("click",(function(e){o(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(1007),o.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,o=r.step,h=a.default(t.schema,e.state);return"Field"===i&&0===o&&h.fieldDef||"AliasedField"===i&&2===o&&h.fieldDef?(function(e,t,n){s(e,t,n),l(e,t,n,t.type)}(n=document.createElement("div"),h,t),f(n,t,h.fieldDef),n):"Directive"===i&&1===o&&h.directiveDef?(c(n=document.createElement("div"),h,t),f(n,t,h.directiveDef),n):"Argument"===i&&0===o&&h.argDef?(function(e,t,n){var r;t.directiveDef?c(e,t,n):t.fieldDef&&s(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||"";d(e,"("),d(e,i,"arg-name",n,u.getArgumentReference(t)),l(e,t,n,t.inputType),d(e,")")}(n=document.createElement("div"),h,t),f(n,t,h.argDef),n):"EnumValue"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";p(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,u.getEnumValueReference(t))}(n=document.createElement("div"),h,t),f(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(p(n=document.createElement("div"),h,t,h.type),f(n,t,h.type),n):void 0}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",o=t.specifiedByUrl?"specifiedByUrl":"",a=t.directiveIsRepeatable?"isRepeatable":"",u=t.schemaDescription?n:"";function s(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(u,"\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(n,"\n ").concat(a,"\n locations\n args").concat(s("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(n,"\n ").concat(o,"\n fields(includeDeprecated: true) {\n name\n ").concat(n,"\n args").concat(s("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(s("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(n,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(n,"\n type { ...TypeRef }\n defaultValue\n ").concat(s("isDeprecated"),"\n ").concat(s("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909)),o=r(n(1004)),a=n(1006);n(1122),i.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,i=n.step,u=o.default(t.schema,n);return"Field"===r&&0===i&&u.fieldDef||"AliasedField"===r&&2===i&&u.fieldDef?a.getFieldReference(u):"Directive"===r&&1===i&&u.directiveDef?a.getDirectiveReference(u):"Argument"===r&&0===i&&u.argDef?a.getArgumentReference(u):"EnumValue"===r&&u.enumValue?a.getEnumValueReference(u):"NamedType"===r&&u.type?a.getTypeReference(u):void 0}}))},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909));function o(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null===n||void 0===n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&c(e)}}function a(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&l(e):e.state.jump.cursor=null}function u(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(s?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&c(e);var n=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},r=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};i.default.on(document,"keyup",(function o(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e),i.default.off(document,"keyup",o),i.default.off(document,"click",n),e.off("mousedown",r))})),i.default.on(document,"click",n),e.on("mousedown",r)}}i.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.jump.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",r);var s=e.state.jump.onMouseOut;i.default.off(e.getWrapperElement(),"mouseout",s),i.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var c=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:a.bind(null,e),onKeyDown:u.bind(null,e)};i.default.on(e.getWrapperElement(),"mouseover",c.onMouseOver),i.default.on(e.getWrapperElement(),"mouseout",c.onMouseOut),i.default.on(document,"keydown",c.onKeyDown)}}));var s="undefined"!==typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function c(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var u=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=u,e.state.jump.destination=a}}}}function l(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909)),o=r(n(1124));i.default.defineMode("graphql",o.default)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(931),o=r(n(1125));t.default=function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatWhile(i.isIgnored)},lexRules:i.LexRules,parseRules:i.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909)),o=n(910),a=r(n(1005)),u=r(n(1127));i.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),s=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,i=r.kind,s=r.step;if("Document"===i&&0===s)return u.default(e,t,[{text:"{"}]);var c=n.variableToType;if(!c)return;var l=function(e,t){var n={type:null,fields:null};return a.default(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?o.getNullableType(n.type):void 0;n.type=r instanceof o.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var i=n.type?o.getNamedType(n.type):void 0;n.fields=i instanceof o.GraphQLInputObjectType?i.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}})),n}(c,t.state);if("Document"===i||"Variable"===i&&0===s){var p=Object.keys(c);return u.default(e,t,p.map((function(e){return{text:'"'+e+'": ',type:c[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===s)&&l.fields){var f=Object.keys(l.fields).map((function(e){return l.fields[e]}));return u.default(e,t,f.map((function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===s||"ObjectField"===i&&2===s||"Variable"===i&&2===s){var d=l.type?o.getNamedType(l.type):void 0;if(d instanceof o.GraphQLInputObjectType)return u.default(e,t,[{text:"{"}]);if(d instanceof o.GraphQLEnumType){var h=d.getValues();return u.default(e,t,h.map((function(e){return{text:'"'+e.name+'"',type:d,description:e.description}})))}if(d===o.GraphQLBoolean)return u.default(e,t,[{text:"true",type:o.GraphQLBoolean,description:"Not false."},{text:"false",type:o.GraphQLBoolean,description:"Not true."}])}}(n,r,t);return s&&s.list&&s.list.length>0&&(s.from=i.default.Pos(s.from.line,s.from.ch),s.to=i.default.Pos(s.to.line,s.to.ch),i.default.signal(e,"hasCompletion",e,s,r)),s}))},function(e,t,n){"use strict";function r(e,t){var n=e.filter(t);return 0===n.length?e:n}function i(e){return e.toLowerCase().replace(/\W/g,"")}function o(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var u=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]+u),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]+u))}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}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=function(e,t){if(!t)return r(e,(function(e){return!e.isDeprecated}));return r(r(e.map((function(e){return{proximity:o(i(e.text),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry}))}(n,i(t.string));if(a){var u=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,ch:u},to:{line:e.line,ch:t.end}}}}},function(e,t,n){"use strict";var r=this&&this.__read||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(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(909)),a=n(910),u=i(n(1129));function s(e,t){if(!e||!t)return[];if(e instanceof a.GraphQLNonNull)return"Null"===t.kind?[[t,'Type "'+e+'" is non-nullable and cannot be null.']]:s(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof a.GraphQLList){var n=e.ofType;return"Array"===t.kind?l(t.values||[],(function(e){return s(n,e)})):s(n,t)}if(e instanceof a.GraphQLInputObjectType){if("Object"!==t.kind)return[[t,'Type "'+e+'" must be an Object.']];var r=Object.create(null),i=l(t.members,(function(t){var n,i=null===(n=null===t||void 0===t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;var o=e.getFields()[i];return o?s(o?o.type:void 0,t.value):[[t.key,'Type "'+e+'" does not have a field "'+i+'".']]}));return Object.keys(e.getFields()).forEach((function(n){r[n]||e.getFields()[n].type instanceof a.GraphQLNonNull&&i.push([t,'Object of type "'+e+'" is missing required field "'+n+'".'])})),i}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof a.GraphQLEnumType||e instanceof a.GraphQLScalarType)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||(null===(o=e.parseValue(t.value))||void 0===o||o!==o))?[[t,'Expected value of type "'+e+'".']]:[];var o}function c(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function l(e,t){return Array.prototype.concat.apply([],e.map(t))}o.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var i;try{i=u.default(e)}catch(a){if(a.stack)throw a;return[c(n,a,a.message)]}var o=t.variableToType;return o?function(e,t,n){var i=[];return n.members.forEach((function(n){var o;if(n){var a=null===(o=n.key)||void 0===o?void 0:o.value,u=t[a];u?s(u,n.value).forEach((function(t){var n=r(t,2),o=n[0],a=n[1];i.push(c(e,o,a))})):i.push(c(e,n.key,'Variable "$'+a+'" does not appear in any GraphQL query.'))}})),i}(n,o,i):[]}))},function(e,t,n){"use strict";var r,i,o,a,u,s,c;function l(){var e=o,t=[];if(h("{"),!v("}")){do{t.push(p())}while(v(","));h("}")}return{kind:"Object",start:e,end:u,members:t}}function p(){var e=o,t="String"===c?d():null;h("String"),h(":");var n=f();return{kind:"Member",start:e,end:u,key:t,value:n}}function f(){switch(c){case"[":return function(){var e=o,t=[];if(h("["),!v("]")){do{t.push(f())}while(v(","));h("]")}return{kind:"Array",start:e,end:u,values:t}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=d();return y(),e}h("Value")}function d(){return{kind:c,start:o,end:a,value:JSON.parse(r.slice(o,a))}}function h(e){if(c!==e){var t;if("EOF"===c)t="[end of file]";else if(a-o>1)t="`"+r.slice(o,a)+"`";else{var n=r.slice(o).match(/^.+?\b/);t="`"+(n?n[0]:r[o])+"`"}throw m("Expected "+e+" but found "+t+".")}y()}function m(e){return{message:e,start:o,end:a}}function v(e){if(c===e)return y(),!0}function g(){return a<i&&(a++,s=a===i?0:r.charCodeAt(a)),s}function y(){for(u=a;9===s||10===s||13===s||32===s;)g();if(0!==s){switch(o=a,s){case 34:return c="String",function(){g();for(;34!==s&&s>31;)if(92===s)switch(s=g()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:g();break;case 117:g(),b(),b(),b(),b();break;default:throw m("Bad character escape sequence.")}else{if(a===i)throw m("Unterminated string.");g()}if(34===s)return void g();throw m("Unterminated string.")}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c="Number",function(){45===s&&g();48===s?g():D();46===s&&(g(),D());69!==s&&101!==s||(43!==(s=g())&&45!==s||g(),D())}();case 102:if("false"!==r.slice(o,o+5))break;return a+=4,g(),void(c="Boolean");case 110:if("null"!==r.slice(o,o+4))break;return a+=3,g(),void(c="Null");case 116:if("true"!==r.slice(o,o+4))break;return a+=3,g(),void(c="Boolean")}c=r[o],g()}else c="EOF"}function b(){if(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)return g();throw m("Expected hexadecimal digit.")}function D(){if(s<48||s>57)throw m("Expected decimal digit.");do{g()}while(s>=48&&s<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r=e,i=e.length,o=a=u=-1,g(),y();var t=l();return h("EOF"),t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909)),o=n(931);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-variables",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:u,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[o.p("{"),o.list("Variable",o.opt(o.p(","))),o.p("}")],Variable:[c("variable"),o.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[o.t("Number","number")],StringValue:[o.t("String","string")],BooleanValue:[o.t("Keyword","builtin")],NullValue:[o.t("Keyword","keyword")],ListValue:[o.p("["),o.list("Value",o.opt(o.p(","))),o.p("]")],ObjectValue:[o.p("{"),o.list("ObjectField",o.opt(o.p(","))),o.p("}")],ObjectField:[c("attribute"),o.p(":"),"Value"]};function c(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(937),a=n(948),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(){return s=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},s.apply(this,arguments)},c=function(e){function t(t){var n=e.call(this,t)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n._onKeyUp=function(e,t){var r=t.keyCode;n.editor&&(r>=65&&r<=90||!t.shiftKey&&r>=48&&r<=57||t.shiftKey&&189===r||t.shiftKey&&222===r)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){n.editor&&(n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue)))},n._onHasCompletion=function(e,t){Object(o.a)(e,t,n.props.onHintInformationRender)},n.cachedValue=t.value||"",n}return u(t,e),t.prototype.componentDidMount=function(){var e=this;this.CodeMirror=n(909),n(949),n(950),n(970),n(952),n(951),n(971),n(929),n(953),n(930),n(1132),n(954);var t=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:s({"Cmd-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Ctrl-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Alt-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Shift-Space":function(){return e.editor.showHint({completeSingle:!1,container:e._node})},"Cmd-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Ctrl-Enter":function(){e.props.onRunQuery&&e.props.onRunQuery()},"Shift-Ctrl-P":function(){e.props.onPrettifyQuery&&e.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){e.props.onMergeQuery&&e.props.onMergeQuery()}},a.a)});t.on("change",this._onEdit),t.on("keyup",this._onKeyUp),t.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(e){if(this.CodeMirror=n(909),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 i.a.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.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(i.a.Component)},function(e,t,n){!function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,u=n.jsonld,s=n.json||u,c=!1!==n.trackScope,l=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function 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=D,D(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(d.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(p.test(n)){e.eatWhile(p);var r=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(r)){var i=f[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(u&&"@"==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 D(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 E="([{}])";function C(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(l){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 u=e.string.charAt(a),s=E.indexOf(u);if(s>=0&&s<3){if(!i){++a;break}if(0==--i){"("==u&&(o=!0);break}}else if(s>=3&&s<6)++i;else if(p.test(u))o=!0;else if(/["'\/`]/.test(u))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==u&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var T={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function A(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function S(e,t,n,r,i){var o=e.cc;for(w.state=e,w.stream=i,w.marked=null,w.cc=o,w.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():s?W:H)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return w.marked?w.marked:"variable"==n&&A(e,r)?"variable-2":t}}var w={state:null,column:null,marked:null,cc:null};function O(){for(var e=arguments.length-1;e>=0;e--)w.cc.push(arguments[e])}function k(){return O.apply(null,arguments),!0}function N(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function F(e){var t=w.state;if(w.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=_(e,t.context);if(null!=r)return void(t.context=r)}else if(!N(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!N(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function _(e,t){if(t){if(t.block){var n=_(e,t.prev);return n?n==t.prev?t:new j(n,t.vars,!0):null}return N(e,t.vars)?t:new j(t.prev,new L(e,t.vars),!1)}return null}function I(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function j(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var P=new L("this",new L("arguments",null));function M(){w.state.context=new j(w.state.context,w.state.localVars,!1),w.state.localVars=P}function B(){w.state.context=new j(w.state.context,w.state.localVars,!0),w.state.localVars=null}function R(){w.state.localVars=w.state.context.vars,w.state.context=w.state.context.prev}function V(e,t){var n=function(){var n=w.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,w.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function U(){var e=w.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function q(e){function t(n){return n==e?k():";"==e||"}"==n||")"==n||"]"==n?O():k(t)}return t}function H(e,t){return"var"==e?k(V("vardef",t),Oe,q(";"),U):"keyword a"==e?k(V("form"),K,H,U):"keyword b"==e?k(V("form"),H,U):"keyword d"==e?w.stream.match(/^\s*$/,!1)?k():k(V("stat"),Q,q(";"),U):"debugger"==e?k(q(";")):"{"==e?k(V("}"),B,fe,U,R):";"==e?k():"if"==e?("else"==w.state.lexical.info&&w.state.cc[w.state.cc.length-1]==U&&w.state.cc.pop()(),k(V("form"),K,H,U,je)):"function"==e?k(Be):"for"==e?k(V("form"),B,Le,H,R,U):"class"==e||l&&"interface"==t?(w.marked="keyword",k(V("form","class"==e?e:t),He,U)):"variable"==e?l&&"declare"==t?(w.marked="keyword",k(H)):l&&("module"==t||"enum"==t||"type"==t)&&w.stream.match(/^\s*\w/,!1)?(w.marked="keyword","enum"==t?k(tt):"type"==t?k(Ve,q("operator"),ge,q(";")):k(V("form"),ke,q("{"),V("}"),fe,U,U)):l&&"namespace"==t?(w.marked="keyword",k(V("form"),W,H,U)):l&&"abstract"==t?(w.marked="keyword",k(H)):k(V("stat"),oe):"switch"==e?k(V("form"),K,q("{"),V("}","switch"),B,fe,U,U,R):"case"==e?k(W,q(":")):"default"==e?k(q(":")):"catch"==e?k(V("form"),M,G,H,U,R):"export"==e?k(V("stat"),Ke,U):"import"==e?k(V("stat"),Qe,U):"async"==e?k(H):"@"==t?k(W,H):O(V("stat"),W,q(";"),U)}function G(e){if("("==e)return k(Ue,q(")"))}function W(e,t){return $(e,t,!1)}function z(e,t){return $(e,t,!0)}function K(e){return"("!=e?O():k(V(")"),Q,q(")"),U)}function $(e,t,n){if(w.state.fatArrowAt==w.stream.start){var r=n?te:ee;if("("==e)return k(M,V(")"),le(Ue,")"),U,q("=>"),r,R);if("variable"==e)return O(M,ke,q("=>"),r,R)}var i=n?Y:J;return T.hasOwnProperty(e)?k(i):"function"==e?k(Be,i):"class"==e||l&&"interface"==t?(w.marked="keyword",k(V("form"),qe,U)):"keyword c"==e||"async"==e?k(n?z:W):"("==e?k(V(")"),Q,q(")"),U,i):"operator"==e||"spread"==e?k(n?z:W):"["==e?k(V("]"),et,U,i):"{"==e?pe(ue,"}",null,i):"quasi"==e?O(X,i):"new"==e?k(ne(n)):k()}function Q(e){return e.match(/[;\}\)\],]/)?O():O(W)}function J(e,t){return","==e?k(Q):Y(e,t,!1)}function Y(e,t,n){var r=0==n?J:Y,i=0==n?W:z;return"=>"==e?k(M,n?te:ee,R):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?k(r):l&&"<"==t&&w.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(V(">"),le(ge,">"),U,r):"?"==t?k(W,q(":"),i):k(i):"quasi"==e?O(X,r):";"!=e?"("==e?pe(z,")","call",r):"."==e?k(ae,r):"["==e?k(V("]"),Q,q("]"),U,r):l&&"as"==t?(w.marked="keyword",k(ge,r)):"regexp"==e?(w.state.lastType=w.marked="operator",w.stream.backUp(w.stream.pos-w.stream.start-1),k(i)):void 0:void 0}function X(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?k(X):k(Q,Z)}function Z(e){if("}"==e)return w.marked="string-2",w.state.tokenize=D,k(X)}function ee(e){return C(w.stream,w.state),O("{"==e?H:W)}function te(e){return C(w.stream,w.state),O("{"==e?H:z)}function ne(e){return function(t){return"."==t?k(e?ie:re):"variable"==t&&l?k(Ae,e?Y:J):O(e?z:W)}}function re(e,t){if("target"==t)return w.marked="keyword",k(J)}function ie(e,t){if("target"==t)return w.marked="keyword",k(Y)}function oe(e){return":"==e?k(U,H):O(J,q(";"),U)}function ae(e){if("variable"==e)return w.marked="property",k()}function ue(e,t){return"async"==e?(w.marked="property",k(ue)):"variable"==e||"keyword"==w.style?(w.marked="property","get"==t||"set"==t?k(se):(l&&w.state.fatArrowAt==w.stream.start&&(n=w.stream.match(/^\s*:\s*/,!1))&&(w.state.fatArrowAt=w.stream.pos+n[0].length),k(ce))):"number"==e||"string"==e?(w.marked=u?"property":w.style+" property",k(ce)):"jsonld-keyword"==e?k(ce):l&&I(t)?(w.marked="keyword",k(ue)):"["==e?k(W,de,q("]"),ce):"spread"==e?k(z,ce):"*"==t?(w.marked="keyword",k(ue)):":"==e?O(ce):void 0;var n}function se(e){return"variable"!=e?O(ce):(w.marked="property",k(Be))}function ce(e){return":"==e?k(z):"("==e?O(Be):void 0}function le(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=w.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),k((function(n,r){return n==t||r==t?O():O(e)}),r)}return i==t||o==t?k():n&&n.indexOf(";")>-1?O(e):k(q(t))}return function(n,i){return n==t||i==t?k():O(e,r)}}function pe(e,t,n){for(var r=3;r<arguments.length;r++)w.cc.push(arguments[r]);return k(V(t,n),le(e,t),U)}function fe(e){return"}"==e?k():O(H,fe)}function de(e,t){if(l){if(":"==e)return k(ge);if("?"==t)return k(de)}}function he(e,t){if(l&&(":"==e||"in"==t))return k(ge)}function me(e){if(l&&":"==e)return w.stream.match(/^\s*\w+\s+is\b/,!1)?k(W,ve,ge):k(ge)}function ve(e,t){if("is"==t)return w.marked="keyword",k()}function ge(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(w.marked="keyword",k("typeof"==t?z:ge)):"variable"==e||"void"==t?(w.marked="type",k(xe)):"|"==t||"&"==t?k(ge):"string"==e||"number"==e||"atom"==e?k(xe):"["==e?k(V("]"),le(ge,"]",","),U,xe):"{"==e?k(V("}"),be,U,xe):"("==e?k(le(Te,")"),ye,xe):"<"==e?k(le(ge,">"),ge):"quasi"==e?O(Ee,xe):void 0}function ye(e){if("=>"==e)return k(ge)}function be(e){return e.match(/[\}\)\]]/)?k():","==e||";"==e?k(be):O(De,be)}function De(e,t){return"variable"==e||"keyword"==w.style?(w.marked="property",k(De)):"?"==t||"number"==e||"string"==e?k(De):":"==e?k(ge):"["==e?k(q("variable"),he,q("]"),De):"("==e?O(Re,De):e.match(/[;\}\)\],]/)?void 0:k()}function Ee(e,t){return"quasi"!=e?O():"${"!=t.slice(t.length-2)?k(Ee):k(ge,Ce)}function Ce(e){if("}"==e)return w.marked="string-2",w.state.tokenize=D,k(Ee)}function Te(e,t){return"variable"==e&&w.stream.match(/^\s*[?:]/,!1)||"?"==t?k(Te):":"==e?k(ge):"spread"==e?k(Te):O(ge)}function xe(e,t){return"<"==t?k(V(">"),le(ge,">"),U,xe):"|"==t||"."==e||"&"==t?k(ge):"["==e?k(ge,q("]"),xe):"extends"==t||"implements"==t?(w.marked="keyword",k(ge)):"?"==t?k(ge,q(":"),ge):void 0}function Ae(e,t){if("<"==t)return k(V(">"),le(ge,">"),U,xe)}function Se(){return O(ge,we)}function we(e,t){if("="==t)return k(ge)}function Oe(e,t){return"enum"==t?(w.marked="keyword",k(tt)):O(ke,de,_e,Ie)}function ke(e,t){return l&&I(t)?(w.marked="keyword",k(ke)):"variable"==e?(F(t),k()):"spread"==e?k(ke):"["==e?pe(Fe,"]"):"{"==e?pe(Ne,"}"):void 0}function Ne(e,t){return"variable"!=e||w.stream.match(/^\s*:/,!1)?("variable"==e&&(w.marked="property"),"spread"==e?k(ke):"}"==e?O():"["==e?k(W,q("]"),q(":"),Ne):k(q(":"),ke,_e)):(F(t),k(_e))}function Fe(){return O(ke,_e)}function _e(e,t){if("="==t)return k(z)}function Ie(e){if(","==e)return k(Oe)}function je(e,t){if("keyword b"==e&&"else"==t)return k(V("form","else"),H,U)}function Le(e,t){return"await"==t?k(Le):"("==e?k(V(")"),Pe,U):void 0}function Pe(e){return"var"==e?k(Oe,Me):"variable"==e?k(Me):O(Me)}function Me(e,t){return")"==e?k():";"==e?k(Me):"in"==t||"of"==t?(w.marked="keyword",k(W,Me)):O(W,Me)}function Be(e,t){return"*"==t?(w.marked="keyword",k(Be)):"variable"==e?(F(t),k(Be)):"("==e?k(M,V(")"),le(Ue,")"),U,me,H,R):l&&"<"==t?k(V(">"),le(Se,">"),U,Be):void 0}function Re(e,t){return"*"==t?(w.marked="keyword",k(Re)):"variable"==e?(F(t),k(Re)):"("==e?k(M,V(")"),le(Ue,")"),U,me,R):l&&"<"==t?k(V(">"),le(Se,">"),U,Re):void 0}function Ve(e,t){return"keyword"==e||"variable"==e?(w.marked="type",k(Ve)):"<"==t?k(V(">"),le(Se,">"),U):void 0}function Ue(e,t){return"@"==t&&k(W,Ue),"spread"==e?k(Ue):l&&I(t)?(w.marked="keyword",k(Ue)):l&&"this"==e?k(de,_e):O(ke,de,_e)}function qe(e,t){return"variable"==e?He(e,t):Ge(e,t)}function He(e,t){if("variable"==e)return F(t),k(Ge)}function Ge(e,t){return"<"==t?k(V(">"),le(Se,">"),U,Ge):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(w.marked="keyword"),k(l?ge:W,Ge)):"{"==e?k(V("}"),We,U):void 0}function We(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&I(t))&&w.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(w.marked="keyword",k(We)):"variable"==e||"keyword"==w.style?(w.marked="property",k(ze,We)):"number"==e||"string"==e?k(ze,We):"["==e?k(W,de,q("]"),ze,We):"*"==t?(w.marked="keyword",k(We)):l&&"("==e?O(Re,We):";"==e||","==e?k(We):"}"==e?k():"@"==t?k(W,We):void 0}function ze(e,t){if("!"==t)return k(ze);if("?"==t)return k(ze);if(":"==e)return k(ge,_e);if("="==t)return k(z);var n=w.state.lexical.prev;return O(n&&"interface"==n.info?Re:Be)}function Ke(e,t){return"*"==t?(w.marked="keyword",k(Ze,q(";"))):"default"==t?(w.marked="keyword",k(W,q(";"))):"{"==e?k(le($e,"}"),Ze,q(";")):O(H)}function $e(e,t){return"as"==t?(w.marked="keyword",k(q("variable"))):"variable"==e?O(z,$e):void 0}function Qe(e){return"string"==e?k():"("==e?O(W):"."==e?O(J):O(Je,Ye,Ze)}function Je(e,t){return"{"==e?pe(Je,"}"):("variable"==e&&F(t),"*"==t&&(w.marked="keyword"),k(Xe))}function Ye(e){if(","==e)return k(Je,Ye)}function Xe(e,t){if("as"==t)return w.marked="keyword",k(Je)}function Ze(e,t){if("from"==t)return w.marked="keyword",k(W)}function et(e){return"]"==e?k():O(le(z,"]"))}function tt(){return O(V("form"),ke,q("{"),V("}"),le(nt,"}"),U,U)}function nt(){return O(ke,_e)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return R.lex=!0,U.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new j(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(),C(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==D)return e.Pass;if(t.tokenize!=g)return 0;var i,u=r&&r.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var l=t.cc[c];if(l==U)s=s.prev;else if(l!=je&&l!=R)break}for(;("stat"==s.type||"form"==s.type)&&("}"==u||(i=t.cc[t.cc.length-1])&&(i==J||i==Y)&&!/^[,\.=+\-*:?[\(]/.test(r));)s=s.prev;a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var p=s.type,f=u==p;return"vardef"==p?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==p&&"{"==u?s.indented:"form"==p?s.indented+o:"stat"==p?s.indented+(rt(t,r)?a||o:0):"switch"!=s.info||f||0==n.doubleIndentSwitch?s.align?s.column+(f?0:1):s.indented+(f?0:o):s.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:u,jsonMode:s,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(909))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(41),a=n.n(o),u=n(948),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.viewer=null,t._node=null,t}return s(t,e),t.prototype.componentDidMount=function(){var e=n(909);n(951),n(952),n(930),n(1003),n(929),n(953),n(954),n(1134);var t=this.props.ResultsTooltip,r=this.props.ImagePreview;if(t||r){n(1007);var o=document.createElement("div");e.registerHelper("info","graphql-results",(function(e,n,u,s){var c=[];return t&&c.push(i.a.createElement(t,{pos:s})),r&&"function"===typeof r.shouldRender&&r.shouldRender(e)&&c.push(i.a.createElement(r,{token:e})),c.length?(a.a.render(i.a.createElement("div",null,c),o),o):(a.a.unmountComponentAtNode(o),null)}))}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:u.a})},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 i.a.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.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(i.a.Component)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(909)),o=n(931);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode("graphql-results",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:u,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var u={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[o.p("{"),o.list("Entry",o.p(",")),o.p("}")],Entry:[o.t("String","def"),o.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[o.t("Number","number")],StringValue:[o.t("String","string")],BooleanValue:[o.t("Keyword","builtin")],NullValue:[o.t("Keyword","keyword")],ListValue:[o.p("["),o.list("Value",o.p(",")),o.p("]")],ObjectValue:[o.p("{"),o.list("ObjectField",o.p(",")),o.p("}")],ObjectField:[o.t("String","property"),o.p(":"),"Value"]}},function(e,t,n){"use strict";var r=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}();t.a=r},function(e,t,n){"use strict";var r=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}();t.a=r},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t}function i(e){for(var t=0,n=e;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="IntrospectionQuery"},function(e,t,n){"use strict";function r(e,t,n){if("object"===typeof e&&"object"===typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n<t.length;n++)e[n]=r(e[n],t[n]);else for(n in t)e[n]=r(e[n],t[n]);return e}return t}function i(e,t,n){t.split&&(t=t.split("."));for(var i,o,a=0,u=t.length,s=e;a<u&&"__proto__"!==(o=t[a++])&&"constructor"!==o&&"prototype"!==o;)s=s[o]=a===u?r(s[o],n):typeof(i=s[o])===typeof t?i:0*t[a]!==0||~(""+t[a]).indexOf(".")?{}:[]}n.d(t,"a",(function(){return i}))},function(e,t,n){var r=n(956),i=n(1009);e.exports=function(){"use strict";var e=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n},t=function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var a,u=i(n.entries());try{for(u.s();!(a=u.n()).done;){var s=r(a.value,2),c=s[0],l=s[1];try{return{result:l()}}catch(n){0===c&&(e=n)}}}catch(p){u.e(p)}finally{u.f()}return{error:e}},n={hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}},o={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}},a={},u={};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(e){return"object"==s(e)&&null!==e};var c={};Object.defineProperty(c,"__esModule",{value:!0}),c.SYMBOL_TO_STRING_TAG=c.SYMBOL_ASYNC_ITERATOR=c.SYMBOL_ITERATOR=void 0;var l="function"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:"@@iterator";c.SYMBOL_ITERATOR=l;var p="function"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator";c.SYMBOL_ASYNC_ITERATOR=p;var f="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";c.SYMBOL_TO_STRING_TAG=f;var d={};Object.defineProperty(d,"__esModule",{value:!0}),d.getLocation=function(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}};var h={};Object.defineProperty(h,"__esModule",{value:!0}),h.printLocation=function(e){return v(e.source,(0,m.getLocation)(e.source,e.start))},h.printSourceLocation=v;var m=d;function v(e,t){var n=e.locationOffset.column-1,r=y(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,u=1===t.line?n:0,s=t.column+u,c="".concat(e.name,":").concat(a,":").concat(s,"\n"),l=r.split(/\r\n|[\n\r]/g),p=l[i];if(p.length>120){for(var f=Math.floor(s/80),d=s%80,h=[],m=0;m<p.length;m+=80)h.push(p.slice(m,m+80));return c+g([["".concat(a),h[0]]].concat(h.slice(1,f+1).map((function(e){return["",e]})),[[" ",y(d-1)+"^"],["",h[f+1]]]))}return c+g([["".concat(a-1),l[i-1]],["".concat(a),p],["",y(s-1)+"^"],["".concat(a+1),l[i+1]]])}function g(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return y(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function y(e){return Array(e+1).join(" ")}function b(e){return b="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},b(e)}Object.defineProperty(a,"__esModule",{value:!0}),a.printError=j,a.GraphQLError=void 0;var D,E=(D=u)&&D.__esModule?D:{default:D},C=c,T=d,x=h;function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){var t="function"==typeof Map?new Map:void 0;return O=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),F(r,e)},O(e)}function k(e,t,n){return k=N()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&F(i,n.prototype),i},k.apply(null,arguments)}function N(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(u,e);var t,n,r,i,o,a=(t=u,n=N(),function(){var e,r=_(t);if(n){var i=_(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return S(this,e)});function u(e,t,n,r,i,o,s){var c,l,p,f,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),d=a.call(this,e);var h,m=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,v=n;!v&&m&&(v=null===(h=m[0].loc)||void 0===h?void 0:h.source);var g,y=r;!y&&m&&(y=m.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),y&&0===y.length&&(y=void 0),r&&n?g=r.map((function(e){return(0,T.getLocation)(n,e)})):m&&(g=m.reduce((function(e,t){return t.loc&&e.push((0,T.getLocation)(t.loc.source,t.loc.start)),e}),[]));var b=s;if(null==b&&null!=o){var D=o.extensions;(0,E.default)(D)&&(b=D)}return Object.defineProperties(w(d),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(c=g)&&void 0!==c?c:void 0,enumerable:null!=g},path:{value:null!=i?i:void 0,enumerable:null!=i},nodes:{value:null!=m?m:void 0},source:{value:null!==(l=v)&&void 0!==l?l:void 0},positions:{value:null!==(p=y)&&void 0!==p?p:void 0},originalError:{value:o},extensions:{value:null!==(f=b)&&void 0!==f?f:void 0,enumerable:null!=b}}),null!=o&&o.stack?(Object.defineProperty(w(d),"stack",{value:o.stack,writable:!0,configurable:!0}),S(d)):(Error.captureStackTrace?Error.captureStackTrace(w(d),u):Object.defineProperty(w(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return r=u,(i=[{key:"toString",value:function(){return j(this)}},{key:C.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}])&&A(r.prototype,i),o&&A(r,o),u}(O(Error));function j(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+(0,x.printLocation)(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+="\n\n"+(0,x.printSourceLocation)(e.source,u)}return t}a.GraphQLError=I;var L={},P={};Object.defineProperty(P,"__esModule",{value:!0}),P.syntaxError=function(e,t,n){return new M.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var M=a,B={};Object.defineProperty(B,"__esModule",{value:!0}),B.Kind=void 0;var R=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});B.Kind=R;var V={},U={},q={};Object.defineProperty(q,"__esModule",{value:!0}),q.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")};var H={};Object.defineProperty(H,"__esModule",{value:!0}),H.default=void 0;var G="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;H.default=G,Object.defineProperty(U,"__esModule",{value:!0}),U.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,W.default)(0),e.prototype.inspect=t,z.default&&(e.prototype[z.default]=t)};var W=K(q),z=K(H);function K(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(V,"__esModule",{value:!0}),V.isNode=function(e){return null!=e&&"string"==typeof e.kind},V.Token=V.Location=void 0;var $=function(e){return e&&e.__esModule?e:{default:e}}(U),Q=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();V.Location=Q,(0,$.default)(Q);var J=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();V.Token=J,(0,$.default)(J);var Y={};Object.defineProperty(Y,"__esModule",{value:!0}),Y.TokenKind=void 0;var X=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});Y.TokenKind=X;var Z={},ee={};Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=function(e){return re(e,[])};var te=function(e){return e&&e.__esModule?e:{default:e}}(H);function ne(e){return ne="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},ne(e)}function re(e,t){switch(ne(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(te.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:re(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(re(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+re(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var ie={};Object.defineProperty(ie,"__esModule",{value:!0}),ie.default=function(e,t){if(!Boolean(e))throw new Error(t)};var oe={};Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0,function(e){e&&e.__esModule}(ee),oe.default=function(e,t){return e instanceof t},Object.defineProperty(Z,"__esModule",{value:!0}),Z.isSource=function(e){return(0,ce.default)(e,fe)},Z.Source=void 0;var ae=c,ue=le(ee),se=le(ie),ce=le(oe);function le(e){return e&&e.__esModule?e:{default:e}}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var fe=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||(0,se.default)(0,"Body must be a string. Received: ".concat((0,ue.default)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,se.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,se.default)(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:ae.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}])&&pe(t.prototype,n),r&&pe(t,r),e}();Z.Source=fe;var de={};Object.defineProperty(de,"__esModule",{value:!0}),de.DirectiveLocation=void 0;var he=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});de.DirectiveLocation=he;var me={},ve={};function ge(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function ye(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(ve,"__esModule",{value:!0}),ve.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),n=ye(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&ge(t[i]);)++i;for(var o=t.length;o>i&&ge(t[o-1]);)--o;return t.slice(i,o).join("\n")},ve.getBlockStringIndentation=ye,ve.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],u=!r||o||a||n,s="";return!u||r&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,u&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'},Object.defineProperty(me,"__esModule",{value:!0}),me.isPunctuatorTokenKind=function(e){return e===Ee.TokenKind.BANG||e===Ee.TokenKind.DOLLAR||e===Ee.TokenKind.AMP||e===Ee.TokenKind.PAREN_L||e===Ee.TokenKind.PAREN_R||e===Ee.TokenKind.SPREAD||e===Ee.TokenKind.COLON||e===Ee.TokenKind.EQUALS||e===Ee.TokenKind.AT||e===Ee.TokenKind.BRACKET_L||e===Ee.TokenKind.BRACKET_R||e===Ee.TokenKind.BRACE_L||e===Ee.TokenKind.PIPE||e===Ee.TokenKind.BRACE_R},me.Lexer=void 0;var be=P,De=V,Ee=Y,Ce=ve,Te=function(){function e(e){var t=new De.Token(Ee.TokenKind.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==Ee.TokenKind.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Ae(this,e)}while(e.kind===Ee.TokenKind.COMMENT);return e},e}();function xe(e){return isNaN(e)?Ee.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Ae(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o<i;){var a=r.charCodeAt(o),u=e.line,s=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new De.Token(Ee.TokenKind.BANG,o,o+1,u,s,t);case 35:return we(n,o,u,s,t);case 36:return new De.Token(Ee.TokenKind.DOLLAR,o,o+1,u,s,t);case 38:return new De.Token(Ee.TokenKind.AMP,o,o+1,u,s,t);case 40:return new De.Token(Ee.TokenKind.PAREN_L,o,o+1,u,s,t);case 41:return new De.Token(Ee.TokenKind.PAREN_R,o,o+1,u,s,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new De.Token(Ee.TokenKind.SPREAD,o,o+3,u,s,t);break;case 58:return new De.Token(Ee.TokenKind.COLON,o,o+1,u,s,t);case 61:return new De.Token(Ee.TokenKind.EQUALS,o,o+1,u,s,t);case 64:return new De.Token(Ee.TokenKind.AT,o,o+1,u,s,t);case 91:return new De.Token(Ee.TokenKind.BRACKET_L,o,o+1,u,s,t);case 93:return new De.Token(Ee.TokenKind.BRACKET_R,o,o+1,u,s,t);case 123:return new De.Token(Ee.TokenKind.BRACE_L,o,o+1,u,s,t);case 124:return new De.Token(Ee.TokenKind.PIPE,o,o+1,u,s,t);case 125:return new De.Token(Ee.TokenKind.BRACE_R,o,o+1,u,s,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?Fe(n,o,u,s,t,e):Ne(n,o,u,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Oe(n,o,a,u,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Ie(n,o,u,s,t)}throw(0,be.syntaxError)(n,o,Se(a))}var c=e.line,l=1+o-e.lineStart;return new De.Token(Ee.TokenKind.EOF,i,i,c,l,t)}function Se(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(xe(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(xe(e),".")}function we(e,t,n,r,i){var o,a=e.body,u=t;do{o=a.charCodeAt(++u)}while(!isNaN(o)&&(o>31||9===o));return new De.Token(Ee.TokenKind.COMMENT,t,u,n,r,i,a.slice(t+1,u))}function Oe(e,t,n,r,i,o){var a=e.body,u=n,s=t,c=!1;if(45===u&&(u=a.charCodeAt(++s)),48===u){if((u=a.charCodeAt(++s))>=48&&u<=57)throw(0,be.syntaxError)(e,s,"Invalid number, unexpected digit after 0: ".concat(xe(u),"."))}else s=ke(e,s,u),u=a.charCodeAt(s);if(46===u&&(c=!0,u=a.charCodeAt(++s),s=ke(e,s,u),u=a.charCodeAt(s)),69!==u&&101!==u||(c=!0,43!==(u=a.charCodeAt(++s))&&45!==u||(u=a.charCodeAt(++s)),s=ke(e,s,u),u=a.charCodeAt(s)),46===u||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(u))throw(0,be.syntaxError)(e,s,"Invalid number, expected digit but got: ".concat(xe(u),"."));return new De.Token(c?Ee.TokenKind.FLOAT:Ee.TokenKind.INT,t,s,r,i,o,a.slice(t,s))}function ke(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw(0,be.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(xe(o),"."))}function Ne(e,t,n,r,i){for(var o,a,u,s,c=e.body,l=t+1,p=l,f=0,d="";l<c.length&&!isNaN(f=c.charCodeAt(l))&&10!==f&&13!==f;){if(34===f)return d+=c.slice(p,l),new De.Token(Ee.TokenKind.STRING,t,l+1,n,r,i,d);if(f<32&&9!==f)throw(0,be.syntaxError)(e,l,"Invalid character within String: ".concat(xe(f),"."));if(++l,92===f){switch(d+=c.slice(p,l-1),f=c.charCodeAt(l)){case 34:d+='"';break;case 47:d+="/";break;case 92:d+="\\";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+="\n";break;case 114:d+="\r";break;case 116:d+="\t";break;case 117:var h=(o=c.charCodeAt(l+1),a=c.charCodeAt(l+2),u=c.charCodeAt(l+3),s=c.charCodeAt(l+4),_e(o)<<12|_e(a)<<8|_e(u)<<4|_e(s));if(h<0){var m=c.slice(l+1,l+5);throw(0,be.syntaxError)(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}d+=String.fromCharCode(h),l+=4;break;default:throw(0,be.syntaxError)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(f),"."))}p=++l}}throw(0,be.syntaxError)(e,l,"Unterminated string.")}function Fe(e,t,n,r,i,o){for(var a=e.body,u=t+3,s=u,c=0,l="";u<a.length&&!isNaN(c=a.charCodeAt(u));){if(34===c&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2))return l+=a.slice(s,u),new De.Token(Ee.TokenKind.BLOCK_STRING,t,u+3,n,r,i,(0,Ce.dedentBlockStringValue)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw(0,be.syntaxError)(e,u,"Invalid character within String: ".concat(xe(c),"."));10===c?(++u,++o.line,o.lineStart=u):13===c?(10===a.charCodeAt(u+1)?u+=2:++u,++o.line,o.lineStart=u):92===c&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)&&34===a.charCodeAt(u+3)?(l+=a.slice(s,u)+'"""',s=u+=4):++u}throw(0,be.syntaxError)(e,u,"Unterminated string.")}function _e(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ie(e,t,n,r,i){for(var o=e.body,a=o.length,u=t+1,s=0;u!==a&&!isNaN(s=o.charCodeAt(u))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++u;return new De.Token(Ee.TokenKind.NAME,t,u,n,r,i,o.slice(t,u))}me.Lexer=Te,Object.defineProperty(L,"__esModule",{value:!0}),L.parse=function(e,t){return new Ue(e,t).parseDocument()},L.parseValue=function(e,t){var n=new Ue(e,t);n.expectToken(Me.TokenKind.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(Me.TokenKind.EOF),r},L.parseType=function(e,t){var n=new Ue(e,t);n.expectToken(Me.TokenKind.SOF);var r=n.parseTypeReference();return n.expectToken(Me.TokenKind.EOF),r},L.Parser=void 0;var je=P,Le=B,Pe=V,Me=Y,Be=Z,Re=de,Ve=me,Ue=function(){function e(e,t){var n=(0,Be.isSource)(e)?e:new Be.Source(e);this._lexer=new Ve.Lexer(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(Me.TokenKind.NAME);return{kind:Le.Kind.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:Le.Kind.DOCUMENT,definitions:this.many(Me.TokenKind.SOF,this.parseDefinition,Me.TokenKind.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(Me.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Me.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Me.TokenKind.BRACE_L))return{kind:Le.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Me.TokenKind.NAME)&&(t=this.parseName()),{kind:Le.Kind.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(Me.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(Me.TokenKind.PAREN_L,this.parseVariableDefinition,Me.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:Le.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Me.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Me.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Me.TokenKind.DOLLAR),{kind:Le.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:Le.Kind.SELECTION_SET,selections:this.many(Me.TokenKind.BRACE_L,this.parseSelection,Me.TokenKind.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(Me.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(Me.TokenKind.COLON)?(e=r,t=this.parseName()):t=r,{kind:Le.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Me.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Me.TokenKind.PAREN_L,t,Me.TokenKind.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Me.TokenKind.COLON),{kind:Le.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:Le.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(Me.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(Me.TokenKind.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Me.TokenKind.NAME)?{kind:Le.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:Le.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:Le.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Le.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case Me.TokenKind.BRACKET_L:return this.parseList(e);case Me.TokenKind.BRACE_L:return this.parseObject(e);case Me.TokenKind.INT:return this._lexer.advance(),{kind:Le.Kind.INT,value:t.value,loc:this.loc(t)};case Me.TokenKind.FLOAT:return this._lexer.advance(),{kind:Le.Kind.FLOAT,value:t.value,loc:this.loc(t)};case Me.TokenKind.STRING:case Me.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Me.TokenKind.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:Le.Kind.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Le.Kind.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Le.Kind.NULL,loc:this.loc(t)};default:return{kind:Le.Kind.ENUM,value:t.value,loc:this.loc(t)}}case Me.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:Le.Kind.STRING,value:e.value,block:e.kind===Me.TokenKind.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:Le.Kind.LIST,values:this.any(Me.TokenKind.BRACKET_L,(function(){return t.parseValueLiteral(e)}),Me.TokenKind.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:Le.Kind.OBJECT,fields:this.any(Me.TokenKind.BRACE_L,(function(){return t.parseObjectField(e)}),Me.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Me.TokenKind.COLON),{kind:Le.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(Me.TokenKind.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(Me.TokenKind.AT),{kind:Le.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(Me.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Me.TokenKind.BRACKET_R),e={kind:Le.Kind.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Me.TokenKind.BANG)?{kind:Le.Kind.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:Le.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Me.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(Me.TokenKind.STRING)||this.peek(Me.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(Me.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Me.TokenKind.BRACE_R);return{kind:Le.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(Me.TokenKind.COLON);var n=this.parseNamedType();return{kind:Le.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:Le.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Le.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(Me.TokenKind.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Me.TokenKind.AMP)||this.peek(Me.TokenKind.NAME));return t}return this.delimitedMany(Me.TokenKind.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Me.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===Me.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Me.TokenKind.BRACE_L,this.parseFieldDefinition,Me.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(Me.TokenKind.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Le.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(Me.TokenKind.PAREN_L,this.parseInputValueDef,Me.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Me.TokenKind.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(Me.TokenKind.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Le.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Le.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Le.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(Me.TokenKind.EQUALS)?this.delimitedMany(Me.TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Le.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Me.TokenKind.BRACE_L,this.parseEnumValueDefinition,Me.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:Le.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Le.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Me.TokenKind.BRACE_L,this.parseInputValueDef,Me.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Me.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(Me.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Me.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:Le.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:Le.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Le.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Le.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Le.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Le.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:Le.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Me.TokenKind.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Le.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(Me.TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Re.DirectiveLocation[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new Pe.Location(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,je.syntaxError)(this._lexer.source,t.start,"Expected ".concat(He(e),", found ").concat(qe(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==Me.TokenKind.NAME||t.value!==e)throw(0,je.syntaxError)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(qe(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===Me.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return(0,je.syntaxError)(this._lexer.source,t.start,"Unexpected ".concat(qe(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function qe(e){var t=e.value;return He(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function He(e){return(0,Ve.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}L.Parser=Ue;var Ge=e,We=t,ze=n.hasPragma,Ke=o.locStart,$e=o.locEnd;function Qe(e){if(e&&"object"==typeof e)for(var t in delete e.startToken,delete e.endToken,delete e.prev,delete e.next,e)Qe(e[t]);return e}var Je={allowLegacySDLImplementsInterfaces:!1,experimentalFragmentVariables:!0},Ye={parsers:{graphql:{parse:function(e){var t=L.parse,n=We((function(){return t(e,Object.assign({},Je))}),(function(){return t(e,Object.assign(Object.assign({},Je),{},{allowLegacySDLImplementsInterfaces:!0}))})),i=n.result,o=n.error;if(!i)throw function(e){if(e instanceof a.GraphQLError){var t=e.message,n=r(e.locations,1)[0];return Ge(t,{start:n})}return e}(o);return i.comments=function(e){for(var t=[],n=e.loc.startToken.next;"<EOF>"!==n.kind;)"Comment"===n.kind&&(Object.assign(n,{column:n.column-1}),t.push(n)),n=n.next;return t}(i),Qe(i),i},astFormat:"graphql",hasPragma:ze,locStart:Ke,locEnd:$e}}};return Ye}()},function(e,t,n){(function(t){var r=n(13),i=n(1143),o=n(955),a=n(1145),u=n(1146),s=n(1150),c=n(1153),l=n(983),p=n(1009),f=n(1154),d=n(956),h=n(1155),m=n(1156);e.exports=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function n(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v={version:"2.5.1"},g={},y={};!function(e){function t(){}function n(e,t,n,r,i){for(var o=0,a=t.length,u=0,s=0;o<a;o++){var c=t[o];if(c.removed){if(c.value=e.join(r.slice(s,s+c.count)),s+=c.count,o&&t[o-1].added){var l=t[o-1];t[o-1]=t[o],t[o]=l}}else{if(!c.added&&i){var p=n.slice(u,u+c.count);p=p.map((function(e,t){var n=r[s+t];return n.length>e.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(u,u+c.count));u+=c.count,c.added||(s+=c.count)}}var f=t[a-1];return a>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[a-2].value+=f.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var a=this;function u(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,l=1,p=s+c,f=[{newPos:-1,components:[]}],d=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=s&&d+1>=c)return u([{value:this.join(t),count:t.length}]);function h(){for(var i=-1*l;i<=l;i+=2){var o=void 0,p=f[i-1],d=f[i+1],h=(d?d.newPos:0)-i;p&&(f[i-1]=void 0);var m=p&&p.newPos+1<s,v=d&&0<=h&&h<c;if(m||v){if(!m||v&&p.newPos<d.newPos?(o=r(d),a.pushComponent(o.components,void 0,!0)):((o=p).newPos++,a.pushComponent(o.components,!0,void 0)),h=a.extractCommon(o,t,e,i),o.newPos+1>=s&&h+1>=c)return u(n(a,o.components,t,e,a.useLongestToken));f[i]=o}else f[i]=void 0}l++}if(o)!function e(){setTimeout((function(){if(l>p)return o();h()||e()}),0)}();else for(;l<=p;){var m=h();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,a=e.newPos,u=a-r,s=0;a+1<i&&u+1<o&&this.equals(t[a+1],n[u+1]);)a++,u++,s++;return s&&e.components.push({count:s}),e.newPos=a,u},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}(y);var b,D={};Object.defineProperty(D,"__esModule",{value:!0}),D.diffChars=function(e,t,n){return E.diff(e,t,n)},D.characterDiff=void 0;var E=new((b=y)&&b.__esModule?b:{default:b}).default;D.characterDiff=E;var C={},T={};Object.defineProperty(T,"__esModule",{value:!0}),T.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},Object.defineProperty(C,"__esModule",{value:!0}),C.diffWords=function(e,t,n){return n=(0,A.generateOptions)(n,{ignoreWhitespace:!0}),O.diff(e,t,n)},C.diffWordsWithSpace=function(e,t,n){return O.diff(e,t,n)},C.wordDiff=void 0;var x=function(e){return e&&e.__esModule?e:{default:e}}(y),A=T,S=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,w=/\S/,O=new x.default;C.wordDiff=O,O.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!w.test(e)&&!w.test(t)},O.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&S.test(t[n])&&S.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var k={};Object.defineProperty(k,"__esModule",{value:!0}),k.diffLines=function(e,t,n){return _.diff(e,t,n)},k.diffTrimmedLines=function(e,t,n){var r=(0,F.generateOptions)(n,{ignoreWhitespace:!0});return _.diff(e,t,r)},k.lineDiff=void 0;var N=function(e){return e&&e.__esModule?e:{default:e}}(y),F=T,_=new N.default;k.lineDiff=_,_.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var I={};Object.defineProperty(I,"__esModule",{value:!0}),I.diffSentences=function(e,t,n){return L.diff(e,t,n)},I.sentenceDiff=void 0;var j=function(e){return e&&e.__esModule?e:{default:e}}(y),L=new j.default;I.sentenceDiff=L,L.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var P={};Object.defineProperty(P,"__esModule",{value:!0}),P.diffCss=function(e,t,n){return B.diff(e,t,n)},P.cssDiff=void 0;var M=function(e){return e&&e.__esModule?e:{default:e}}(y),B=new M.default;P.cssDiff=B,B.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var R=function(e){return e&&e.Math==Math&&e},V=R("object"==typeof globalThis&&globalThis)||R("object"==typeof window&&window)||R("object"==typeof self&&self)||R("object"==typeof e&&e)||function(){return this}()||Function("return this")(),U={},q=function(e){try{return!!e()}catch(e){return!0}},H=!q((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),G=Function.prototype.call,W=G.bind?G.bind(G):function(){return G.apply(G,arguments)},z={},K={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,Q=$&&!K.call({1:2},1);z.f=Q?function(e){var t=$(this,e);return!!t&&t.enumerable}:K;var J,Y,X=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Z=Function.prototype,ee=Z.bind,te=Z.call,ne=ee&&ee.bind(te),re=ee?function(e){return e&&ne(te,e)}:function(e){return e&&function(){return te.apply(e,arguments)}},ie=re,oe=ie({}.toString),ae=ie("".slice),ue=function(e){return ae(oe(e),8,-1)},se=re,ce=q,le=ue,pe=V.Object,fe=se("".split),de=ce((function(){return!pe("z").propertyIsEnumerable(0)}))?function(e){return"String"==le(e)?fe(e,""):pe(e)}:pe,he=V.TypeError,me=function(e){if(null==e)throw he("Can't call method on "+e);return e},ve=de,ge=me,ye=function(e){return ve(ge(e))},be=function(e){return"function"==typeof e},De=be,Ee=function(e){return"object"==typeof e?null!==e:De(e)},Ce=V,Te=be,xe=function(e){return Te(e)?e:void 0},Ae=function(e,t){return arguments.length<2?xe(Ce[e]):Ce[e]&&Ce[e][t]},Se=re({}.isPrototypeOf),we=Ae("navigator","userAgent")||"",Oe=V,ke=we,Ne=Oe.process,Fe=Oe.Deno,_e=Ne&&Ne.versions||Fe&&Fe.version,Ie=_e&&_e.v8;Ie&&(Y=(J=Ie.split("."))[0]>0&&J[0]<4?1:+(J[0]+J[1])),!Y&&ke&&(!(J=ke.match(/Edge\/(\d+)/))||J[1]>=74)&&(J=ke.match(/Chrome\/(\d+)/))&&(Y=+J[1]);var je=Y,Le=je,Pe=q,Me=!!Object.getOwnPropertySymbols&&!Pe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Le&&Le<41})),Be=Me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Re=Ae,Ve=be,Ue=Se,qe=Be,He=V.Object,Ge=qe?function(e){return"symbol"==typeof e}:function(e){var t=Re("Symbol");return Ve(t)&&Ue(t.prototype,He(e))},We=V.String,ze=function(e){try{return We(e)}catch(e){return"Object"}},Ke=be,$e=ze,Qe=V.TypeError,Je=function(e){if(Ke(e))return e;throw Qe($e(e)+" is not a function")},Ye=Je,Xe=function(e,t){var n=e[t];return null==n?void 0:Ye(n)},Ze=W,et=be,tt=Ee,nt=V.TypeError,rt={exports:{}},it=V,ot=Object.defineProperty,at=function(e,t){try{ot(it,e,{value:t,configurable:!0,writable:!0})}catch(v){it[e]=t}return t},ut=at,st="__core-js_shared__",ct=V[st]||ut(st,{}),lt=ct;(rt.exports=function(e,t){return lt[e]||(lt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var pt=me,ft=V.Object,dt=function(e){return ft(pt(e))},ht=dt,mt=re({}.hasOwnProperty),vt=Object.hasOwn||function(e,t){return mt(ht(e),t)},gt=re,yt=0,bt=Math.random(),Dt=gt(1..toString),Et=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Dt(++yt+bt,36)},Ct=V,Tt=rt.exports,xt=vt,At=Et,St=Me,wt=Be,Ot=Tt("wks"),kt=Ct.Symbol,Nt=kt&&kt.for,Ft=wt?kt:kt&&kt.withoutSetter||At,_t=function(e){if(!xt(Ot,e)||!St&&"string"!=typeof Ot[e]){var t="Symbol."+e;St&&xt(kt,e)?Ot[e]=kt[e]:Ot[e]=wt&&Nt?Nt(t):Ft(t)}return Ot[e]},It=W,jt=Ee,Lt=Ge,Pt=Xe,Mt=function(e,t){var n,r;if("string"===t&&et(n=e.toString)&&!tt(r=Ze(n,e)))return r;if(et(n=e.valueOf)&&!tt(r=Ze(n,e)))return r;if("string"!==t&&et(n=e.toString)&&!tt(r=Ze(n,e)))return r;throw nt("Can't convert object to primitive value")},Bt=_t,Rt=V.TypeError,Vt=Bt("toPrimitive"),Ut=function(e,t){if(!jt(e)||Lt(e))return e;var n,r=Pt(e,Vt);if(r){if(void 0===t&&(t="default"),n=It(r,e,t),!jt(n)||Lt(n))return n;throw Rt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Mt(e,t)},qt=Ge,Ht=function(e){var t=Ut(e,"string");return qt(t)?t:t+""},Gt=Ee,Wt=V.document,zt=Gt(Wt)&&Gt(Wt.createElement),Kt=function(e){return zt?Wt.createElement(e):{}},$t=Kt,Qt=!H&&!q((function(){return 7!=Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Jt=H,Yt=W,Xt=z,Zt=X,en=ye,tn=Ht,nn=vt,rn=Qt,on=Object.getOwnPropertyDescriptor;U.f=Jt?on:function(e,t){if(e=en(e),t=tn(t),rn)try{return on(e,t)}catch(e){}if(nn(e,t))return Zt(!Yt(Xt.f,e,t),e[t])};var an={},un=V,sn=Ee,cn=un.String,ln=un.TypeError,pn=function(e){if(sn(e))return e;throw ln(cn(e)+" is not an object")},fn=H,dn=Qt,hn=pn,mn=Ht,vn=V.TypeError,gn=Object.defineProperty;an.f=fn?gn:function(e,t,n){if(hn(e),t=mn(t),hn(n),dn)try{return gn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var yn=an,bn=X,Dn=H?function(e,t,n){return yn.f(e,t,bn(1,n))}:function(e,t,n){return e[t]=n,e},En={exports:{}},Cn=be,Tn=ct,xn=re(Function.toString);Cn(Tn.inspectSource)||(Tn.inspectSource=function(e){return xn(e)});var An,Sn,wn,On=Tn.inspectSource,kn=be,Nn=On,Fn=V.WeakMap,_n=kn(Fn)&&/native code/.test(Nn(Fn)),In=rt.exports,jn=Et,Ln=In("keys"),Pn=function(e){return Ln[e]||(Ln[e]=jn(e))},Mn={},Bn=_n,Rn=V,Vn=re,Un=Ee,qn=Dn,Hn=vt,Gn=ct,Wn=Pn,zn=Mn,Kn="Object already initialized",$n=Rn.TypeError,Qn=Rn.WeakMap;if(Bn||Gn.state){var Jn=Gn.state||(Gn.state=new Qn),Yn=Vn(Jn.get),Xn=Vn(Jn.has),Zn=Vn(Jn.set);An=function(e,t){if(Xn(Jn,e))throw new $n(Kn);return t.facade=e,Zn(Jn,e,t),t},Sn=function(e){return Yn(Jn,e)||{}},wn=function(e){return Xn(Jn,e)}}else{var er=Wn("state");zn[er]=!0,An=function(e,t){if(Hn(e,er))throw new $n(Kn);return t.facade=e,qn(e,er,t),t},Sn=function(e){return Hn(e,er)?e[er]:{}},wn=function(e){return Hn(e,er)}}var tr={set:An,get:Sn,has:wn,enforce:function(e){return wn(e)?Sn(e):An(e,{})},getterFor:function(e){return function(t){var n;if(!Un(t)||(n=Sn(t)).type!==e)throw $n("Incompatible receiver, "+e+" required");return n}}},nr=H,rr=vt,ir=Function.prototype,or=nr&&Object.getOwnPropertyDescriptor,ar=rr(ir,"name"),ur=ar&&"something"===function(){}.name,sr=ar&&(!nr||nr&&or(ir,"name").configurable),cr=V,lr=be,pr=vt,fr=Dn,dr=at,hr=On,mr={EXISTS:ar,PROPER:ur,CONFIGURABLE:sr}.CONFIGURABLE,vr=tr.get,gr=tr.enforce,yr=String(String).split("String");(En.exports=function(e,t,n,r){var i,o=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,s=r&&void 0!==r.name?r.name:t;lr(n)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!pr(n,"name")||mr&&n.name!==s)&&fr(n,"name",s),(i=gr(n)).source||(i.source=yr.join("string"==typeof s?s:""))),e!==cr?(o?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:fr(e,t,n)):a?e[t]=n:dr(t,n)})(Function.prototype,"toString",(function(){return lr(this)&&vr(this).source||hr(this)}));var br={},Dr=Math.ceil,Er=Math.floor,Cr=function(e){var t=+e;return t!=t||0===t?0:(t>0?Er:Dr)(t)},Tr=Cr,xr=Math.max,Ar=Math.min,Sr=Cr,wr=Math.min,Or=function(e){return e>0?wr(Sr(e),9007199254740991):0},kr=function(e){return Or(e.length)},Nr=ye,Fr=function(e,t){var n=Tr(e);return n<0?xr(n+t,0):Ar(n,t)},_r=kr,Ir=function(e){return function(t,n,r){var i,o=Nr(t),a=_r(o),u=Fr(r,a);if(e&&n!=n){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}},jr={includes:Ir(!0),indexOf:Ir(!1)},Lr=vt,Pr=ye,Mr=jr.indexOf,Br=Mn,Rr=re([].push),Vr=function(e,t){var n,r=Pr(e),i=0,o=[];for(n in r)!Lr(Br,n)&&Lr(r,n)&&Rr(o,n);for(;t.length>i;)Lr(r,n=t[i++])&&(~Mr(o,n)||Rr(o,n));return o},Ur=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qr=Vr,Hr=Ur.concat("length","prototype");br.f=Object.getOwnPropertyNames||function(e){return qr(e,Hr)};var Gr={};Gr.f=Object.getOwnPropertySymbols;var Wr=Ae,zr=br,Kr=Gr,$r=pn,Qr=re([].concat),Jr=Wr("Reflect","ownKeys")||function(e){var t=zr.f($r(e)),n=Kr.f;return n?Qr(t,n(e)):t},Yr=vt,Xr=Jr,Zr=U,ei=an,ti=q,ni=be,ri=/#|\.prototype\./,ii=function(e,t){var n=ai[oi(e)];return n==si||n!=ui&&(ni(t)?ti(t):!!t)},oi=ii.normalize=function(e){return String(e).replace(ri,".").toLowerCase()},ai=ii.data={},ui=ii.NATIVE="N",si=ii.POLYFILL="P",ci=ii,li=V,pi=U.f,fi=Dn,di=En.exports,hi=at,mi=function(e,t){for(var n=Xr(t),r=ei.f,i=Zr.f,o=0;o<n.length;o++){var a=n[o];Yr(e,a)||r(e,a,i(t,a))}},vi=ci,gi=function(e,t){var n,r,i,o,a,u=e.target,s=e.global,c=e.stat;if(n=s?li:c?li[u]||hi(u,{}):(li[u]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=pi(n,r))&&a.value:n[r],!vi(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;mi(o,i)}(e.sham||i&&i.sham)&&fi(o,"sham",!0),di(n,r,o,e)}},yi={};yi[_t("toStringTag")]="z";var bi=V,Di="[object z]"===String(yi),Ei=be,Ci=ue,Ti=_t("toStringTag"),xi=bi.Object,Ai="Arguments"==Ci(function(){return arguments}()),Si=Di?Ci:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=xi(e),Ti))?n:Ai?Ci(t):"Object"==(r=Ci(t))&&Ei(t.callee)?"Arguments":r},wi=Si,Oi=V.String,ki=re([].slice),Ni=Math.floor,Fi=function e(t,n){var r=t.length,i=Ni(r/2);return r<8?_i(t,n):Ii(t,e(ki(t,0,i),n),e(ki(t,i),n),n)},_i=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},Ii=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,u=0;a<i||u<o;)e[a+u]=a<i&&u<o?r(t[a],n[u])<=0?t[a++]:n[u++]:a<i?t[a++]:n[u++];return e},ji=Fi,Li=q,Pi=we.match(/firefox\/(\d+)/i),Mi=!!Pi&&+Pi[1],Bi=/MSIE|Trident/.test(we),Ri=we.match(/AppleWebKit\/(\d+)\./),Vi=!!Ri&&+Ri[1],Ui=gi,qi=re,Hi=Je,Gi=dt,Wi=kr,zi=function(e){if("Symbol"===wi(e))throw TypeError("Cannot convert a Symbol value to a string");return Oi(e)},Ki=q,$i=ji,Qi=function(e,t){var n=[][e];return!!n&&Li((function(){n.call(null,t||function(){throw 1},1)}))},Ji=Mi,Yi=Bi,Xi=je,Zi=Vi,eo=[],to=qi(eo.sort),no=qi(eo.push),ro=Ki((function(){eo.sort(void 0)})),io=Ki((function(){eo.sort(null)})),oo=Qi("sort"),ao=!Ki((function(){if(Xi)return Xi<70;if(!(Ji&&Ji>3)){if(Yi)return!0;if(Zi)return Zi<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)eo.push({k:t+r,v:n})}for(eo.sort((function(e,t){return t.v-e.v})),r=0;r<eo.length;r++)t=eo[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));Ui({target:"Array",proto:!0,forced:ro||!io||!oo||!ao},{sort:function(e){void 0!==e&&Hi(e);var t=Gi(this);if(ao)return void 0===e?to(t):to(t,e);var n,r,i=[],o=Wi(t);for(r=0;r<o;r++)r in t&&no(i,t[r]);for($i(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:zi(t)>zi(n)?1:-1}}(e)),n=i.length,r=0;r<n;)t[r]=i[r++];for(;r<o;)delete t[r++];return t}});var uo={};Object.defineProperty(uo,"__esModule",{value:!0}),uo.diffJson=function(e,t,n){return fo.diff(e,t,n)},uo.canonicalize=ho,uo.jsonDiff=void 0;var so=function(e){return e&&e.__esModule?e:{default:e}}(y),co=k;function lo(e){return lo="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},lo(e)}var po=Object.prototype.toString,fo=new so.default;function ho(e,t,n,r,i){var o,a;for(t=t||[],n=n||[],r&&(e=r(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===po.call(e)){for(t.push(e),a=new Array(e.length),n.push(a),o=0;o<e.length;o+=1)a[o]=ho(e[o],t,n,r,i);return t.pop(),n.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===lo(e)&&null!==e){t.push(e),a={},n.push(a);var u,s=[];for(u in e)e.hasOwnProperty(u)&&s.push(u);for(s.sort(),o=0;o<s.length;o+=1)a[u=s[o]]=ho(e[u],t,n,r,u);t.pop(),n.pop()}else a=e;return a}uo.jsonDiff=fo,fo.useLongestToken=!0,fo.tokenize=co.lineDiff.tokenize,fo.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(ho(e,null,null,i),i," ")},fo.equals=function(e,t){return so.default.prototype.equals.call(fo,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var mo={};Object.defineProperty(mo,"__esModule",{value:!0}),mo.diffArrays=function(e,t,n){return go.diff(e,t,n)},mo.arrayDiff=void 0;var vo=function(e){return e&&e.__esModule?e:{default:e}}(y),go=new vo.default;mo.arrayDiff=go,go.tokenize=function(e){return e.slice()},go.join=go.removeEmpty=function(e){return e};var yo={},bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function a(){var e={};for(i.push(e);o<n.length;){var r=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var a=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);a&&(e.index=a[1]),o++}for(u(e),u(e),e.hunks=[];o<n.length;){var c=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(s());else{if(c&&t.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(c));o++}}}function u(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[o]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),a=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(a)&&(a=a.substr(1,a.length-2)),e[r+"FileName"]=a,e[r+"Header"]=(i[1]||"").trim(),o++}}function s(){var e=o,i=n[o++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),a={oldStart:+i[1],oldLines:void 0===i[2]?1:+i[2],newStart:+i[3],newLines:void 0===i[4]?1:+i[4],lines:[],linedelimiters:[]};0===a.oldLines&&(a.oldStart+=1),0===a.newLines&&(a.newStart+=1);for(var u=0,s=0;o<n.length&&!(0===n[o].indexOf("--- ")&&o+2<n.length&&0===n[o+1].indexOf("+++ ")&&0===n[o+2].indexOf("@@"));o++){var c=0==n[o].length&&o!=n.length-1?" ":n[o][0];if("+"!==c&&"-"!==c&&" "!==c&&"\\"!==c)break;a.lines.push(n[o]),a.linedelimiters.push(r[o]||"\n"),"+"===c?u++:"-"===c?s++:" "===c&&(u++,s++)}if(u||1!==a.newLines||(a.newLines=0),s||1!==a.oldLines||(a.oldLines=0),t.strict){if(u!==a.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(s!==a.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return a}for(;o<n.length;)a();return i};var Do={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){var r=!0,i=!1,o=!1,a=1;return function u(){if(r&&!o){if(i?a++:r=!1,e+a<=n)return a;o=!0}if(!i)return o||(r=!0),t<=e-a?-a++:(i=!0,u())}}}(Do),Object.defineProperty(yo,"__esModule",{value:!0}),yo.applyPatch=To,yo.applyPatches=function(e,t){"string"==typeof e&&(e=(0,Eo.parsePatch)(e));var n=0;!function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,(function(e,n){if(e)return t.complete(e);var o=To(n,i,t);t.patched(i,o,(function(e){if(e)return t.complete(e);r()}))}))}()};var Eo=bo,Co=function(e){return e&&e.__esModule?e:{default:e}}(Do);function To(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,Eo.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],u=t.hunks,s=n.compareLine||function(e,t,n,r){return t===r},c=0,l=n.fuzzFactor||0,p=0,f=0;function d(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!s(t+1,o[t],i,a)&&++c>l)return!1;t++}}return!0}for(var h=0;h<u.length;h++){for(var m=u[h],v=o.length-m.oldLines,g=0,y=f+m.oldStart-1,b=(0,Co.default)(y,p,v);void 0!==g;g=b())if(d(m,y+g)){m.offset=f+=g;break}if(void 0===g)return!1;p=m.offset+m.oldStart+m.oldLines}for(var D=0,E=0;E<u.length;E++){var C=u[E],T=C.oldStart+C.offset+D-1;D+=C.newLines-C.oldLines;for(var x=0;x<C.lines.length;x++){var A=C.lines[x],S=A.length>0?A[0]:" ",w=A.length>0?A.substr(1):A,O=C.linedelimiters[x];if(" "===S)T++;else if("-"===S)o.splice(T,1),a.splice(T,1);else if("+"===S)o.splice(T,0,w),a.splice(T,0,O),T++;else if("\\"===S){var k=C.lines[x-1]?C.lines[x-1][0]:null;"+"===k?r=!0:"-"===k&&(i=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),a.pop();else i&&(o.push(""),a.push("\n"));for(var N=0;N<o.length-1;N++)o[N]=o[N]+a[N];return o.join("")}var xo={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.structuredPatch=ko,Ao.formatPatch=No,Ao.createTwoFilesPatch=Fo,Ao.createPatch=function(e,t,n,r,i,o){return Fo(e,e,t,n,r,i,o)};var So=k;function wo(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ko(e,t,n,r,i,o,a){a||(a={}),void 0===a.context&&(a.context=4);var u=(0,So.diffLines)(n,r,a);function s(e){return e.map((function(e){return" "+e}))}u.push({value:"",lines:[]});for(var c=[],l=0,p=0,f=[],d=1,h=1,m=function(e){var t=u[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!l){var m=u[e-1];l=d,p=h,m&&(f=a.context>0?s(m.lines.slice(-a.context)):[],l-=f.length,p-=f.length)}(o=f).push.apply(o,wo(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?h+=i.length:d+=i.length}else{if(l)if(i.length<=2*a.context&&e<u.length-2){var v;(v=f).push.apply(v,wo(s(i)))}else{var g,y=Math.min(i.length,a.context);(g=f).push.apply(g,wo(s(i.slice(0,y))));var b={oldStart:l,oldLines:d-l+y,newStart:p,newLines:h-p+y,lines:f};if(e>=u.length-2&&i.length<=a.context){var D=/\n$/.test(n),E=/\n$/.test(r),C=0==i.length&&f.length>b.oldLines;!D&&C&&n.length>0&&f.splice(b.oldLines,0,"\"),(D||C)&&E||f.push("\")}c.push(b),l=0,p=0,f=[]}d+=i.length,h+=i.length}},v=0;v<u.length;v++)m(v);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:c}}function No(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}function Fo(e,t,n,r,i,o,a){return No(ko(e,t,n,r,i,o,a))}var _o={};function Io(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(_o,"__esModule",{value:!0}),_o.arrayEqual=function(e,t){return e.length===t.length&&Io(e,t)},_o.arrayStartsWith=Io,Object.defineProperty(xo,"__esModule",{value:!0}),xo.calcLineCount=Ro,xo.merge=function(e,t,n){e=Vo(e,n),t=Vo(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(Uo(e)?Uo(t)?(r.oldFileName=qo(r,e.oldFileName,t.oldFileName),r.newFileName=qo(r,e.newFileName,t.newFileName),r.oldHeader=qo(r,e.oldHeader,t.oldHeader),r.newHeader=qo(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,o=0,a=0,u=0;i<e.hunks.length||o<t.hunks.length;){var s=e.hunks[i]||{oldStart:1/0},c=t.hunks[o]||{oldStart:1/0};if(Ho(s,c))r.hunks.push(Go(s,a)),i++,u+=s.newLines-s.oldLines;else if(Ho(c,s))r.hunks.push(Go(c,u)),o++,a+=c.newLines-c.oldLines;else{var l={oldStart:Math.min(s.oldStart,c.oldStart),oldLines:0,newStart:Math.min(s.newStart+a,c.oldStart+u),newLines:0,lines:[]};Wo(l,s.oldStart,s.lines,c.oldStart,c.lines),o++,i++,r.hunks.push(l)}}return r};var jo=Ao,Lo=bo,Po=_o;function Mo(e){return function(e){if(Array.isArray(e))return Bo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ro(e){var t=ea(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function Vo(e,t){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,Lo.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,jo.structuredPatch)(void 0,void 0,t,e)}return e}function Uo(e){return e.newFileName&&e.newFileName!==e.oldFileName}function qo(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function Ho(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function Go(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function Wo(e,t,n,r,i){var o={offset:t,lines:n,index:0},a={offset:r,lines:i,index:0};for(Qo(e,o,a),Qo(e,a,o);o.index<o.lines.length&&a.index<a.lines.length;){var u,s=o.lines[o.index],c=a.lines[a.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==c[0]&&"+"!==c[0])if("+"===s[0]&&" "===c[0])(u=e.lines).push.apply(u,Mo(Yo(o)));else if("+"===c[0]&&" "===s[0]){var l;(l=e.lines).push.apply(l,Mo(Yo(a)))}else"-"===s[0]&&" "===c[0]?Ko(e,o,a):"-"===c[0]&&" "===s[0]?Ko(e,a,o,!0):s===c?(e.lines.push(s),o.index++,a.index++):$o(e,Yo(o),Yo(a));else zo(e,o,a)}Jo(e,o),Jo(e,a),Ro(e)}function zo(e,t,n){var r=Yo(t),i=Yo(n);if(Xo(r)&&Xo(i)){var o,a;if((0,Po.arrayStartsWith)(r,i)&&Zo(n,r,r.length-i.length))return void(o=e.lines).push.apply(o,Mo(r));if((0,Po.arrayStartsWith)(i,r)&&Zo(t,i,i.length-r.length))return void(a=e.lines).push.apply(a,Mo(i))}else if((0,Po.arrayEqual)(r,i)){var u;return void(u=e.lines).push.apply(u,Mo(r))}$o(e,r,i)}function Ko(e,t,n,r){var i,o=Yo(t),a=function(e,t){for(var n=[],r=[],i=0,o=!1,a=!1;i<t.length&&e.index<e.lines.length;){var u=e.lines[e.index],s=t[i];if("+"===s[0])break;if(o=o||" "!==u[0],r.push(s),i++,"+"===u[0])for(a=!0;"+"===u[0];)n.push(u),u=e.lines[++e.index];s.substr(1)===u.substr(1)?(n.push(u),e.index++):a=!0}if("+"===(t[i]||"")[0]&&o&&(a=!0),a)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}(n,o);a.merged?(i=e.lines).push.apply(i,Mo(a.merged)):$o(e,r?a:o,r?o:a)}function $o(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function Qo(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function Jo(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function Yo(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function Xo(e){return e.reduce((function(e,t){return e&&"-"===t[0]}),!0)}function Zo(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function ea(e){var t=0,n=0;return e.forEach((function(e){if("string"!=typeof e){var r=ea(e.mine),i=ea(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++})),{oldLines:t,newLines:n}}var ta={};Object.defineProperty(ta,"__esModule",{value:!0}),ta.convertChangesToDMP=function(e){for(var t,n,r=[],i=0;i<e.length;i++)n=(t=e[i]).added?1:t.removed?-1:0,r.push([n,t.value]);return r};var na={};function ra(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}function ia(e){return{type:"concat",parts:e}}function oa(e){return{type:"indent",contents:e}}function aa(e,t){return{type:"align",contents:t,n:e}}function ua(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}Object.defineProperty(na,"__esModule",{value:!0}),na.convertChangesToXML=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(ra(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return a.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return u.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return u.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return s.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return c.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return c.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return l.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return p.merge}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return f.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return f.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return f.createPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return d.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return h.convertChangesToXML}});var t=function(e){return e&&e.__esModule?e:{default:e}}(y),n=D,r=C,i=k,o=I,a=P,u=uo,s=mo,c=yo,l=bo,p=xo,f=Ao,d=ta,h=na}(g);var sa={type:"break-parent"},ca={type:"line",hard:!0},la={type:"line",hard:!0,literal:!0},pa=ia([ca,sa]),fa=ia([la,sa]),da={concat:ia,join:function(e,t){for(var n=[],r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return ia(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:pa,literalline:fa,group:ua,conditionalGroup:function(e,t){return ua(e[0],Object.assign(Object.assign({},t),{},{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:sa,ifBreak:function(e,t){return{type:"if-break",breakContents:e,flatContents:t,groupId:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).groupId}},trim:{type:"trim"},indent:oa,indentIfBreak:function(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:aa,addAlignmentToDoc:function(e,t,n){var r=e;if(t>0){for(var i=0;i<Math.floor(t/n);++i)r=oa(r);r=aa(t%n,r),r=aa(Number.NEGATIVE_INFINITY,r)}return r},markAsRoot:function(e){return aa({type:"root"},e)},dedentToRoot:function(e){return aa(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return aa(-1,e)},hardlineWithoutBreakParent:ca,literallineWithoutBreakParent:la,label:function(e,t){return{type:"label",label:e,contents:t}}},ha={exports:{}},ma=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,t=void 0!==e&&e,n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")},va={exports:{}},ga=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)};va.exports=ga,va.exports.default=ga;var ya=function(e){return"string"==typeof e?e.replace(ma(),""):e},ba=va.exports,Da=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},Ea=function(e){if("string"!=typeof e||0===e.length)return 0;if(0===(e=ya(e)).length)return 0;e=e.replace(Da()," ");for(var t=0,n=0;n<e.length;n++){var r=e.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=ba(r)?2:1)}return t};ha.exports=Ea,ha.exports.default=Ea;var Ca=function(e){return e[e.length-1]};function Ta(e,t){if(null==e)return{};var n,r,i=function(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}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Aa=ue,Sa=Array.isArray||function(e){return"Array"==Aa(e)},wa=Je,Oa=re(re.bind),ka=function(e,t){return wa(e),void 0===t?e:Oa?Oa(e,t):function(){return e.apply(t,arguments)}},Na=Sa,Fa=kr,_a=ka,Ia=V.TypeError,ja=function e(t,n,r,i,o,a,u,s){for(var c,l=o,p=0,f=!!u&&_a(u,s);p<i;){if(p in r){if(c=f?f(r[p],p,n):r[p],a>0&&Na(c))l=e(t,n,c,Fa(c),l,a-1)-1;else{if(l>=9007199254740991)throw Ia("Exceed the acceptable array length");t[l]=c}l++}p++}return l},La=ja,Pa=re,Ma=q,Ba=be,Ra=Si,Va=On,Ua=function(){},qa=[],Ha=Ae("Reflect","construct"),Ga=/^\s*(?:class|function)\b/,Wa=Pa(Ga.exec),za=!Ga.exec(Ua),Ka=function(e){if(!Ba(e))return!1;try{return Ha(Ua,qa,e),!0}catch(e){return!1}},$a=!Ha||Ma((function(){var e;return Ka(Ka.call)||!Ka(Object)||!Ka((function(){e=!0}))||e}))?function(e){if(!Ba(e))return!1;switch(Ra(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return za||!!Wa(Ga,Va(e))}:Ka,Qa=V,Ja=Sa,Ya=$a,Xa=Ee,Za=_t("species"),eu=Qa.Array,tu=function(e){var t;return Ja(e)&&(t=e.constructor,(Ya(t)&&(t===eu||Ja(t.prototype))||Xa(t)&&null===(t=t[Za]))&&(t=void 0)),void 0===t?eu:t},nu=function(e,t){return new(tu(e))(0===t?0:t)},ru=La,iu=Je,ou=dt,au=kr,uu=nu;gi({target:"Array",proto:!0},{flatMap:function(e){var t,n=ou(this),r=au(n);return iu(e),(t=uu(n,0)).length=ru(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var su={},cu=su,lu=_t("iterator"),pu=Array.prototype,fu=Si,du=Xe,hu=su,mu=_t("iterator"),vu=function(e){if(null!=e)return du(e,mu)||du(e,"@@iterator")||hu[fu(e)]},gu=W,yu=Je,bu=pn,Du=ze,Eu=vu,Cu=V.TypeError,Tu=W,xu=pn,Au=Xe,Su=ka,wu=W,Ou=pn,ku=ze,Nu=function(e){return void 0!==e&&(cu.Array===e||pu[lu]===e)},Fu=kr,_u=Se,Iu=function(e,t){var n=arguments.length<2?Eu(e):t;if(yu(n))return bu(gu(n,e));throw Cu(Du(e)+" is not iterable")},ju=vu,Lu=function(e,t,n){var r,i;xu(e);try{if(!(r=Au(e,"return"))){if("throw"===t)throw n;return n}r=Tu(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return xu(r),n},Pu=V.TypeError,Mu=function(e,t){this.stopped=e,this.result=t},Bu=Mu.prototype,Ru=Ht,Vu=an,Uu=X,qu=function(e,t,n){var r,i,o,a,u,s,c,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),h=Su(t,l),m=function(e){return r&&Lu(r,"normal",e),new Mu(!0,e)},v=function(e){return p?(Ou(e),d?h(e[0],e[1],m):h(e[0],e[1])):d?h(e,m):h(e)};if(f)r=e;else{if(!(i=ju(e)))throw Pu(ku(e)+" is not iterable");if(Nu(i)){for(o=0,a=Fu(e);a>o;o++)if((u=v(e[o]))&&_u(Bu,u))return u;return new Mu(!1)}r=Iu(e,i)}for(s=r.next;!(c=wu(s,r)).done;){try{u=v(c.value)}catch(e){Lu(r,"throw",e)}if("object"==typeof u&&u&&_u(Bu,u))return u}return new Mu(!1)},Hu=function(e,t,n){var r=Ru(t);r in e?Vu.f(e,r,Uu(0,n)):e[r]=n};gi({target:"Object",stat:!0},{fromEntries:function(e){var t={};return qu(e,(function(e,n){Hu(t,e,n)}),{AS_ENTRIES:!0}),t}});var Gu=void 0!==Gu?Gu:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Wu(){throw new Error("setTimeout has not been defined")}function zu(){throw new Error("clearTimeout has not been defined")}var Ku=Wu,$u=zu;function Qu(e){if(Ku===setTimeout)return setTimeout(e,0);if((Ku===Wu||!Ku)&&setTimeout)return Ku=setTimeout,setTimeout(e,0);try{return Ku(e,0)}catch(n){try{return Ku.call(null,e,0)}catch(n){return Ku.call(this,e,0)}}}"function"==typeof Gu.setTimeout&&(Ku=setTimeout),"function"==typeof Gu.clearTimeout&&($u=clearTimeout);var Ju,Yu=[],Xu=!1,Zu=-1;function es(){Xu&&Ju&&(Xu=!1,Ju.length?Yu=Ju.concat(Yu):Zu=-1,Yu.length&&ts())}function ts(){if(!Xu){var e=Qu(es);Xu=!0;for(var t=Yu.length;t;){for(Ju=Yu,Yu=[];++Zu<t;)Ju&&Ju[Zu].run();Zu=-1,t=Yu.length}Ju=null,Xu=!1,function(e){if($u===clearTimeout)return clearTimeout(e);if(($u===zu||!$u)&&clearTimeout)return $u=clearTimeout,clearTimeout(e);try{$u(e)}catch(t){try{return $u.call(null,e)}catch(t){return $u.call(this,e)}}}(e)}}function ns(e,t){this.fun=e,this.array=t}function rs(){}ns.prototype.run=function(){this.fun.apply(null,this.array)};var is=rs,os=rs,as=rs,us=rs,ss=rs,cs=rs,ls=rs,ps=Gu.performance||{},fs=ps.now||ps.mozNow||ps.msNow||ps.oNow||ps.webkitNow||function(){return(new Date).getTime()},ds=new Date,hs={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Yu.push(new ns(e,t)),1!==Yu.length||Xu||Qu(ts)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:is,addListener:os,once:as,off:us,removeListener:ss,removeAllListeners:cs,emit:ls,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*fs.call(ps),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-ds)/1e3}},ms=hs,vs="object"==typeof ms&&ms.env&&ms.env.NODE_DEBUG&&/\bsemver\b/i.test(ms.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["SEMVER"].concat(n))}:function(){},gs=vs,ys={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},bs={exports:{}};!function(e,t){var n=ys.MAX_SAFE_COMPONENT_LENGTH,r=gs,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={},u=0,s=function(e,t,n){var s=u++;r(s,t),a[e]=s,o[s]=t,i[s]=new RegExp(t,n?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION","(".concat(o[a.NUMERICIDENTIFIER],")\\.")+"(".concat(o[a.NUMERICIDENTIFIER],")\\.")+"(".concat(o[a.NUMERICIDENTIFIER],")")),s("MAINVERSIONLOOSE","(".concat(o[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[a.NUMERICIDENTIFIERLOOSE],")")),s("PRERELEASEIDENTIFIER","(?:".concat(o[a.NUMERICIDENTIFIER],"|").concat(o[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[a.NUMERICIDENTIFIERLOOSE],"|").concat(o[a.NONNUMERICIDENTIFIER],")")),s("PRERELEASE","(?:-(".concat(o[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[a.PRERELEASEIDENTIFIER],")*))")),s("PRERELEASELOOSE","(?:-?(".concat(o[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[a.PRERELEASEIDENTIFIERLOOSE],")*))")),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD","(?:\\+(".concat(o[a.BUILDIDENTIFIER],"(?:\\.").concat(o[a.BUILDIDENTIFIER],")*))")),s("FULLPLAIN","v?".concat(o[a.MAINVERSION]).concat(o[a.PRERELEASE],"?").concat(o[a.BUILD],"?")),s("FULL","^".concat(o[a.FULLPLAIN],"$")),s("LOOSEPLAIN","[v=\\s]*".concat(o[a.MAINVERSIONLOOSE]).concat(o[a.PRERELEASELOOSE],"?").concat(o[a.BUILD],"?")),s("LOOSE","^".concat(o[a.LOOSEPLAIN],"$")),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE","".concat(o[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),s("XRANGEIDENTIFIER","".concat(o[a.NUMERICIDENTIFIER],"|x|X|\\*")),s("XRANGEPLAIN","[v=\\s]*(".concat(o[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIER],")")+"(?:".concat(o[a.PRERELEASE],")?").concat(o[a.BUILD],"?")+")?)?"),s("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[a.PRERELEASELOOSE],")?").concat(o[a.BUILD],"?")+")?)?"),s("XRANGE","^".concat(o[a.GTLT],"\\s*").concat(o[a.XRANGEPLAIN],"$")),s("XRANGELOOSE","^".concat(o[a.GTLT],"\\s*").concat(o[a.XRANGEPLAINLOOSE],"$")),s("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),s("COERCERTL",o[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM","(\\s*)".concat(o[a.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",s("TILDE","^".concat(o[a.LONETILDE]).concat(o[a.XRANGEPLAIN],"$")),s("TILDELOOSE","^".concat(o[a.LONETILDE]).concat(o[a.XRANGEPLAINLOOSE],"$")),s("LONECARET","(?:\\^)"),s("CARETTRIM","(\\s*)".concat(o[a.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",s("CARET","^".concat(o[a.LONECARET]).concat(o[a.XRANGEPLAIN],"$")),s("CARETLOOSE","^".concat(o[a.LONECARET]).concat(o[a.XRANGEPLAINLOOSE],"$")),s("COMPARATORLOOSE","^".concat(o[a.GTLT],"\\s*(").concat(o[a.LOOSEPLAIN],")$|^$")),s("COMPARATOR","^".concat(o[a.GTLT],"\\s*(").concat(o[a.FULLPLAIN],")$|^$")),s("COMPARATORTRIM","(\\s*)".concat(o[a.GTLT],"\\s*(").concat(o[a.LOOSEPLAIN],"|").concat(o[a.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE","^\\s*(".concat(o[a.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[a.XRANGEPLAIN],")")+"\\s*$"),s("HYPHENRANGELOOSE","^\\s*(".concat(o[a.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[a.XRANGEPLAINLOOSE],")")+"\\s*$"),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(bs,bs.exports);var Ds,Es,Cs,Ts,xs,As,Ss=["includePrerelease","loose","rtl"],ws=function(e){return e?"object"!=typeof e?{loose:!0}:Ss.filter((function(t){return e[t]})).reduce((function(e,t){return e[t]=!0,e}),{}):{}},Os=/^[0-9]+$/,ks=function(e,t){var n=Os.test(e),r=Os.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},Ns={compareIdentifiers:ks,rcompareIdentifiers:function(e,t){return ks(t,e)}},Fs=gs,_s=ys.MAX_LENGTH,Is=ys.MAX_SAFE_INTEGER,js=bs.exports,Ls=js.re,Ps=js.t,Ms=ws,Bs=Ns.compareIdentifiers,Rs=function(){function e(t,n){if(h(this,e),n=Ms(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: ".concat(t));if(t.length>_s)throw new TypeError("version is longer than ".concat(_s," characters"));Fs("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var r=t.trim().match(n.loose?Ls[Ps.LOOSE]:Ls[Ps.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Is||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Is||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Is||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<Is)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}return m(e,[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(t){if(Fs("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}},{key:"compareMain",value:function(t){return t instanceof e||(t=new e(t,this.options)),Bs(this.major,t.major)||Bs(this.minor,t.minor)||Bs(this.patch,t.patch)}},{key:"comparePre",value:function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var n=0;do{var r=this.prerelease[n],i=t.prerelease[n];if(Fs("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return Bs(r,i)}while(++n)}},{key:"compareBuild",value:function(t){t instanceof e||(t=new e(t,this.options));var n=0;do{var r=this.build[n],i=t.build[n];if(Fs("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return Bs(r,i)}while(++n)}},{key:"inc",value:function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),e}(),Vs=Rs,Us=function(e,t,n){return new Vs(e,n).compare(new Vs(t,n))},qs=Us,Hs=function(e,t,n){return qs(e,t,n)<0},Gs=Us,Ws=function(e,t,n){return Gs(e,t,n)>=0},zs={exports:{}};!function(e,t){function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function r(){return"undefined"!=typeof WeakMap?new WeakMap:{add:n,delete:n,get:n,set:n,has:function(e){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.outdent=void 0;var i=Object.prototype.hasOwnProperty,o=function(e,t){return i.call(e,t)};function a(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return e}var u=/^[ \t]*(?:\r\n|\r|\n)/,s=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,l=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,p=/^[ \t]*[\r\n][ \t\r\n]*$/;function f(e,t,n){var r=0,i=e[0].match(l);i&&(r=i[1].length);var o=new RegExp("(\\r\\n|\\r|\\n).{0,"+r+"}","g");t&&(e=e.slice(1));var a=n.newline,c=n.trimLeadingNewline,p=n.trimTrailingNewline,f="string"==typeof a,d=e.length;return e.map((function(e,t){return e=e.replace(o,"$1"),0===t&&c&&(e=e.replace(u,"")),t===d-1&&p&&(e=e.replace(s,"")),f&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return a}))),e}))}function d(e,t){for(var n="",r=0,i=e.length;r<i;r++)n+=e[r],r<i-1&&(n+=t[r]);return n}function h(e){return o(e,"raw")&&o(e,"length")}var m=function e(t){var n=r(),i=r(),o=a((function r(o){for(var u=[],s=1;s<arguments.length;s++)u[s-1]=arguments[s];if(h(o)){var l=o,v=(u[0]===r||u[0]===m)&&p.test(l[0])&&c.test(l[1]),g=v?i:n,y=g.get(l);return y||(y=f(l,v,t),g.set(l,y)),0===u.length?y[0]:d(y,v?u.slice(1):u)}return e(a(a({},t),o||{}))}),{string:function(e){return f([e],!1,t)[0]}});return o}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=m,t.default=m;try{e.exports=m,Object.defineProperty(m,"__esModule",{value:!0}),m.default=m,m.outdent=m}catch(e){}}(zs,zs.exports);var Ks=zs.exports.outdent,$s="Config",Qs="Editor",Js="Other",Ys="Global",Xs="Special",Zs={cursorOffset:{since:"1.4.0",category:Xs,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:Ks(Ds||(Ds=xa(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]))),cliCategory:Qs},endOfLine:{since:"1.15.0",category:Ys,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Ks(Es||(Es=xa(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "])))}]},filepath:{since:"1.4.0",category:Xs,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:Js,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Xs,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:Js},parser:{since:"0.0.10",category:Ys,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:function(e){return"string"==typeof e||"function"==typeof e},choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Ys,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:function(e){return"string"==typeof e||"object"==typeof e},cliName:"plugin",cliCategory:$s},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Ys,description:Ks(Cs||(Cs=xa(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]))),exception:function(e){return"string"==typeof e||"object"==typeof e},cliName:"plugin-search-dir",cliCategory:$s},printWidth:{since:"0.0.0",category:Ys,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Xs,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Ks(Ts||(Ts=xa(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:Qs},rangeStart:{since:"1.4.0",category:Xs,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Ks(xs||(xs=xa(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:Qs},requirePragma:{since:"1.7.0",category:Xs,type:"boolean",default:!1,description:Ks(As||(As=xa(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]))),cliCategory:Js},tabWidth:{type:"int",category:Ys,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Ys,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Ys,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},ec=["cliName","cliCategory","cliDescription"],tc={compare:Us,lt:Hs,gte:Ws},nc=function(e,t){return Object.entries(e).map((function(e){var n=d(e,2),r=n[0],i=n[1];return Object.assign(f({},t,r),i)}))},rc=v.version,ic={CATEGORY_CONFIG:$s,CATEGORY_EDITOR:Qs,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:Js,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:Ys,CATEGORY_SPECIAL:Xs,options:Zs}.options;function oc(e,t,n){var r,i=new Set(e.choices.map((function(e){return e.value}))),o=p(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.parsers){var u,s=p(a.parsers);try{var c=function(){var t=u.value;if(!i.has(t)){i.add(t);var r=n.find((function(e){return e.parsers&&e.parsers[t]})),o=a.name;r&&r.name&&(o+=" (plugin: ".concat(r.name,")")),e.choices.push({value:t,description:o})}};for(s.s();!(u=s.n()).done;)c()}catch(l){s.e(l)}finally{s.f()}}}}catch(l){o.e(l)}finally{o.f()}}var ac={getSupportInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.plugins,n=void 0===t?[]:t,r=e.showUnreleased,i=void 0!==r&&r,o=e.showDeprecated,a=void 0!==o&&o,u=e.showInternal,s=void 0!==u&&u,c=rc.split("-",1)[0],p=n.flatMap((function(e){return e.languages||[]})).filter(d),f=nc(Object.assign.apply(Object,[{}].concat(l(n.map((function(e){return e.options}))),[ic])),"name").filter((function(e){return d(e)&&h(e)})).sort((function(e,t){return e.name===t.name?0:e.name<t.name?-1:1})).map(m).map((function(e){e=Object.assign({},e),Array.isArray(e.default)&&(e.default=1===e.default.length?e.default[0].value:e.default.filter(d).sort((function(e,t){return tc.compare(t.since,e.since)}))[0].value),Array.isArray(e.choices)&&(e.choices=e.choices.filter((function(e){return d(e)&&h(e)})),"parser"===e.name&&oc(e,p,n));var t=Object.fromEntries(n.filter((function(t){return t.defaultOptions&&void 0!==t.defaultOptions[e.name]})).map((function(t){return[t.name,t.defaultOptions[e.name]]})));return Object.assign(Object.assign({},e),{},{pluginDefaults:t})}));return{languages:p,options:f};function d(e){return i||!("since"in e)||e.since&&tc.gte(c,e.since)}function h(e){return a||!("deprecated"in e)||e.deprecated&&tc.lt(c,e.deprecated)}function m(e){return s?e:Ta(e,ec)}}},uc=ha.exports,sc=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},cc=Ca,lc=ac.getSupportInfo,pc=/[^\x20-\x7F]/;function fc(e){return function(t,n,r){var i=r&&r.backwards;if(!1===n)return!1;for(var o=t.length,a=n;a>=0&&a<o;){var u=t.charAt(a);if(e instanceof RegExp){if(!e.test(u))return a}else if(!e.includes(u))return a;i?a--:a++}return(-1===a||a===o)&&a}}var dc=fc(/\s/),hc=fc(" \t"),mc=fc(",; \t"),vc=fc(/[^\n\r]/);function gc(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(var n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t}function yc(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?vc(e,t):t)}function bc(e,t,n){var r=n&&n.backwards;if(!1===t)return!1;var i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function Dc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=hc(e,n.backwards?t-1:t,n);return r!==bc(e,r,n)}function Ec(e,t){for(var n=null,r=t;r!==n;)n=r,r=gc(e,r=mc(e,r)),r=hc(e,r);return!1!==(r=bc(e,r=yc(e,r)))&&Dc(e,r)}function Cc(e,t){for(var n=null,r=t;r!==n;)n=r,r=bc(e,r=yc(e,r=gc(e,r=hc(e,r))));return r}function Tc(e,t,n){return Cc(e,n(t))}function xc(e,t){for(var n=0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<e.length;++r)"\t"===e[r]?n=n+t-n%t:n++;return n}function Ac(e,t){var n={quote:'"',regex:/"/g,escaped:"""},r={quote:"'",regex:/'/g,escaped:"'"},i="'"===t?r:n,o=i===r?n:r,a=i;return(e.includes(i.quote)||e.includes(o.quote))&&(a=(e.match(i.regex)||[]).length>(e.match(o.regex)||[]).length?o:i),a}function Sc(e,t,n){var r='"'===t?"'":'"',i=e.replace(/\\([\s\S])|(["'])/g,(function(e,i,o){return i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)}));return t+i+t}function wc(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){var t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"\u2026"),t+(n?" "+n:"")}(e)}var Oc={inferParserByLanguage:function(e,t){var n=lc({plugins:t.plugins}).languages,r=n.find((function(t){return t.name.toLowerCase()===e}))||n.find((function(t){var n=t.aliases;return Array.isArray(n)&&n.includes(e)}))||n.find((function(t){var n=t.extensions;return Array.isArray(n)&&n.includes(".".concat(e))}));return r&&r.parsers[0]},getStringWidth:function(e){return e?pc.test(e)?uc(e):e.length:0},getMaxContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(sc(t),")+"),"g"));return null===n?0:n.reduce((function(e,n){return Math.max(e,n.length/t.length)}),0)},getMinNotPresentContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(sc(t),")+"),"g"));if(null===n)return 0;var r,i=new Map,o=0,a=p(n);try{for(a.s();!(r=a.n()).done;){var u=r.value.length/t.length;i.set(u,!0),u>o&&(o=u)}}catch(c){a.e(c)}finally{a.f()}for(var s=1;s<o;s++)if(!i.get(s))return s;return o+1},getPenultimate:function(e){return e[e.length-2]},getLast:cc,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Cc,getNextNonSpaceNonCommentCharacterIndex:Tc,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(Tc(e,t,n))},skip:fc,skipWhitespace:dc,skipSpaces:hc,skipToLineEnd:mc,skipEverythingButNewLine:vc,skipInlineComment:gc,skipTrailingComment:yc,skipNewline:bc,isNextLineEmptyAfterIndex:Ec,isNextLineEmpty:function(e,t,n){return Ec(e,n(t))},isPreviousLineEmpty:function(e,t,n){var r=n(t)-1;return r=bc(e,r=hc(e,r,{backwards:!0}),{backwards:!0}),(r=hc(e,r,{backwards:!0}))!==bc(e,r,{backwards:!0})},hasNewline:Dc,hasNewlineInRange:function(e,t,n){for(var r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},hasSpaces:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return hc(e,n.backwards?t-1:t,n)!==t},getAlignmentSize:xc,getIndentSize:function(e,t){var n=e.lastIndexOf("\n");return-1===n?0:xc(e.slice(n+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Ac,printString:function(e,t){var n=e.slice(1,-1);return Sc(n,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Ac(n,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:Sc,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,wc(e,t)},addDanglingComment:function(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),wc(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,wc(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";var t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){var t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}},kc={guessEndOfLine:function(e){var t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){var n;if("\n"===t)n=/\n/g;else if("\r"===t)n=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));n=/\r\n/g}var r=e.match(n);return r?r.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}},Nc=Ca,Fc=da.literalline,_c=da.join,Ic=function(e){return Array.isArray(e)||e&&"concat"===e.type},jc=function(e){if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},Lc={};function Pc(e,t,n,r){for(var i=[e];i.length>0;){var o=i.pop();if(o!==Lc){if(n&&i.push(o,Lc),!t||!1!==t(o))if(Ic(o)||"fill"===o.type)for(var a=jc(o),u=a.length-1;u>=0;--u)i.push(a[u]);else if("if-break"===o.type)o.flatContents&&i.push(o.flatContents),o.breakContents&&i.push(o.breakContents);else if("group"===o.type&&o.expandedStates)if(r)for(var s=o.expandedStates.length-1;s>=0;--s)i.push(o.expandedStates[s]);else i.push(o.contents);else o.contents&&i.push(o.contents)}else n(i.pop())}}function Mc(e,t){var n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);var i=function(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){var n=e.parts.map(r);return t(Object.assign(Object.assign({},e),{},{parts:n}))}if("if-break"===e.type){var i=e.breakContents&&r(e.breakContents),o=e.flatContents&&r(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:i,flatContents:o}))}if("group"===e.type&&e.expandedStates){var a=e.expandedStates.map(r),u=a[0];return t(Object.assign(Object.assign({},e),{},{contents:u,expandedStates:a}))}if(e.contents){var s=r(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:s}))}return t(e)}(e);return n.set(e,i),i}}function Bc(e,t,n){var r=n,i=!1;return Pc(e,(function(e){var n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1})),r}function Rc(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Vc(e){if(e.length>0){var t=Nc(e);t.expandedStates||t.break||(t.break="propagated")}return null}function Uc(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}var qc=function(e,t){return e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type};function Hc(e){if(!e)return e;if(Ic(e)||"fill"===e.type){for(var t=jc(e);t.length>1&&qc.apply(void 0,l(t.slice(-2)));)t.length-=2;if(t.length>0){var n=Hc(Nc(t));t[t.length-1]=n}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":var r=Hc(e.contents);return Object.assign(Object.assign({},e),{},{contents:r});case"if-break":var i=Hc(e.breakContents),o=Hc(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:i,flatContents:o})}return e}function Gc(e){return Mc(e,(function(e){return function(e){switch(e.type){case"fill":if(e.parts.every((function(e){return""===e})))return"";break;case"group":if(!(e.contents||e.id||e.break||e.expandedStates))return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!Ic(e))return e;var t,n=[],r=p(jc(e));try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i){var o=Ic(i)?jc(i):[i],a=c(o),u=a[0],s=a.slice(1);"string"==typeof u&&"string"==typeof Nc(n)?n[n.length-1]+=u:n.push(u),n.push.apply(n,l(s))}}}catch(f){r.e(f)}finally{r.f()}return 0===n.length?"":1===n.length?n[0]:Array.isArray(e)?n:Object.assign(Object.assign({},e),{},{parts:n})}(e)}))}function Wc(e){for(var t=[],n=e.filter(Boolean);n.length>0;){var r=n.shift();r&&(Ic(r)?n.unshift.apply(n,l(jc(r))):t.length>0&&"string"==typeof Nc(t)&&"string"==typeof r?t[t.length-1]+=r:t.push(r))}return t}function zc(e){return _c(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fc,e.split("\n")).parts}function Kc(e){if("line"===e.type)return!0}var $c,Qc={isConcat:Ic,getDocParts:jc,willBreak:function(e){return Bc(e,Rc,!1)},traverseDoc:Pc,findInDoc:Bc,mapDoc:Mc,propagateBreaks:function(e){var t=new Set,n=[];Pc(e,(function(e){if("break-parent"===e.type&&Vc(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Vc(n)}),!0)},removeLines:function(e){return Mc(e,Uc)},stripTrailingHardline:function(e){return Hc(Gc(e))},normalizeParts:Wc,normalizeDoc:function(e){return Mc(e,(function(e){return Array.isArray(e)?Wc(e):e.parts?Object.assign(Object.assign({},e),{},{parts:Wc(e.parts)}):e}))},cleanDoc:Gc,replaceTextEndOfLine:zc,replaceEndOfLine:function(e){return Mc(e,(function(e){return"string"==typeof e&&e.includes("\n")?zc(e):e}))},canBreak:function(e){return Bc(e,Kc,!1)}},Jc=Oc.getStringWidth,Yc=Oc.getLast,Xc=kc.convertEndOfLineToChars,Zc=da.fill,el=da.cursor,tl=da.indent,nl=Qc.isConcat,rl=Qc.getDocParts;function il(e,t){return al(e,{type:"indent"},t)}function ol(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?al(e,{type:"dedent"},n):t?"root"===t.type?Object.assign(Object.assign({},e),{},{root:e}):al(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function al(e,t,n){var r,i="dedent"===t.type?e.queue.slice(0,-1):[].concat(l(e.queue),[t]),o="",a=0,u=0,s=0,c=p(i);try{for(c.s();!(r=c.n()).done;){var f=r.value;switch(f.type){case"indent":m(),n.useTabs?d(1):h(n.tabWidth);break;case"stringAlign":m(),o+=f.n,a+=f.n.length;break;case"numberAlign":u+=1,s+=f.n;break;default:throw new Error("Unexpected type '".concat(f.type,"'"))}}}catch(y){c.e(y)}finally{c.f()}return v(),Object.assign(Object.assign({},e),{},{value:o,length:a,queue:i});function d(e){o+="\t".repeat(e),a+=n.tabWidth*e}function h(e){o+=" ".repeat(e),a+=e}function m(){n.useTabs?(u>0&&d(u),g()):v()}function v(){s>0&&h(s),g()}function g(){u=0,s=0}}function ul(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof Yc(e)&&/^[\t ]*$/.test(Yc(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof Yc(e)){var n=Yc(e).replace(/[\t ]*$/,"");t+=Yc(e).length-n.length,e[e.length-1]=n}return t}function sl(e,t,n,r,i,o){for(var a=t.length,u=[e],s=[];n>=0;)if(0!==u.length){var c=u.pop(),l=d(c,3),p=l[0],f=l[1],h=l[2];if("string"==typeof h)s.push(h),n-=Jc(h);else if(nl(h))for(var m=rl(h),v=m.length-1;v>=0;v--)u.push([p,f,m[v]]);else switch(h.type){case"indent":u.push([il(p,r),f,h.contents]);break;case"align":u.push([ol(p,h.n,r),f,h.contents]);break;case"trim":n+=ul(s);break;case"group":if(o&&h.break)return!1;var g=h.break?1:f;u.push([p,g,h.expandedStates&&1===g?Yc(h.expandedStates):h.contents]),h.id&&($c[h.id]=g);break;case"fill":for(var y=h.parts.length-1;y>=0;y--)u.push([p,f,h.parts[y]]);break;case"if-break":case"indent-if-break":var b=h.groupId?$c[h.groupId]:f;if(1===b){var D="if-break"===h.type?h.breakContents:h.negate?h.contents:tl(h.contents);D&&u.push([p,f,D])}if(2===b){var E="if-break"===h.type?h.flatContents:h.negate?tl(h.contents):h.contents;E&&u.push([p,f,E])}break;case"line":switch(f){case 2:if(!h.hard){h.soft||(s.push(" "),n-=1);break}return!0;case 1:return!0}break;case"line-suffix":i=!0;break;case"line-suffix-boundary":if(i)return!1;break;case"label":u.push([p,f,h.contents])}}else{if(0===a)return!0;u.push(t[a-1]),a--}return!1}var cl={printDocToString:function(e,t){$c={};for(var n=t.printWidth,r=Xc(t.endOfLine),i=0,o=[[{value:"",length:0,queue:[]},1,e]],a=[],u=!1,s=[];o.length>0;){var c=o.pop(),p=d(c,3),f=p[0],h=p[1],m=p[2];if("string"==typeof m){var v="\n"!==r?m.replace(/\n/g,r):m;a.push(v),i+=Jc(v)}else if(nl(m))for(var g=rl(m),y=g.length-1;y>=0;y--)o.push([f,h,g[y]]);else switch(m.type){case"cursor":a.push(el.placeholder);break;case"indent":o.push([il(f,t),h,m.contents]);break;case"align":o.push([ol(f,m.n,t),h,m.contents]);break;case"trim":i-=ul(a);break;case"group":switch(h){case 2:if(!u){o.push([f,m.break?1:2,m.contents]);break}case 1:u=!1;var b=[f,2,m.contents],D=n-i,E=s.length>0;if(!m.break&&sl(b,o,D,t,E))o.push(b);else if(m.expandedStates){var C=Yc(m.expandedStates);if(m.break){o.push([f,1,C]);break}for(var T=1;T<m.expandedStates.length+1;T++){if(T>=m.expandedStates.length){o.push([f,1,C]);break}var x=[f,2,m.expandedStates[T]];if(sl(x,o,D,t,E)){o.push(x);break}}}else o.push([f,1,m.contents])}m.id&&($c[m.id]=Yc(o)[1]);break;case"fill":var A=n-i,S=m.parts;if(0===S.length)break;var w=d(S,2),O=w[0],k=w[1],N=[f,2,O],F=[f,1,O],_=sl(N,[],A,t,s.length>0,!0);if(1===S.length){_?o.push(N):o.push(F);break}var I=[f,2,k],j=[f,1,k];if(2===S.length){_?o.push(I,N):o.push(j,F);break}S.splice(0,2);var L=[f,h,Zc(S)];sl([f,2,[O,k,S[0]]],[],A,t,s.length>0,!0)?o.push(L,I,N):_?o.push(L,j,N):o.push(L,j,F);break;case"if-break":case"indent-if-break":var P=m.groupId?$c[m.groupId]:h;if(1===P){var M="if-break"===m.type?m.breakContents:m.negate?m.contents:tl(m.contents);M&&o.push([f,h,M])}if(2===P){var B="if-break"===m.type?m.flatContents:m.negate?tl(m.contents):m.contents;B&&o.push([f,h,B])}break;case"line-suffix":s.push([f,h,m.contents]);break;case"line-suffix-boundary":s.length>0&&o.push([f,h,{type:"line",hard:!0}]);break;case"line":switch(h){case 2:if(!m.hard){m.soft||(a.push(" "),i+=1);break}u=!0;case 1:if(s.length>0){o.push.apply(o,[[f,h,m]].concat(l(s.reverse()))),s=[];break}m.literal?f.root?(a.push(r,f.root.value),i=f.root.length):(a.push(r),i=0):(i-=ul(a),a.push(r+f.value),i=f.length)}break;case"label":o.push([f,h,m.contents])}0===o.length&&s.length>0&&(o.push.apply(o,l(s.reverse())),s=[])}var R=a.indexOf(el.placeholder);if(-1!==R){var V=a.indexOf(el.placeholder,R+1),U=a.slice(0,R).join(""),q=a.slice(R+1,V).join("");return{formatted:U+q+a.slice(V+1).join(""),cursorNodeStart:U.length,cursorNodeText:q}}return{formatted:a.join("")}}},ll=Qc.isConcat,pl=Qc.getDocParts;function fl(e){if(!e)return"";if(ll(e)){var t,n=[],r=p(pl(e));try{for(r.s();!(t=r.n()).done;){var i=t.value;if(ll(i))n.push.apply(n,l(fl(i).parts));else{var o=fl(i);""!==o&&n.push(o)}}}catch(a){r.e(a)}finally{r.f()}return{type:"concat",parts:n}}return"if-break"===e.type?Object.assign(Object.assign({},e),{},{breakContents:fl(e.breakContents),flatContents:fl(e.flatContents)}):"group"===e.type?Object.assign(Object.assign({},e),{},{contents:fl(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(fl)}):"fill"===e.type?{type:"fill",parts:e.parts.map(fl)}:e.contents?Object.assign(Object.assign({},e),{},{contents:fl(e.contents)}):e}var dl={printDocToDebug:function(e){var t=Object.create(null),n=new Set;return function e(t,n,i){if("string"==typeof t)return JSON.stringify(t);if(ll(t)){var o=pl(t).map(e).filter(Boolean);return 1===o.length?o[0]:"[".concat(o.join(", "),"]")}if("line"===t.type){var a=Array.isArray(i)&&i[n+1]&&"break-parent"===i[n+1].type;return t.literal?a?"literalline":"literallineWithoutBreakParent":t.hard?a?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(i)&&i[n-1]&&"line"===i[n-1].type&&i[n-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+", { groupId: ".concat(r(t.groupId)," }"):"")+")";if("indent-if-break"===t.type){var u=[];t.negate&&u.push("negate: true"),t.groupId&&u.push("groupId: ".concat(r(t.groupId)));var s=u.length>0?", { ".concat(u.join(", ")," }"):"";return"indentIfBreak(".concat(e(t.contents)).concat(s,")")}if("group"===t.type){var c=[];t.break&&"propagated"!==t.break&&c.push("shouldBreak: true"),t.id&&c.push("id: ".concat(r(t.id)));var l=c.length>0?", { ".concat(c.join(", ")," }"):"";return t.expandedStates?"conditionalGroup([".concat(t.expandedStates.map((function(t){return e(t)})).join(","),"]").concat(l,")"):"group(".concat(e(t.contents)).concat(l,")")}if("fill"===t.type)return"fill([".concat(t.parts.map((function(t){return e(t)})).join(", "),"])");if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return"label(".concat(JSON.stringify(t.label),", ").concat(e(t.contents),")");throw new Error("Unknown doc type "+t.type)}(fl(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];for(var r=String(e).slice(7,-1)||"symbol",i=0;;i++){var o=r+(i>0?" #".concat(i):"");if(!n.has(o))return n.add(o),t[e]="Symbol.for(".concat(JSON.stringify(o),")")}}}},hl={builders:da,printer:cl,utils:Qc,debug:dl},ml=n(Object.freeze({__proto__:null,default:{}}));function vl(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var gl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,yl=function(e){return gl.exec(e).slice(1)};function bl(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=vl(Ol(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function Dl(e){var t=El(e),n="/"===kl(e,-1);return(e=vl(Ol(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function El(e){return"/"===e.charAt(0)}function Cl(){return Dl(Ol(Array.prototype.slice.call(arguments,0),(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Tl(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=bl(e).substr(1),t=bl(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),a=o,u=0;u<o;u++)if(r[u]!==i[u]){a=u;break}var s=[];for(u=a;u<r.length;u++)s.push("..");return(s=s.concat(i.slice(a))).join("/")}function xl(e){var t=yl(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function Al(e,t){var n=yl(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}function Sl(e){return yl(e)[3]}var wl={extname:Sl,basename:Al,dirname:xl,sep:"/",delimiter:":",relative:Tl,join:Cl,isAbsolute:El,normalize:Dl,resolve:bl};function Ol(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var kl="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)},Nl=n(Object.freeze({__proto__:null,resolve:bl,normalize:Dl,isAbsolute:El,join:Cl,relative:Tl,sep:"/",delimiter:":",dirname:xl,basename:Al,extname:Sl,default:wl})),Fl=[],_l=[],Il="undefined"!=typeof Uint8Array?Uint8Array:Array,jl=!1;function Ll(){jl=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Fl[t]=e[t],_l[e.charCodeAt(t)]=t;_l["-".charCodeAt(0)]=62,_l["_".charCodeAt(0)]=63}function Pl(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(Fl[(i=r)>>18&63]+Fl[i>>12&63]+Fl[i>>6&63]+Fl[63&i]);return o.join("")}function Ml(e){var t;jl||Ll();for(var n=e.length,r=n%3,i="",o=[],a=16383,u=0,s=n-r;u<s;u+=a)o.push(Pl(e,u,u+a>s?s:u+a));return 1===r?(t=e[n-1],i+=Fl[t>>2],i+=Fl[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Fl[t>>10],i+=Fl[t>>4&63],i+=Fl[t<<2&63],i+="="),o.push(i),o.join("")}function Bl(e,t,n,r,i){var o,a,u=8*i-r-1,s=(1<<u)-1,c=s>>1,l=-7,p=n?i-1:0,f=n?-1:1,d=e[t+p];for(p+=f,o=d&(1<<-l)-1,d>>=-l,l+=u;l>0;o=256*o+e[t+p],p+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)}function Rl(e,t,n,r,i,o){var a,u,s,c=8*o-i-1,l=(1<<c)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+p>=1?f/s:f*Math.pow(2,1-p))*s>=2&&(a++,s/=2),a+p>=l?(u=0,a=l):a+p>=1?(u=(t*s-1)*Math.pow(2,i),a+=p):(u=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&u,d+=h,u/=256,i-=8);for(a=a<<i|u,c+=i;c>0;e[n+d]=255&a,d+=h,a/=256,c-=8);e[n+d-h]|=128*m}var Vl={}.toString,Ul=Array.isArray||function(e){return"[object Array]"==Vl.call(e)};function ql(){return Gl.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Hl(e,t){if(ql()<t)throw new RangeError("Invalid typed array length");return Gl.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Gl.prototype:(null===e&&(e=new Gl(t)),e.length=t),e}function Gl(e,t,n){if(!(Gl.TYPED_ARRAY_SUPPORT||this instanceof Gl))return new Gl(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Kl(this,e)}return Wl(this,e,t,n)}function Wl(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),Gl.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Gl.prototype:e=$l(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!Gl.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Yl(t,n),i=(e=Hl(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(Jl(t)){var n=0|Ql(t.length);return 0===(e=Hl(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?Hl(e,0):$l(e,t);if("Buffer"===t.type&&Ul(t.data))return $l(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function zl(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Kl(e,t){if(zl(t),e=Hl(e,t<0?0:0|Ql(t)),!Gl.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function $l(e,t){var n=t.length<0?0:0|Ql(t.length);e=Hl(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ql(e){if(e>=ql())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ql().toString(16)+" bytes");return 0|e}function Jl(e){return!(null==e||!e._isBuffer)}function Yl(e,t){if(Jl(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return xp(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ap(e).length;default:if(r)return xp(e).length;t=(""+t).toLowerCase(),r=!0}}function Xl(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return dp(this,t,n);case"utf8":case"utf-8":return cp(this,t,n);case"ascii":return pp(this,t,n);case"latin1":case"binary":return fp(this,t,n);case"base64":return sp(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hp(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Zl(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ep(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Gl.from(t,r)),Jl(t))return 0===t.length?-1:tp(e,t,n,r,i);if("number"==typeof t)return t&=255,Gl.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):tp(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function tp(e,t,n,r,i){var o,a=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<u;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===s)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+s>u&&(n=u-s),o=n;o>=0;o--){for(var p=!0,f=0;f<s;f++)if(c(e,o+f)!==c(t,f)){p=!1;break}if(p)return o}return-1}function np(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function rp(e,t,n,r){return Sp(xp(t,e.length-n),e,n,r)}function ip(e,t,n,r){return Sp(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function op(e,t,n,r){return ip(e,t,n,r)}function ap(e,t,n,r){return Sp(Ap(t),e,n,r)}function up(e,t,n,r){return Sp(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function sp(e,t,n){return 0===t&&n===e.length?Ml(e):Ml(e.slice(t,n))}function cp(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,u,s,c=e[i],l=null,p=c>239?4:c>223?3:c>191?2:1;if(i+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(s=(31&c)<<6|63&o)>127&&(l=s);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(s=(15&c)<<12|(63&o)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:o=e[i+1],a=e[i+2],u=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(l=s)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=p}return function(e){var t=e.length;if(t<=lp)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=lp));return n}(r)}Gl.TYPED_ARRAY_SUPPORT=void 0===Gu.TYPED_ARRAY_SUPPORT||Gu.TYPED_ARRAY_SUPPORT,Gl.poolSize=8192,Gl._augment=function(e){return e.__proto__=Gl.prototype,e},Gl.from=function(e,t,n){return Wl(null,e,t,n)},Gl.TYPED_ARRAY_SUPPORT&&(Gl.prototype.__proto__=Uint8Array.prototype,Gl.__proto__=Uint8Array),Gl.alloc=function(e,t,n){return function(e,t,n,r){return zl(t),t<=0?Hl(e,t):void 0!==n?"string"==typeof r?Hl(e,t).fill(n,r):Hl(e,t).fill(n):Hl(e,t)}(null,e,t,n)},Gl.allocUnsafe=function(e){return Kl(null,e)},Gl.allocUnsafeSlow=function(e){return Kl(null,e)},Gl.isBuffer=wp,Gl.compare=function(e,t){if(!Jl(e)||!Jl(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},Gl.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Gl.concat=function(e,t){if(!Ul(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Gl.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Gl.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!Jl(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Gl.byteLength=Yl,Gl.prototype._isBuffer=!0,Gl.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Zl(this,t,t+1);return this},Gl.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Zl(this,t,t+3),Zl(this,t+1,t+2);return this},Gl.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Zl(this,t,t+7),Zl(this,t+1,t+6),Zl(this,t+2,t+5),Zl(this,t+3,t+4);return this},Gl.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?cp(this,0,e):Xl.apply(this,arguments)},Gl.prototype.equals=function(e){if(!Jl(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Gl.compare(this,e)},Gl.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Gl.prototype.compare=function(e,t,n,r,i){if(!Jl(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(o,a),s=this.slice(r,i),c=e.slice(t,n),l=0;l<u;++l)if(s[l]!==c[l]){o=s[l],a=c[l];break}return o<a?-1:a<o?1:0},Gl.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Gl.prototype.indexOf=function(e,t,n){return ep(this,e,t,n,!0)},Gl.prototype.lastIndexOf=function(e,t,n){return ep(this,e,t,n,!1)},Gl.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return np(this,e,t,n);case"utf8":case"utf-8":return rp(this,e,t,n);case"ascii":return ip(this,e,t,n);case"latin1":case"binary":return op(this,e,t,n);case"base64":return ap(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return up(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Gl.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var lp=4096;function pp(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function fp(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function dp(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Tp(e[o]);return i}function hp(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function mp(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function vp(e,t,n,r,i,o){if(!Jl(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function gp(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function yp(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function bp(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Dp(e,t,n,r,i){return i||bp(e,0,n,4),Rl(e,t,n,r,23,4),n+4}function Ep(e,t,n,r,i){return i||bp(e,0,n,8),Rl(e,t,n,r,52,8),n+8}Gl.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Gl.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Gl.prototype;else{var i=t-e;n=new Gl(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},Gl.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||mp(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},Gl.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||mp(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Gl.prototype.readUInt8=function(e,t){return t||mp(e,1,this.length),this[e]},Gl.prototype.readUInt16LE=function(e,t){return t||mp(e,2,this.length),this[e]|this[e+1]<<8},Gl.prototype.readUInt16BE=function(e,t){return t||mp(e,2,this.length),this[e]<<8|this[e+1]},Gl.prototype.readUInt32LE=function(e,t){return t||mp(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Gl.prototype.readUInt32BE=function(e,t){return t||mp(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Gl.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||mp(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},Gl.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||mp(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Gl.prototype.readInt8=function(e,t){return t||mp(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Gl.prototype.readInt16LE=function(e,t){t||mp(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Gl.prototype.readInt16BE=function(e,t){t||mp(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Gl.prototype.readInt32LE=function(e,t){return t||mp(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Gl.prototype.readInt32BE=function(e,t){return t||mp(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Gl.prototype.readFloatLE=function(e,t){return t||mp(e,4,this.length),Bl(this,e,!0,23,4)},Gl.prototype.readFloatBE=function(e,t){return t||mp(e,4,this.length),Bl(this,e,!1,23,4)},Gl.prototype.readDoubleLE=function(e,t){return t||mp(e,8,this.length),Bl(this,e,!0,52,8)},Gl.prototype.readDoubleBE=function(e,t){return t||mp(e,8,this.length),Bl(this,e,!1,52,8)},Gl.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||vp(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},Gl.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||vp(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Gl.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,1,255,0),Gl.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Gl.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,2,65535,0),Gl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):gp(this,e,t,!0),t+2},Gl.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,2,65535,0),Gl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):gp(this,e,t,!1),t+2},Gl.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,4,4294967295,0),Gl.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):yp(this,e,t,!0),t+4},Gl.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,4,4294967295,0),Gl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):yp(this,e,t,!1),t+4},Gl.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);vp(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},Gl.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);vp(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},Gl.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,1,127,-128),Gl.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Gl.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,2,32767,-32768),Gl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):gp(this,e,t,!0),t+2},Gl.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,2,32767,-32768),Gl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):gp(this,e,t,!1),t+2},Gl.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,4,2147483647,-2147483648),Gl.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):yp(this,e,t,!0),t+4},Gl.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||vp(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Gl.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):yp(this,e,t,!1),t+4},Gl.prototype.writeFloatLE=function(e,t,n){return Dp(this,e,t,!0,n)},Gl.prototype.writeFloatBE=function(e,t,n){return Dp(this,e,t,!1,n)},Gl.prototype.writeDoubleLE=function(e,t,n){return Ep(this,e,t,!0,n)},Gl.prototype.writeDoubleBE=function(e,t,n){return Ep(this,e,t,!1,n)},Gl.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Gl.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},Gl.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Gl.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=Jl(e)?e:xp(new Gl(e,r).toString()),u=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%u]}return this};var Cp=/[^+\/0-9A-Za-z-_]/g;function Tp(e){return e<16?"0"+e.toString(16):e.toString(16)}function xp(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ap(e){return function(e){var t,n,r,i,o,a;jl||Ll();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[u-2]?2:"="===e[u-1]?1:0,a=new Il(3*u/4-o),r=o>0?u-4:u;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)i=_l[e.charCodeAt(t)]<<18|_l[e.charCodeAt(t+1)]<<12|_l[e.charCodeAt(t+2)]<<6|_l[e.charCodeAt(t+3)],a[s++]=i>>16&255,a[s++]=i>>8&255,a[s++]=255&i;return 2===o?(i=_l[e.charCodeAt(t)]<<2|_l[e.charCodeAt(t+1)]>>4,a[s++]=255&i):1===o&&(i=_l[e.charCodeAt(t)]<<10|_l[e.charCodeAt(t+1)]<<4|_l[e.charCodeAt(t+2)]>>2,a[s++]=i>>8&255,a[s++]=255&i),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Cp,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Sp(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function wp(e){return null!=e&&(!!e._isBuffer||Op(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Op(e.slice(0,0))}(e))}function Op(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var kp=ml,Np=function(){function e(t,n){h(this,e),(n=n||{}).readChunk||(n.readChunk=1024),n.newLineCharacter?n.newLineCharacter=n.newLineCharacter.charCodeAt(0):n.newLineCharacter=10,this.fd="number"==typeof t?t:kp.openSync(t,"r"),this.options=n,this.newLineCharacter=n.newLineCharacter,this.reset()}return m(e,[{key:"_searchInBuffer",value:function(e,t){for(var n=-1,r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){kp.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,n=[],r=0,i=0;;){var o=e[r++];if(o===this.newLineCharacter)t=e.slice(i,r),n.push(t),i=r;else if(void 0===o)break}var a=e.slice(i,r);return a.length&&n.push(a),n}},{key:"_readChunk",value:function(e){var t,n=0,r=[];do{var i=new Gl(this.options.readChunk);n+=t=kp.readSync(this.fd,i,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(i)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var o=Gl.concat(r);return t<this.options.readChunk&&(this.eofReached=!0,o=o.slice(0,n)),n&&(this.linesCache=this._extractLines(o),e&&(this.linesCache[0]=Gl.concat([e,this.linesCache[0]]))),n}},{key:"next",value:function(){if(!this.fd)return!1;var e=!1;return this.eofReached&&0===this.linesCache.length||(this.linesCache.length||this._readChunk(),this.linesCache.length&&(e=this.linesCache.shift())[e.length-1]!==this.newLineCharacter&&this._readChunk(e)&&(e=this.linesCache.shift()),this.eofReached&&0===this.linesCache.length&&this.close(),e&&e[e.length-1]===this.newLineCharacter&&(e=e.slice(0,e.length-1))),e}}]),e}(),Fp=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(s(Error)),_p=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(s(Error)),Ip=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(s(Error)),jp=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(s(Error)),Lp={ConfigError:Fp,DebugError:_p,UndefinedParserError:Ip,ArgExpansionBailout:jp},Pp={},Mp=function(e,t){return Mp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Mp(e,t)},Bp=function(){return Bp=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},Bp.apply(this,arguments)};function Rp(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vp(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(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Up(e){return this instanceof Up?(this.v=e,this):new Up(e)}var qp=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Mp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Bp},__rest: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},__decorate:function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},__generator: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:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){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(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},__createBinding:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},__exportStar:function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},__values:Rp,__read:Vp,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Vp(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r},__await:Up,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=i[e](t)).value instanceof Up?Promise.resolve(n.value.v).then(s,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Up(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues: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=Rp(e),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)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),Hp={},Gp={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return"[".concat(t.map((function(t){return e.apiDescriptor.value(t)})).join(", "),"]");var n=Object.keys(t);return 0===n.length?"{}":"{ ".concat(n.map((function(n){return"".concat(e.apiDescriptor.key(n),": ").concat(e.apiDescriptor.value(t[n]))})).join(", ")," }")},pair:function(t){var n=t.key,r=t.value;return e.apiDescriptor.value(f({},n,r))}}}(Gp),function(e){Object.defineProperty(e,"__esModule",{value:!0}),qp.__exportStar(Gp,e)}(Hp);var Wp={},zp={},Kp={},$p={exports:{}},Qp=/[|\\{}()[\]^$+*?.]/g,Jp=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Qp,"\\$&")},Yp={exports:{}},Xp={exports:{}},Zp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ef={};for(var tf in Zp)Zp.hasOwnProperty(tf)&&(ef[Zp[tf]]=tf);var nf=Xp.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var rf in nf)if(nf.hasOwnProperty(rf)){if(!("channels"in nf[rf]))throw new Error("missing channels property: "+rf);if(!("labels"in nf[rf]))throw new Error("missing channel labels property: "+rf);if(nf[rf].labels.length!==nf[rf].channels)throw new Error("channel and label counts mismatch: "+rf);var of=nf[rf].channels,af=nf[rf].labels;delete nf[rf].channels,delete nf[rf].labels,Object.defineProperty(nf[rf],"channels",{value:of}),Object.defineProperty(nf[rf],"labels",{value:af})}nf.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),u=Math.max(r,i,o),s=u-a;return u===a?t=0:r===u?t=(i-o)/s:i===u?t=2+(o-r)/s:o===u&&(t=4+(r-i)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+u)/2,[t,100*(u===a?0:n<=.5?s/(u+a):s/(2-u-a)),100*n]},nf.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,u=e[1]/255,s=e[2]/255,c=Math.max(a,u,s),l=c-Math.min(a,u,s),p=function(e){return(c-e)/6/l+.5};return 0===l?i=o=0:(o=l/c,t=p(a),n=p(u),r=p(s),a===c?i=r-n:u===c?i=1/3+t-r:s===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},nf.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[nf.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},nf.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},nf.rgb.keyword=function(e){var t=ef[e];if(t)return t;var n,r,i,o=1/0;for(var a in Zp)if(Zp.hasOwnProperty(a)){var u=(r=e,i=Zp[a],Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2)+Math.pow(r[2]-i[2],2));u<o&&(o=u,n=a)}return n},nf.keyword.rgb=function(e){return Zp[e]},nf.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},nf.rgb.lab=function(e){var t=nf.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},nf.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,u=e[1]/100,s=e[2]/100;if(0===u)return[o=255*s,o,o];t=2*s-(n=s<.5?s*(1+u):s+u-s*u),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i},nf.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},nf.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),u=255*r*(1-n*o),s=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[u,r,a];case 2:return[a,r,s];case 3:return[a,u,r];case 4:return[s,a,r];case 5:return[r,a,u]}},nf.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,u=Math.max(a,.01);return r=(2-o)*a,n=o*u,[i,100*(n=(n/=(t=(2-o)*u)<=1?t:2-t)||0),100*(r/=2)]},nf.hwb.rgb=function(e){var t,n,r,i,o,a,u,s=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*s-(t=Math.floor(6*s)),0!=(1&t)&&(r=1-r),i=c+r*((n=1-l)-c),t){default:case 6:case 0:o=n,a=i,u=c;break;case 1:o=i,a=n,u=c;break;case 2:o=c,a=n,u=i;break;case 3:o=c,a=i,u=n;break;case 4:o=i,a=c,u=n;break;case 5:o=n,a=c,u=i}return[255*o,255*a,255*u]},nf.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},nf.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},nf.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},nf.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),u=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},nf.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},nf.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},nf.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:nf.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},nf.hsv.ansi16=function(e){return nf.rgb.ansi16(nf.hsv.rgb(e),e[2])},nf.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},nf.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},nf.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},nf.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},nf.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},nf.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),u=o-a;return t=u<=0?0:o===n?(r-i)/u%6:o===r?2+(i-n)/u:4+(n-r)/u+4,t/=6,[360*(t%=1),100*u,100*(u<1?a/(1-u):0)]},nf.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},nf.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},nf.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,u=a%1,s=1-u;switch(Math.floor(a)){case 0:o[0]=1,o[1]=u,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=u;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=u,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},nf.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},nf.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},nf.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},nf.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},nf.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},nf.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},nf.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},nf.gray.hsl=nf.gray.hsv=function(e){return[0,0,e[0]]},nf.gray.hwb=function(e){return[0,100,e[0]]},nf.gray.cmyk=function(e){return[0,0,0,e[0]]},nf.gray.lab=function(e){return[e[0],0,0]},nf.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},nf.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var uf=Xp.exports;function sf(e){var t=function(){for(var e={},t=Object.keys(uf),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),i=Object.keys(uf[r]),o=i.length,a=0;a<o;a++){var u=i[a],s=t[u];-1===s.distance&&(s.distance=t[r].distance+1,s.parent=r,n.unshift(u))}return t}function cf(e,t){return function(n){return t(e(n))}}function lf(e,t){for(var n=[t[e].parent,e],r=uf[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=cf(uf[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}var pf=Xp.exports,ff=function(e){for(var t=sf(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var a=r[o];null!==t[a].parent&&(n[a]=lf(a,t))}return n},df={};Object.keys(pf).forEach((function(e){df[e]={},Object.defineProperty(df[e],"channels",{value:pf[e].channels}),Object.defineProperty(df[e],"labels",{value:pf[e].labels});var t=ff(e);Object.keys(t).forEach((function(n){var r=t[n];df[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(r),df[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var hf,mf=df;function vf(){if(void 0===hf){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])hf="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");hf="LE"}}return hf}function gf(){return void 0!==Gu.location?Gu.location.hostname:""}function yf(){return[]}function bf(){return 0}function Df(){return Number.MAX_VALUE}function Ef(){return Number.MAX_VALUE}function Cf(){return[]}function Tf(){return"Browser"}function xf(){return void 0!==Gu.navigator?Gu.navigator.appVersion:""}function Af(){}function Sf(){}function wf(){return"javascript"}function Of(){return"browser"}function kf(){return"/tmp"}!function(e){var t=mf,n=function(e,n){return function(){var r=e.apply(t,arguments);return"\x1b[".concat(r+n,"m")}},r=function(e,n){return function(){var r=e.apply(t,arguments);return"\x1b[".concat(38+n,";5;").concat(r,"m")}},i=function(e,n){return function(){var r=e.apply(t,arguments);return"\x1b[".concat(38+n,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(var a=0,u=Object.keys(o);a<u.length;a++){for(var s=u[a],c=o[s],l=0,p=Object.keys(c);l<p.length;l++){var f=p[l],d=c[f];o[f]={open:"\x1b[".concat(d[0],"m"),close:"\x1b[".concat(d[1],"m")},c[f]=o[f],e.set(d[0],d[1])}Object.defineProperty(o,s,{value:c,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}var h=function(e){return e},m=function(e,t,n){return[e,t,n]};o.color.close="\x1b[39m",o.bgColor.close="\x1b[49m",o.color.ansi={ansi:n(h,0)},o.color.ansi256={ansi256:r(h,0)},o.color.ansi16m={rgb:i(m,0)},o.bgColor.ansi={ansi:n(h,10)},o.bgColor.ansi256={ansi256:r(h,10)},o.bgColor.ansi16m={rgb:i(m,10)};for(var v=0,g=Object.keys(t);v<g.length;v++){var y=g[v];if("object"==typeof t[y]){var b=t[y];"ansi16"===y&&(y="ansi"),"ansi16"in b&&(o.color.ansi[y]=n(b.ansi16,0),o.bgColor.ansi[y]=n(b.ansi16,10)),"ansi256"in b&&(o.color.ansi256[y]=r(b.ansi256,0),o.bgColor.ansi256[y]=r(b.ansi256,10)),"rgb"in b&&(o.color.ansi16m[y]=i(b.rgb,0),o.bgColor.ansi16m[y]=i(b.rgb,10))}}return o}})}(Yp);var Nf,Ff=kf,_f={EOL:"\n",arch:wf,platform:Of,tmpdir:Ff,tmpDir:kf,networkInterfaces:Af,getNetworkInterfaces:Sf,release:xf,type:Tf,cpus:Cf,totalmem:Ef,freemem:Df,uptime:bf,loadavg:yf,hostname:gf,endianness:vf},If=n(Object.freeze({__proto__:null,endianness:vf,hostname:gf,loadavg:yf,uptime:bf,freemem:Df,totalmem:Ef,cpus:Cf,type:Tf,release:xf,networkInterfaces:Af,getNetworkInterfaces:Sf,arch:wf,platform:Of,tmpDir:kf,tmpdir:Ff,EOL:"\n",default:_f})),jf=If,Lf=function(e,t){t=t||ms.argv;var n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)},Pf=ms.env;function Mf(e){var t=function(e){if(!1===Nf)return 0;if(Lf("color=16m")||Lf("color=full")||Lf("color=truecolor"))return 3;if(Lf("color=256"))return 2;if(e&&!e.isTTY&&!0!==Nf)return 0;var t=Nf?1:0;if("win32"===ms.platform){var n=jf.release().split(".");return Number(ms.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Pf)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in Pf}))||"codeship"===Pf.CI_NAME?1:t;if("TEAMCITY_VERSION"in Pf)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Pf.TEAMCITY_VERSION)?1:0;if("truecolor"===Pf.COLORTERM)return 3;if("TERM_PROGRAM"in Pf){var r=parseInt((Pf.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Pf.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Pf.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Pf.TERM)||"COLORTERM"in Pf?1:(Pf.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}Lf("no-color")||Lf("no-colors")||Lf("color=false")?Nf=!1:(Lf("color")||Lf("colors")||Lf("color=true")||Lf("color=always"))&&(Nf=!0),"FORCE_COLOR"in Pf&&(Nf=0===Pf.FORCE_COLOR.length||0!==parseInt(Pf.FORCE_COLOR,10));var Bf={supportsColor:Mf,stdout:Mf(ms.stdout),stderr:Mf(ms.stderr)},Rf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Vf=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Uf=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Hf=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Gf(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Hf.get(e)||e}function Wf(e,t){var n,r,i=[],o=t.trim().split(/\s*,\s*/g),a=p(o);try{for(a.s();!(r=a.n()).done;){var u=r.value;if(isNaN(u)){if(!(n=u.match(Uf)))throw new Error("Invalid Chalk template style argument: ".concat(u," (in style '").concat(e,"')"));i.push(n[2].replace(qf,(function(e,t,n){return t?Gf(t):n})))}else i.push(Number(u))}}catch(s){a.e(s)}finally{a.f()}return i}function zf(e){Vf.lastIndex=0;for(var t,n=[];null!==(t=Vf.exec(e));){var r=t[1];if(t[2]){var i=Wf(r,t[2]);n.push([r].concat(i))}else n.push([r])}return n}function Kf(e,t){var n,r={},i=p(t);try{for(i.s();!(n=i.n()).done;){var o,a=n.value,u=p(a.styles);try{for(u.s();!(o=u.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(h){u.e(h)}finally{u.f()}}}catch(h){i.e(h)}finally{i.f()}for(var c=e,l=0,f=Object.keys(r);l<f.length;l++){var d=f[l];if(Array.isArray(r[d])){if(!(d in c))throw new Error("Unknown Chalk style: ".concat(d));c=r[d].length>0?c[d].apply(c,r[d]):c[d]}}return c}var $f=function(e,t){var n=[],r=[],i=[];if(t.replace(Rf,(function(t,o,a,u,s,c){if(o)i.push(Gf(o));else if(u){var l=i.join("");i=[],r.push(0===n.length?l:Kf(e,n)(l)),n.push({inverse:a,styles:zf(u)})}else if(s){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Kf(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)})),r.push(i.join("")),n.length>0){var o="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(o)}return r.join("")};!function(e){var t=Jp,n=Yp.exports,r=Bf.stdout,i=$f,o="win32"===ms.platform&&!(ms.env.TERM||"").toLowerCase().startsWith("xterm"),a=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),s=Object.create(null);function c(e,t){t=t||{};var n=r?r.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function l(e){if(!this||!(this instanceof l)||this.template){var t={};return c(t,e),t.template=function(){var e=[].slice.call(arguments);return x.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,l.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=l,t.template}c(this,e)}o&&(n.blue.open="\x1b[94m");for(var f=function(){var e=h[d];n[e].closeRe=new RegExp(t(n[e].close),"g"),s[e]={get:function(){var t=n[e];return C.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},d=0,h=Object.keys(n);d<h.length;d++)f();s.visible={get:function(){return C.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(var m=function(){var e=g[v];u.has(e)||(s[e]={get:function(){var t=this.level;return function(){var r={open:n.color[a[t]][e].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return C.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}})},v=0,g=Object.keys(n.color.ansi);v<g.length;v++)m();n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(var y=function(){var e=D[b];if(u.has(e))return"continue";s["bg"+e[0].toUpperCase()+e.slice(1)]={get:function(){var t=this.level;return function(){var r={open:n.bgColor[a[t]][e].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return C.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}},b=0,D=Object.keys(n.bgColor.ansi);b<D.length;b++)y();var E=Object.defineProperties((function(){}),s);function C(e,t,n){var r=function e(){return T.apply(e,arguments)};r._styles=e,r._empty=t;var i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:function(){return i.level},set:function(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:function(){return i.enabled},set:function(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=E,r}function T(){var e=arguments,t=e.length,r=String(arguments[0]);if(0===t)return"";if(t>1)for(var i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;var a=n.dim.open;o&&this.hasGrey&&(n.dim.open="");var u,s=p(this._styles.slice().reverse());try{for(s.s();!(u=s.n()).done;){var c=u.value;r=(r=c.open+r.replace(c.closeRe,c.open)+c.close).replace(/\r?\n/g,"".concat(c.close,"$&").concat(c.open))}}catch(l){s.e(l)}finally{s.f()}return n.dim.open=a,r}function x(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],o=1;o<t.length;o++)r.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[o]));return i(e,r.join(""))}Object.defineProperties(l.prototype,s),e.exports=l(),e.exports.supportsColor=r,e.exports.default=e.exports}($p),Object.defineProperty(Kp,"__esModule",{value:!0});var Qf=$p.exports;Kp.commonDeprecatedHandler=function(e,t,n){var r=n.descriptor,i=["".concat(Qf.default.yellow("string"==typeof e?r.key(e):r.pair(e))," is deprecated")];return t&&i.push("we now treat it as ".concat(Qf.default.blue("string"==typeof t?r.key(t):r.pair(t)))),i.join("; ")+"."},function(e){Object.defineProperty(e,"__esModule",{value:!0}),qp.__exportStar(Kp,e)}(zp);var Jf={},Yf={};Object.defineProperty(Yf,"__esModule",{value:!0});var Xf=$p.exports;Yf.commonInvalidHandler=function(e,t,n){return["Invalid ".concat(Xf.default.red(n.descriptor.key(e))," value."),"Expected ".concat(Xf.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(Xf.default.red(n.descriptor.value(t)),".")].join(" ")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),qp.__exportStar(Yf,e)}(Jf);var Zf={},ed={},td=[],nd=[];Object.defineProperty(ed,"__esModule",{value:!0});var rd=$p.exports,id=function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;if(0===r)return i;for(var o,a,u,s,c=0;c<r&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(i-=c,0===(r-=c))return i;for(var l=0,p=0;l<r;)nd[c+l]=e.charCodeAt(c+l),td[l]=++l;for(;p<i;)for(o=t.charCodeAt(c+p),u=p++,a=p,l=0;l<r;l++)s=o===nd[c+l]?u:u+1,u=td[l],a=td[l]=u>a?s>a?a+1:s:s>u?u+1:s;return a};ed.levenUnknownHandler=function(e,t,n){var r=n.descriptor,i=n.logger,o=n.schemas,a=["Ignored unknown option ".concat(rd.default.yellow(r.pair({key:e,value:t})),".")],u=Object.keys(o).sort().find((function(t){return id(e,t)<3}));u&&a.push("Did you mean ".concat(rd.default.blue(r.key(u)),"?")),i.warn(a.join(" "))},function(e){Object.defineProperty(e,"__esModule",{value:!0}),qp.__exportStar(ed,e)}(Zf),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=qp;t.__exportStar(zp,e),t.__exportStar(Jf,e),t.__exportStar(Zf,e)}(Wp);var od={},ad={},ud={};Object.defineProperty(ud,"__esModule",{value:!0});var sd=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function cd(e,t){var n,r=new e(t),i=Object.create(r),o=p(sd);try{for(o.s();!(n=o.n()).done;){var a=n.value;a in t&&(i[a]=pd(t[a],r,ld.prototype[a].length))}}catch(u){o.e(u)}finally{o.f()}return i}ud.createSchema=cd;var ld=function(){function e(t){h(this,e),this.name=t.name}return m(e,[{key:"default",value:function(e){}},{key:"expected",value:function(e){return"nothing"}},{key:"validate",value:function(e,t){return!1}},{key:"deprecated",value:function(e,t){return!1}},{key:"forward",value:function(e,t){}},{key:"redirect",value:function(e,t){}},{key:"overlap",value:function(e,t,n){return e}},{key:"preprocess",value:function(e,t){return e}},{key:"postprocess",value:function(e,t){return e}}],[{key:"create",value:function(e){return cd(this,e)}}]),e}();function pd(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(void 0,l(i.slice(0,n-1)).concat([t],l(i.slice(n-1))))}:function(){return e}}ud.Schema=ld,Object.defineProperty(ad,"__esModule",{value:!0});var fd=function(e){a(n,e);var t=u(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._sourceName=e.sourceName,r}return m(n,[{key:"expected",value:function(e){return e.schemas[this._sourceName].expected(e)}},{key:"validate",value:function(e,t){return t.schemas[this._sourceName].validate(e,t)}},{key:"redirect",value:function(e,t){return this._sourceName}}]),n}(ud.Schema);ad.AliasSchema=fd;var dd={};Object.defineProperty(dd,"__esModule",{value:!0});var hd=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"expected",value:function(){return"anything"}},{key:"validate",value:function(){return!0}}]),n}(ud.Schema);dd.AnySchema=hd;var md={};Object.defineProperty(md,"__esModule",{value:!0});var vd=qp,gd=function(e){a(n,e);var t=u(n);function n(e){var r;h(this,n);var i=e.valueSchema,o=e.name,a=void 0===o?i.name:o,u=vd.__rest(e,["valueSchema","name"]);return(r=t.call(this,Object.assign({},u,{name:a})))._valueSchema=i,r}return m(n,[{key:"expected",value:function(e){return"an array of ".concat(this._valueSchema.expected(e))}},{key:"validate",value:function(e,t){if(!Array.isArray(e))return!1;var n,r=[],i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.normalizeValidateResult(this._valueSchema.validate(o,t),o);!0!==a&&r.push(a.value)}}catch(u){i.e(u)}finally{i.f()}return 0===r.length||{value:r}}},{key:"deprecated",value:function(e,t){var n,r=[],i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.normalizeDeprecatedResult(this._valueSchema.deprecated(o,t),o);!1!==a&&r.push.apply(r,l(a.map((function(e){return{value:[e.value]}}))))}}catch(u){i.e(u)}finally{i.f()}return r}},{key:"forward",value:function(e,t){var n,r=[],i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=t.normalizeForwardResult(this._valueSchema.forward(o,t),o);r.push.apply(r,l(a.map(yd)))}}catch(u){i.e(u)}finally{i.f()}return r}},{key:"redirect",value:function(e,t){var n,r=[],i=[],o=p(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,u=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in u&&r.push(u.remain),i.push.apply(i,l(u.redirect.map(yd)))}}catch(s){o.e(s)}finally{o.f()}return 0===r.length?{redirect:i}:{redirect:i,remain:r}}},{key:"overlap",value:function(e,t){return e.concat(t)}}]),n}(ud.Schema);function yd(e){return{from:[e.from],to:e.to}}md.ArraySchema=gd;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});var Dd=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"expected",value:function(){return"true or false"}},{key:"validate",value:function(e){return"boolean"==typeof e}}]),n}(ud.Schema);bd.BooleanSchema=Dd;var Ed={},Cd={};function Td(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function xd(e,t){return void 0===e?[]:Array.isArray(e)?e.map((function(e){return Td(e,t)})):[Td(e,t)]}Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.recordFromArray=function(e,t){var n,r=Object.create(null),i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o[t];if(r[a])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r[a]=o}}catch(u){i.e(u)}finally{i.f()}return r},Cd.mapFromArray=function(e,t){var n,r=new Map,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o[t];if(r.has(a))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r.set(a,o)}}catch(u){i.e(u)}finally{i.f()}return r},Cd.createAutoChecklist=function(){var e=Object.create(null);return function(t){var n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},Cd.partition=function(e,t){var n,r=[],i=[],o=p(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;t(a)?r.push(a):i.push(a)}}catch(u){o.e(u)}finally{o.f()}return[r,i]},Cd.isInt=function(e){return e===Math.floor(e)},Cd.comparePrimitive=function(e,t){if(e===t)return 0;var n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},Cd.normalizeDefaultResult=function(e){return void 0===e?{}:e},Cd.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},Cd.normalizeDeprecatedResult=function(e,t){return!1!==e&&(!0===e?!!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},Cd.normalizeTransferResult=Td,Cd.normalizeForwardResult=xd,Cd.normalizeRedirectResult=function(e,t){var n=xd("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},Object.defineProperty(Ed,"__esModule",{value:!0});var Ad=Cd,Sd=function(e){a(n,e);var t=u(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._choices=Ad.mapFromArray(e.choices.map((function(e){return e&&"object"==typeof e?e:{value:e}})),"value"),r}return m(n,[{key:"expected",value:function(e){var t=this,n=e.descriptor,r=Array.from(this._choices.keys()).map((function(e){return t._choices.get(e)})).filter((function(e){return!e.deprecated})).map((function(e){return e.value})).sort(Ad.comparePrimitive).map(n.value),i=r.slice(0,-2),o=r.slice(-2);return i.concat(o.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),n}(ud.Schema);Ed.ChoiceSchema=Sd;var wd={},Od={};Object.defineProperty(Od,"__esModule",{value:!0});var kd=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),n}(ud.Schema);Od.NumberSchema=kd,Object.defineProperty(wd,"__esModule",{value:!0});var Nd=Cd,Fd=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,t){return!0===t.normalizeValidateResult(i(o(n.prototype),"validate",this).call(this,e,t),e)&&Nd.isInt(e)}}]),n}(Od.NumberSchema);wd.IntegerSchema=Fd;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});var Id=function(e){a(n,e);var t=u(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),n}(ud.Schema);_d.StringSchema=Id,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=qp;t.__exportStar(ad,e),t.__exportStar(dd,e),t.__exportStar(md,e),t.__exportStar(bd,e),t.__exportStar(Ed,e),t.__exportStar(wd,e),t.__exportStar(Od,e),t.__exportStar(_d,e)}(od);var jd={},Ld={};Object.defineProperty(Ld,"__esModule",{value:!0});var Pd=Gp,Md=Kp,Bd=Jf,Rd=ed;Ld.defaultDescriptor=Pd.apiDescriptor,Ld.defaultUnknownHandler=Rd.levenUnknownHandler,Ld.defaultInvalidHandler=Bd.commonInvalidHandler,Ld.defaultDeprecatedHandler=Md.commonDeprecatedHandler,Object.defineProperty(jd,"__esModule",{value:!0});var Vd=Ld,Ud=Cd;jd.normalize=function(e,t,n){return new qd(t,n).normalize(e)};var qd=function(){function e(t,n){h(this,e);var r=n||{},i=r.logger,o=void 0===i?console:i,a=r.descriptor,u=void 0===a?Vd.defaultDescriptor:a,s=r.unknown,c=void 0===s?Vd.defaultUnknownHandler:s,l=r.invalid,p=void 0===l?Vd.defaultInvalidHandler:l,f=r.deprecated,d=void 0===f?Vd.defaultDeprecatedHandler:f;this._utils={descriptor:u,logger:o||{warn:function(){}},schemas:Ud.recordFromArray(t,"name"),normalizeDefaultResult:Ud.normalizeDefaultResult,normalizeDeprecatedResult:Ud.normalizeDeprecatedResult,normalizeForwardResult:Ud.normalizeForwardResult,normalizeRedirectResult:Ud.normalizeRedirectResult,normalizeValidateResult:Ud.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=p,this._deprecatedHandler=d,this.cleanHistory()}return m(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=Ud.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,n={},r=[e],i=function(){for(;0!==r.length;){var e=r.shift(),i=t._applyNormalization(e,n);r.push.apply(r,l(i))}};i();for(var o=0,a=Object.keys(this._utils.schemas);o<a.length;o++){var u=a[o],s=this._utils.schemas[u];if(!(u in n)){var c=Ud.normalizeDefaultResult(s.default(this._utils));"value"in c&&r.push(f({},u,c.value))}}i();for(var p=0,d=Object.keys(this._utils.schemas);p<d.length;p++){var h=d[p],m=this._utils.schemas[h];h in n&&(n[h]=m.postprocess(n[h],this._utils))}return n}},{key:"_applyNormalization",value:function(e,t){var n,r=this,i=[],o=Ud.partition(Object.keys(e),(function(e){return e in r._utils.schemas})),a=d(o,2),u=a[0],s=a[1],c=p(u);try{var l=function(){var o=n.value,a=r._utils.schemas[o],u=a.preprocess(e[o],r._utils),s=Ud.normalizeValidateResult(a.validate(u,r._utils),u);if(!0!==s){var c=s.value,l=r._invalidHandler(o,c,r._utils);throw"string"==typeof l?new Error(l):l}var d=function(e){var t=e.from,n=e.to;i.push("string"==typeof n?f({},n,t):f({},n.key,n.value))},h=function(e){var t=e.value,n=e.redirectTo,i=Ud.normalizeDeprecatedResult(a.deprecated(t,r._utils),u,!0);if(!1!==i)if(!0===i)r._hasDeprecationWarned(o)||r._utils.logger.warn(r._deprecatedHandler(o,n,r._utils));else{var s,c=p(i);try{for(c.s();!(s=c.n()).done;){var l=s.value.value,f={key:o,value:l};if(!r._hasDeprecationWarned(f)){var d="string"==typeof n?{key:n,value:l}:n;r._utils.logger.warn(r._deprecatedHandler(f,d,r._utils))}}}catch(h){c.e(h)}finally{c.f()}}};Ud.normalizeForwardResult(a.forward(u,r._utils),u).forEach(d);var m=Ud.normalizeRedirectResult(a.redirect(u,r._utils),u);if(m.redirect.forEach(d),"remain"in m){var v=m.remain;t[o]=o in t?a.overlap(t[o],v,r._utils):v,h({value:v})}var g,y=p(m.redirect);try{for(y.s();!(g=y.n()).done;){var b=g.value;h({value:b.from,redirectTo:b.to})}}catch(D){y.e(D)}finally{y.f()}};for(c.s();!(n=c.n()).done;)l()}catch(T){c.e(T)}finally{c.f()}var h,m=p(s);try{for(m.s();!(h=m.n()).done;){var v=h.value,g=e[v],y=this._unknownHandler(v,g,this._utils);if(y)for(var b=0,D=Object.keys(y);b<D.length;b++){var E=D[b],C=f({},E,y[E]);E in this._utils.schemas?i.push(C):Object.assign(t,C)}}}catch(T){m.e(T)}finally{m.f()}return i}}]),e}();jd.Normalizer=qd,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=qp;t.__exportStar(Hp,e),t.__exportStar(Wp,e),t.__exportStar(od,e),t.__exportStar(jd,e),t.__exportStar(ud,e)}(Pp);var Hd={exports:{}},Gd=[],Wd=[],zd=function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);for(var r=e.length,i=t.length;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;for(var o,a,u,s,c=0;c<r&&e.charCodeAt(c)===t.charCodeAt(c);)c++;if(i-=c,0===(r-=c))return i;for(var l=0,p=0;l<r;)Wd[l]=e.charCodeAt(c+l),Gd[l]=++l;for(;p<i;)for(o=t.charCodeAt(c+p),u=p++,a=p,l=0;l<r;l++)s=o===Wd[l]?u:u+1,u=Gd[l],a=Gd[l]=u>a?s>a?a+1:s:s>u?u+1:s;return a};Hd.exports=zd,Hd.exports.default=zd;for(var Kd={exports:{}},$d={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Qd={},Jd=0,Yd=Object.keys($d);Jd<Yd.length;Jd++){var Xd=Yd[Jd];Qd[$d[Xd]]=Xd}for(var Zd={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},eh=Zd,th=0,nh=Object.keys(Zd);th<nh.length;th++){var rh=nh[th];if(!("channels"in Zd[rh]))throw new Error("missing channels property: "+rh);if(!("labels"in Zd[rh]))throw new Error("missing channel labels property: "+rh);if(Zd[rh].labels.length!==Zd[rh].channels)throw new Error("channel and label counts mismatch: "+rh);var ih=Zd[rh],oh=ih.channels,ah=ih.labels;delete Zd[rh].channels,delete Zd[rh].labels,Object.defineProperty(Zd[rh],"channels",{value:oh}),Object.defineProperty(Zd[rh],"labels",{value:ah})}Zd.rgb.hsl=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.min(n,r,i),a=Math.max(n,r,i),u=a-o;a===o?t=0:n===a?t=(r-i)/u:r===a?t=2+(i-n)/u:i===a&&(t=4+(n-r)/u),(t=Math.min(60*t,360))<0&&(t+=360);var s=(o+a)/2;return[t,100*(a===o?0:s<=.5?u/(a+o):u/(2-a-o)),100*s]},Zd.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,u=e[1]/255,s=e[2]/255,c=Math.max(a,u,s),l=c-Math.min(a,u,s),p=function(e){return(c-e)/6/l+.5};return 0===l?(i=0,o=0):(o=l/c,t=p(a),n=p(u),r=p(s),a===c?i=r-n:u===c?i=1/3+t-r:s===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},Zd.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[Zd.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},Zd.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},Zd.rgb.keyword=function(e){var t=Qd[e];if(t)return t;for(var n,r,i,o=1/0,a=0,u=Object.keys($d);a<u.length;a++){var s=u[a],c=(i=$d[s],Math.pow((r=e)[0]-i[0],2)+Math.pow(r[1]-i[1],2)+Math.pow(r[2]-i[2],2));c<o&&(o=c,n=s)}return n},Zd.keyword.rgb=function(e){return $d[e]},Zd.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Zd.rgb.lab=function(e){var t=Zd.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},Zd.hsl.rgb=function(e){var t,n,r,i=e[0]/360,o=e[1]/100,a=e[2]/100;if(0===o)return[r=255*a,r,r];for(var u=2*a-(t=a<.5?a*(1+o):a+o-a*o),s=[0,0,0],c=0;c<3;c++)(n=i+1/3*-(c-1))<0&&n++,n>1&&n--,r=6*n<1?u+6*(t-u)*n:2*n<1?t:3*n<2?u+(t-u)*(2/3-n)*6:u,s[c]=255*r;return s},Zd.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},Zd.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),u=255*r*(1-n*o),s=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,s,a];case 1:return[u,r,a];case 2:return[a,r,s];case 3:return[a,u,r];case 4:return[s,a,r];case 5:return[r,a,u]}},Zd.hsv.hsl=function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100,a=Math.max(o,.01);n=(2-i)*o;var u=(2-i)*a;return t=i*a,[r,100*(t=(t/=u<=1?u:2-u)||0),100*(n/=2)]},Zd.hwb.rgb=function(e){var t,n=e[0]/360,r=e[1]/100,i=e[2]/100,o=r+i;o>1&&(r/=o,i/=o);var a=Math.floor(6*n),u=1-i;t=6*n-a,0!=(1&a)&&(t=1-t);var s,c,l,p=r+t*(u-r);switch(a){default:case 6:case 0:s=u,c=p,l=r;break;case 1:s=p,c=u,l=r;break;case 2:s=r,c=u,l=p;break;case 3:s=r,c=p,l=u;break;case 4:s=p,c=r,l=u;break;case 5:s=u,c=r,l=p}return[255*s,255*c,255*l]},Zd.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},Zd.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},Zd.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},Zd.lab.xyz=function(e){var t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;var i=Math.pow(n,3),o=Math.pow(t,3),a=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},Zd.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},Zd.lch.lab=function(e){var t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Zd.rgb.ansi16=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=d(e,3),r=n[0],i=n[1],o=n[2],a=null===t?Zd.rgb.hsv(e)[2]:t;if(0===(a=Math.round(a/50)))return 30;var u=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return 2===a&&(u+=60),u},Zd.hsv.ansi16=function(e){return Zd.rgb.ansi16(Zd.hsv.rgb(e),e[2])},Zd.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Zd.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Zd.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},Zd.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Zd.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Zd.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),u=o-a;return t=u<=0?0:o===n?(r-i)/u%6:o===r?2+(i-n)/u:4+(n-r)/u,t/=6,[360*(t%=1),100*u,100*(u<1?a/(1-u):0)]},Zd.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},Zd.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Zd.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i=[0,0,0],o=t%1*6,a=o%1,u=1-a,s=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return s=(1-n)*r,[255*(n*i[0]+s),255*(n*i[1]+s),255*(n*i[2]+s)]},Zd.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Zd.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Zd.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Zd.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Zd.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Zd.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Zd.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Zd.gray.hsl=function(e){return[0,0,e[0]]},Zd.gray.hsv=Zd.gray.hsl,Zd.gray.hwb=function(e){return[0,100,e[0]]},Zd.gray.cmyk=function(e){return[0,0,0,e[0]]},Zd.gray.lab=function(e){return[e[0],0,0]},Zd.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Zd.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var uh=eh;function sh(e){var t=function(){for(var e={},t=Object.keys(uh),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),i=Object.keys(uh[r]),o=i.length,a=0;a<o;a++){var u=i[a],s=t[u];-1===s.distance&&(s.distance=t[r].distance+1,s.parent=r,n.unshift(u))}return t}function ch(e,t){return function(n){return t(e(n))}}function lh(e,t){for(var n=[t[e].parent,e],r=uh[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=ch(uh[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}var ph=eh,fh=function(e){for(var t=sh(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var a=r[o];null!==t[a].parent&&(n[a]=lh(a,t))}return n},dh={};Object.keys(ph).forEach((function(e){dh[e]={},Object.defineProperty(dh[e],"channels",{value:ph[e].channels}),Object.defineProperty(dh[e],"labels",{value:ph[e].labels});var t=fh(e);Object.keys(t).forEach((function(n){var r=t[n];dh[e][n]=function(e){var t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(null==i)return i;i.length>1&&(n=i);var o=e(n);if("object"==typeof o)for(var a=o.length,u=0;u<a;u++)o[u]=Math.round(o[u]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}(r),dh[e][n].raw=function(e){var t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];return null==i?i:(i.length>1&&(n=i),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var hh=dh;function mh(){return!1}function vh(){throw new Error("tty.ReadStream is not implemented")}function gh(){throw new Error("tty.ReadStream is not implemented")}!function(e){var t,n=function(e,t){return function(){var n=e.apply(void 0,arguments);return"\x1b[".concat(n+t,"m")}},r=function(e,t){return function(){var n=e.apply(void 0,arguments);return"\x1b[".concat(38+t,";5;").concat(n,"m")}},i=function(e,t){return function(){var n=e.apply(void 0,arguments);return"\x1b[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}},o=function(e){return e},a=function(e,t,n){return[e,t,n]},u=function(e,t,n){Object.defineProperty(e,t,{get:function(){var r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},s=function(e,n,r,i){void 0===t&&(t=hh);for(var o=i?10:0,a={},u=0,s=Object.entries(t);u<s.length;u++){var c=d(s[u],2),l=c[0],p=c[1],f="ansi16"===l?"ansi":l;l===n?a[f]=e(r,o):"object"==typeof p&&(a[f]=e(p[n],o))}return a};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(var c=0,l=Object.entries(t);c<l.length;c++){for(var p=d(l[c],2),f=p[0],h=p[1],m=0,v=Object.entries(h);m<v.length;m++){var g=d(v[m],2),y=g[0],b=g[1];t[y]={open:"\x1b[".concat(b[0],"m"),close:"\x1b[".concat(b[1],"m")},h[y]=t[y],e.set(b[0],b[1])}Object.defineProperty(t,f,{value:h,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1b[39m",t.bgColor.close="\x1b[49m",u(t.color,"ansi",(function(){return s(n,"ansi16",o,!1)})),u(t.color,"ansi256",(function(){return s(r,"ansi256",o,!1)})),u(t.color,"ansi16m",(function(){return s(i,"rgb",a,!1)})),u(t.bgColor,"ansi",(function(){return s(n,"ansi16",o,!0)})),u(t.bgColor,"ansi256",(function(){return s(r,"ansi256",o,!0)})),u(t.bgColor,"ansi16m",(function(){return s(i,"rgb",a,!0)})),t}})}(Kd);var yh,bh={isatty:mh,ReadStream:vh,WriteStream:gh},Dh=If,Eh=n(Object.freeze({__proto__:null,isatty:mh,ReadStream:vh,WriteStream:gh,default:bh})),Ch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ms.argv,n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)},Th=ms.env;function xh(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ah(e,t){if(0===yh)return 0;if(Ch("color=16m")||Ch("color=full")||Ch("color=truecolor"))return 3;if(Ch("color=256"))return 2;if(e&&!t&&void 0===yh)return 0;var n=yh||0;if("dumb"===Th.TERM)return n;if("win32"===ms.platform){var r=Dh.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Th)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((function(e){return e in Th}))||"codeship"===Th.CI_NAME?1:n;if("TEAMCITY_VERSION"in Th)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Th.TEAMCITY_VERSION)?1:0;if("truecolor"===Th.COLORTERM)return 3;if("TERM_PROGRAM"in Th){var i=parseInt((Th.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Th.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Th.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Th.TERM)||"COLORTERM"in Th?1:n}Ch("no-color")||Ch("no-colors")||Ch("color=false")||Ch("color=never")?yh=0:(Ch("color")||Ch("colors")||Ch("color=true")||Ch("color=always"))&&(yh=1),"FORCE_COLOR"in Th&&(yh="true"===Th.FORCE_COLOR?1:"false"===Th.FORCE_COLOR?0:0===Th.FORCE_COLOR.length?1:Math.min(parseInt(Th.FORCE_COLOR,10),3));var Sh={supportsColor:function(e){return xh(Ah(e,e&&e.isTTY))},stdout:xh(Ah(!0,Eh.isatty(1))),stderr:xh(Ah(!0,Eh.isatty(2)))},wh={stringReplaceAll:function(e,t,n){var r=e.indexOf(t);if(-1===r)return e;var i=t.length,o=0,a="";do{a+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return a+=e.substr(o)},stringEncaseCRLFWithFirstIndex:function(e,t,n,r){var i=0,o="";do{var a="\r"===e[r-1];o+=e.substr(i,(a?r-1:r)-i)+t+(a?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i)}},Oh=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,kh=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Nh=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Fh=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,_h=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function Ih(e){var t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):_h.get(e)||e}function jh(e,t){var n,r,i=[],o=t.trim().split(/\s*,\s*/g),a=p(o);try{for(a.s();!(r=a.n()).done;){var u=r.value,s=Number(u);if(Number.isNaN(s)){if(!(n=u.match(Nh)))throw new Error("Invalid Chalk template style argument: ".concat(u," (in style '").concat(e,"')"));i.push(n[2].replace(Fh,(function(e,t,n){return t?Ih(t):n})))}else i.push(s)}}catch(c){a.e(c)}finally{a.f()}return i}function Lh(e){kh.lastIndex=0;for(var t,n=[];null!==(t=kh.exec(e));){var r=t[1];if(t[2]){var i=jh(r,t[2]);n.push([r].concat(i))}else n.push([r])}return n}function Ph(e,t){var n,r={},i=p(t);try{for(i.s();!(n=i.n()).done;){var o,a=n.value,u=p(a.styles);try{for(u.s();!(o=u.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(b){u.e(b)}finally{u.f()}}}catch(b){i.e(b)}finally{i.f()}for(var c=e,f=0,h=Object.entries(r);f<h.length;f++){var m=d(h[f],2),v=m[0],g=m[1];if(Array.isArray(g)){var y;if(!(v in c))throw new Error("Unknown Chalk style: ".concat(v));c=g.length>0?(y=c)[v].apply(y,l(g)):c[v]}}return c}var Mh=function(e,t){var n=[],r=[],i=[];if(t.replace(Oh,(function(t,o,a,u,s,c){if(o)i.push(Ih(o));else if(u){var l=i.join("");i=[],r.push(0===n.length?l:Ph(e,n)(l)),n.push({inverse:a,styles:Lh(u)})}else if(s){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Ph(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)})),r.push(i.join("")),n.length>0){var o="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(o)}return r.join("")},Bh=Kd.exports,Rh=Sh.stdout,Vh=Sh.stderr,Uh=wh.stringReplaceAll,qh=wh.stringEncaseCRLFWithFirstIndex,Hh=Array.isArray,Gh=["ansi","ansi","ansi256","ansi16m"],Wh=Object.create(null),zh=m((function e(t){return h(this,e),Kh(t)})),Kh=function(e){var t={};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");var n=Rh?Rh.level:0;e.level=void 0===t.level?n:t.level}(t,e),t.template=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return lm.apply(void 0,[t.template].concat(n))},Object.setPrototypeOf(t,$h.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=function(){throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=zh,t.template};function $h(e){return Kh(e)}for(var Qh=function(){var e=d(Yh[Jh],2),t=e[0],n=e[1];Wh[t]={get:function(){var e=sm(this,um(n.open,n.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}}},Jh=0,Yh=Object.entries(Bh);Jh<Yh.length;Jh++)Qh();Wh.visible={get:function(){var e=sm(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};for(var Xh=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"],Zh=function(){var e=tm[em];Wh[e]={get:function(){var t=this.level;return function(){var n,r=um((n=Bh.color[Gh[t]])[e].apply(n,arguments),Bh.color.close,this._styler);return sm(this,r,this._isEmpty)}}}},em=0,tm=Xh;em<tm.length;em++)Zh();for(var nm=function(){var e=im[rm];Wh["bg"+e[0].toUpperCase()+e.slice(1)]={get:function(){var t=this.level;return function(){var n,r=um((n=Bh.bgColor[Gh[t]])[e].apply(n,arguments),Bh.bgColor.close,this._styler);return sm(this,r,this._isEmpty)}}}},rm=0,im=Xh;rm<im.length;rm++)nm();var om,am=Object.defineProperties((function(){}),Object.assign(Object.assign({},Wh),{},{level:{enumerable:!0,get:function(){return this._generator.level},set:function(e){this._generator.level=e}}})),um=function(e,t,n){var r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},sm=function(e,t,n){var r=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hh(n[0])&&Hh(n[0].raw)?cm(e,lm.apply(void 0,[e].concat(n))):cm(e,1===n.length?""+n[0]:n.join(" "))};return Object.setPrototypeOf(r,am),r._generator=e,r._styler=t,r._isEmpty=n,r},cm=function(e,t){if(e.level<=0||!t)return e._isEmpty?"":t;var n=e._styler;if(void 0===n)return t;var r=n,i=r.openAll,o=r.closeAll;if(-1!==t.indexOf("\x1b"))for(;void 0!==n;)t=Uh(t,n.close,n.open),n=n.parent;var a=t.indexOf("\n");return-1!==a&&(t=qh(t,o,i,a)),i+t+o},lm=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0];if(!Hh(i)||!Hh(i.raw))return n.join(" ");for(var o=n.slice(1),a=[i.raw[0]],u=1;u<i.length;u++)a.push(String(o[u-1]).replace(/[{}\\]/g,"\\$&"),String(i.raw[u]));return void 0===om&&(om=Mh),om(e,a.join(""))};Object.defineProperties($h.prototype,Wh);var pm=$h();pm.supportsColor=Rh,pm.stderr=$h({level:Vh?Vh.level:0}),pm.stderr.supportsColor=Vh;var fm,dm=pm,hm=["_"],mm=Pp,vm=Hd.exports,gm=dm,ym=Ca,bm={key:function(e){return 1===e.length?"-".concat(e):"--".concat(e)},value:function(e){return mm.apiDescriptor.value(e)},pair:function(e){var t=e.key,n=e.value;return!1===n?"--no-".concat(t):!0===n?bm.key(t):""===n?"".concat(bm.key(t)," without an argument"):"".concat(bm.key(t),"=").concat(n)}},Dm=function(e){a(n,e);var t=u(n);function n(e){var r;h(this,n);var i=e.name,o=e.flags;return(r=t.call(this,{name:i,choices:o}))._flags=l(o).sort(),r}return m(n,[{key:"preprocess",value:function(e,t){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){var n=this._flags.find((function(t){return vm(t,e)<3}));if(n)return t.logger.warn(["Unknown flag ".concat(gm.yellow(t.descriptor.value(e)),","),"did you mean ".concat(gm.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}},{key:"expected",value:function(){return"a flag"}}]),n}(mm.ChoiceSchema);function Em(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.logger,i=n.isCLI,o=void 0!==i&&i,a=n.passThrough,u=void 0!==a&&a,s=u?Array.isArray(u)?function(e,t){return u.includes(e)?f({},e,t):void 0}:function(e,t){return f({},e,t)}:function(e,t,n){var r=Ta(n.schemas,hm);return mm.levenUnknownHandler(e,t,Object.assign(Object.assign({},n),{},{schemas:r}))},c=o?bm:mm.apiDescriptor,l=Cm(t,{isCLI:o}),p=new mm.Normalizer(l,{logger:r,unknown:s,descriptor:c}),d=!1!==r;d&&fm&&(p._hasDeprecationWarned=fm);var h=p.normalize(e);return d&&(fm=p._hasDeprecationWarned),h}function Cm(e,t){var n=t.isCLI,r=[];n&&r.push(mm.AnySchema.create({name:"_"}));var i,o=p(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.push(Tm(a,{isCLI:n,optionInfos:e})),a.alias&&n&&r.push(mm.AliasSchema.create({name:a.alias,sourceName:a.name}))}}catch(u){o.e(u)}finally{o.f()}return r}function Tm(e,t){var n,r=t.isCLI,i=t.optionInfos,o={name:e.name},a={};switch(e.type){case"int":n=mm.IntegerSchema,r&&(o.preprocess=function(e){return Number(e)});break;case"string":case"path":n=mm.StringSchema;break;case"choice":n=mm.ChoiceSchema,o.choices=e.choices.map((function(t){return"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t}));break;case"boolean":n=mm.BooleanSchema;break;case"flag":n=Dm,o.flags=i.flatMap((function(e){return[e.alias,e.description&&e.name,e.oppositeDescription&&"no-".concat(e.name)].filter(Boolean)}));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=function(t,n,r){return e.exception(t)||n.validate(t,r)}:o.validate=function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(a.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(a.deprecated=!0),r&&!e.array){var u=o.preprocess||function(e){return e};o.preprocess=function(e,t,n){return t.preprocess(u(Array.isArray(e)?ym(e):e),n)}}return e.array?mm.ArraySchema.create(Object.assign(Object.assign(Object.assign({},r?{preprocess:function(e){return Array.isArray(e)?e:[e]}}:{}),a),{},{valueSchema:n.create(o)})):n.create(Object.assign(Object.assign({},o),a))}var xm={normalizeApiOptions:function(e,t,n){return Em(e,t,n)},normalizeCliOptions:function(e,t,n){return Em(e,t,Object.assign({isCLI:!0},n))}},Am=Oc.isNonEmptyArray;function Sm(e,t){if(!(t||{}).ignoreDecorators){var n=e.declaration&&e.declaration.decorators||e.decorators;if(Am(n))return Sm(n[0])}return e.range?e.range[0]:e.start}function wm(e){return e.range?e.range[1]:e.end}function Om(e,t){return Sm(e)===Sm(t)}var km={locStart:Sm,locEnd:wm,hasSameLocStart:Om,hasSameLoc:function(e,t){return Om(e,t)&&function(e,t){return wm(e)===wm(t)}(e,t)}},Nm={},Fm={},_m={};Object.defineProperty(_m,"__esModule",{value:!0}),_m.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,_m.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var Im={},jm={};Object.defineProperty(jm,"__esModule",{value:!0}),jm.isIdentifierStart=qm,jm.isIdentifierChar=Hm,jm.isIdentifierName=function(e){for(var t=!0,n=0;n<e.length;n++){var r=e.charCodeAt(n);if(55296==(64512&r)&&n+1<e.length){var i=e.charCodeAt(++n);56320==(64512&i)&&(r=65536+((1023&r)<<10)+(1023&i))}if(t){if(t=!1,!qm(r))return!1}else if(!Hm(r))return!1}return!t};var Lm="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",Pm="\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",Mm=new RegExp("["+Lm+"]"),Bm=new RegExp("["+Lm+Pm+"]");Lm=Pm=null;var Rm=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],Vm=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function Um(e,t){for(var n=65536,r=0,i=t.length;r<i;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function qm(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Mm.test(String.fromCharCode(e)):Um(e,Rm)))}function Hm(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Bm.test(String.fromCharCode(e)):Um(e,Rm)||Um(e,Vm))))}var Gm={};Object.defineProperty(Gm,"__esModule",{value:!0}),Gm.isReservedWord=Jm,Gm.isStrictReservedWord=Ym,Gm.isStrictBindOnlyReservedWord=Xm,Gm.isStrictBindReservedWord=function(e,t){return Ym(e,t)||Xm(e)},Gm.isKeyword=function(e){return Km.has(e)};var Wm=["implements","interface","let","package","private","protected","public","static","yield"],zm=["eval","arguments"],Km=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),$m=new Set(Wm),Qm=new Set(zm);function Jm(e,t){return t&&"await"===e||"enum"===e}function Ym(e,t){return Jm(e,t)||$m.has(e)}function Xm(e){return Qm.has(e)}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}});var t=jm,n=Gm}(Im);var Zm,ev={exports:{}},tv=/[|\\{}()[\]^$+*?.]/g,nv=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(tv,"\\$&")},rv=If,iv=function(e,t){t=t||ms.argv;var n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)},ov=ms.env;function av(e){var t=function(e){if(!1===Zm)return 0;if(iv("color=16m")||iv("color=full")||iv("color=truecolor"))return 3;if(iv("color=256"))return 2;if(e&&!e.isTTY&&!0!==Zm)return 0;var t=Zm?1:0;if("win32"===ms.platform){var n=rv.release().split(".");return Number(ms.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ov)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in ov}))||"codeship"===ov.CI_NAME?1:t;if("TEAMCITY_VERSION"in ov)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ov.TEAMCITY_VERSION)?1:0;if("truecolor"===ov.COLORTERM)return 3;if("TERM_PROGRAM"in ov){var r=parseInt((ov.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ov.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ov.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ov.TERM)||"COLORTERM"in ov?1:(ov.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}iv("no-color")||iv("no-colors")||iv("color=false")?Zm=!1:(iv("color")||iv("colors")||iv("color=true")||iv("color=always"))&&(Zm=!0),"FORCE_COLOR"in ov&&(Zm=0===ov.FORCE_COLOR.length||0!==parseInt(ov.FORCE_COLOR,10));var uv={supportsColor:av,stdout:av(ms.stdout),stderr:av(ms.stderr)},sv=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,cv=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,lv=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,pv=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,fv=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function dv(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):fv.get(e)||e}function hv(e,t){var n,r,i=[],o=t.trim().split(/\s*,\s*/g),a=p(o);try{for(a.s();!(r=a.n()).done;){var u=r.value;if(isNaN(u)){if(!(n=u.match(lv)))throw new Error("Invalid Chalk template style argument: ".concat(u," (in style '").concat(e,"')"));i.push(n[2].replace(pv,(function(e,t,n){return t?dv(t):n})))}else i.push(Number(u))}}catch(s){a.e(s)}finally{a.f()}return i}function mv(e){cv.lastIndex=0;for(var t,n=[];null!==(t=cv.exec(e));){var r=t[1];if(t[2]){var i=hv(r,t[2]);n.push([r].concat(i))}else n.push([r])}return n}function vv(e,t){var n,r={},i=p(t);try{for(i.s();!(n=i.n()).done;){var o,a=n.value,u=p(a.styles);try{for(u.s();!(o=u.n()).done;){var s=o.value;r[s[0]]=a.inverse?null:s.slice(1)}}catch(h){u.e(h)}finally{u.f()}}}catch(h){i.e(h)}finally{i.f()}for(var c=e,l=0,f=Object.keys(r);l<f.length;l++){var d=f[l];if(Array.isArray(r[d])){if(!(d in c))throw new Error("Unknown Chalk style: ".concat(d));c=r[d].length>0?c[d].apply(c,r[d]):c[d]}}return c}var gv=function(e,t){var n=[],r=[],i=[];if(t.replace(sv,(function(t,o,a,u,s,c){if(o)i.push(dv(o));else if(u){var l=i.join("");i=[],r.push(0===n.length?l:vv(e,n)(l)),n.push({inverse:a,styles:mv(u)})}else if(s){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(vv(e,n)(i.join(""))),i=[],n.pop()}else i.push(c)})),r.push(i.join("")),n.length>0){var o="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(o)}return r.join("")};!function(e){var t=nv,n=Yp.exports,r=uv.stdout,i=gv,o="win32"===ms.platform&&!(ms.env.TERM||"").toLowerCase().startsWith("xterm"),a=["ansi","ansi","ansi256","ansi16m"],u=new Set(["gray"]),s=Object.create(null);function c(e,t){t=t||{};var n=r?r.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function l(e){if(!this||!(this instanceof l)||this.template){var t={};return c(t,e),t.template=function(){var e=[].slice.call(arguments);return x.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,l.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=l,t.template}c(this,e)}o&&(n.blue.open="\x1b[94m");for(var f=function(){var e=h[d];n[e].closeRe=new RegExp(t(n[e].close),"g"),s[e]={get:function(){var t=n[e];return C.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}},d=0,h=Object.keys(n);d<h.length;d++)f();s.visible={get:function(){return C.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(var m=function(){var e=g[v];u.has(e)||(s[e]={get:function(){var t=this.level;return function(){var r={open:n.color[a[t]][e].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return C.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}})},v=0,g=Object.keys(n.color.ansi);v<g.length;v++)m();n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(var y=function(){var e=D[b];if(u.has(e))return"continue";s["bg"+e[0].toUpperCase()+e.slice(1)]={get:function(){var t=this.level;return function(){var r={open:n.bgColor[a[t]][e].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return C.call(this,this._styles?this._styles.concat(r):[r],this._empty,e)}}}},b=0,D=Object.keys(n.bgColor.ansi);b<D.length;b++)y();var E=Object.defineProperties((function(){}),s);function C(e,t,n){var r=function e(){return T.apply(e,arguments)};r._styles=e,r._empty=t;var i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:function(){return i.level},set:function(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:function(){return i.enabled},set:function(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=E,r}function T(){var e=arguments,t=e.length,r=String(arguments[0]);if(0===t)return"";if(t>1)for(var i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;var a=n.dim.open;o&&this.hasGrey&&(n.dim.open="");var u,s=p(this._styles.slice().reverse());try{for(s.s();!(u=s.n()).done;){var c=u.value;r=(r=c.open+r.replace(c.closeRe,c.open)+c.close).replace(/\r?\n/g,"".concat(c.close,"$&").concat(c.open))}}catch(l){s.e(l)}finally{s.f()}return n.dim.open=a,r}function x(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],o=1;o<t.length;o++)r.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&")),r.push(String(t.raw[o]));return i(e,r.join(""))}Object.defineProperties(l.prototype,s),e.exports=l(),e.exports.supportsColor=r,e.exports.default=e.exports}(ev),Object.defineProperty(Fm,"__esModule",{value:!0}),Fm.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kv(t)?Ov(Cv(Nv(t)),e):e},Fm.getChalk=Nv,Fm.shouldHighlight=kv;var yv=_m,bv=Im,Dv=ev.exports,Ev=new Set(["as","async","from","get","of","set"]);function Cv(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}var Tv,xv=/\r\n|[\n\r\u2028\u2029]/,Av=/^[()[\]{}]$/,Sv=/^[a-z][\w-]*$/i,wv=function(e,t,n){if("name"===e.type){if((0,bv.isKeyword)(e.value)||(0,bv.isStrictReservedWord)(e.value,!0)||Ev.has(e.value))return"keyword";if(Sv.test(e.value)&&("<"===n[t-1]||"</"==n.substr(t-2,2)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&Av.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};function Ov(e,t){var n,r="",i=p(Tv(t));try{var o=function(){var t=n.value,i=t.type,o=t.value,a=e[i];r+=a?o.split(xv).map((function(e){return a(e)})).join("\n"):o};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}return r}function kv(e){return!!Dv.supportsColor||e.forceColor}function Nv(e){return e.forceColor?new Dv.constructor({enabled:!0,level:1}):Dv}Tv=r.mark((function e(t){var n,i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=yv.default.exec(t))){e.next=6;break}return i=yv.matchToToken(n),e.next=4,{type:wv(i,n.index,t),value:i.value};case 4:e.next=0;break;case 6:case"end":return e.stop()}}),e)})),Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.codeFrameColumns=Pv,Nm.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!_v){_v=!0;var i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";ms.emitWarning?ms.emitWarning(i,"DeprecationWarning"):(new Error(i).name="DeprecationWarning",console.warn(new Error(i)))}return Pv(e,{start:{column:n=Math.max(n,0),line:t}},r)};var Fv=Fm,_v=!1;function Iv(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var jv=/\r\n|[\n\r\u2028\u2029]/;function Lv(e,t,n){var r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),o=n||{},a=o.linesAbove,u=void 0===a?2:a,s=o.linesBelow,c=void 0===s?3:s,l=r.line,p=r.column,f=i.line,d=i.column,h=Math.max(l-(u+1),0),m=Math.min(t.length,f+c);-1===l&&(h=0),-1===f&&(m=t.length);var v=f-l,g={};if(v)for(var y=0;y<=v;y++){var b=y+l;if(p)if(0===y){var D=t[b-1].length;g[b]=[p,D-p+1]}else if(y===v)g[b]=[0,d];else{var E=t[b-y].length;g[b]=[0,E]}else g[b]=!0}else g[l]=p===d?!p||[p,0]:[p,d-p];return{start:h,end:m,markerLines:g}}function Pv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(n.highlightCode||n.forceColor)&&(0,Fv.shouldHighlight)(n),i=(0,Fv.getChalk)(n),o=Iv(i),a=function(e,t){return r?e(t):t},u=Lv(t,e.split(jv),n),s=u.start,c=u.end,l=u.markerLines,p=t.start&&"number"==typeof t.start.column,f=String(c).length,d=(r?(0,Fv.default)(e,n):e).split(jv,c).slice(s,c).map((function(e,t){var r=s+1+t,i=" ".concat(r).slice(-f),u=" ".concat(i," |"),c=l[r],p=!l[r+1];if(c){var d="";if(Array.isArray(c)){var h=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g," "),m=c[1]||1;d=["\n ",a(o.gutter,u.replace(/\d/g," "))," ",h,a(o.marker,"^").repeat(m)].join(""),p&&n.message&&(d+=" "+a(o.message,n.message))}return[a(o.marker,">"),a(o.gutter,u),e.length>0?" ".concat(e):"",d].join("")}return" ".concat(a(o.gutter,u)).concat(e.length>0?" ".concat(e):"")})).join("\n");return n.message&&!p&&(d="".concat(" ".repeat(f+1)).concat(n.message,"\n").concat(d)),r?i.reset(d):d}var Mv=Lp.ConfigError,Bv=km,Rv=Bv.locStart,Vv=Bv.locEnd,Uv=Object.getOwnPropertyNames,qv=Object.getOwnPropertyDescriptor;function Hv(e){var t,n={},r=p(e.plugins);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.parsers){var o,a=p(Uv(i.parsers));try{for(a.s();!(o=a.n()).done;){var u=o.value;Object.defineProperty(n,u,qv(i.parsers,u))}}catch(s){a.e(s)}finally{a.f()}}}}catch(s){r.e(s)}finally{r.f()}return n}function Gv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hv(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Rv,locEnd:Vv};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new Mv("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Wv={parse:function(e,t){var n=Hv(t),r=Object.defineProperties({},Object.fromEntries(Object.keys(n).map((function(e){return[e,{enumerable:!0,get:function(){return n[e].parse}}]})))),i=Gv(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(t){var o=t.loc;if(o){var a=Nm.codeFrameColumns;throw t.codeFrame=a(e,o,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Gv},zv=ml,Kv=Nl,$v=Np,Qv=Lp.UndefinedParserError,Jv=ac.getSupportInfo,Yv=xm,Xv=Wv.resolveParser,Zv={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function eg(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find((function(e){return e.printers&&e.printers[t]}));if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}function tg(e,t){var n=Kv.basename(e).toLowerCase(),r=Jv({plugins:t}).languages.filter((function(e){return null!==e.since})),i=r.find((function(e){return e.extensions&&e.extensions.some((function(e){return n.endsWith(e)}))||e.filenames&&e.filenames.some((function(e){return e.toLowerCase()===n}))}));if(!i&&!n.includes(".")){var o=function(e){if("string"!=typeof e)return"";var t;try{t=zv.openSync(e,"r")}catch(o){return""}try{var n=new $v(t).next().toString("utf8"),r=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];var i=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return i?i[1]:""}catch(a){return""}finally{try{zv.closeSync(t)}catch(u){}}}(e);i=r.find((function(e){return e.interpreters&&e.interpreters.includes(o)}))}return i&&i.parsers[0]}var ng={normalize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},e),r=Jv({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign(Object.assign({},Zv),Object.fromEntries(r.filter((function(e){return void 0!==e.default})).map((function(e){return[e.name,e.default]}))));if(!n.parser)if(n.filepath){if(n.parser=tg(n.filepath,n.plugins),!n.parser)throw new Qv("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var o=Xv(Yv.normalizeApiOptions(n,[r.find((function(e){return"parser"===e.name}))],{passThrough:!0,logger:!1}));n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;var a=eg(n);n.printer=a.printers[n.astFormat];for(var u=Object.fromEntries(r.filter((function(e){return e.pluginDefaults&&void 0!==e.pluginDefaults[a.name]})).map((function(e){return[e.name,e.pluginDefaults[a.name]]}))),s=Object.assign(Object.assign({},i),u),c=0,l=Object.entries(s);c<l.length;c++){var p=d(l[c],2),f=p[0],h=p[1];null!==n[f]&&void 0!==n[f]||(n[f]=h)}return"json"===n.parser&&(n.trailingComma="none"),Yv.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(Zv)},t))},hiddenDefaults:Zv,inferParser:tg},rg=function e(t,n,r){if(Array.isArray(t))return t.map((function(t){return e(t,n,r)})).filter(Boolean);if(!t||"object"!=typeof t)return t;var i,o=n.printer.massageAstNode;i=o&&o.ignoredProperties?o.ignoredProperties:new Set;for(var a={},u=0,s=Object.entries(t);u<s.length;u++){var c=d(s[u],2),l=c[0],p=c[1];i.has(l)||"function"==typeof p||(a[l]=e(p,n,t))}if(o){var f=o(t,a,r);if(null===f)return;if(f)return f}return a},ig="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};function og(e,t){var n={seen:[],stylize:ug};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),pg(t)?n.showHidden=t:t&&Cg(n,t),hg(n.showHidden)&&(n.showHidden=!1),hg(n.depth)&&(n.depth=2),hg(n.colors)&&(n.colors=!1),hg(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=ag),sg(n,e,n.depth)}function ag(e,t){var n=og.styles[t];return n?"\x1b["+og.colors[n][0]+"m"+e+"\x1b["+og.colors[n][1]+"m":e}function ug(e,t){return e}function sg(e,t,n){if(e.customInspect&&t&&bg(t.inspect)&&t.inspect!==og&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return dg(r)||(r=sg(e,r,n)),r}var i=function(e,t){if(hg(t))return e.stylize("undefined","undefined");if(dg(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return"number"==typeof t?e.stylize(""+t,"number"):pg(t)?e.stylize(""+t,"boolean"):fg(t)?e.stylize("null","null"):void 0}(e,t);if(i)return i;var o=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),yg(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return cg(t);if(0===o.length){if(bg(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(mg(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(gg(t))return e.stylize(Date.prototype.toString.call(t),"date");if(yg(t))return cg(t)}var s,c,l="",p=!1,f=["{","}"];return s=t,Array.isArray(s)&&(p=!0,f=["[","]"]),bg(t)&&(l=" [Function"+(t.name?": "+t.name:"")+"]"),mg(t)&&(l=" "+RegExp.prototype.toString.call(t)),gg(t)&&(l=" "+Date.prototype.toUTCString.call(t)),yg(t)&&(l=" "+cg(t)),0!==o.length||p&&0!=t.length?n<0?mg(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=p?function(e,t,n,r,i){for(var o=[],a=0,u=t.length;a<u;++a)Tg(t,String(a))?o.push(lg(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(lg(e,t,n,r,i,!0))})),o}(e,t,n,a,o):o.map((function(r){return lg(e,t,n,a,r,p)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,f)):f[0]+l+f[1]}function cg(e){return"["+Error.prototype.toString.call(e)+"]"}function lg(e,t,n,r,i,o){var a,u,s;if((s=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?u=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(u=e.stylize("[Setter]","special")),Tg(r,i)||(a="["+i+"]"),u||(e.seen.indexOf(s.value)<0?(u=fg(n)?sg(e,s.value,null):sg(e,s.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+u.split("\n").map((function(e){return" "+e})).join("\n")):u=e.stylize("[Circular]","special")),hg(a)){if(o&&i.match(/^\d+$/))return u;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function pg(e){return"boolean"==typeof e}function fg(e){return null===e}function dg(e){return"string"==typeof e}function hg(e){return void 0===e}function mg(e){return vg(e)&&"[object RegExp]"===Eg(e)}function vg(e){return"object"==typeof e&&null!==e}function gg(e){return vg(e)&&"[object Date]"===Eg(e)}function yg(e){return vg(e)&&("[object Error]"===Eg(e)||e instanceof Error)}function bg(e){return"function"==typeof e}function Dg(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Eg(e){return Object.prototype.toString.call(e)}function Cg(e,t){if(!t||!vg(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Tg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xg(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}og.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},og.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ag,Sg=Object.prototype.hasOwnProperty,wg=Object.keys||function(e){var t=[];for(var n in e)Sg.call(e,n)&&t.push(n);return t},Og=Array.prototype.slice;function kg(){return void 0!==Ag?Ag:Ag="foo"===function(){}.name}function Ng(e){return Object.prototype.toString.call(e)}function Fg(e){return!wp(e)&&"function"==typeof Gu.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}function _g(e,t){e||Bg(e,!0,t,"==",Rg)}var Ig=/\s*function\s+([^\(\s]*)\s*/;function jg(e){if(bg(e)){if(kg())return e.name;var t=e.toString().match(Ig);return t&&t[1]}}function Lg(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return Pg(Mg(e.actual),128)+" "+e.operator+" "+Pg(Mg(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||Bg;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=jg(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}}function Pg(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function Mg(e){if(kg()||!bg(e))return og(e);var t=jg(e);return"[Function"+(t?": "+t:"")+"]"}function Bg(e,t,n,r,i){throw new Lg({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function Rg(e,t){e||Bg(e,!0,t,"==",Rg)}function Vg(e,t,n){e!=t&&Bg(e,t,n,"==",Vg)}function Ug(e,t,n){e==t&&Bg(e,t,n,"!=",Ug)}function qg(e,t,n){Gg(e,t,!1)||Bg(e,t,n,"deepEqual",qg)}function Hg(e,t,n){Gg(e,t,!0)||Bg(e,t,n,"deepStrictEqual",Hg)}function Gg(e,t,n,r){if(e===t)return!0;if(wp(e)&&wp(t))return 0===xg(e,t);if(gg(e)&&gg(t))return e.getTime()===t.getTime();if(mg(e)&&mg(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(Fg(e)&&Fg(t)&&Ng(e)===Ng(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===xg(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(wp(e)!==wp(t))return!1;var i=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==i&&i===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(Dg(e)||Dg(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=Wg(e),o=Wg(t);if(i&&!o||!i&&o)return!1;if(i)return Gg(e=Og.call(e),t=Og.call(t),n);var a,u,s=wg(e),c=wg(t);if(s.length!==c.length)return!1;for(s.sort(),c.sort(),u=s.length-1;u>=0;u--)if(s[u]!==c[u])return!1;for(u=s.length-1;u>=0;u--)if(!Gg(e[a=s[u]],t[a],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function Wg(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function zg(e,t,n){Gg(e,t,!1)&&Bg(e,t,n,"notDeepEqual",zg)}function Kg(e,t,n){Gg(e,t,!0)&&Bg(e,t,n,"notDeepStrictEqual",Kg)}function $g(e,t,n){e!==t&&Bg(e,t,n,"===",$g)}function Qg(e,t,n){e===t&&Bg(e,t,n,"!==",Qg)}function Jg(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function Yg(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&Bg(i,n,"Missing expected exception"+r);var o="string"==typeof r,a=!e&&i&&!n;if((!e&&yg(i)&&o&&Jg(i,n)||a)&&Bg(i,n,"Got unwanted exception"+r),e&&i&&n&&!Jg(i,n)||!e&&i)throw i}function Xg(e,t,n){Yg(!0,e,t,n)}function Zg(e,t,n){Yg(!1,e,t,n)}function ey(e){if(e)throw e}_g.AssertionError=Lg,ig(Lg,Error),_g.fail=Bg,_g.ok=Rg,_g.equal=Vg,_g.notEqual=Ug,_g.deepEqual=qg,_g.deepStrictEqual=Hg,_g.notDeepEqual=zg,_g.notDeepStrictEqual=Kg,_g.strictEqual=$g,_g.notStrictEqual=Qg,_g.throws=Xg,_g.doesNotThrow=Zg,_g.ifError=ey;var ty=n(Object.freeze({__proto__:null,default:_g,AssertionError:Lg,fail:Bg,ok:Rg,assert:Rg,equal:Vg,notEqual:Ug,deepEqual:qg,deepStrictEqual:Hg,notDeepEqual:zg,notDeepStrictEqual:Kg,strictEqual:$g,notStrictEqual:Qg,throws:Xg,doesNotThrow:Zg,ifError:ey})),ny=ty,ry=hl.builders,iy=ry.line,oy=ry.hardline,ay=ry.breakParent,uy=ry.indent,sy=ry.lineSuffix,cy=ry.join,ly=ry.cursor,py=Oc.hasNewline,fy=Oc.skipNewline,dy=Oc.skipSpaces,hy=Oc.isPreviousLineEmpty,my=Oc.addLeadingComment,vy=Oc.addDanglingComment,gy=Oc.addTrailingComment,yy=new WeakMap;function by(e,t,n){if(e){var r=t.printer,i=t.locStart,o=t.locEnd;if(n){if(r.canAttachComment&&r.canAttachComment(e)){var a;for(a=n.length-1;a>=0&&!(i(n[a])<=i(e)&&o(n[a])<=o(e));--a);return void n.splice(a+1,0,e)}}else if(yy.has(e))return yy.get(e);var u=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter((function(e){var t=d(e,1)[0];return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t})).map((function(e){return d(e,2)[1]}));if(u){n||(n=[],yy.set(e,n));var s,c=p(u);try{for(c.s();!(s=c.n()).done;)by(s.value,t,n)}catch(l){c.e(l)}finally{c.f()}return n}}}function Dy(e,t,n,r){for(var i,o,a=n.locStart,u=n.locEnd,s=a(t),c=u(t),l=by(e,n),p=0,f=l.length;p<f;){var d=p+f>>1,h=l[d],m=a(h),v=u(h);if(m<=s&&c<=v)return Dy(h,t,n,h);if(v<=s)i=h,p=d+1;else{if(!(c<=m))throw new Error("Comment location overlaps with node location");o=h,f=d}}if(r&&"TemplateLiteral"===r.type){var g=r.quasis,y=wy(g,t,n);i&&wy(g,i,n)!==y&&(i=null),o&&wy(g,o,n)!==y&&(o=null)}return{enclosingNode:r,precedingNode:i,followingNode:o}}var Ey=function(){return!1},Cy=function(e){return!/[\S\n\u2028\u2029]/.test(e)};function Ty(e,t,n,r){var i=n[r],o=i.comment,a=i.precedingNode,u=t.locStart,s=t.locEnd,c=u(o);if(a)for(var l=r-1;l>=0;l--){var p=n[l],f=p.comment;if(p.precedingNode!==a||!Cy(e.slice(s(f),c)))break;c=u(f)}return py(e,c,{backwards:!0})}function xy(e,t,n,r){var i=n[r],o=i.comment,a=i.followingNode,u=t.locStart,s=t.locEnd,c=s(o);if(a)for(var l=r+1;l<n.length;l++){var p=n[l],f=p.comment;if(p.followingNode!==a||!Cy(e.slice(c,u(f))))break;c=s(f)}return py(e,c)}function Ay(e,t,n){var r=e.length;if(0!==r){var i,o=e[0],a=o.precedingNode,u=o.followingNode,s=o.enclosingNode,c=n.printer.getGapRegex&&n.printer.getGapRegex(s)||/^[\s(]*$/,l=n.locStart(u);for(i=r;i>0;--i){var f=e[i-1],h=f.comment,m=f.precedingNode,v=f.followingNode;ny.strictEqual(m,a),ny.strictEqual(v,u);var g=t.slice(n.locEnd(h),l);if(!c.test(g))break;l=n.locStart(h)}var y,b=p(e.entries());try{for(b.s();!(y=b.n()).done;){var D=d(y.value,2),E=D[0],C=D[1].comment;E<i?gy(a,C):my(u,C)}}catch(S){b.e(S)}finally{b.f()}for(var T=0,x=[a,u];T<x.length;T++){var A=x[T];A.comments&&A.comments.length>1&&A.comments.sort((function(e,t){return n.locStart(e)-n.locStart(t)}))}e.length=0}}function Sy(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function wy(e,t,n){for(var r=n.locStart(t)-1,i=1;i<e.length;++i)if(r<n.locStart(e[i]))return i-1;return 0}function Oy(e,t,n){var r=e.getValue();if(!r)return{};var i=r.comments||[];n&&(i=i.filter((function(e){return!n.has(e)})));var o=r===t.cursorNode;if(0===i.length){var a=o?ly:"";return{leading:a,trailing:a}}var u=[],s=[];return e.each((function(){var r=e.getValue();if(!n||!n.has(r)){var i=r.leading,o=r.trailing;i?u.push(function(e,t){var n=e.getValue(),r=[Sy(e,t)],i=t.printer,o=t.originalText,a=t.locStart,u=t.locEnd;if(i.isBlockComment&&i.isBlockComment(n)){var s=py(o,u(n))?py(o,a(n),{backwards:!0})?oy:iy:" ";r.push(s)}else r.push(oy);var c=fy(o,dy(o,u(n)));return!1!==c&&py(o,c)&&r.push(oy),r}(e,t)):o&&s.push(function(e,t){var n=e.getValue(),r=Sy(e,t),i=t.printer,o=t.originalText,a=t.locStart,u=i.isBlockComment&&i.isBlockComment(n);if(py(o,a(n),{backwards:!0})){var s=hy(o,n,a);return sy([oy,s?oy:"",r])}var c=[" ",r];return u||(c=[sy(c),ay]),c}(e,t))}}),"comments"),o&&(u.unshift(ly),s.push(ly)),{leading:u,trailing:s}}var ky={attach:function(e,t,n,r){if(Array.isArray(e)){var i,o=[],a=r.locStart,u=r.locEnd,s=r.printer.handleComments,c=void 0===s?{}:s,f=c.avoidAstMutation,h=c.ownLine,m=void 0===h?Ey:h,v=c.endOfLine,g=void 0===v?Ey:v,y=c.remaining,b=void 0===y?Ey:y,D=e.map((function(i,o){return Object.assign(Object.assign({},Dy(t,i,r)),{},{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===o})})),E=p(D.entries());try{for(E.s();!(i=E.n()).done;){var C=d(i.value,2),T=C[0],x=C[1],A=x.comment,S=x.precedingNode,w=x.enclosingNode,O=x.followingNode,k=x.text,N=x.options,F=x.ast,_=x.isLastComment;if("json"===N.parser||"json5"===N.parser||"__js_expression"===N.parser||"__vue_expression"===N.parser){if(a(A)-a(F)<=0){my(F,A);continue}if(u(A)-u(F)>=0){gy(F,A);continue}}var I=void 0;if(f?I=[x]:(A.enclosingNode=w,A.precedingNode=S,A.followingNode=O,I=[A,k,N,F,_]),Ty(k,N,D,T))A.placement="ownLine",m.apply(void 0,l(I))||(O?my(O,A):S?gy(S,A):vy(w||F,A));else if(xy(k,N,D,T))A.placement="endOfLine",g.apply(void 0,l(I))||(S?gy(S,A):O?my(O,A):vy(w||F,A));else if(A.placement="remaining",b.apply(void 0,l(I)));else if(S&&O){var j=o.length;j>0&&o[j-1].followingNode!==O&&Ay(o,k,N),o.push(x)}else S?gy(S,A):O?my(O,A):vy(w||F,A)}}catch(B){E.e(B)}finally{E.f()}if(Ay(o,n,r),!f){var L,P=p(e);try{for(P.s();!(L=P.n()).done;){var M=L.value;delete M.precedingNode,delete M.enclosingNode,delete M.followingNode}}catch(B){P.e(B)}finally{P.f()}}}},printComments:function(e,t,n,r){var i=Oy(e,n,r),o=i.leading,a=i.trailing;return o||a?[o,t,a]:t},printCommentsSeparately:Oy,printDanglingComments:function(e,t,n,r){var i=[],o=e.getValue();return o&&o.comments?(e.each((function(){var n=e.getValue();n.leading||n.trailing||r&&!r(n)||i.push(Sy(e,t))}),"comments"),0===i.length?"":n?cy(oy,i):uy([oy,cy(oy,i)])):""},getSortedChildNodes:by,ensureAllCommentsPrinted:function(e){if(e){var t,n=p(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!r.printed)throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed}}catch(i){n.e(i)}finally{n.f()}}}},Ny=Ca;function Fy(e,t){var n=_y(e.stack,t);return-1===n?null:e.stack[n]}function _y(e,t){for(var n=e.length-1;n>=0;n-=2){var r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var Iy=function(){function e(t){h(this,e),this.stack=[t]}return m(e,[{key:"getName",value:function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null}},{key:"getValue",value:function(){return Ny(this.stack)}},{key:"getNode",value:function(){return Fy(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}},{key:"getParentNode",value:function(){return Fy(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}},{key:"call",value:function(e){for(var t=this.stack,n=t.length,r=Ny(t),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(var u=0,s=o;u<s.length;u++){var c=s[u];r=r[c],t.push(c,r)}var l=e(this);return t.length=n,l}},{key:"callParent",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=_y(this.stack,n+1),i=this.stack.splice(r+1),o=e(this);return(t=this.stack).push.apply(t,l(i)),o}},{key:"each",value:function(e){for(var t=this.stack,n=t.length,r=Ny(t),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(var u=0,s=o;u<s.length;u++){var c=s[u];r=r[c],t.push(c,r)}for(var l=0;l<r.length;++l)t.push(l,r[l]),e(this,l,r),t.length-=2;t.length=n}},{key:"map",value:function(e){for(var t=[],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.each.apply(this,[function(n,r,i){t[r]=e(n,r,i)}].concat(r)),t}},{key:"try",value:function(e){var t=this.stack,n=l(t);try{return e()}finally{t.length=0,t.push.apply(t,n)}}},{key:"match",value:function(){for(var e=this.stack.length-1,t=null,n=this.stack[e--],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=0,u=i;a<u.length;a++){var s=u[a];if(void 0===n)return!1;var c=null;if("number"==typeof t&&(c=t,t=this.stack[e--],n=this.stack[e--]),s&&!s(n,t,c))return!1;t=this.stack[e--],n=this.stack[e--]}return!0}},{key:"findAncestor",value:function(e){for(var t=this.stack.length-1,n=null,r=this.stack[t--];r;){var i=null;if("number"==typeof n&&(i=n,n=this.stack[t--],r=this.stack[t--]),null!==n&&e(r,n,i))return r;n=this.stack[t--],r=this.stack[t--]}}}]),e}(),jy=hl.utils.stripTrailingHardline,Ly=ng.normalize,Py=ky,My={printSubtree:function(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,(function(e,t,i){return function(e,t,n,r){var i=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}).stripTrailingHardline,o=void 0!==i&&i,a=Ly(Object.assign(Object.assign(Object.assign({},n),t),{},{parentParser:n.parser,originalText:e}),{passThrough:!0}),u=Wv.parse(e,a),s=u.ast;e=u.text;var c=s.comments;delete s.comments,Py.attach(c,s,e,a),a[Symbol.for("comments")]=c||[],a[Symbol.for("tokens")]=s.tokens||[];var l=r(s,a);return Py.ensureAllCommentsPrinted(c),o?"string"==typeof l?l.replace(/(?:\r?\n)*$/,""):jy(l):l}(e,t,n,r,i)}),n)}},By=Iy,Ry=hl.builders,Vy=Ry.hardline,Uy=Ry.addAlignmentToDoc,qy=hl.utils.propagateBreaks,Hy=ky.printComments,Gy=My;function Wy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.printer;r.preprocess&&(e=r.preprocess(e,t));var i=new Map,o=new By(e),a=u();return n>0&&(a=Uy([Vy,a],n,t.tabWidth)),qy(a),a;function u(e,t){return void 0===e||e===o?s(t):Array.isArray(e)?o.call.apply(o,[function(){return s(t)}].concat(l(e))):o.call((function(){return s(t)}),e)}function s(e){var n=o.getValue(),r=n&&"object"==typeof n&&void 0===e;if(r&&i.has(n))return i.get(n);var a=zy(o,t,u,e);return r&&i.set(n,a),a}}function zy(t,n,r,i){var o,a,u=t.getValue(),s=n.printer;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(t)){var c=function(e,t){var n,r=t.originalText,i=t[Symbol.for("comments")],o=t.locStart,a=t.locEnd,u=o(e),s=a(e),c=new Set,l=p(i);try{for(l.s();!(n=l.n()).done;){var f=n.value;o(f)>=u&&a(f)<=s&&(f.printed=!0,c.add(f))}}catch(d){l.e(d)}finally{l.f()}return{doc:r.slice(u,s),printedComments:c}}(u,n);o=c.doc,a=c.printedComments}else{if(u)try{o=Gy.printSubtree(t,r,n,Wy)}catch(t){if(e.PRETTIER_DEBUG)throw t}o||(o=s.print(t,n,r,i))}return s.willPrintOwnComments&&s.willPrintOwnComments(t,n)||(o=Hy(t,o,n,a)),o}var Ky=Wy,$y=ty,Qy=ky;function Jy(e){for(var t=e.length-1;;){var n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function Yy(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,a=n.locStart,u=n.locEnd,s=a(e),c=u(e);if(!(t>c||t<s||"rangeEnd"===o&&t===s||"rangeStart"===o&&t===c)){var f,d=p(Qy.getSortedChildNodes(e,n));try{for(d.s();!(f=d.n()).done;){var h=Yy(f.value,t,n,r,[e].concat(l(i)),o);if(h)return h}}catch(m){d.e(m)}finally{d.f()}return!r||r(e,i[0])?{node:e,parentNodes:i}:void 0}}var Xy=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Zy=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function eb(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"espree":case"meriyah":case"__babel_estree":return function(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}(t.type,n&&n.type);case"json":case"json5":case"json-stringify":return Xy.has(t.type);case"graphql":return Zy.has(t.kind);case"vue":return"root"!==t.tag}return!1}var tb={calculateRange:function(e,t,n){var r=t.rangeStart,i=t.rangeEnd,o=t.locStart,a=t.locEnd;$y.ok(i>r);var u=e.slice(r,i).search(/\S/),s=-1===u;if(!s)for(r+=u;i>r&&!/\S/.test(e[i-1]);--i);var c,f,d=Yy(n,r,t,(function(e,n){return eb(t,e,n)}),[],"rangeStart"),h=s?d:Yy(n,i,t,(function(e){return eb(t,e)}),[],"rangeEnd");if(!d||!h)return{rangeStart:0,rangeEnd:0};if(function(e){var t=e.parser;return"json"===t||"json5"===t||"json-stringify"===t}(t)){var m=function(e,t){var n=[e.node].concat(l(e.parentNodes)),r=new Set([t.node].concat(l(t.parentNodes)));return n.find((function(e){return Xy.has(e.type)&&r.has(e)}))}(d,h);c=m,f=m}else{var v=function(e,t,n){var r=n.locStart,i=n.locEnd,o=e.node,a=t.node;if(o===a)return{startNode:o,endNode:a};var u,s=r(e.node),c=p(Jy(t.parentNodes));try{for(c.s();!(u=c.n()).done;){var l=u.value;if(!(r(l)>=s))break;a=l}}catch(v){c.e(v)}finally{c.f()}var f,d=i(t.node),h=p(Jy(e.parentNodes));try{for(h.s();!(f=h.n()).done;){var m=f.value;if(!(i(m)<=d))break;o=m}}catch(v){h.e(v)}finally{h.f()}return{startNode:o,endNode:a}}(d,h,t);c=v.startNode,f=v.endNode}return{rangeStart:Math.min(o(c),o(f)),rangeEnd:Math.max(a(c),a(f))}},findNodeAtOffset:Yy},nb=g,rb=hl.printer.printDocToString,ib=hl.debug.printDocToDebug,ob=Oc.getAlignmentSize,ab=kc.guessEndOfLine,ub=kc.convertEndOfLineToChars,sb=kc.countEndOfLineChars,cb=kc.normalizeEndOfLine,lb=ng.normalize,pb=rg,fb=ky,db=Wv,hb=Ky,mb=tb,vb=Symbol("cursor");function gb(e,t,n){var r=t.comments;return r&&(delete t.comments,fb.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function yb(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};var r=db.parse(e,t),i=r.ast,o=r.text;if(t.cursorOffset>=0){var a=mb.findNodeAtOffset(i,t.cursorOffset,t);a&&a.node&&(t.cursorNode=a.node)}var u=gb(o,i,t),s=hb(i,t,n),c=rb(s,t);if(fb.ensureAllCommentsPrinted(u),n>0){var f=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(f)),c.formatted=f+ub(t.endOfLine)}if(t.cursorOffset>=0){var d,h,m,v,g;if(t.cursorNode&&c.cursorNodeText?(d=t.locStart(t.cursorNode),h=o.slice(d,t.locEnd(t.cursorNode)),m=t.cursorOffset-d,v=c.cursorNodeStart,g=c.cursorNodeText):(d=0,h=o,m=t.cursorOffset,v=0,g=c.formatted),h===g)return{formatted:c.formatted,cursorOffset:v+m,comments:u};var y=l(h);y.splice(m,0,vb);var b,D=l(g),E=nb.diffArrays(y,D),C=v,T=p(E);try{for(T.s();!(b=T.n()).done;){var x=b.value;if(x.removed){if(x.value.includes(vb))break}else C+=x.count}}catch(A){T.e(A)}finally{T.f()}return{formatted:c.formatted,cursorOffset:C,comments:u}}return{formatted:c.formatted,cursorOffset:-1,comments:u}}function bb(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function Db(e,t){var n=t.cursorOffset,r=t.rangeStart,i=t.rangeEnd;return n=bb(e,n,-1),r=bb(e,r,0),i=bb(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i})}function Eb(e,t){var n=Db(e,t),r=n.cursorOffset,i=n.rangeStart,o=n.rangeEnd,a=n.endOfLine,u="\ufeff"===e.charAt(0);if(u&&(e=e.slice(1),r--,i--,o--),"auto"===a&&(a=ab(e)),e.includes("\r")){var s=function(t){return sb(e.slice(0,Math.max(t,0)),"\r\n")};r-=s(r),i-=s(i),o-=s(o),e=cb(e)}return{hasBOM:u,text:e,options:Db(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:i,rangeEnd:o,endOfLine:a}))}}function Cb(e,t){var n=db.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function Tb(e,t){var n,r=Eb(e,lb(t)),i=r.hasBOM,o=r.text,a=r.options;return a.rangeStart>=a.rangeEnd&&""!==o||a.requirePragma&&!Cb(o,a)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(a.rangeStart>0||a.rangeEnd<o.length?n=function(e,t){var n=db.parse(e,t),r=n.ast,i=n.text,o=mb.calculateRange(i,t,r),a=o.rangeStart,u=o.rangeEnd,s=i.slice(a,u),c=Math.min(a,i.lastIndexOf("\n",a)+1),l=i.slice(c,a).match(/^\s*/)[0],p=ob(l,t.tabWidth),f=yb(s,Object.assign(Object.assign({},t),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>a&&t.cursorOffset<=u?t.cursorOffset-a:-1,endOfLine:"lf"}),p),d=f.formatted.trimEnd(),h=t.cursorOffset;h>u?h+=d.length-s.length:f.cursorOffset>=0&&(h=f.cursorOffset+a);var m=i.slice(0,a)+d+i.slice(u);if("lf"!==t.endOfLine){var v=ub(t.endOfLine);h>=0&&"\r\n"===v&&(h+=sb(m.slice(0,h),"\n")),m=m.replace(/\n/g,v)}return{formatted:m,cursorOffset:h,comments:f.comments}}(o,a):(!a.requirePragma&&a.insertPragma&&a.printer.insertPragma&&!Cb(o,a)&&(o=a.printer.insertPragma(o)),n=yb(o,a)),i&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var xb={formatWithCursor:Tb,parse:function(e,t,n){var r=Eb(e,lb(t)),i=r.text,o=r.options,a=db.parse(i,o);return n&&(a.ast=pb(a.ast,o)),a},formatAST:function(e,t){t=lb(t);var n=hb(e,t);return rb(n,t)},formatDoc:function(e,t){return Tb(ib(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted},printToDoc:function(e,t){t=lb(t);var n=db.parse(e,t),r=n.ast;return gb(n.text,r,t),hb(r,t)},printDocToString:function(e,t){return rb(e,lb(t))}},Ab=Oc.getMaxContinuousCount,Sb=Oc.getStringWidth,wb=Oc.getAlignmentSize,Ob=Oc.getIndentSize,kb=Oc.skip,Nb=Oc.skipWhitespace,Fb=Oc.skipSpaces,_b=Oc.skipNewline,Ib=Oc.skipToLineEnd,jb=Oc.skipEverythingButNewLine,Lb=Oc.skipInlineComment,Pb=Oc.skipTrailingComment,Mb=Oc.hasNewline,Bb=Oc.hasNewlineInRange,Rb=Oc.hasSpaces,Vb=Oc.isNextLineEmpty,Ub=Oc.isNextLineEmptyAfterIndex,qb=Oc.isPreviousLineEmpty,Hb=Oc.getNextNonSpaceNonCommentCharacterIndex,Gb=Oc.makeString,Wb=Oc.addLeadingComment,zb=Oc.addDanglingComment,Kb=Oc.addTrailingComment,$b={getMaxContinuousCount:Ab,getStringWidth:Sb,getAlignmentSize:wb,getIndentSize:Ob,skip:kb,skipWhitespace:Nb,skipSpaces:Fb,skipNewline:_b,skipToLineEnd:Ib,skipEverythingButNewLine:jb,skipInlineComment:Lb,skipTrailingComment:Pb,hasNewline:Mb,hasNewlineInRange:Bb,hasSpaces:Rb,isNextLineEmpty:Vb,isNextLineEmptyAfterIndex:Ub,isPreviousLineEmpty:qb,getNextNonSpaceNonCommentCharacterIndex:Hb,makeString:Gb,addLeadingComment:Wb,addDanglingComment:zb,addTrailingComment:Kb},Qb=["languageId"],Jb=function(e,t){var n=e.languageId,r=Ta(e,Qb);return Object.assign(Object.assign({linguistLanguageId:n},r),t(e))},Yb={},Xb={exports:{}};!function(){function e(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}Xb.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var n;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;n=e.consequent;do{if("IfStatement"===n.type&&null==n.alternate)return!0;n=t(n)}while(n);return!1},trailingStatement:t}}();var Zb={exports:{}};!function(){var e,t,n,r,i,o;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],r=new Array(128),o=0;o<128;++o)r[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(i=new Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;Zb.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(t){return t<128?r[t]:e.NonAsciiIdentifierStart.test(a(t))},isIdentifierPartES6:function(t){return t<128?i[t]:e.NonAsciiIdentifierPart.test(a(t))}}}();var eD={exports:{}};!function(){var e=Zb.exports;function t(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function r(e,n){return"null"===e||"true"===e||"false"===e||t(e,n)}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(t){var n,r,i;if(0===t.length)return!1;if(i=t.charCodeAt(0),!e.isIdentifierStartES5(i))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function a(t){var n,r,i,o,a;if(0===t.length)return!1;for(a=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(55296<=(i=t.charCodeAt(n))&&i<=56319){if(++n>=r)return!1;if(!(56320<=(o=t.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!a(i))return!1;a=e.isIdentifierPartES6}return!0}eD.exports={isKeywordES5:t,isKeywordES6:n,isReservedWordES5:r,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return o(e)&&!r(e,t)},isIdentifierES6:function(e,t){return a(e)&&!i(e,t)}}}(),Yb.ast=Xb.exports,Yb.code=Zb.exports,Yb.keyword=eD.exports;var tD=Yb.keyword.isIdentifierNameES5,nD=Oc.getLast,rD=Oc.hasNewline,iD=Oc.skipWhitespace,oD=Oc.isNonEmptyArray,aD=Oc.isNextLineEmptyAfterIndex,uD=Oc.getStringWidth,sD=km.locStart,cD=km.locEnd,lD=km.hasSameLocStart,pD="(?:(?=.)\\s)",fD=new RegExp("^".concat(pD,"*:")),dD=new RegExp("^".concat(pD,"*::"));function hD(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function mD(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}var vD=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function gD(e){return e&&vD.has(e.type)}function yD(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function bD(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function DD(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function ED(e){return OD(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function CD(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function TD(e){return"get"===e.kind||"set"===e.kind}function xD(e){return TD(e)||lD(e,e.value)}var AD=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),SD=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]),wD=/^(?:skip|[fx]?(?:it|describe|test))$/;function OD(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function kD(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function ND(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function FD(e){return e.quasis.some((function(e){return e.value.raw.includes("\n")}))}function _D(e){return e.extra?e.extra.raw:e.raw}var ID,jD={"==":!0,"!=":!0,"===":!0,"!==":!0},LD={"*":!0,"/":!0,"%":!0},PD={">>":!0,">>>":!0,"<<":!0},MD={},BD=p([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries());try{for(BD.s();!(ID=BD.n()).done;){var RD,VD=d(ID.value,2),UD=VD[0],qD=VD[1],HD=p(qD);try{for(HD.s();!(RD=HD.n()).done;)v=RD.value,MD[v]=UD}catch(KJ){HD.e(KJ)}finally{HD.f()}}}catch(KJ){BD.e(KJ)}finally{BD.f()}function GD(e){return MD[e]}var WD=new WeakMap;function zD(e){if(WD.has(e))return WD.get(e);var t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push.apply(t,l(e.parameters)):Array.isArray(e.params)&&t.push.apply(t,l(e.params)),e.rest&&t.push(e.rest),WD.set(e,t),t}var KD=new WeakMap;function $D(e){if(KD.has(e))return KD.get(e);var t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),KD.set(e,t),t}function QD(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function JD(e){return e&&(e.prettierIgnore||ZD(e,YD.PrettierIgnore))}var YD={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},XD=function(e,t){if("function"==typeof e&&(t=e,e=0),e||t)return function(n,r,i){return!(e&YD.Leading&&!n.leading||e&YD.Trailing&&!n.trailing||e&YD.Dangling&&(n.leading||n.trailing)||e&YD.Block&&!hD(n)||e&YD.Line&&!mD(n)||e&YD.First&&0!==r||e&YD.Last&&r!==i.length-1||e&YD.PrettierIgnore&&!QD(n)||t&&!t(n))}};function ZD(e,t,n){if(!e||!oD(e.comments))return!1;var r=XD(t,n);return!r||e.comments.some(r)}function eE(e,t,n){if(!e||!Array.isArray(e.comments))return[];var r=XD(t,n);return r?e.comments.filter(r):e.comments}function tE(e){return OD(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var nE={getFunctionParameters:zD,iterateFunctionParametersPath:function(e,t){var n=e.getValue(),r=0,i=function(e){return t(e,r++)};n.this&&e.call(i,"this"),Array.isArray(n.parameters)?e.each(i,"parameters"):Array.isArray(n.params)&&e.each(i,"params"),n.rest&&e.call(i,"rest")},getCallArguments:$D,iterateCallArgumentsPath:function(e,t){var n=e.getValue();"ImportExpression"===n.type?(e.call((function(e){return t(e,0)}),"source"),n.attributes&&e.call((function(e){return t(e,1)}),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;var t=zD(e);return t.length>0&&"RestElement"===nD(t).type},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){var t=e.getParentNode();return"declaration"===e.getName()&&gD(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function(e){return oD(e)&&hD(e[0])&&dD.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&oD(e.trailingComments)&&hD(e.trailingComments[0])&&fD.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return CD(t)?JD(t):ZD(t,YD.Leading,(function(t){return rD(e,cD(t))}))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||OD(e)||kD(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type},hasNode:function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some((function(t){return e(t,n)}));var r=n(t);return"boolean"==typeof r?r:Object.values(t).some((function(t){return e(t,n)}))},hasIgnoreComment:function(e){return JD(e.getValue())},hasNodeIgnoreComment:JD,identity:function(e){return e},isBinaryish:function(e){return AD.has(e.type)},isBlockComment:hD,isCallLikeExpression:tE,isEnabledHackPipeline:function(e){return Boolean(e.__isUsingHackPipeline)},isLineComment:mD,isPrettierIgnoreComment:QD,isCallExpression:OD,isMemberExpression:kD,isExportDeclaration:gD,isFlowAnnotationComment:function(e,t){var n=sD(t),r=iD(e,cD(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;var t,n=0,r=p(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(DD(i)){if((n+=1)>1)return!0}else if(OD(i)){var o,a=p(i.arguments);try{for(a.s();!(o=a.n()).done;)if(DD(o.value))return!0}catch(KJ){a.e(KJ)}finally{a.f()}}}}catch(KJ){r.e(KJ)}finally{r.f()}return!1},isFunctionNotation:xD,isFunctionOrArrowExpression:DD,isGetterOrSetter:TD,isJestEachTemplateLiteral:function(e,t){var n=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJsxNode:CD,isLiteral:function(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function(e){var t=e.getValue(),n=e.getParentNode();return OD(t)&&OD(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;var r=function(t){return e(t,n+1)},i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&uD(i)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((function(e){return!e.value.raw.includes("\n")}))&&t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every((function(e){return!e.computed&&(e.shorthand||e.value&&r(e.value))})):"ArrayExpression"===t.type?t.elements.every((function(e){return null===e||r(e)})):tE(t)?("ImportExpression"===t.type||e(t.callee,n))&&$D(t).every(r):kD(t)?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMemberish:function(e){return kD(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:yD,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&yD(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"TSMappedType"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||xD(e))},isSimpleType:function(e){return!!e&&(!("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)||!!SD.has(e.type))},isSimpleNumber:ND,isSimpleTemplateLiteral:function(e){var t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");var n=e[t];return 0!==n.length&&n.every((function(e){if(ZD(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(kD(e)){for(var t=e;kD(t);){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(ZD(t=t.object))return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:bD,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&bD(e.key)&&_D(e.key).slice(1,-1)===e.key.value&&(tD(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||ND(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&FD(e)||"TaggedTemplateExpression"===e.type&&FD(e.quasi))&&!rD(t,sD(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(ED(t)&&n&&e(n))return DD(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(?:before|after)(?:Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return ED(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&wD.test(t.callee.name)||function(e){return kD(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&wD.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||bD(t.arguments[0])))return!(t.arguments[2]&&!yD(t.arguments[2]))&&((2===t.arguments.length?DD(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&zD(t.arguments[1]).length<=1)||ED(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!CD(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||lD(e,e.typeAnnotation))},isNextLineEmpty:function(e,t){var n=t.originalText;return aD(n,cD(e))},needsHardlineAfterDanglingComment:function(e){if(!ZD(e))return!1;var t=nD(eE(e,YD.Dangling));return t&&!hD(t)},rawText:_D,shouldPrintComma:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean(PD[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return GD(t)===GD(e)&&"**"!==e&&(!jD[e]||!jD[t])&&!("%"===t&&LD[e]||"%"===e&&LD[t])&&(t===e||!LD[t]||!LD[e])&&(!PD[e]||!PD[t])},startsWithNoLookaheadToken:function e(t,n){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,n);default:return!1}},getPrecedence:GD,hasComment:ZD,getComments:eE,CommentCheckFlags:YD},rE=Ca,iE=Oc.getStringWidth,oE=Oc.getIndentSize,aE=hl.builders,uE=aE.join,sE=aE.hardline,cE=aE.softline,lE=aE.group,pE=aE.indent,fE=aE.align,dE=aE.lineSuffixBoundary,hE=aE.addAlignmentToDoc,mE=hl.printer.printDocToString,vE=hl.utils.mapDoc,gE=nE.isBinaryish,yE=nE.isJestEachTemplateLiteral,bE=nE.isSimpleTemplateLiteral,DE=nE.hasComment,EE=nE.isMemberExpression;function CE(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var TE={printTemplateLiteral:function(e,t,n){var r=e.getValue();if("TemplateLiteral"===r.type&&yE(r,e.getParentNode())){var i=function(e,t,n){var r=e.getNode(),i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some((function(e){return e.length>0}))){t.__inJestEach=!0;var o=e.map(n,"expressions");t.__inJestEach=!1;for(var a=[],u=o.map((function(e){return"${"+mE(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"})),s=[{hasLineBreak:!1,cells:[]}],c=1;c<r.quasis.length;c++){var f=rE(s),h=u[c-1];f.cells.push(h),h.includes("\n")&&(f.hasLineBreak=!0),r.quasis[c].value.raw.includes("\n")&&s.push({hasLineBreak:!1,cells:[]})}var m,v=Math.max.apply(Math,[i.length].concat(l(s.map((function(e){return e.cells.length}))))),g=Array.from({length:v}).fill(0),y=[{cells:i}].concat(l(s.filter((function(e){return e.cells.length>0})))),b=p(y.filter((function(e){return!e.hasLineBreak})));try{for(b.s();!(m=b.n()).done;){var D,E=m.value.cells,C=p(E.entries());try{for(C.s();!(D=C.n()).done;){var T=d(D.value,2),x=T[0],A=T[1];g[x]=Math.max(g[x],iE(A))}}catch(KJ){C.e(KJ)}finally{C.f()}}}catch(KJ){b.e(KJ)}finally{b.f()}return a.push(dE,"`",pE([sE,uE(sE,y.map((function(e){return uE(" | ",e.cells.map((function(t,n){return e.hasLineBreak?t:t+" ".repeat(g[n]-iE(t))})))})))]),sE,"`"),a}}(e,n,t);if(i)return i}var o="expressions";"TSTemplateLiteralType"===r.type&&(o="types");var a=[],u=e.map(t,o),s=bE(r);return s&&(u=u.map((function(e){return mE(e,Object.assign(Object.assign({},n),{},{printWidth:Number.POSITIVE_INFINITY})).formatted}))),a.push(dE,"`"),e.each((function(e){var i=e.getName();if(a.push(t()),i<u.length){var c=n.tabWidth,l=e.getValue(),p=oE(l.value.raw,c),f=u[i];if(!s){var d=r[o][i];(DE(d)||EE(d)||"ConditionalExpression"===d.type||"SequenceExpression"===d.type||"TSAsExpression"===d.type||gE(d))&&(f=[pE([cE,f]),cE])}var h=0===p&&l.value.raw.endsWith("\n")?fE(Number.NEGATIVE_INFINITY,f):hE(f,p,c);a.push(lE(["${",h,dE,"}"]))}}),"quasis"),a.push("`"),a},printTemplateExpressions:function(e,t){return e.map((function(e){return function(e,t){var n=e.getValue(),r=t();return DE(n)&&(r=lE([pE([cE,r]),cE])),["${",r,dE,"}"]}(e,t)}),"expressions")},escapeTemplateCharacters:function(e,t){return vE(e,(function(e){return"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):CE(e):e}))},uncookTemplateElementValue:CE},xE=hl.builders,AE=xE.indent,SE=xE.softline,wE=xE.literalline,OE=xE.dedentToRoot,kE=TE.escapeTemplateCharacters,NE=function(e,t,n){var r=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(function(e,t){return"\\".repeat(t.length/2)+"`"})),i=function(e){var t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(r),o=""!==i;o&&(r=r.replace(new RegExp("^".concat(i),"gm"),""));var a=kE(n(r,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",o?AE([SE,a]):[wE,OE(a)],SE,"`"]},FE=Oc.isNonEmptyArray,_E=hl.builders,IE=_E.indent,jE=_E.hardline,LE=_E.softline,PE=hl.utils,ME=PE.mapDoc,BE=PE.replaceEndOfLine,RE=PE.cleanDoc,VE=TE.printTemplateExpressions,UE=function(e,t,n){var r=e.getValue(),i=r.quasis.map((function(e){return e.value.raw})),o=0;return function(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";var r=function(e,t){if(!FE(t))return e;var n=0,r=ME(RE(e),(function(e){return"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map((function(e,r){return r%2==0?BE(e):(n++,t[e])})):e}));return t.length===n?r:null}(e,n);if(!r)throw new Error("Couldn't insert all the expressions");return["`",IE([jE,r]),LE,"`"]}(n(i.reduce((function(e,t,n){return 0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t}),""),{parser:"scss"},{stripTrailingHardline:!0}),r,VE(e,t))},qE=hl.builders,HE=qE.indent,GE=qE.join,WE=qE.hardline,zE=TE.escapeTemplateCharacters,KE=TE.printTemplateExpressions;function $E(e){var t,n=[],r=!1,i=e.map((function(e){return e.trim()})),o=p(i.entries());try{for(o.s();!(t=o.n()).done;){var a=d(t.value,2),u=a[0],s=a[1];""!==s&&(""===i[u-1]&&r?n.push([WE,s]):n.push(s),r=!0)}}catch(KJ){o.e(KJ)}finally{o.f()}return 0===n.length?null:GE(WE,n)}var QE=function(e,t,n){var r=e.getValue(),i=r.quasis.length;if(1===i&&""===r.quasis[0].value.raw.trim())return"``";for(var o=KE(e,t),a=[],u=0;u<i;u++){var s=0===u,c=u===i-1,l=r.quasis[u].value.cooked,p=l.split("\n"),f=p.length,d=o[u],h=f>2&&""===p[0].trim()&&""===p[1].trim(),m=f>2&&""===p[f-1].trim()&&""===p[f-2].trim(),v=p.every((function(e){return/^\s*(?:#[^\n\r]*)?$/.test(e)}));if(!c&&/#[^\n\r]*$/.test(p[f-1]))return null;var g=null;(g=v?$E(p):n(l,{parser:"graphql"},{stripTrailingHardline:!0}))?(g=zE(g,!1),!s&&h&&a.push(""),a.push(g),!c&&m&&a.push("")):s||c||!h||a.push(""),d&&a.push(d)}return["`",HE([WE,GE(WE,a)]),WE,"`"]},JE=hl.builders,YE=JE.indent,XE=JE.line,ZE=JE.hardline,eC=JE.group,tC=hl.utils.mapDoc,nC=TE.printTemplateExpressions,rC=TE.uncookTemplateElementValue,iC=0,oC=function(e,t,n,r,i){var o=i.parser,a=e.getValue(),u=iC;iC=iC+1>>>0;var s=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(u,"_IN_JS")},c=a.quasis.map((function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+s(t)})).join(""),l=nC(e,t);if(0===l.length&&0===c.trim().length)return"``";var p=new RegExp(s("(\\d+)"),"g"),f=0,d=n(c,{parser:o,__onHtmlRoot:function(e){f=e.children.length}},{stripTrailingHardline:!0}),h=tC(d,(function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(p),i=0;i<n.length;i++){var o=n[i];if(i%2!=0){var a=Number(o);t.push(l[a])}else o&&(o=rC(o),r.__embeddedInHtml&&(o=o.replace(/<\/(script)\b/gi,"<\\/$1")),t.push(o))}return t})),m=/^\s/.test(c)?" ":"",v=/\s$/.test(c)?" ":"",g="ignore"===r.htmlWhitespaceSensitivity?ZE:m&&v?XE:null;return eC(g?["`",YE([g,eC(h)]),g,"`"]:["`",m,f>1?YE(eC(h)):eC(h),v,"`"])},aC=nE.hasComment,uC=nE.CommentCheckFlags,sC=nE.isObjectProperty,cC=NE,lC=UE,pC=QE,fC=oC;function dC(e){return function(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}(e)||function(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(n.type){case"MemberExpression":return mC(n.object)||vC(n);case"CallExpression":return mC(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(mC(n.callee.object.object)||vC(n.callee.object))||"CallExpression"===n.callee.object.type&&mC(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}(e)||function(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}(e)||function(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return sC(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat(hC))}(e)?"css":function(e){var t=e.getValue(),n=e.getParentNode();return gC(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)?"graphql":function(e){return gC(e.getValue(),"HTML")||e.match((function(e){return"TemplateLiteral"===e.type}),(function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}))}(e)?"html":function(e){return e.match.apply(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return sC(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat(hC))}(e)?"angular":function(e){var t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}(e)?"markdown":void 0}var hC=[function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}];function mC(e){return"Identifier"===e.type&&"styled"===e.name}function vC(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function gC(e,t){return aC(e,uC.Block|uC.Leading,(function(e){return e.value===" ".concat(t," ")}))}var yC=function(e,t,n,r){var i=e.getValue();if("TemplateLiteral"===i.type&&!function(e){return e.quasis.some((function(e){return null===e.value.cooked}))}(i)){var o=dC(e);return o?"markdown"===o?cC(e,t,n):"css"===o?lC(e,t,n):"graphql"===o?pC(e,t,n):"html"===o||"angular"===o?fC(e,t,n,r,{parser:o}):void 0:void 0}},bC=nE.isBlockComment,DC=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),EC=function(e){var t,n=p(e.quasis);try{for(n.s();!(t=n.n()).done;)delete t.value.value}catch(KJ){n.e(KJ)}finally{n.f()}};function CC(e,t,n){if("Program"===e.type&&delete t.sourceType,"BigIntLiteral"!==e.type&&"BigIntLiteralTypeAnnotation"!==e.type||t.value&&(t.value=t.value.toLowerCase()),"BigIntLiteral"!==e.type&&"Literal"!==e.type||t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if("Property"!==e.type&&"ObjectProperty"!==e.type&&"MethodDefinition"!==e.type&&"ClassProperty"!==e.type&&"ClassMethod"!==e.type&&"PropertyDefinition"!==e.type&&"TSDeclareMethod"!==e.type&&"TSPropertySignature"!==e.type&&"ObjectTypeProperty"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"NumericLiteral"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some((function(e){return"jsx"===e.name.name}))){var r,i=p(t.children);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.type,u=o.expression;"JSXExpressionContainer"===a&&"TemplateLiteral"===u.type&&EC(u)}}catch(KJ){i.e(KJ)}finally{i.f()}}"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&EC(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));var s=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===s.type&&"Component"===s.callee.name&&1===s.arguments.length){var c,l=e.expression.arguments[0].properties,f=p(t.expression.arguments[0].properties.entries());try{for(f.s();!(c=f.n()).done;){var h=d(c.value,2),m=h[0],v=h[1];switch(l[m].key.name){case"styles":"ArrayExpression"===v.value.type&&EC(v.value.elements[0]);break;case"template":"TemplateLiteral"===v.value.type&&EC(v.value)}}}catch(KJ){f.e(KJ)}finally{f.f()}}if("TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||EC(t.quasi),"TemplateLiteral"===e.type){var g=e.leadingComments&&e.leadingComments.some((function(e){return bC(e)&&["GraphQL","HTML"].some((function(t){return e.value===" ".concat(t," ")}))}));(g||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&EC(t)}return"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}CC.ignoredProperties=DC;var TC=CC,xC={},AC={exports:{}},SC=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0!==t.length){var n=t.filter((function(e){return"\r\n"===e})).length;return n>t.length-n?"\r\n":"\n"}};function wC(){var e=If;return wC=function(){return e},e}function OC(){var e=function(e){return e&&e.__esModule?e:{default:e}}(AC.exports);return OC=function(){return e},e}AC.exports=SC,AC.exports.graceful=function(e){return"string"==typeof e&&SC(e)||"\n"},Object.defineProperty(xC,"__esModule",{value:!0}),xC.extract=function(e){var t=e.match(FC);return t?t[0].trimLeft():""},xC.strip=function(e){var t=e.match(FC);return t&&t[0]?e.substring(t[0].length):e},xC.parse=function(e){return BC(e).pragmas},xC.parseWithComments=BC,xC.print=function(e){var t=e.comments,n=void 0===t?"":t,r=e.pragmas,i=void 0===r?{}:r,o=(0,OC().default)(n)||wC().EOL,a=" *",u=Object.keys(i),s=u.map((function(e){return RC(e,i[e])})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return" * "+e+o})).join("");if(!n){if(0===u.length)return"";if(1===u.length&&!Array.isArray(i[u[0]])){var c=i[u[0]];return"".concat("/**"," ").concat(RC(u[0],c)[0]).concat(" */")}}var l=n.split(o).map((function(e){return"".concat(a," ").concat(e)})).join(o)+o;return"/**"+o+(n?l:"")+(n&&u.length?a+o:"")+s+" */"};var kC=/\*\/$/,NC=/^\/\*\*/,FC=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_C=/(^|\s+)\/\/([^\r\n]*)/g,IC=/^(\r?\n)+/,jC=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,LC=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,PC=/(\r?\n|^) *\* ?/g,MC=[];function BC(e){var t=(0,OC().default)(e)||wC().EOL;e=e.replace(NC,"").replace(kC,"").replace(PC,"$1");for(var n="";n!==e;)n=e,e=e.replace(jC,"".concat(t,"$1 $2").concat(t));e=e.replace(IC,"").trimRight();for(var r,i=Object.create(null),o=e.replace(LC,"").replace(IC,"").trimRight();r=LC.exec(e);){var a=r[2].replace(_C,"");"string"==typeof i[r[1]]||Array.isArray(i[r[1]])?i[r[1]]=MC.concat(i[r[1]],a):i[r[1]]=a}return{comments:o,pragmas:i}}function RC(e,t){return MC.concat(t).map((function(t){return"@".concat(e," ").concat(t).trim()}))}var VC=xC.parseWithComments,UC=xC.strip,qC=xC.extract,HC=xC.print,GC=Oc.getShebang,WC=kc.normalizeEndOfLine;function zC(e){var t=GC(e);t&&(e=e.slice(t.length+1));var n=qC(e),r=VC(n);return{shebang:t,text:e,pragmas:r.pragmas,comments:r.comments}}var KC={hasPragma:function(e){var t=Object.keys(zC(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){var t=zC(e),n=t.shebang,r=t.text,i=t.pragmas,o=t.comments,a=UC(r),u=HC({pragmas:Object.assign({format:""},i),comments:o.trimStart()});return(n?"".concat(n,"\n"):"")+WC(u)+(a.startsWith("\n")?"\n":"\n\n")+a}},$C=Oc.getLast,QC=Oc.hasNewline,JC=Oc.getNextNonSpaceNonCommentCharacterIndexWithStartIndex,YC=Oc.getNextNonSpaceNonCommentCharacter,XC=Oc.hasNewlineInRange,ZC=Oc.addLeadingComment,eT=Oc.addTrailingComment,tT=Oc.addDanglingComment,nT=Oc.getNextNonSpaceNonCommentCharacterIndex,rT=Oc.isNonEmptyArray,iT=nE.isBlockComment,oT=nE.getFunctionParameters,aT=nE.isPrettierIgnoreComment,uT=nE.isJsxNode,sT=nE.hasFlowShorthandAnnotationComment,cT=nE.hasFlowAnnotationComment,lT=nE.hasIgnoreComment,pT=nE.isCallLikeExpression,fT=nE.getCallArguments,dT=nE.isCallExpression,hT=nE.isMemberExpression,mT=nE.isObjectProperty,vT=nE.getComments,gT=nE.CommentCheckFlags,yT=km.locStart,bT=km.locEnd;function DT(e,t){var n=(e.body||e.properties).find((function(e){return"EmptyStatement"!==e.type}));n?ZC(n,t):tT(e,t)}function ET(e,t){"BlockStatement"===e.type?DT(e,t):ZC(e,t)}function CT(e){var t=e.comment,n=e.followingNode;return!(!n||!YT(t))&&(ZC(n,t),!0)}function TT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text;return!(!r||"IfStatement"!==r.type||!i)&&(")"===YC(o,t,bT)?(eT(n,t),!0):n===r.consequent&&i===r.alternate?("BlockStatement"===n.type?eT(n,t):tT(r,t),!0):"BlockStatement"===i.type?(DT(i,t),!0):"IfStatement"===i.type?(ET(i.consequent,t),!0):r.consequent===i&&(ZC(i,t),!0))}function xT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text;return!(!r||"WhileStatement"!==r.type||!i)&&(")"===YC(o,t,bT)?(eT(n,t),!0):"BlockStatement"===i.type?(DT(i,t),!0):r.body===i&&(ZC(i,t),!0))}function AT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;return!(!r||"TryStatement"!==r.type&&"CatchClause"!==r.type||!i)&&("CatchClause"===r.type&&n?(eT(n,t),!0):"BlockStatement"===i.type?(DT(i,t),!0):"TryStatement"===i.type?(ET(i.finalizer,t),!0):"CatchClause"===i.type&&(ET(i.body,t),!0))}function ST(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;return!(!hT(n)||!r||"Identifier"!==r.type)&&(ZC(n,t),!0)}function wT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text,a=n&&!XC(o,bT(n),yT(t));return!(n&&a||!r||"ConditionalExpression"!==r.type&&"TSConditionalType"!==r.type||!i)&&(ZC(i,t),!0)}function OT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode;return!(!mT(r)||!r.shorthand||r.key!==n||"AssignmentPattern"!==r.value.type)&&(eT(r.value.left,t),!0)}function kT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;if(r&&("ClassDeclaration"===r.type||"ClassExpression"===r.type||"DeclareClass"===r.type||"DeclareInterface"===r.type||"InterfaceDeclaration"===r.type||"TSInterfaceDeclaration"===r.type)){if(rT(r.decorators)&&(!i||"Decorator"!==i.type))return eT($C(r.decorators),t),!0;if(r.body&&i===r.body)return DT(r.body,t),!0;if(i)for(var o=0,a=["implements","extends","mixins"];o<a.length;o++){var u=a[o];if(r[u]&&i===r[u][0])return!n||n!==r.id&&n!==r.typeParameters&&n!==r.superClass?tT(r,t,u):eT(n,t),!0}}return!1}function NT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.text;return(r&&n&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===n.type&&r.key===n&&":"!==YC(i,n,bT)||!(!n||!r||"Decorator"!==n.type||"ClassMethod"!==r.type&&"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type&&"TSAbstractPropertyDefinition"!==r.type&&"TSAbstractMethodDefinition"!==r.type&&"TSDeclareMethod"!==r.type&&"MethodDefinition"!==r.type))&&(eT(n,t),!0)}function FT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.text;return"("===YC(i,t,bT)&&!(!n||!r||"FunctionDeclaration"!==r.type&&"FunctionExpression"!==r.type&&"ClassMethod"!==r.type&&"MethodDefinition"!==r.type&&"ObjectMethod"!==r.type)&&(eT(n,t),!0)}function _T(e){var t=e.comment,n=e.enclosingNode,r=e.text;if(!n||"ArrowFunctionExpression"!==n.type)return!1;var i=nT(r,t,bT);return!1!==i&&"=>"===r.slice(i,i+2)&&(tT(n,t),!0)}function IT(e){var t=e.comment,n=e.enclosingNode,r=e.text;return")"===YC(r,t,bT)&&(n&&(JT(n)&&0===oT(n).length||pT(n)&&0===fT(n).length)?(tT(n,t),!0):!(!n||"MethodDefinition"!==n.type&&"TSAbstractMethodDefinition"!==n.type||0!==oT(n.value).length)&&(tT(n.value,t),!0))}function jT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode,o=e.text;if(n&&"FunctionTypeParam"===n.type&&r&&"FunctionTypeAnnotation"===r.type&&i&&"FunctionTypeParam"!==i.type)return eT(n,t),!0;if(n&&("Identifier"===n.type||"AssignmentPattern"===n.type)&&r&&JT(r)&&")"===YC(o,t,bT))return eT(n,t),!0;if(r&&"FunctionDeclaration"===r.type&&i&&"BlockStatement"===i.type){var a=function(){var e=oT(r);if(e.length>0)return JC(o,bT($C(e)));var t=JC(o,bT(r.id));return!1!==t&&JC(o,t+1)}();if(yT(t)>a)return DT(i,t),!0}return!1}function LT(e){var t=e.comment,n=e.enclosingNode;return!(!n||"ImportSpecifier"!==n.type)&&(ZC(n,t),!0)}function PT(e){var t=e.comment,n=e.enclosingNode;return!(!n||"LabeledStatement"!==n.type)&&(ZC(n,t),!0)}function MT(e){var t=e.comment,n=e.enclosingNode;return!(!n||"ContinueStatement"!==n.type&&"BreakStatement"!==n.type||n.label)&&(eT(n,t),!0)}function BT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode;return!!(dT(r)&&n&&r.callee===n&&r.arguments.length>0)&&(ZC(r.arguments[0],t),!0)}function RT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;return!r||"UnionTypeAnnotation"!==r.type&&"TSUnionType"!==r.type?(i&&("UnionTypeAnnotation"===i.type||"TSUnionType"===i.type)&&aT(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1):(aT(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!n&&(eT(n,t),!0))}function VT(e){var t=e.comment,n=e.enclosingNode;return!!mT(n)&&(ZC(n,t),!0)}function UT(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode,i=e.ast,o=e.isLastComment;return i&&i.body&&0===i.body.length?(o?tT(i,t):ZC(i,t),!0):n&&"Program"===n.type&&0===n.body.length&&!rT(n.directives)?(o?tT(n,t):ZC(n,t),!0):!(!r||"Program"!==r.type||0!==r.body.length||!n||"ModuleExpression"!==n.type)&&(tT(r,t),!0)}function qT(e){var t=e.comment,n=e.enclosingNode;return!(!n||"ForInStatement"!==n.type&&"ForOfStatement"!==n.type)&&(ZC(n,t),!0)}function HT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.text;return!!(n&&"ImportSpecifier"===n.type&&r&&"ImportDeclaration"===r.type&&QC(i,bT(t)))&&(eT(n,t),!0)}function GT(e){var t=e.comment,n=e.enclosingNode;return!(!n||"AssignmentPattern"!==n.type)&&(ZC(n,t),!0)}function WT(e){var t=e.comment,n=e.enclosingNode;return!(!n||"TypeAlias"!==n.type)&&(ZC(n,t),!0)}function zT(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;return!(!n||"VariableDeclarator"!==n.type&&"AssignmentExpression"!==n.type||!r||"ObjectExpression"!==r.type&&"ArrayExpression"!==r.type&&"TemplateLiteral"!==r.type&&"TaggedTemplateExpression"!==r.type&&!iT(t))&&(ZC(r,t),!0)}function KT(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode,i=e.text;return!(r||!n||"TSMethodSignature"!==n.type&&"TSDeclareFunction"!==n.type&&"TSAbstractMethodDefinition"!==n.type||";"!==YC(i,t,bT))&&(eT(n,t),!0)}function $T(e){var t=e.comment,n=e.enclosingNode,r=e.followingNode;if(aT(t)&&n&&"TSMappedType"===n.type&&r&&"TSTypeParameter"===r.type&&r.constraint)return n.prettierIgnore=!0,t.unignore=!0,!0}function QT(e){var t=e.comment,n=e.precedingNode,r=e.enclosingNode,i=e.followingNode;return!(!r||"TSMappedType"!==r.type)&&(i&&"TSTypeParameter"===i.type&&i.name?(ZC(i.name,t),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(eT(n.constraint,t),!0))}function JT(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function YT(e){return iT(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var XT={handleOwnLineComment:function(e){return[$T,jT,ST,TT,xT,AT,kT,LT,qT,RT,UT,HT,GT,NT,PT].some((function(t){return t(e)}))},handleEndOfLineComment:function(e){return[CT,jT,wT,LT,TT,xT,AT,kT,PT,BT,VT,UT,WT,zT].some((function(t){return t(e)}))},handleRemainingComment:function(e){return[$T,TT,xT,OT,IT,NT,UT,_T,FT,QT,MT,KT].some((function(t){return t(e)}))},isTypeCastComment:YT,getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===oT(e.value).length&&!e.value.returnType&&!rT(e.value.typeParameters)&&e.value.body)return[].concat(l(e.decorators||[]),[e.key,e.value.body])},willPrintOwnComments:function(e){var t=e.getValue(),n=e.getParentNode();return(t&&(uT(t)||sT(t)||dT(n)&&function(e){return cT(vT(e,gT.Leading))||cT(vT(e,gT.Trailing))}(t))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!lT(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}},ZT=Ca,ex=nE.getFunctionParameters,tx=nE.getLeftSidePathName,nx=nE.hasFlowShorthandAnnotationComment,rx=nE.hasNakedLeftSide,ix=nE.hasNode,ox=nE.isBitwiseOperator,ax=nE.startsWithNoLookaheadToken,ux=nE.shouldFlatten,sx=nE.getPrecedence,cx=nE.isCallExpression,lx=nE.isMemberExpression,px=nE.isObjectProperty;function fx(e,t){var n=e.getParentNode();if(!n)return!1;var r=e.getName(),i=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(i)&&dx(e))return!0;if(function(e){return"BlockStatement"===e.type||"BreakStatement"===e.type||"ClassBody"===e.type||"ClassDeclaration"===e.type||"ClassMethod"===e.type||"ClassProperty"===e.type||"PropertyDefinition"===e.type||"ClassPrivateProperty"===e.type||"ContinueStatement"===e.type||"DebuggerStatement"===e.type||"DeclareClass"===e.type||"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type||"DeclareFunction"===e.type||"DeclareInterface"===e.type||"DeclareModule"===e.type||"DeclareModuleExports"===e.type||"DeclareVariable"===e.type||"DoWhileStatement"===e.type||"EnumDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExpressionStatement"===e.type||"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type||"FunctionDeclaration"===e.type||"IfStatement"===e.type||"ImportDeclaration"===e.type||"InterfaceDeclaration"===e.type||"LabeledStatement"===e.type||"MethodDefinition"===e.type||"ReturnStatement"===e.type||"SwitchStatement"===e.type||"ThrowStatement"===e.type||"TryStatement"===e.type||"TSDeclareFunction"===e.type||"TSEnumDeclaration"===e.type||"TSImportEqualsDeclaration"===e.type||"TSInterfaceDeclaration"===e.type||"TSModuleDeclaration"===e.type||"TSNamespaceExportDeclaration"===e.type||"TypeAlias"===e.type||"VariableDeclaration"===e.type||"WhileStatement"===e.type||"WithStatement"===e.type}(i))return!1;if("flow"!==t.parser&&nx(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name))||"left"===r&&"async"===i.name&&"ForOfStatement"===n.type&&!n.await;switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===r&&("ArrowFunctionExpression"===i.type||"AssignmentExpression"===i.type||"AwaitExpression"===i.type||"BinaryExpression"===i.type||"ConditionalExpression"===i.type||"LogicalExpression"===i.type||"NewExpression"===i.type||"ObjectExpression"===i.type||"ParenthesizedExpression"===i.type||"SequenceExpression"===i.type||"TaggedTemplateExpression"===i.type||"UnaryExpression"===i.type||"UpdateExpression"===i.type||"YieldExpression"===i.type||"TSNonNullExpression"===i.type))return!0;break;case"ExportDefaultDeclaration":return hx(e,t)||"SequenceExpression"===i.type;case"Decorator":if("expression"===r){for(var o=!1,a=!1,u=i;u;)switch(u.type){case"MemberExpression":a=!0,u=u.object;break;case"CallExpression":if(a||o)return"typescript"!==t.parser;o=!0,u=u.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ExpressionStatement":if(ax(i,!0))return!0;break;case"ArrowFunctionExpression":if("body"===r&&"SequenceExpression"!==i.type&&ax(i,!1))return!0}switch(i.type){case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"left"===r&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type)return!0;if("in"===i.operator&&function(e){for(var t=0,n=e.getValue();n;){var r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}(e))return!0;if("|>"===i.operator&&i.extra&&i.extra.parenthesized){var s=e.getParentNode(1);if("BinaryExpression"===s.type&&"|>"===s.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==i.type;case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r;case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"AssignmentExpression":case"AssignmentPattern":return"left"===r&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return n.operator!==i.operator;case"BinaryExpression":var c=i.operator,l=i.type;if(!c&&"TSTypeAssertion"!==l)return!0;var p=sx(c),f=n.operator,d=sx(f);return d>p||"right"===r&&d===p||d===p&&!ux(f,c)||(d<p&&"%"===c?"+"===f||"-"===f:!!ox(f));default:return!1}case"SequenceExpression":switch(n.type){case"ReturnStatement":case"ForStatement":return!1;case"ExpressionStatement":return"expression"!==r;case"ArrowFunctionExpression":return"body"!==r;default:return!0}case"YieldExpression":if("UnaryExpression"===n.type||"AwaitExpression"===n.type||"TSAsExpression"===n.type||"TSNonNullExpression"===n.type)return!0;case"AwaitExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"BinaryExpression":return!(!i.argument&&"|>"===n.operator);default:return!1}case"TSConditionalType":if("extendsType"===r&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===r&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!i.types||i.types.length>1))return!0;case"TSInferType":if("TSInferType"===i.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===r&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type||"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"FunctionTypeAnnotation":var h="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===h.type||"IntersectionTypeAnnotation"===h.type||"ArrayTypeAnnotation"===h.type||"objectType"===r&&("IndexedAccessType"===h.type||"OptionalIndexedAccessType"===h.type)||"NullableTypeAnnotation"===h.type||"FunctionTypeParam"===n.type&&null===n.name&&ex(i).some((function(e){return e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type}));case"OptionalIndexedAccessType":return"objectType"===r&&"IndexedAccessType"===n.type;case"TypeofTypeAnnotation":return"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof i.value&&"ExpressionStatement"===n.type&&!n.directive){var m=e.getParentNode(1);return"Program"===m.type||"BlockStatement"===m.type}return"object"===r&&"MemberExpression"===n.type&&"number"==typeof i.value;case"AssignmentExpression":var v=e.getParentNode(1);return"body"===r&&"ArrowFunctionExpression"===n.type||("key"!==r||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==r&&"update"!==r||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===i.left.type:("key"!==r||"TSPropertySignature"!==n.type)&&"AssignmentExpression"!==n.type&&("SequenceExpression"!==n.type||!v||"ForStatement"!==v.type||v.init!==n&&v.update!==n)&&("value"!==r||"Property"!==n.type||!v||"ObjectPattern"!==v.type||!v.properties.includes(n))&&"NGChainedExpression"!==n.type);case"ConditionalExpression":switch(n.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"ConditionalExpression":return"test"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return"|>"!==n.operator||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":return"NewExpression"===n.type&&"callee"===r;case"OptionalMemberExpression":case"OptionalCallExpression":var g=e.getParentNode(1);if("object"===r&&"MemberExpression"===n.type||"callee"===r&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===g.type&&g.object===n)return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type))for(var y=i;y;)switch(y.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":y=y.object;break;case"TaggedTemplateExpression":y=y.tag;break;case"TSNonNullExpression":y=y.expression;break;default:return!1}return!1;case"BindExpression":return"callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===r&&lx(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!i.extra||!i.extra.parenthesized)||"ArrayExpression"===n.type||cx(n)&&n.arguments[r]===i||"right"===r&&"NGPipeExpression"===n.type||"property"===r&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"left"===r&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&!cx(n)&&!px(n)&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return ix(e,(function(e){return"ObjectTypeAnnotation"===e.type&&ix(e,(function(e){return"FunctionTypeAnnotation"===e.type||void 0}))||void 0}))}(i)}return!1}function dx(e){var t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(dx);break;case"ObjectProperty":if("value"===r){var i=e.getParentNode(1);return ZT(i.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(dx);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(dx);break;case"UnaryExpression":if(n.prefix)return e.callParent(dx)}return!1}function hx(e,t){var n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!fx(e,t):!(!rx(n)||"ExportDefaultDeclaration"!==r.type&&fx(e,t))&&e.call.apply(e,[function(e){return hx(e,t)}].concat(l(tx(e,n))))}var mx=fx,vx=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}},gx=hl.builders,yx=gx.join,bx=gx.line,Dx=gx.group,Ex=gx.softline,Cx=gx.indent,Tx={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){var r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call((function(e){var t=yx([",",bx],e.map(n,"params"));return 1===e.getValue().params.length?t:["(",Cx([Ex,Dx(t)]),Ex,")"]}),"program","body",0):t.__isVueBindings?e.call((function(e){return yx([",",bx],e.map(n,"params"))}),"program","body",0):void 0}},xx=ky.printComments,Ax=Oc.getLast,Sx=hl.builders,wx=Sx.join,Ox=Sx.line,kx=Sx.softline,Nx=Sx.group,Fx=Sx.indent,_x=Sx.align,Ix=Sx.ifBreak,jx=Sx.indentIfBreak,Lx=hl.utils,Px=Lx.cleanDoc,Mx=Lx.getDocParts,Bx=Lx.isConcat,Rx=nE.hasLeadingOwnLineComment,Vx=nE.isBinaryish,Ux=nE.isJsxNode,qx=nE.shouldFlatten,Hx=nE.hasComment,Gx=nE.CommentCheckFlags,Wx=nE.isCallExpression,zx=nE.isMemberExpression,Kx=nE.isObjectProperty,$x=nE.isEnabledHackPipeline,Qx=0;function Jx(e,t,n,r,i){var o=e.getValue();if(!Vx(o))return[Nx(t())];var a=[];qx(o.operator,o.left.operator)?a=e.call((function(e){return Jx(e,t,n,!0,i)}),"left"):a.push(Nx(t("left")));var u,s=Yx(o),c=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===n.parser)&&!Rx(n.originalText,o.right),l="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&o.arguments.length>0?Nx(Fx([kx,": ",wx([kx,":",Ix(" ")],e.map(t,"arguments").map((function(e){return _x(2,Nx(e))})))])):"";if(s)u=[l," ",t("right"),p];else{var f=$x(n)&&"|>"===l?e.call((function(e){return Jx(e,t,n,!0,i)}),"right"):t("right");u=[c?Ox:"",l,c?" ":Ox,f,p]}var d=e.getParentNode(),h=Hx(o.left,Gx.Trailing|Gx.Line),m=h||!(i&&"LogicalExpression"===o.type)&&d.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;if(a.push(c?"":" ",m?Nx(u,{shouldBreak:h}):u),r&&Hx(o)){var v=Px(xx(e,a,n));return Bx(v)||"fill"===v.type?Mx(v):[v]}return a}function Yx(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||!!Ux(e.right))}var Xx={printBinaryishExpression:function(e,t,n){var r=e.getValue(),i=e.getParentNode(),o=e.getParentNode(1),a=r!==i.body&&("IfStatement"===i.type||"WhileStatement"===i.type||"SwitchStatement"===i.type||"DoWhileStatement"===i.type),u=$x(t)&&"|>"===r.operator,s=Jx(e,n,t,!1,a);if(a)return s;if(u)return Nx(s);if(Wx(i)&&i.callee===r||"UnaryExpression"===i.type||zx(i)&&!i.computed)return Nx([Fx([kx].concat(l(s))),kx]);var c="ReturnStatement"===i.type||"ThrowStatement"===i.type||"JSXExpressionContainer"===i.type&&"JSXAttribute"===o.type||"|"!==r.operator&&"JsExpressionRoot"===i.type||"NGPipeExpression"!==r.type&&("NGRoot"===i.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===i.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||r===i.body&&"ArrowFunctionExpression"===i.type||r!==i.body&&"ForStatement"===i.type||"ConditionalExpression"===i.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&!Wx(o)||"TemplateLiteral"===i.type,p="AssignmentExpression"===i.type||"VariableDeclarator"===i.type||"ClassProperty"===i.type||"PropertyDefinition"===i.type||"TSAbstractPropertyDefinition"===i.type||"ClassPrivateProperty"===i.type||Kx(i),f=Vx(r.left)&&qx(r.operator,r.left.operator);if(c||Yx(r)&&!f||!Yx(r)&&p)return Nx(s);if(0===s.length)return"";var d=Ux(r.right),h=s.findIndex((function(e){return"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type})),m=s.slice(0,-1===h?1:h+1),v=s.slice(m.length,d?-1:void 0),g=Symbol("logicalChain-"+ ++Qx),y=Nx([].concat(l(m),[Fx(v)]),{id:g});if(!d)return y;var b=Ax(s);return Nx([y,jx(b,{groupId:g})])},shouldInlineLogicalExpression:Yx},Zx=hl.builders,eA=Zx.join,tA=Zx.line,nA=Zx.group,rA=nE.hasNode,iA=nE.hasComment,oA=nE.getComments,aA=Xx.printBinaryishExpression;function uA(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}var sA={printAngular:function(e,t,n){var r=e.getValue();if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return[n("node"),iA(r.node)?" //"+oA(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return aA(e,t,n);case"NGChainedExpression":return nA(eA([";",tA],e.map((function(e){return function(e){return rA(e.getValue(),(function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}}))}(e)?n():["(",n(),")"]}),"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[r.prefix,": ",r.value.trim()];case"NGMicrosyntax":return e.map((function(e,t){return[0===t?"":uA(e.getValue(),t,r)?" ":[";",tA],n()]}),"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":var i=e.getName(),o=e.getParentNode(),a=uA(r,i,o)||(1===i&&("then"===r.key.name||"else"===r.key.name)||2===i&&"else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===o.body[i-1].type&&"then"===o.body[i-1].key.name)&&"NGMicrosyntaxExpression"===o.body[0].type;return[n("key"),a?" ":": ",n("expression")];case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Error("Unknown Angular node type: ".concat(JSON.stringify(r.type),"."))}}},cA=ky.printComments,lA=ky.printDanglingComments,pA=hl.builders,fA=pA.line,dA=pA.hardline,hA=pA.softline,mA=pA.group,vA=pA.indent,gA=pA.conditionalGroup,yA=pA.fill,bA=pA.ifBreak,DA=pA.lineSuffixBoundary,EA=pA.join,CA=hl.utils.willBreak,TA=Oc.getLast,xA=Oc.getPreferredQuote,AA=nE.isJsxNode,SA=nE.rawText,wA=nE.isLiteral,OA=nE.isCallExpression,kA=nE.isStringLiteral,NA=nE.isBinaryish,FA=nE.hasComment,_A=nE.CommentCheckFlags,IA=nE.hasNodeIgnoreComment,jA=mx,LA=XT.willPrintOwnComments,PA=function(e){return""===e||e===fA||e===dA||e===hA};function MA(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return wA(t)&&!WA(t)}(r))return[n("openingElement"),n("closingElement")];var i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),o="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[i].concat(l(e.map(n,"children")),[o]);r.children=r.children.map((function(e){return function(e){return"JSXExpressionContainer"===e.type&&wA(e.expression)&&" "===e.expression.value&&!FA(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e}));for(var a=r.children.some(AA),u=r.children.filter((function(e){return"JSXExpressionContainer"===e.type})).length>1,s="JSXElement"===r.type&&r.openingElement.attributes.length>1,c=CA(i)||a||s||u,f="mdx"===e.getParentNode().rootMarker,h=t.singleQuote?"{' '}":'{" "}',m=f?" ":bA([h,hA]," "),v=function(e,t,n,r,i){var o=[];return e.each((function(e,t,a){var u=e.getValue();if(wA(u)){var s=SA(u);if(WA(u)){var c,l=s.split(qA);if(""===l[0]){if(o.push(""),l.shift(),/\n/.test(l[0])){var f=a[t+1];o.push(RA(i,l[1],u,f))}else o.push(r);l.shift()}if(""===TA(l)&&(l.pop(),c=l.pop()),0===l.length)return;var h,m=p(l.entries());try{for(m.s();!(h=m.n()).done;){var v=d(h.value,2),g=v[0],y=v[1];g%2==1?o.push(fA):o.push(y)}}catch(KJ){m.e(KJ)}finally{m.f()}if(void 0!==c)if(/\n/.test(c)){var b=a[t+1];o.push(RA(i,TA(o),u,b))}else o.push(r);else{var D=a[t+1];o.push(BA(i,TA(o),u,D))}}else/\n/.test(s)?s.match(/\n/g).length>1&&o.push("",dA):o.push("",r)}else{var E=n();o.push(E);var C=a[t+1];if(C&&WA(C)){var T=GA(SA(C)).split(qA)[0];o.push(BA(i,T,u,C))}else o.push(dA)}}),"children"),o}(e,0,n,m,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),g=r.children.some((function(e){return WA(e)})),y=v.length-2;y>=0;y--){var b=""===v[y]&&""===v[y+1],D=v[y]===dA&&""===v[y+1]&&v[y+2]===dA,E=(v[y]===hA||v[y]===dA)&&""===v[y+1]&&v[y+2]===m,C=v[y]===m&&""===v[y+1]&&(v[y+2]===hA||v[y+2]===dA),T=v[y]===m&&""===v[y+1]&&v[y+2]===m,x=v[y]===hA&&""===v[y+1]&&v[y+2]===dA||v[y]===dA&&""===v[y+1]&&v[y+2]===hA;D&&g||b||E||T||x?v.splice(y,2):C&&v.splice(y+1,2)}for(;v.length>0&&PA(TA(v));)v.pop();for(;v.length>1&&PA(v[0])&&PA(v[1]);)v.shift(),v.shift();var A,S=[],w=p(v.entries());try{for(w.s();!(A=w.n()).done;){var O=d(A.value,2),k=O[0],N=O[1];if(N===m){if(1===k&&""===v[k-1]){if(2===v.length){S.push(h);continue}S.push([h,dA]);continue}if(k===v.length-1){S.push(h);continue}if(""===v[k-1]&&v[k-2]===dA){S.push(h);continue}}S.push(N),CA(N)&&(c=!0)}}catch(KJ){w.e(KJ)}finally{w.f()}var F=g?yA(S):mA(S,{shouldBreak:!0});if(f)return F;var _=mA([i,vA([dA,F]),dA,o]);return c?_:gA([mA([i].concat(l(v),[o])),_])}function BA(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?hA:dA:hA}function RA(e,t,n,r){return e?dA:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?dA:hA:dA}function VA(e,t,n){return function(e,t,n){var r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;var i=e.match(void 0,(function(e){return"ArrowFunctionExpression"===e.type}),OA,(function(e){return"JSXExpressionContainer"===e.type})),o=jA(e,n);return mA([o?"":bA("("),vA([hA,t]),hA,o?"":bA(")")],{shouldBreak:i})}(e,cA(e,MA(e,t,n),t),t)}function UA(e,t,n){var r=e.getValue();return["{",e.call((function(e){var r=["...",n()],i=e.getValue();return FA(i)&&LA(e)?[vA([hA,cA(e,r,t)]),hA]:r}),"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}var qA=new RegExp("([ \n\r\t]+)"),HA=new RegExp("[^ \n\r\t]"),GA=function(e){return e.replace(new RegExp("(?:^"+qA.source+"|"+qA.source+"$)"),"")};function WA(e){return wA(e)&&(HA.test(SA(e))||!/\n/.test(SA(e)))}var zA={hasJsxIgnoreComment:function(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&AA(t)&&AA(n)))return!1;for(var r=null,i=n.children.indexOf(t);i>0;i--){var o=n.children[i-1];if("JSXText"!==o.type||WA(o)){r=o;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&IA(r.expression)},printJsx:function(e,t,n){var r=e.getValue();if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return function(e,t,n){var r=e.getValue(),i=[];if(i.push(n("name")),r.value){var o;if(kA(r.value)){var a=SA(r.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),u=xA(a,t.jsxSingleQuote?"'":'"'),s=u.escaped,c=u.quote,l=u.regex;o=[c,a=a.replace(l,s),c]}else o=n("value");i.push("=",o)}return i}(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return EA(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return EA(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return UA(e,t,n);case"JSXExpressionContainer":return function(e,t,n){var r=e.getValue(),i=e.getParentNode(0),o="JSXEmptyExpression"===r.expression.type||!FA(r.expression)&&("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type||"ArrowFunctionExpression"===r.expression.type||OA(r.expression)||"FunctionExpression"===r.expression.type||"TemplateLiteral"===r.expression.type||"TaggedTemplateExpression"===r.expression.type||"DoExpression"===r.expression.type||AA(i)&&("ConditionalExpression"===r.expression.type||NA(r.expression)));return mA(o?["{",n("expression"),DA,"}"]:["{",vA([hA,n("expression")]),hA,DA,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return VA(e,t,n);case"JSXOpeningElement":return function(e,t,n){var r=e.getValue(),i=r.name&&FA(r.name)||r.typeParameters&&FA(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!i)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&kA(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!FA(r.attributes[0]))return mA(["<",n("name"),n("typeParameters")," "].concat(l(e.map(n,"attributes")),[r.selfClosing?" />":">"]));var o=r.attributes.length>0&&FA(TA(r.attributes),_A.Trailing),a=0===r.attributes.length&&!i||(t.bracketSameLine||t.jsxBracketSameLine)&&(!i||r.attributes.length>0)&&!o,u=r.attributes&&r.attributes.some((function(e){return e.value&&kA(e.value)&&e.value.value.includes("\n")}));return mA(["<",n("name"),n("typeParameters"),vA(e.map((function(){return[fA,n()]}),"attributes")),r.selfClosing?fA:a?">":hA,r.selfClosing?"/>":a?"":">"],{shouldBreak:u})}(e,t,n);case"JSXClosingElement":return function(e,t,n){var r=e.getValue(),i=[];i.push("</");var o=n("name");return FA(r.name,_A.Leading|_A.Line)?i.push(vA([dA,o]),dA):FA(r.name,_A.Leading|_A.Block)?i.push(" ",o):i.push(o),i.push(">"),i}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){var n=e.getValue(),r=FA(n),i=FA(n,_A.Line),o="JSXOpeningFragment"===n.type;return[o?"<":"</",vA([i?dA:r&&!o?" ":"",lA(e,t,!0)]),i?dA:"",">"]}(e,t);case"JSXEmptyExpression":return function(e,t){var n=e.getValue(),r=FA(n,_A.Line);return[lA(e,t,!r),r?dA:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error("Unknown JSX node type: ".concat(JSON.stringify(r.type),"."))}}},KA=La,$A=dt,QA=kr,JA=Cr,YA=nu;gi({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=$A(this),n=QA(t),r=YA(t,0);return r.length=KA(r,t,t,n,0,void 0===e?1:JA(e)),r}});var XA,ZA=Vr,eS=Ur,tS=Object.keys||function(e){return ZA(e,eS)},nS=an,rS=pn,iS=ye,oS=tS,aS=H?Object.defineProperties:function(e,t){rS(e);for(var n,r=iS(t),i=oS(t),o=i.length,a=0;o>a;)nS.f(e,n=i[a++],r[n]);return e},uS=Ae("document","documentElement"),sS=pn,cS=aS,lS=Ur,pS=Mn,fS=uS,dS=Kt,hS=Pn("IE_PROTO"),mS=function(){},vS=function(e){return"<script>"+e+"<\/script>"},gS=function(e){e.write(vS("")),e.close();var t=e.parentWindow.Object;return e=null,t},yS=function(){try{XA=new ActiveXObject("htmlfile")}catch(e){}yS="undefined"!=typeof document?document.domain&&XA?gS(XA):function(){var e,t=dS("iframe");return t.style.display="none",fS.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(vS("document.F=Object")),e.close(),e.F}():gS(XA);for(var e=lS.length;e--;)delete yS.prototype[lS[e]];return yS()};pS[hS]=!0;var bS=Object.create||function(e,t){var n;return null!==e?(mS.prototype=sS(e),n=new mS,mS.prototype=null,n[hS]=e):n=yS(),void 0===t?n:cS(n,t)},DS=an,ES=_t("unscopables"),CS=Array.prototype;null==CS[ES]&&DS.f(CS,ES,{configurable:!0,value:bS(null)});var TS=function(e){CS[ES][e]=!0};TS("flat");var xS=Oc.isNonEmptyArray,AS=hl.builders,SS=AS.indent,wS=AS.join,OS=AS.line,kS=nE.isFlowAnnotationComment;function NS(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var i=e.getParentNode(),o=r.definite||i&&"VariableDeclarator"===i.type&&i.definite,a="DeclareFunction"===i.type&&i.id===r;return kS(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[a?"":o?"!: ":": ",n("typeAnnotation")]}var FS={printOptionalToken:function(e){var t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"},printFunctionTypeParameters:function(e,t,n){var r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function(e,t,n){return["::",n("callee")]},printTypeScriptModifiers:function(e,t,n){var r=e.getValue();return xS(r.modifiers)?[wS(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:NS,printRestSpread:function(e,t,n){return["...",n("argument"),NS(e,t,n)]},adjustClause:function(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:SS([OS,t])}},_S=ky.printDanglingComments,IS=hl.builders,jS=IS.line,LS=IS.softline,PS=IS.hardline,MS=IS.group,BS=IS.indent,RS=IS.ifBreak,VS=IS.fill,US=Oc.getLast,qS=Oc.hasNewline,HS=nE.shouldPrintComma,GS=nE.hasComment,WS=nE.CommentCheckFlags,zS=nE.isNextLineEmpty,KS=nE.isNumericLiteral,$S=nE.isSignedNumericLiteral,QS=km.locStart,JS=FS.printOptionalToken,YS=FS.printTypeAnnotation;function XS(e,t){return e.elements.length>1&&e.elements.every((function(e){return e&&(KS(e)||$S(e)&&!GS(e.argument))&&!GS(e,WS.Trailing|WS.Line,(function(e){return!qS(t.originalText,QS(e),{backwards:!0})}))}))}function ZS(e,t,n,r){var i=[],o=[];return e.each((function(e){i.push(o,MS(r())),o=[",",jS],e.getValue()&&zS(e.getValue(),t)&&o.push(LS)}),n),i}function ew(e,t,n,r){var i=[];return e.each((function(e,o,a){var u=o===a.length-1;i.push([n(),u?r:","]),u||i.push(zS(e.getValue(),t)?[PS,PS]:GS(a[o+1],WS.Leading|WS.Line)?PS:jS)}),"elements"),VS(i)}var tw={printArray:function(e,t,n){var r=e.getValue(),i=[],o="TupleExpression"===r.type?"#[":"[";if(0===r.elements.length)GS(r,WS.Dangling)?i.push(MS([o,_S(e,t),LS,"]"])):i.push(o,"]");else{var a=US(r.elements),u=!(a&&"RestElement"===a.type),s=null===a,c=Symbol("array"),l=!t.__inJestEach&&r.elements.length>1&&r.elements.every((function(e,t,n){var r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;var i=n[t+1];if(i&&r!==i.type)return!1;var o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1})),p=XS(r,t),f=u?s?",":HS(t)?p?RS(",","",{groupId:c}):RS(","):"":"";i.push(MS([o,BS([LS,p?ew(e,t,n,f):[ZS(e,t,"elements",n),f],_S(e,t,!0)]),LS,"]"],{shouldBreak:l,id:c}))}return i.push(JS(e),YS(e,t,n)),i},printArrayItems:ZS,isConciselyPrintedArray:XS},nw=ky.printDanglingComments,rw=Oc.getLast,iw=Oc.getPenultimate,ow=nE.getFunctionParameters,aw=nE.hasComment,uw=nE.CommentCheckFlags,sw=nE.isFunctionCompositionArgs,cw=nE.isJsxNode,lw=nE.isLongCurriedCallExpression,pw=nE.shouldPrintComma,fw=nE.getCallArguments,dw=nE.iterateCallArgumentsPath,hw=nE.isNextLineEmpty,mw=nE.isCallExpression,vw=nE.isStringLiteral,gw=nE.isObjectProperty,yw=hl.builders,bw=yw.line,Dw=yw.hardline,Ew=yw.softline,Cw=yw.group,Tw=yw.indent,xw=yw.conditionalGroup,Aw=yw.ifBreak,Sw=yw.breakParent,ww=hl.utils.willBreak,Ow=Lp.ArgExpansionBailout,kw=tw.isConciselyPrintedArray;function Nw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"ObjectExpression"===e.type&&(e.properties.length>0||aw(e))||"ArrayExpression"===e.type&&(e.elements.length>0||aw(e))||"TSTypeAssertion"===e.type&&Nw(e.expression)||"TSAsExpression"===e.type&&Nw(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||Fw(e.body))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&Nw(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(mw(e.body)||"ConditionalExpression"===e.body.type)||cw(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type}function Fw(e){return"BlockStatement"===e.type&&(e.body.some((function(e){return"EmptyStatement"!==e.type}))||aw(e,uw.Dangling))}var _w=function(e,t,n){var r=e.getValue(),i="ImportExpression"===r.type,o=fw(r);if(0===o.length)return["(",nw(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===ow(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some((function(e){return aw(e)}))}(o))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];var a=!1,u=!1,s=o.length-1,c=[];dw(e,(function(e,r){var i=e.getNode(),o=[n()];r===s||(hw(i,t)?(0===r&&(u=!0),a=!0,o.push(",",Dw,Dw)):o.push(",",bw)),c.push(o)}));var p=i||r.callee&&"Import"===r.callee.type||!pw(t,"all")?"":",";function f(){return Cw(["(",Tw([bw].concat(c)),p,bw,")"],{shouldBreak:!0})}if(a||"Decorator"!==e.getParentNode().type&&sw(o))return f();var h=function(e){if(2!==e.length)return!1;var t=d(e,2),n=t[0],r=t[1];return!("ModuleExpression"!==n.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&gw(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&vw(e.properties[0].value)&&"module"===e.properties[0].value.value}(r))||!aw(n)&&("FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type&&"BlockStatement"===n.body.type)&&"FunctionExpression"!==r.type&&"ArrowFunctionExpression"!==r.type&&"ConditionalExpression"!==r.type&&!Nw(r)}(o),m=function(e,t){var n=rw(e),r=iw(e);return!aw(n,uw.Leading)&&!aw(n,uw.Trailing)&&Nw(n)&&(!r||r.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==r.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&kw(n,t))}(o,t);if(h||m){if(h?c.slice(1).some(ww):c.slice(0,-1).some(ww))return f();var v=[];try{e.try((function(){dw(e,(function(e,t){h&&0===t&&(v=[[n([],{expandFirstArg:!0}),c.length>1?",":"",u?Dw:bw,u?Dw:""]].concat(l(c.slice(1)))),m&&t===s&&(v=[].concat(l(c.slice(0,-1)),[n([],{expandLastArg:!0})]))}))}))}catch(e){if(e instanceof Ow)return f();throw e}return[c.some(ww)?Sw:"",xw([["("].concat(l(v),[")"]),h?["(",Cw(v[0],{shouldBreak:!0})].concat(l(v.slice(1)),[")"]):["("].concat(l(c.slice(0,-1)),[Cw(rw(v),{shouldBreak:!0}),")"]),f()])]}var g=["(",Tw([Ew].concat(c)),Aw(p),Ew,")"];return lw(e)?g:Cw(g,{shouldBreak:c.some(ww)||a})},Iw=hl.builders,jw=Iw.softline,Lw=Iw.group,Pw=Iw.indent,Mw=Iw.label,Bw=nE.isNumericLiteral,Rw=nE.isMemberExpression,Vw=nE.isCallExpression,Uw=FS.printOptionalToken;function qw(e,t,n){var r=n("property"),i=e.getValue(),o=Uw(e);return i.computed?!i.property||Bw(i.property)?[o,"[",r,"]"]:Lw([o,"[",Pw([jw,r]),jw,"]"]):[o,".",r]}var Hw={printMemberExpression:function(e,t,n){var r,i=e.getValue(),o=e.getParentNode(),a=0;do{r=e.getParentNode(a),a++}while(r&&(Rw(r)||"TSNonNullExpression"===r.type));var u=n("object"),s=qw(e,t,n),c=r&&("NewExpression"===r.type||"BindExpression"===r.type||"AssignmentExpression"===r.type&&"Identifier"!==r.left.type)||i.computed||"Identifier"===i.object.type&&"Identifier"===i.property.type&&!Rw(o)||("AssignmentExpression"===o.type||"VariableDeclarator"===o.type)&&(Vw(i.object)&&i.object.arguments.length>0||"TSNonNullExpression"===i.object.type&&Vw(i.object.expression)&&i.object.expression.arguments.length>0||"member-chain"===u.label);return Mw("member-chain"===u.label?"member-chain":"member",[u,c?s:Lw(Pw([jw,s]))])},printMemberLookup:qw},Gw=ky.printComments,Ww=Oc.getLast,zw=Oc.isNextLineEmptyAfterIndex,Kw=Oc.getNextNonSpaceNonCommentCharacterIndex,$w=mx,Qw=nE.isCallExpression,Jw=nE.isMemberExpression,Yw=nE.isFunctionOrArrowExpression,Xw=nE.isLongCurriedCallExpression,Zw=nE.isMemberish,eO=nE.isNumericLiteral,tO=nE.isSimpleCallArgument,nO=nE.hasComment,rO=nE.CommentCheckFlags,iO=nE.isNextLineEmpty,oO=km.locEnd,aO=hl.builders,uO=aO.join,sO=aO.hardline,cO=aO.group,lO=aO.indent,pO=aO.conditionalGroup,fO=aO.breakParent,dO=aO.label,hO=hl.utils.willBreak,mO=_w,vO=Hw.printMemberLookup,gO=FS.printOptionalToken,yO=FS.printFunctionTypeParameters,bO=FS.printBindExpressionCallee,DO=function(e,t,n){var r=e.getParentNode(),i=!r||"ExpressionStatement"===r.type,o=[];function a(e){var n=t.originalText,r=Kw(n,e,oO);return")"===n.charAt(r)?!1!==r&&zw(n,r+1):iO(e,t)}function u(e){var r=e.getValue();Qw(r)&&(Zw(r.callee)||Qw(r.callee))?(o.unshift({node:r,printed:[Gw(e,[gO(e),yO(e,t,n),mO(e,t,n)],t),a(r)?sO:""]}),e.call((function(e){return u(e)}),"callee")):Zw(r)?(o.unshift({node:r,needsParens:$w(e,t),printed:Gw(e,Jw(r)?vO(e,t,n):bO(e,t,n),t)}),e.call((function(e){return u(e)}),"object")):"TSNonNullExpression"===r.type?(o.unshift({node:r,printed:Gw(e,"!",t)}),e.call((function(e){return u(e)}),"expression")):o.unshift({node:r,printed:n()})}var s=e.getValue();o.unshift({node:s,printed:[gO(e),yO(e,t,n),mO(e,t,n)]}),s.callee&&e.call((function(e){return u(e)}),"callee");for(var c=[],p=[o[0]],f=1;f<o.length&&("TSNonNullExpression"===o[f].node.type||Qw(o[f].node)||Jw(o[f].node)&&o[f].node.computed&&eO(o[f].node.property));++f)p.push(o[f]);if(!Qw(o[0].node))for(;f+1<o.length&&Zw(o[f].node)&&Zw(o[f+1].node);++f)p.push(o[f]);c.push(p),p=[];for(var d=!1;f<o.length;++f){if(d&&Zw(o[f].node)){if(o[f].node.computed&&eO(o[f].node.property)){p.push(o[f]);continue}c.push(p),p=[],d=!1}(Qw(o[f].node)||"ImportExpression"===o[f].node.type)&&(d=!0),p.push(o[f]),nO(o[f].node,rO.Trailing)&&(c.push(p),p=[],d=!1)}function h(e){return/^[A-Z]|^[$_]+$/.test(e)}p.length>0&&c.push(p);var m=c.length>=2&&!nO(c[1][0].node)&&function(e){var n=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){var r=e[0][0].node;return"ThisExpression"===r.type||"Identifier"===r.type&&(h(r.name)||i&&function(e){return e.length<=t.tabWidth}(r.name)||n)}var o=Ww(e[0]).node;return Jw(o)&&"Identifier"===o.property.type&&(h(o.property.name)||n)}(c);function v(e){var t=e.map((function(e){return e.printed}));return e.length>0&&Ww(e).needsParens?["("].concat(l(t),[")"]):t}var g=c.map(v),y=g,b=m?3:2,D=c.flat(),E=D.slice(1,-1).some((function(e){return nO(e.node,rO.Leading)}))||D.slice(0,-1).some((function(e){return nO(e.node,rO.Trailing)}))||c[b]&&nO(c[b][0].node,rO.Leading);if(c.length<=b&&!E)return Xw(e)?y:cO(y);var C,T=Ww(c[m?1:0]).node,x=!Qw(T)&&a(T),A=[v(c[0]),m?c.slice(1,2).map(v):"",x?sO:"",function(e){return 0===e.length?"":lO(cO([sO,uO(sO,e.map(v))]))}(c.slice(m?2:1))],S=o.map((function(e){return e.node})).filter(Qw);return C=E||S.length>2&&S.some((function(e){return!e.arguments.every((function(e){return tO(e,0)}))}))||g.slice(0,-1).some(hO)||function(){var e=Ww(Ww(c)).node,t=Ww(g);return Qw(e)&&hO(t)&&S.slice(0,-1).some((function(e){return e.arguments.some(Yw)}))}()?cO(A):[hO(y)||x?fO:"",pO([y,A])],dO("member-chain",C)},EO=hl.builders,CO=EO.join,TO=EO.group,xO=mx,AO=nE.getCallArguments,SO=nE.hasFlowAnnotationComment,wO=nE.isCallExpression,OO=nE.isMemberish,kO=nE.isStringLiteral,NO=nE.isTemplateOnItsOwnLine,FO=nE.isTestCall,_O=nE.iterateCallArgumentsPath,IO=DO,jO=_w,LO=FS.printOptionalToken,PO=FS.printFunctionTypeParameters,MO={printCallExpression:function(e,t,n){var r=e.getValue(),i=e.getParentNode(),o="NewExpression"===r.type,a="ImportExpression"===r.type,u=LO(e),s=AO(r);if(s.length>0&&(!a&&!o&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){var n=AO(e);return"ExpressionStatement"===t.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&kO(n[0])&&"ArrayExpression"===n[1].type)}return!1}(r,i)||1===s.length&&NO(s[0],t.originalText)||!o&&FO(r,i))){var c=[];return _O(e,(function(){c.push(n())})),[o?"new ":"",n("callee"),u,PO(e,t,n),"(",CO(", ",c),")"]}var l=("babel"===t.parser||"babel-flow"===t.parser)&&r.callee&&"Identifier"===r.callee.type&&SO(r.callee.trailingComments);if(l&&(r.callee.trailingComments[0].printed=!0),!a&&!o&&OO(r.callee)&&!e.call((function(e){return xO(e,t)}),"callee"))return IO(e,t,n);var p=[o?"new ":"",a?"import":n("callee"),u,l?"/*:: ".concat(r.callee.trailingComments[0].value.slice(2).trim()," */"):"",PO(e,t,n),jO(e,t,n)];return a||wO(r.callee)?TO(p):p}},BO=Oc.isNonEmptyArray,RO=Oc.getStringWidth,VO=hl.builders,UO=VO.line,qO=VO.group,HO=VO.indent,GO=VO.indentIfBreak,WO=hl.utils,zO=WO.cleanDoc,KO=WO.willBreak,$O=WO.canBreak,QO=nE.hasLeadingOwnLineComment,JO=nE.isBinaryish,YO=nE.isStringLiteral,XO=nE.isLiteral,ZO=nE.isNumericLiteral,ek=nE.isCallExpression,tk=nE.isMemberExpression,nk=nE.getCallArguments,rk=nE.rawText,ik=nE.hasComment,ok=nE.isSignedNumericLiteral,ak=nE.isObjectProperty,uk=Xx.shouldInlineLogicalExpression,sk=MO.printCallExpression;function ck(e,t,n,r,i,o){var a=function(e,t,n,r,i){var o=e.getValue(),a=o[i];if(!a)return"only-left";var u=!lk(a);if(e.match(lk,pk,(function(e){return!u||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type})))return u?"ArrowFunctionExpression"===a.type&&"ArrowFunctionExpression"===a.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!u&&lk(a.right)||QO(t.originalText,a))return"break-after-operator";if("CallExpression"===a.type&&"require"===a.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(pk(e)){var t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some((function(e){return ak(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type)}))}return!1}(o)||function(e){var t=function(e){return function(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}(e);if(BO(t)){var n="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some((function(e){return e[n]||e.default})))return!0}return!1}(o)||function(e){if("VariableDeclarator"!==e.type)return!1;var t=e.id.typeAnnotation;if(!t||!t.typeAnnotation)return!1;var n=dk(t.typeAnnotation);return BO(n)&&n.length>1&&n.some((function(e){return BO(dk(e))||"TSConditionalType"===e.type}))}(o)||fk(o)&&$O(r))return"break-lhs";var s=function(e,t,n){if(!ak(e))return!1;var r=3;return"string"==typeof(t=zO(t))&&RO(t)<n.tabWidth+r}(o,r,t);return e.call((function(){return function(e,t,n,r){var i=e.getValue();if(JO(i)&&!uk(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":var o=i.test;return JO(o)&&!uk(o);case"ClassExpression":return BO(i.decorators)}if(r)return!1;for(var a=i,u=[];;)if("UnaryExpression"===a.type)a=a.argument,u.push("argument");else{if("TSNonNullExpression"!==a.type)break;a=a.expression,u.push("expression")}return!(!YO(a)&&!e.call.apply(e,[function(){return hk(e,t,n)}].concat(u)))}(e,t,n,s)}),i)?"break-after-operator":s||"TemplateLiteral"===a.type||"TaggedTemplateExpression"===a.type||"BooleanLiteral"===a.type||ZO(a)||"ClassExpression"===a.type?"never-break-after-operator":"fluid"}(e,t,n,r,o),u=n(o,{assignmentLayout:a});switch(a){case"break-after-operator":return qO([qO(r),i,qO(HO([UO,u]))]);case"never-break-after-operator":return qO([qO(r),i," ",u]);case"fluid":var s=Symbol("assignment");return qO([qO(r),i,qO(HO(UO),{id:s}),GO(u,{groupId:s})]);case"break-lhs":return qO([r,i," ",qO(u)]);case"chain":return[qO(r),i,UO,u];case"chain-tail":return[qO(r),i,HO([UO,u])];case"chain-tail-arrow-chain":return[qO(r),i,u];case"only-left":return r}}function lk(e){return"AssignmentExpression"===e.type}function pk(e){return lk(e)||"VariableDeclarator"===e.type}function fk(e){return"VariableDeclarator"===e.type&&e.init&&"ArrowFunctionExpression"===e.init.type}function dk(e){return function(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function hk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.getValue(),o=function(){return hk(e,t,n,!0)};if("TSNonNullExpression"===i.type)return e.call(o,"expression");if(ek(i)){if("member-chain"===sk(e,t,n).label)return!1;var a=nk(i);return!!(0===a.length||1===a.length&&mk(a[0],t))&&!vk(i,n)&&e.call(o,"callee")}return tk(i)?e.call(o,"object"):r&&("Identifier"===i.type||"ThisExpression"===i.type)}function mk(e,t){var n=t.printWidth;if(ik(e))return!1;var r=.25*n;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=r||ok(e)&&!ik(e.argument))return!0;var i="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return i?i.length<=r:YO(e)?rk(e).length<=r:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes("\n"):XO(e)}function vk(e,t){var n=function(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}(e);if(BO(n)){if(n.length>1)return!0;if(1===n.length){var r=n[0];if("TSUnionType"===r.type||"UnionTypeAnnotation"===r.type||"TSIntersectionType"===r.type||"IntersectionTypeAnnotation"===r.type)return!0}var i=e.typeParameters?"typeParameters":"typeArguments";if(KO(t(i)))return!0}return!1}var gk={printVariableDeclarator:function(e,t,n){return ck(e,t,n,n("id")," =","init")},printAssignmentExpression:function(e,t,n){var r=e.getValue();return ck(e,t,n,n("left"),[" ",r.operator],"right")},printAssignment:ck,isArrowFunctionVariableDeclarator:fk},yk=Oc.getNextNonSpaceNonCommentCharacter,bk=ky.printDanglingComments,Dk=hl.builders,Ek=Dk.line,Ck=Dk.hardline,Tk=Dk.softline,xk=Dk.group,Ak=Dk.indent,Sk=Dk.ifBreak,wk=hl.utils,Ok=wk.removeLines,kk=wk.willBreak,Nk=nE.getFunctionParameters,Fk=nE.iterateFunctionParametersPath,_k=nE.isSimpleType,Ik=nE.isTestCall,jk=nE.isTypeAnnotationAFunction,Lk=nE.isObjectType,Pk=nE.isObjectTypePropertyAFunction,Mk=nE.hasRestParameter,Bk=nE.shouldPrintComma,Rk=nE.hasComment,Vk=nE.isNextLineEmpty,Uk=km.locEnd,qk=Lp.ArgExpansionBailout,Hk=FS.printFunctionTypeParameters;function Gk(e){if(!e)return!1;var t=Nk(e);if(1!==t.length)return!1;var n=d(t,1)[0];return!Rk(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&Lk(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&Lk(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}var Wk={printFunctionParameters:function(e,t,n,r,i){var o=e.getValue(),a=Nk(o),u=i?Hk(e,n,t):"";if(0===a.length)return[u,"(",bk(e,n,!0,(function(e){return")"===yk(n.originalText,e,Uk)})),")"];var s=e.getParentNode(),c=Ik(s),l=Gk(o),p=[];if(Fk(e,(function(e,r){var i=r===a.length-1;i&&o.rest&&p.push("..."),p.push(t()),i||(p.push(","),c||l?p.push(" "):Vk(a[r],n)?p.push(Ck,Ck):p.push(Ek))})),r){if(kk(u)||kk(p))throw new qk;return xk([Ok(u),"(",Ok(p),")"])}var f=a.every((function(e){return!e.decorators}));return l&&f||c?[u,"("].concat(p,[")"]):(Pk(s)||jk(s)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===o)&&1===a.length&&null===a[0].name&&o.this!==a[0]&&a[0].typeAnnotation&&null===o.typeParameters&&_k(a[0].typeAnnotation)&&!o.rest?"always"===n.arrowParens?["("].concat(p,[")"]):p:[u,"(",Ak([Tk].concat(p)),Sk(!Mk(o)&&Bk(n,"all")?",":""),Tk,")"]},shouldHugFunctionParameters:Gk,shouldGroupFunctionParameters:function(e,t){var n=function(e){var t;return e.returnType?(t=e.returnType).typeAnnotation&&(t=t.typeAnnotation):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!n)return!1;var r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){var i=r[0];if(i.constraint||i.default)return!1}}return 1===Nk(e).length&&(Lk(n)||kk(t))}},zk=ky.printComments,Kk=ky.printDanglingComments,$k=Oc.getLast,Qk=Oc.isNonEmptyArray,Jk=hl.builders,Yk=Jk.group,Xk=Jk.join,Zk=Jk.line,eN=Jk.softline,tN=Jk.indent,nN=Jk.align,rN=Jk.ifBreak,iN=mx,oN=km.locStart,aN=nE.isSimpleType,uN=nE.isObjectType,sN=nE.hasLeadingOwnLineComment,cN=nE.isObjectTypePropertyAFunction,lN=nE.shouldPrintComma,pN=gk.printAssignment,fN=Wk.printFunctionParameters,dN=Wk.shouldGroupFunctionParameters,hN=tw.printArrayItems;function mN(e){if(aN(e)||uN(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter((function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type})).length,n=e.types.some((function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}));if(e.types.length-1===t&&n)return!0}return!1}var vN={printOpaqueType:function(e,t,n){var r=t.semi?";":"",i=e.getValue(),o=[];return o.push("opaque type ",n("id"),n("typeParameters")),i.supertype&&o.push(": ",n("supertype")),i.impltype&&o.push(" = ",n("impltype")),o.push(r),o},printTypeAlias:function(e,t,n){var r=t.semi?";":"",i=e.getValue(),o=[];i.declare&&o.push("declare "),o.push("type ",n("id"),n("typeParameters"));var a="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[pN(e,t,n,o," =",a),r]},printIntersectionType:function(e,t,n){for(var r=e.getValue(),i=e.map(n,"types"),o=[],a=!1,u=0;u<i.length;++u)0===u?o.push(i[u]):uN(r.types[u-1])&&uN(r.types[u])?o.push([" & ",a?tN(i[u]):i[u]]):uN(r.types[u-1])||uN(r.types[u])?(u>1&&(a=!0),o.push(" & ",u>1?tN(i[u]):i[u])):o.push(tN([" &",Zk,i[u]]));return Yk(o)},printUnionType:function(e,t,n){var r=e.getValue(),i=e.getParentNode(),o=!("TypeParameterInstantiation"===i.type||"TSTypeParameterInstantiation"===i.type||"GenericTypeAnnotation"===i.type||"TSTypeReference"===i.type||"TSTypeAssertion"===i.type||"TupleTypeAnnotation"===i.type||"TSTupleType"===i.type||"FunctionTypeParam"===i.type&&!i.name&&e.getParentNode(1).this!==i||("TypeAlias"===i.type||"VariableDeclarator"===i.type||"TSTypeAliasDeclaration"===i.type)&&sN(t.originalText,r)),a=mN(r),u=e.map((function(e){var r=n();return a||(r=nN(2,r)),zk(e,r,t)}),"types");if(a)return Xk(" | ",u);var s=o&&!sN(t.originalText,r),c=[rN([s?Zk:"","| "]),Xk([Zk,"| "],u)];return iN(e,t)?Yk([tN(c),eN]):"TupleTypeAnnotation"===i.type&&i.types.length>1||"TSTupleType"===i.type&&i.elementTypes.length>1?Yk([tN([rN(["(",eN]),c]),eN,rN(")")]):Yk(o?tN(c):c)},printFunctionType:function(e,t,n){var r=e.getValue(),i=[],o=e.getParentNode(0),a=e.getParentNode(1),u=e.getParentNode(2),s="TSFunctionType"===r.type||!(("ObjectTypeProperty"===o.type||"ObjectTypeInternalSlot"===o.type)&&!o.variance&&!o.optional&&oN(o)===oN(r)||"ObjectTypeCallProperty"===o.type||u&&"DeclareFunction"===u.type),c=s&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type),l=c&&s&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type)&&"ArrowFunctionExpression"===a.type;cN(o)&&(s=!0,c=!0),l&&i.push("(");var p=fN(e,n,t,!1,!0),f=r.returnType||r.predicate||r.typeAnnotation?[s?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",d=dN(r,f);return i.push(d?Yk(p):p),f&&i.push(f),l&&i.push(")"),Yk(i)},printTupleType:function(e,t,n){var r=e.getValue(),i="TSTupleType"===r.type?"elementTypes":"types",o=r[i],a=Qk(o),u=a&&"TSRestType"===$k(o).type,s=a?eN:"";return Yk(["[",tN([s,hN(e,t,i,n)]),rN(a&&lN(t,"all")&&!u?",":""),Kk(e,t,!0),s,"]"])},printIndexedAccessType:function(e,t,n){var r=e.getValue(),i="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),i,n("indexType"),"]"]},shouldHugType:mN},gN=ky.printDanglingComments,yN=hl.builders,bN=yN.join,DN=yN.line,EN=yN.hardline,CN=yN.softline,TN=yN.group,xN=yN.indent,AN=yN.ifBreak,SN=nE.isTestCall,wN=nE.hasComment,ON=nE.CommentCheckFlags,kN=nE.isTSXFile,NN=nE.shouldPrintComma,FN=nE.getFunctionParameters,_N=nE.isObjectType,IN=Oc.createGroupIdMapper,jN=vN.shouldHugType,LN=gk.isArrowFunctionVariableDeclarator,PN=IN("typeParameters");function MN(e,t){var n=e.getValue();if(!wN(n,ON.Dangling))return"";var r=!wN(n,ON.Line),i=gN(e,t,r);return r?i:[i,EN]}var BN={printTypeParameter:function(e,t,n){var r=e.getValue(),i=[],o=e.getParentNode();return"TSMappedType"===o.type?(i.push("[",n("name")),r.constraint&&i.push(" in ",n("constraint")),o.nameType&&i.push(" as ",e.callParent((function(){return n("nameType")}))),i.push("]"),i):(r.variance&&i.push(n("variance")),i.push(n("name")),r.bound&&i.push(": ",n("bound")),r.constraint&&i.push(" extends ",n("constraint")),r.default&&i.push(" = ",n("default")),i)},printTypeParameters:function(e,t,n,r){var i=e.getValue();if(!i[r])return"";if(!Array.isArray(i[r]))return n(r);var o=e.getNode(2),a=o&&SN(o),u=e.match((function(e){return!(1===e[r].length&&_N(e[r][0]))}),void 0,(function(e,t){return"typeAnnotation"===t}),(function(e){return"Identifier"===e.type}),LN);if(!u&&(a||0===i[r].length||1===i[r].length&&("NullableTypeAnnotation"===i[r][0].type||jN(i[r][0]))))return["<",bN(", ",e.map(n,r)),MN(e,t),">"];var s="TSTypeParameterInstantiation"===i.type?"":1===FN(i).length&&kN(t)&&!i[r][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":NN(t,"all")?AN(","):"";return TN(["<",xN([CN,bN([",",DN],e.map(n,r))]),s,CN,">"],{id:PN(i)})},getTypeParametersGroupId:PN},RN=ky.printComments,VN=Oc.printString,UN=Oc.printNumber,qN=nE.isNumericLiteral,HN=nE.isSimpleNumber,GN=nE.isStringLiteral,WN=nE.isStringPropSafeToUnquote,zN=nE.rawText,KN=gk.printAssignment,$N=new WeakMap;function QN(e,t,n){var r=e.getNode();if(r.computed)return["[",n("key"),"]"];var i=e.getParentNode(),o=r.key;if("ClassPrivateProperty"===r.type&&"Identifier"===o.type)return["#",n("key")];if("consistent"===t.quoteProps&&!$N.has(i)){var a=(i.properties||i.body||i.members).some((function(e){return!e.computed&&e.key&&GN(e.key)&&!WN(e,t)}));$N.set(i,a)}if(("Identifier"===o.type||qN(o)&&HN(UN(zN(o)))&&String(o.value)===UN(zN(o))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&$N.get(i))){var u=VN(JSON.stringify("Identifier"===o.type?o.name:o.value.toString()),t);return e.call((function(e){return RN(e,u,t)}),"key")}return WN(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!$N.get(i))?e.call((function(e){return RN(e,/^\d/.test(o.value)?UN(o.value):o.value,t)}),"key"):n("key")}var JN={printProperty:function(e,t,n){return e.getValue().shorthand?n("value"):KN(e,t,n,QN(e,t,n),":","value")},printPropertyKey:QN},YN=ty,XN=ky.printDanglingComments,ZN=ky.printCommentsSeparately,eF=Ca,tF=Oc.getNextNonSpaceNonCommentCharacterIndex,nF=hl.builders,rF=nF.line,iF=nF.softline,oF=nF.group,aF=nF.indent,uF=nF.ifBreak,sF=nF.hardline,cF=nF.join,lF=nF.indentIfBreak,pF=hl.utils,fF=pF.removeLines,dF=pF.willBreak,hF=Lp.ArgExpansionBailout,mF=nE.getFunctionParameters,vF=nE.hasLeadingOwnLineComment,gF=nE.isFlowAnnotationComment,yF=nE.isJsxNode,bF=nE.isTemplateOnItsOwnLine,DF=nE.shouldPrintComma,EF=nE.startsWithNoLookaheadToken,CF=nE.isBinaryish,TF=nE.isLineComment,xF=nE.hasComment,AF=nE.getComments,SF=nE.CommentCheckFlags,wF=nE.isCallLikeExpression,OF=nE.isCallExpression,kF=nE.getCallArguments,NF=nE.hasNakedLeftSide,FF=nE.getLeftSide,_F=km.locEnd,IF=Wk.printFunctionParameters,jF=Wk.shouldGroupFunctionParameters,LF=JN.printPropertyKey,PF=FS.printFunctionTypeParameters;function MF(e,t,n){var r=e.getNode(),i=IF(e,n,t),o=RF(e,n,t),a=jF(r,o),u=[PF(e,t,n),oF([a?oF(i):i,o])];return r.body?u.push(" ",n("body")):u.push(t.semi?";":""),u}function BF(e,t){return"always"!==t.arrowParens&&"avoid"===t.arrowParens&&function(e){var t=mF(e);return!(1!==t.length||e.typeParameters||xF(e,SF.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||xF(t[0])||t[0].optional||e.predicate||e.returnType)}(e.getValue())}function RF(e,t,n){var r=e.getValue(),i=t("returnType");if(r.returnType&&gF(n.originalText,r.returnType))return[" /*: ",i," */"];var o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",t("predicate")),o}function VF(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=[];r.argument&&(function(e,t){if(vF(e.originalText,t))return!0;if(NF(t))for(var n,r=t;n=FF(r);)if(r=n,vF(e.originalText,r))return!0;return!1}(t,r.argument)?o.push([" (",aF([sF,n("argument")]),sF,")"]):CF(r.argument)||"SequenceExpression"===r.argument.type?o.push(oF([uF(" ("," "),aF([iF,n("argument")]),iF,uF(")")])):o.push(" ",n("argument")));var a=AF(r),u=eF(a),s=u&&TF(u);return s&&o.push(i),xF(r,SF.Dangling)&&o.push(" ",XN(e,t,!0)),s||o.push(i),o}var UF={printFunction:function(e,t,n,r){var i=e.getValue(),o=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&r&&r.expandLastArg){var a=e.getParentNode();OF(a)&&kF(a).length>1&&(o=!0)}var u=[];"TSDeclareFunction"===i.type&&i.declare&&u.push("declare "),i.async&&u.push("async "),i.generator?u.push("function* "):u.push("function "),i.id&&u.push(t("id"));var s=IF(e,t,n,o),c=RF(e,t,n),l=jF(i,c);return u.push(PF(e,n,t),oF([l?oF(s):s,c]),i.body?" ":"",t("body")),!n.semi||!i.declare&&i.body||u.push(";"),u},printArrowFunction:function(e,t,n,r){var i=e.getValue(),o=[],a=[],u=!1;if(function s(){var c=function(e,t,n,r){var i=[];if(e.getValue().async&&i.push("async "),BF(e,t))i.push(n(["params",0]));else{var o=r&&(r.expandLastArg||r.expandFirstArg),a=RF(e,n,t);if(o){if(dF(a))throw new hF;a=oF(fF(a))}i.push(oF([IF(e,n,t,o,!0),a]))}var u=XN(e,t,!0,(function(e){var n=tF(t.originalText,e,_F);return!1!==n&&"=>"===t.originalText.slice(n,n+2)}));return u&&i.push(" ",u),i}(e,t,n,r);if(0===o.length)o.push(c);else{var l=ZN(e,t),p=l.leading,f=l.trailing;o.push([p,c]),a.unshift(f)}u=u||i.returnType&&mF(i).length>0||i.typeParameters||mF(i).some((function(e){return"Identifier"!==e.type})),"ArrowFunctionExpression"!==i.body.type||r&&r.expandLastArg?a.unshift(n("body",r)):(i=i.body,e.call(s,"body"))}(),o.length>1)return function(e,t,n,r,i,o){var a=e.getName(),u=e.getParentNode(),s=wF(u)&&"callee"===a,c=Boolean(t&&t.assignmentLayout),l="BlockStatement"!==o.body.type&&"ObjectExpression"!==o.body.type&&"SequenceExpression"!==o.body.type,p=s&&l||t&&"chain-tail-arrow-chain"===t.assignmentLayout,f=Symbol("arrow-chain");return"SequenceExpression"===o.body.type&&(i=oF(["(",aF([iF,i]),iF,")"])),oF([oF(aF([s||c?iF:"",oF(cF([" =>",rF],n),{shouldBreak:r})]),{id:f,shouldBreak:p})," =>",lF(l?aF([rF,i]):[" ",i],{groupId:f}),s?uF(iF,"",{groupId:f}):""])}(e,r,o,u,a,i);var s=o;if(s.push(" =>"),!vF(t.originalText,i.body)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||yF(i.body)||bF(i.body,t.originalText)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return oF([].concat(s,[" ",a]));if("SequenceExpression"===i.body.type)return oF([].concat(s,[oF([" (",aF([iF,a]),iF,")"])]));var c=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!xF(i),l=r&&r.expandLastArg&&DF(t,"all"),p="ConditionalExpression"===i.body.type&&!EF(i.body,!1);return oF([].concat(s,[oF([aF([rF,p?uF("","("):"",a,p?uF("",")"):""]),c?[uF(l?",":""),iF]:""])]))},printMethod:function(e,t,n){var r=e.getNode(),i=r.kind,o=r.value||r,a=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(YN.ok("get"===i||"set"===i),a.push(i," ")):o.async&&a.push("async "),o.generator&&a.push("*"),a.push(LF(e,t,n),r.optional||r.key.optional?"?":""),r===o?a.push(MF(e,t,n)):"FunctionExpression"===o.type?a.push(e.call((function(e){return MF(e,t,n)}),"value")):a.push(n("value")),a},printReturnStatement:function(e,t,n){return["return",VF(e,t,n)]},printThrowStatement:function(e,t,n){return["throw",VF(e,t,n)]},printMethodInternal:MF,shouldPrintParamsWithoutParens:BF},qF=Oc.isNonEmptyArray,HF=Oc.hasNewline,GF=hl.builders,WF=GF.line,zF=GF.hardline,KF=GF.join,$F=GF.breakParent,QF=GF.group,JF=km.locStart,YF=km.locEnd,XF=nE.getParentExportDeclaration;function ZF(e,t){return e.decorators.some((function(e){return HF(t.originalText,YF(e))}))}function e_(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;var t=e.declaration&&e.declaration.decorators;return qF(t)&&JF(e,{ignoreDecorators:!0})>JF(t[0])}var t_={printDecorators:function(e,t,n){var r=e.getValue(),i=r.decorators;if(qF(i)&&!e_(e.getParentNode())){var o="ClassExpression"===r.type||"ClassDeclaration"===r.type||ZF(r,t);return[XF(e)?zF:o?$F:"",KF(WF,e.map(n,"decorators")),WF]}},printClassMemberDecorators:function(e,t,n){var r=e.getValue();return QF([KF(WF,e.map(n,"decorators")),ZF(r,t)?zF:WF])},printDecoratorsBeforeExport:function(e,t,n){return[KF(zF,e.map(n,"declaration","decorators")),zF]},hasDecoratorsBeforeExport:e_},n_=Oc.isNonEmptyArray,r_=Oc.createGroupIdMapper,i_=ky.printComments,o_=ky.printDanglingComments,a_=hl.builders,u_=a_.join,s_=a_.line,c_=a_.hardline,l_=a_.softline,p_=a_.group,f_=a_.indent,d_=a_.ifBreak,h_=nE.hasComment,m_=nE.CommentCheckFlags,v_=BN.getTypeParametersGroupId,g_=UF.printMethod,y_=FS.printOptionalToken,b_=FS.printTypeAnnotation,D_=JN.printPropertyKey,E_=gk.printAssignment,C_=t_.printClassMemberDecorators,T_=r_("heritageGroup");function x_(e){return e.typeParameters&&!h_(e.typeParameters,m_.Trailing|m_.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter((function(t){return Boolean(e[t])})).length>1}(e)}function A_(e,t,n,r){var i=e.getValue();if(!n_(i[r]))return"";var o=o_(e,t,!0,(function(e){return e.marker===r}));return[x_(i)?d_(" ",s_,{groupId:v_(i.typeParameters)}):s_,o,o&&c_,r,p_(f_([s_,u_([",",s_],e.map(n,r))]))]}function S_(e,t,n){var r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?p_(d_(["(",f_([l_,r]),l_,")"],r)):r}var w_={printClass:function(e,t,n){var r=e.getValue(),i=[];r.declare&&i.push("declare "),r.abstract&&i.push("abstract "),i.push("class");var o,a=r.id&&h_(r.id,m_.Trailing)||r.superClass&&h_(r.superClass)||n_(r.extends)||n_(r.mixins)||n_(r.implements),u=[],s=[];if(r.id&&u.push(" ",n("id")),u.push(n("typeParameters")),r.superClass){var c=["extends ",S_(e,t,n),n("superTypeParameters")],l=e.call((function(e){return i_(e,c,t)}),"superClass");a?s.push(s_,p_(l)):s.push(" ",l)}else s.push(A_(e,t,n,"extends"));return s.push(A_(e,t,n,"mixins"),A_(e,t,n,"implements")),a?(o=x_(r)?[].concat(u,[f_(s)]):f_([].concat(u,[s])),i.push(p_(o,{id:T_(r)}))):i.push.apply(i,u.concat(s)),i.push(" ",n("body")),i},printClassMethod:function(e,t,n){var r=e.getValue(),i=[];return n_(r.decorators)&&i.push(C_(e,t,n)),r.accessibility&&i.push(r.accessibility+" "),r.readonly&&i.push("readonly "),r.declare&&i.push("declare "),r.static&&i.push("static "),("TSAbstractMethodDefinition"===r.type||r.abstract)&&i.push("abstract "),r.override&&i.push("override "),i.push(g_(e,t,n)),i},printClassProperty:function(e,t,n){var r=e.getValue(),i=[],o=t.semi?";":"";return n_(r.decorators)&&i.push(C_(e,t,n)),r.accessibility&&i.push(r.accessibility+" "),r.declare&&i.push("declare "),r.static&&i.push("static "),("TSAbstractPropertyDefinition"===r.type||r.abstract)&&i.push("abstract "),r.override&&i.push("override "),r.readonly&&i.push("readonly "),r.variance&&i.push(n("variance")),i.push(D_(e,t,n),y_(e),b_(e,t,n)),[E_(e,t,n,i," =","value"),o]},printHardlineAfterHeritage:function(e){return d_(c_,"",{groupId:T_(e)})}},O_=Oc.isNonEmptyArray,k_=hl.builders,N_=k_.join,F_=k_.line,__=k_.group,I_=k_.indent,j_=k_.ifBreak,L_=nE.hasComment,P_=nE.identity,M_=nE.CommentCheckFlags,B_=BN.getTypeParametersGroupId,R_=FS.printTypeScriptModifiers,V_={printInterface:function(e,t,n){var r=e.getValue(),i=[];r.declare&&i.push("declare "),"TSInterfaceDeclaration"===r.type&&i.push(r.abstract?"abstract ":"",R_(e,t,n)),i.push("interface");var o=[],a=[];"InterfaceTypeAnnotation"!==r.type&&o.push(" ",n("id"),n("typeParameters"));var u=r.typeParameters&&!L_(r.typeParameters,M_.Trailing|M_.Line);return O_(r.extends)&&a.push(u?j_(" ",F_,{groupId:B_(r.typeParameters)}):F_,"extends ",(1===r.extends.length?P_:I_)(N_([",",F_],e.map(n,"extends")))),r.id&&L_(r.id,M_.Trailing)||O_(r.extends)?u?i.push(__([].concat(o,[I_(a)]))):i.push(__(I_([].concat(o,a)))):i.push.apply(i,o.concat(a)),i.push(" ",n("body")),__(i)}},U_=Oc.isNonEmptyArray,q_=hl.builders,H_=q_.softline,G_=q_.group,W_=q_.indent,z_=q_.join,K_=q_.line,$_=q_.ifBreak,Q_=q_.hardline,J_=ky.printDanglingComments,Y_=nE.hasComment,X_=nE.CommentCheckFlags,Z_=nE.shouldPrintComma,eI=nE.needsHardlineAfterDanglingComment,tI=km.locStart,nI=km.hasSameLoc,rI=t_.hasDecoratorsBeforeExport,iI=t_.printDecoratorsBeforeExport;function oI(e,t,n){var r=e.getValue();if(!r.source)return"";var i=[];return uI(r,t)||i.push(" from"),i.push(" ",n("source")),i}function aI(e,t,n){var r=e.getValue();if(uI(r,t))return"";var i=[" "];if(U_(r.specifiers)){var o=[],a=[];e.each((function(){var t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)o.push(n());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type ".concat(JSON.stringify(t)));a.push(n())}}),"specifiers"),i.push(z_(", ",o)),a.length>0&&(o.length>0&&i.push(", "),a.length>1||o.length>0||r.specifiers.some((function(e){return Y_(e)}))?i.push(G_(["{",W_([t.bracketSpacing?K_:H_,z_([",",K_],a)]),$_(Z_(t)?",":""),t.bracketSpacing?K_:H_,"}"])):i.push(["{",t.bracketSpacing?" ":""].concat(a,[t.bracketSpacing?" ":"","}"])))}else i.push("{}");return i}function uI(e,t){var n=e.type,r=e.importKind,i=e.source,o=e.specifiers;return"ImportDeclaration"===n&&!U_(o)&&"type"!==r&&!/{\s*}/.test(t.originalText.slice(tI(e),tI(i)))}function sI(e,t,n){var r=e.getNode();return U_(r.assertions)?[" assert {",t.bracketSpacing?" ":"",z_(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}var cI={printImportDeclaration:function(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=[],a=r.importKind;return o.push("import"),a&&"value"!==a&&o.push(" ",a),o.push(aI(e,t,n),oI(e,t,n),sI(e,t,n),i),o},printExportDeclaration:function(e,t,n){var r=e.getValue(),i=[];rI(r)&&i.push(iI(e,t,n));var o=r.type,a=r.exportKind,u=r.declaration;return i.push("export"),(r.default||"ExportDefaultDeclaration"===o)&&i.push(" default"),Y_(r,X_.Dangling)&&(i.push(" ",J_(e,t,!0)),eI(r)&&i.push(Q_)),u?i.push(" ",n("declaration")):i.push("type"===a?" type":"",aI(e,t,n),oI(e,t,n),sI(e,t,n)),function(e,t){if(!t.semi)return!1;var n=e.type,r=e.declaration,i=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;var o=r.type;return!(!i||"ClassDeclaration"===o||"FunctionDeclaration"===o||"TSInterfaceDeclaration"===o||"DeclareClass"===o||"DeclareFunction"===o||"TSDeclareFunction"===o||"EnumDeclaration"===o)}(r,t)&&i.push(";"),i},printExportAllDeclaration:function(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=[],a=r.exportKind,u=r.exported;return o.push("export"),"type"===a&&o.push(" type"),o.push(" *"),u&&o.push(" as ",n("exported")),o.push(oI(e,t,n),sI(e,t,n),i),o},printModuleSpecifier:function(e,t,n){var r=e.getNode(),i=r.type,o=[],a="ImportSpecifier"===i?r.importKind:r.exportKind;a&&"value"!==a&&o.push(a," ");var u=i.startsWith("Import"),s=u?"imported":"local",c=u?"local":"exported",l="",p="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?l="*":r[s]&&(l=n(s)),!r[c]||r[s]&&nI(r[s],r[c])||(p=n(c)),o.push(l,l&&p?" as ":"",p),o}},lI=ky.printDanglingComments,pI=hl.builders,fI=pI.line,dI=pI.softline,hI=pI.group,mI=pI.indent,vI=pI.ifBreak,gI=pI.hardline,yI=Oc.getLast,bI=Oc.hasNewlineInRange,DI=Oc.hasNewline,EI=Oc.isNonEmptyArray,CI=nE.shouldPrintComma,TI=nE.hasComment,xI=nE.getComments,AI=nE.CommentCheckFlags,SI=nE.isNextLineEmpty,wI=km.locStart,OI=km.locEnd,kI=FS.printOptionalToken,NI=FS.printTypeAnnotation,FI=Wk.shouldHugFunctionParameters,_I=vN.shouldHugType,II=w_.printHardlineAfterHeritage,jI={printObject:function(e,t,n){var r,i=t.semi?";":"",o=e.getValue();r="TSTypeLiteral"===o.type?"members":"TSInterfaceBody"===o.type?"body":"properties";var a="ObjectTypeAnnotation"===o.type,u=[r];a&&u.push("indexers","callProperties","internalSlots");for(var s=u.map((function(e){return o[e][0]})).sort((function(e,t){return wI(e)-wI(t)}))[0],c=e.getParentNode(0),p=a&&c&&("InterfaceDeclaration"===c.type||"DeclareInterface"===c.type||"DeclareClass"===c.type)&&"body"===e.getName(),f="TSInterfaceBody"===o.type||p||"ObjectPattern"===o.type&&"FunctionDeclaration"!==c.type&&"FunctionExpression"!==c.type&&"ArrowFunctionExpression"!==c.type&&"ObjectMethod"!==c.type&&"ClassMethod"!==c.type&&"ClassPrivateMethod"!==c.type&&"AssignmentPattern"!==c.type&&"CatchClause"!==c.type&&o.properties.some((function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)}))||"ObjectPattern"!==o.type&&s&&bI(t.originalText,wI(o),wI(s)),d=p?";":"TSInterfaceBody"===o.type||"TSTypeLiteral"===o.type?vI(i,";"):",",h="RecordExpression"===o.type?"#{":o.exact?"{|":"{",m=o.exact?"|}":"}",v=[],g=0,y=u;g<y.length;g++){var b=y[g];e.each((function(e){var t=e.getValue();v.push({node:t,printed:n(),loc:wI(t)})}),b)}u.length>1&&v.sort((function(e,t){return e.loc-t.loc}));var D=[],E=v.map((function(e){var n=[].concat(l(D),[hI(e.printed)]);return D=[d,fI],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!TI(e.node,AI.PrettierIgnore)||D.shift(),SI(e.node,t)&&D.push(gI),n}));if(o.inexact){var C;if(TI(o,AI.Dangling)){var T=TI(o,AI.Line);C=[lI(e,t,!0),T||DI(t.originalText,OI(yI(xI(o))))?gI:fI,"..."]}else C=["..."];E.push([].concat(l(D),l(C)))}var x,A=yI(o[r]),S=!(o.inexact||A&&"RestElement"===A.type||A&&("TSPropertySignature"===A.type||"TSCallSignatureDeclaration"===A.type||"TSMethodSignature"===A.type||"TSConstructSignatureDeclaration"===A.type)&&TI(A,AI.PrettierIgnore));if(0===E.length){if(!TI(o,AI.Dangling))return[h,m,NI(e,t,n)];x=hI([h,lI(e,t),dI,m,kI(e),NI(e,t,n)])}else x=[p&&EI(o.properties)?II(c):"",h,mI([t.bracketSpacing?fI:dI].concat(l(E))),vI(S&&(","!==d||CI(t))?d:""),t.bracketSpacing?fI:dI,m,kI(e),NI(e,t,n)];return e.match((function(e){return"ObjectPattern"===e.type&&!e.decorators}),(function(e,t,n){return FI(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||e.match(_I,(function(e,t){return"typeAnnotation"===t}),(function(e,t){return"typeAnnotation"===t}),(function(e,t,n){return FI(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n}))||!f&&e.match((function(e){return"ObjectPattern"===e.type}),(function(e){return"AssignmentExpression"===e.type||"VariableDeclarator"===e.type}))?x:hI(x,{shouldBreak:f})}},LI=ty,PI=ky.printDanglingComments,MI=Oc.printString,BI=Oc.printNumber,RI=hl.builders,VI=RI.hardline,UI=RI.softline,qI=RI.group,HI=RI.indent,GI=nE.getParentExportDeclaration,WI=nE.isFunctionNotation,zI=nE.isGetterOrSetter,KI=nE.rawText,$I=nE.shouldPrintComma,QI=km.locStart,JI=km.locEnd,YI=w_.printClass,XI=vN.printOpaqueType,ZI=vN.printTypeAlias,ej=vN.printIntersectionType,tj=vN.printUnionType,nj=vN.printFunctionType,rj=vN.printTupleType,ij=vN.printIndexedAccessType,oj=V_.printInterface,aj=BN.printTypeParameter,uj=BN.printTypeParameters,sj=cI.printExportDeclaration,cj=cI.printExportAllDeclaration,lj=tw.printArrayItems,pj=jI.printObject,fj=JN.printPropertyKey,dj=FS.printOptionalToken,hj=FS.printTypeAnnotation,mj=FS.printRestSpread;function vj(e,t){var n=GI(e);return n?(LI.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}var gj={printFlow:function(e,t,n){var r=e.getValue(),i=t.semi?";":"",o=[];switch(r.type){case"DeclareClass":return vj(e,YI(e,t,n));case"DeclareFunction":return vj(e,["function ",n("id"),r.predicate?" ":"",n("predicate"),i]);case"DeclareModule":return vj(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return vj(e,["module.exports",": ",n("typeAnnotation"),i]);case"DeclareVariable":return vj(e,["var ",n("id"),i]);case"DeclareOpaqueType":return vj(e,XI(e,t,n));case"DeclareInterface":return vj(e,oj(e,t,n));case"DeclareTypeAlias":return vj(e,ZI(e,t,n));case"DeclareExportDeclaration":return vj(e,sj(e,t,n));case"DeclareExportAllDeclaration":return vj(e,cj(e,t,n));case"OpaqueType":return XI(e,t,n);case"TypeAlias":return ZI(e,t,n);case"IntersectionTypeAnnotation":return ej(e,t,n);case"UnionTypeAnnotation":return tj(e,t,n);case"FunctionTypeAnnotation":return nj(e,t,n);case"TupleTypeAnnotation":return rj(e,t,n);case"GenericTypeAnnotation":return[n("id"),uj(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return ij(e,t,n);case"TypeAnnotation":return n("typeAnnotation");case"TypeParameter":return aj(e,t,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[n("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(r.value);case"EnumDeclaration":return["enum ",n("id")," ",n("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===r.type||r.explicitType){var a=null;switch(r.type){case"EnumBooleanBody":a="boolean";break;case"EnumNumberBody":a="number";break;case"EnumStringBody":a="string";break;case"EnumSymbolBody":a="symbol"}o.push("of ",a," ")}if(0!==r.members.length||r.hasUnknownMembers){var u=r.members.length>0?[VI,lj(e,t,"members",n),r.hasUnknownMembers||$I(t)?",":""]:[];o.push(qI(["{",HI([].concat(u,l(r.hasUnknownMembers?[VI,"..."]:[]))),PI(e,t,!0),VI,"}"]))}else o.push(qI(["{",PI(e,t),UI,"}"]));return o;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[n("id")," = ","object"==typeof r.init?n("init"):String(r.init)];case"EnumDefaultedMember":return n("id");case"FunctionTypeParam":var s=r.name?n("name"):e.getParentNode().this===r?"this":"";return[s,dj(e),s?": ":"",n("typeAnnotation")];case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return oj(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":var c=r.kind;return LI.ok("plus"===c||"minus"===c),"plus"===c?"+":"-";case"ObjectTypeCallProperty":return r.static&&o.push("static "),o.push(n("value")),o;case"ObjectTypeIndexer":return[r.variance?n("variance"):"","[",n("id"),r.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":var p="";return r.proto?p="proto ":r.static&&(p="static "),[p,zI(r)?r.kind+" ":"",r.variance?n("variance"):"",fj(e,t,n),dj(e),WI(r)?"":": ",n("value")];case"ObjectTypeAnnotation":return pj(e,t,n);case"ObjectTypeInternalSlot":return[r.static?"static ":"","[[",n("id"),"]]",dj(e),r.method?"":": ",n("value")];case"ObjectTypeSpreadProperty":return mj(e,t,n);case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"StringLiteralTypeAnnotation":return MI(KI(r),t);case"NumberLiteralTypeAnnotation":LI.strictEqual(typeof r.value,"number");case"BigIntLiteralTypeAnnotation":return r.extra?BI(r.extra.raw):BI(r.raw);case"TypeCastExpression":return["(",n("expression"),hj(e,t,n),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":var f=uj(e,t,n,"params");if("flow"===t.parser){var d=QI(r),h=JI(r),m=t.originalText.lastIndexOf("/*",d),v=t.originalText.indexOf("*/",h);if(-1!==m&&-1!==v){var g=t.originalText.slice(m+2,v).trim();if(g.startsWith("::")&&!g.includes("/*")&&!g.includes("*/"))return["/*:: ",f," */"]}}return f;case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",n("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(r.type))}}},yj=Oc.hasNewlineInRange,bj=nE.isJsxNode,Dj=nE.isBlockComment,Ej=nE.getComments,Cj=nE.isCallExpression,Tj=nE.isMemberExpression,xj=km.locStart,Aj=km.locEnd,Sj=hl.builders,wj=Sj.line,Oj=Sj.softline,kj=Sj.group,Nj=Sj.indent,Fj=Sj.align,_j=Sj.ifBreak,Ij=Sj.dedent,jj=Sj.breakParent;function Lj(e,t,n){var r=e.getValue(),i="ConditionalExpression"===r.type,o=i?"alternate":"falseType",a=e.getParentNode(),u=i?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return a.type===r.type&&a[o]===r?Fj(2,u):u}var Pj=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]),Mj={printTernary:function(e,t,n){var r,i,o=e.getValue(),a="ConditionalExpression"===o.type,u=a?"consequent":"trueType",s=a?"alternate":"falseType",c=a?["test"]:["checkType","extendsType"],p=o[u],f=o[s],d=[],h=!1,m=e.getParentNode(),v=m.type===o.type&&c.some((function(e){return m[e]===o})),g=m.type===o.type&&!v,y=0;do{i=r||o,r=e.getParentNode(y),y++}while(r&&r.type===o.type&&c.every((function(e){return r[e]!==i})));var b=r||m,D=i;if(a&&(bj(o[c[0]])||bj(p)||bj(f)||function(e){for(var t=[e],n=0;n<t.length;n++)for(var r=t[n],i=0,o=["test","consequent","alternate"];i<o.length;i++){var a=r[o[i]];if(bj(a))return!0;"ConditionalExpression"===a.type&&t.push(a)}return!1}(D))){h=!0,g=!0;var E=function(e){return[_j("("),Nj([Oj,e]),Oj,_j(")")]},C=function(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name};d.push(" ? ",C(p)?n(u):E(n(u))," : ",f.type===o.type||C(f)?n(s):E(n(s)))}else{var T=[wj,"? ",p.type===o.type?_j("","("):"",Fj(2,n(u)),p.type===o.type?_j("",")"):"",wj,": ",f.type===o.type?n(s):Fj(2,n(s))];d.push(m.type!==o.type||m[s]===o||v?T:t.useTabs?Ij(Nj(T)):Fj(Math.max(0,t.tabWidth-2),T))}var x=[].concat(l(c.map((function(e){return Ej(o[e])}))),[Ej(p),Ej(f)]).flat().some((function(e){return Dj(e)&&yj(t.originalText,xj(e),Aj(e))})),A=!h&&(Tj(m)||"NGPipeExpression"===m.type&&m.left===o)&&!m.computed,S=function(e){var t=e.getValue();if("ConditionalExpression"!==t.type)return!1;for(var n,r=t,i=0;!n;i++){var o=e.getParentNode(i);Cj(o)&&o.callee===r||Tj(o)&&o.object===r||"TSNonNullExpression"===o.type&&o.expression===r?r=o:"NewExpression"===o.type&&o.callee===r||"TSAsExpression"===o.type&&o.expression===r?(n=e.getParentNode(i+1),r=o):n=o}return r!==t&&n[Pj.get(n.type)]===r}(e),w=function(e){return m===b?kj(e,{shouldBreak:x}):x?[e,jj]:e}([Lj(e,0,n),g?d:Nj(d),a&&A&&!S?Oj:""]);return v||S?kj([Nj([Oj,w]),Oj]):w}},Bj=hl.builders.hardline,Rj=mx,Vj=nE.getLeftSidePathName,Uj=nE.hasNakedLeftSide,qj=nE.isJsxNode,Hj=nE.isTheOnlyJsxElementInMarkdown,Gj=nE.hasComment,Wj=nE.CommentCheckFlags,zj=nE.isNextLineEmpty,Kj=UF.shouldPrintParamsWithoutParens;function $j(e,t,n,r){var i=e.getValue(),o=[],a="ClassBody"===i.type,u=function(e){for(var t=e.length-1;t>=0;t--){var n=e[t];if("EmptyStatement"!==n.type)return n}}(i[r]);return e.each((function(e,r,i){var s=e.getValue();if("EmptyStatement"!==s.type){var c=n();t.semi||a||Hj(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call((function(e){return Qj(e,t)}),"expression")}(e,t)?o.push(c):Gj(s,Wj.Leading)?o.push(n([],{needsSemi:!0})):o.push(";",c),!t.semi&&a&&Jj(s)&&function(e,t){var n=e.key&&e.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||e.value||e.typeAnnotation))return!0;if(!t)return!1;if(t.static||t.accessibility)return!1;if(!t.computed){var r=t.key&&t.key.name;if("in"===r||"instanceof"===r)return!0}if(Jj(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;var i=t.value?t.value.generator:t.generator;return!(!t.computed&&!i);case"TSIndexSignature":return!0}return!1}(s,i[r+1])&&o.push(";"),s!==u&&(o.push(Bj),zj(s,t)&&o.push(Bj))}}),r),o}function Qj(e,t){var n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!Kj(e,t))return!0;break;case"UnaryExpression":var r=n.prefix,i=n.operator;if(r&&("+"===i||"-"===i))return!0;break;case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(qj(n))return!0}return!!Rj(e,t)||!!Uj(n)&&e.call.apply(e,[function(e){return Qj(e,t)}].concat(l(Vj(e,n))))}var Jj=function(e){var t=e.type;return"ClassProperty"===t||"PropertyDefinition"===t||"ClassPrivateProperty"===t},Yj={printBody:function(e,t,n){return $j(e,t,n,"body")},printSwitchCaseConsequent:function(e,t,n){return $j(e,t,n,"consequent")}},Xj=ky.printDanglingComments,Zj=Oc.isNonEmptyArray,eL=hl.builders,tL=eL.hardline,nL=eL.indent,rL=nE.hasComment,iL=nE.CommentCheckFlags,oL=nE.isNextLineEmpty,aL=w_.printHardlineAfterHeritage,uL=Yj.printBody;function sL(e,t,n){var r=e.getValue(),i=Zj(r.directives),o=r.body.some((function(e){return"EmptyStatement"!==e.type})),a=rL(r,iL.Dangling);if(!i&&!o&&!a)return"";var u=[];if(i&&e.each((function(e,r,i){u.push(n()),(r<i.length-1||o||a)&&(u.push(tL),oL(e.getValue(),t)&&u.push(tL))}),"directives"),o&&u.push(uL(e,t,n)),a&&u.push(Xj(e,t,!0)),"Program"===r.type){var s=e.getParentNode();s&&"ModuleExpression"===s.type||u.push(tL)}return u}var cL={printBlock:function(e,t,n){var r=e.getValue(),i=[];if("StaticBlock"===r.type&&i.push("static "),"ClassBody"===r.type&&Zj(r.body)){var o=e.getParentNode();i.push(aL(o))}i.push("{");var a=sL(e,t,n);if(a)i.push(nL([tL,a]),tL);else{var u=e.getParentNode(),s=e.getParentNode(1);"ArrowFunctionExpression"===u.type||"FunctionExpression"===u.type||"FunctionDeclaration"===u.type||"ObjectMethod"===u.type||"ClassMethod"===u.type||"ClassPrivateMethod"===u.type||"ForStatement"===u.type||"WhileStatement"===u.type||"DoWhileStatement"===u.type||"DoExpression"===u.type||"CatchClause"===u.type&&!s.finalizer||"TSModuleDeclaration"===u.type||"TSDeclareFunction"===u.type||"StaticBlock"===r.type||"ClassBody"===r.type||i.push(tL)}return i.push("}"),i},printBlockBody:sL},lL=ky.printDanglingComments,pL=Oc.hasNewlineInRange,fL=hl.builders,dL=fL.join,hL=fL.line,mL=fL.hardline,vL=fL.softline,gL=fL.group,yL=fL.indent,bL=fL.conditionalGroup,DL=fL.ifBreak,EL=nE.isLiteral,CL=nE.getTypeScriptMappedTypeModifier,TL=nE.shouldPrintComma,xL=nE.isCallExpression,AL=nE.isMemberExpression,SL=km.locStart,wL=km.locEnd,OL=FS.printOptionalToken,kL=FS.printTypeScriptModifiers,NL=Mj.printTernary,FL=Wk.printFunctionParameters,_L=Wk.shouldGroupFunctionParameters,IL=TE.printTemplateLiteral,jL=tw.printArrayItems,LL=jI.printObject,PL=w_.printClassProperty,ML=w_.printClassMethod,BL=BN.printTypeParameter,RL=BN.printTypeParameters,VL=JN.printPropertyKey,UL=UF.printFunction,qL=UF.printMethodInternal,HL=V_.printInterface,GL=cL.printBlock,WL=vN.printTypeAlias,zL=vN.printIntersectionType,KL=vN.printUnionType,$L=vN.printFunctionType,QL=vN.printTupleType,JL=vN.printIndexedAccessType,YL={printTypescript:function(e,t,n){var r=e.getValue();if(r.type.startsWith("TS")){if(r.type.endsWith("Keyword"))return r.type.slice(2,-7).toLowerCase();var i=t.semi?";":"",o=[];switch(r.type){case"TSThisType":return"this";case"TSTypeAssertion":var a=!("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type),u=gL(["<",yL([vL,n("typeAnnotation")]),vL,">"]),s=[DL("("),yL([vL,n("expression")]),vL,DL(")")];return a?bL([[u,n("expression")],[u,gL(s,{shouldBreak:!0})],[u,n("expression")]]):gL([u,n("expression")]);case"TSDeclareFunction":return UL(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),i];case"TSModuleBlock":return GL(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return LL(e,t,n);case"TSTypeAliasDeclaration":return WL(e,t,n);case"TSQualifiedName":return dL(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return ML(e,t,n);case"TSAbstractPropertyDefinition":return PL(e,t,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return o.push(n("expression")),r.typeParameters&&o.push(n("typeParameters")),o;case"TSTemplateLiteralType":return IL(e,n,t);case"TSNamedTupleMember":return[n("label"),r.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return HL(e,t,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return RL(e,t,n,"params");case"TSTypeParameter":return BL(e,t,n);case"TSAsExpression":o.push(n("expression")," as ",n("typeAnnotation"));var c=e.getParentNode();return xL(c)&&c.callee===r||AL(c)&&c.object===r?gL([yL([vL].concat(o)),vL]):o;case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return r.readonly&&o.push("readonly "),o.push(VL(e,t,n),OL(e)),r.typeAnnotation&&o.push(": ",n("typeAnnotation")),r.initializer&&o.push(" = ",n("initializer")),o;case"TSParameterProperty":return r.accessibility&&o.push(r.accessibility+" "),r.export&&o.push("export "),r.static&&o.push("static "),r.override&&o.push("override "),r.readonly&&o.push("readonly "),o.push(n("parameter")),o;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":var l=e.getParentNode(),p=r.parameters.length>1?DL(TL(t)?",":""):"",f=gL([yL([vL,dL([", ",vL],e.map(n,"parameters"))]),p,vL]);return[r.export?"export ":"",r.accessibility?[r.accessibility," "]:"",r.static?"static ":"",r.readonly?"readonly ":"",r.declare?"declare ":"","[",r.parameters?f:"",r.typeAnnotation?"]: ":"]",r.typeAnnotation?n("typeAnnotation"):"","ClassBody"===l.type?i:""];case"TSTypePredicate":return[r.asserts?"asserts ":"",n("parameterName"),r.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[r.isTypeOf?"typeof ":"","import(",n(r.parameter?"parameter":"argument"),")",r.qualifier?[".",n("qualifier")]:"",RL(e,t,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return JL(e,t,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===r.type&&r.abstract&&o.push("abstract "),"TSCallSignatureDeclaration"!==r.type&&o.push("new "),o.push(gL(FL(e,n,t,!1,!0))),r.returnType||r.typeAnnotation){var d="TSConstructorType"===r.type;o.push(d?" => ":": ",n("returnType"),n("typeAnnotation"))}return o;case"TSTypeOperator":return[r.operator," ",n("typeAnnotation")];case"TSMappedType":var h=pL(t.originalText,SL(r),wL(r));return gL(["{",yL([t.bracketSpacing?hL:vL,r.readonly?[CL(r.readonly,"readonly")," "]:"",kL(e,t,n),n("typeParameter"),r.optional?CL(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),DL(i)]),lL(e,t,!0),t.bracketSpacing?hL:vL,"}"],{shouldBreak:h});case"TSMethodSignature":var m=r.kind&&"method"!==r.kind?"".concat(r.kind," "):"";o.push(r.accessibility?[r.accessibility," "]:"",m,r.export?"export ":"",r.static?"static ":"",r.readonly?"readonly ":"",r.abstract?"abstract ":"",r.declare?"declare ":"",r.computed?"[":"",n("key"),r.computed?"]":"",OL(e));var v=FL(e,n,t,!1,!0),g=r.returnType?"returnType":"typeAnnotation",y=r[g],b=y?n(g):"",D=_L(r,b);return o.push(D?gL(v):v),y&&o.push(": ",gL(b)),gL(o);case"TSNamespaceExportDeclaration":return o.push("export as namespace ",n("id")),t.semi&&o.push(";"),gL(o);case"TSEnumDeclaration":return r.declare&&o.push("declare "),r.modifiers&&o.push(kL(e,t,n)),r.const&&o.push("const "),o.push("enum ",n("id")," "),0===r.members.length?o.push(gL(["{",lL(e,t),vL,"}"])):o.push(gL(["{",yL([mL,jL(e,t,"members",n),TL(t,"es5")?",":""]),lL(e,t,!0),mL,"}"])),o;case"TSEnumMember":return o.push(n("id")),r.initializer&&o.push(" = ",n("initializer")),o;case"TSImportEqualsDeclaration":return r.isExport&&o.push("export "),o.push("import "),r.importKind&&"value"!==r.importKind&&o.push(r.importKind," "),o.push(n("id")," = ",n("moduleReference")),t.semi&&o.push(";"),gL(o);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":var E=e.getParentNode(),C=EL(r.id),T="TSModuleDeclaration"===E.type,x=r.body&&"TSModuleDeclaration"===r.body.type;if(T)o.push(".");else{r.declare&&o.push("declare "),o.push(kL(e,t,n));var A=t.originalText.slice(SL(r),SL(r.id));"Identifier"===r.id.type&&"global"===r.id.name&&!/namespace|module/.test(A)||o.push(C||/(?:^|\s)module(?:\s|$)/.test(A)?"module ":"namespace ")}return o.push(n("id")),x?o.push(n("body")):r.body?o.push(" ",gL(n("body"))):o.push(i),o;case"TSConditionalType":return NL(e,t,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return zL(e,t,n);case"TSUnionType":return KL(e,t,n);case"TSFunctionType":return $L(e,t,n);case"TSTupleType":return QL(e,t,n);case"TSTypeReference":return[n("typeName"),RL(e,t,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return qL(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];default:throw new Error("Unknown TypeScript node type: ".concat(JSON.stringify(r.type),"."))}}}},XL=Oc.hasNewline,ZL=hl.builders,eP=ZL.join,tP=ZL.hardline,nP=hl.utils.replaceTextEndOfLine,rP=nE.isLineComment,iP=nE.isBlockComment,oP=km.locStart,aP=km.locEnd,uP={printComment:function(e,t){var n=e.getValue();if(rP(n))return t.originalText.slice(oP(n),aP(n)).trimEnd();if(iP(n)){if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every((function(e){return"*"===e.trim()[0]}))}(n)){var r=function(e){var t=e.value.split("\n");return["/*",eP(tP,t.map((function(e,n){return 0===n?e.trimEnd():" "+(n<t.length-1?e.trim():e.trimStart())}))),"*/"]}(n);return n.trailing&&!XL(t.originalText,oP(n),{backwards:!0})?[tP,r]:r}var i=aP(n),o="*-/"===t.originalText.slice(i-3,i);return["/*",nP(n.value),o?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(n))}},sP=Oc.printString,cP=Oc.printNumber;function lP(e){return e.toLowerCase()}function pP(e){var t=e.pattern,n=e.flags;return n=l(n).sort().join(""),"/".concat(t,"/").concat(n)}var fP={printLiteral:function(e,t){var n=e.getNode();switch(n.type){case"RegExpLiteral":return pP(n);case"BigIntLiteral":return lP(n.bigint||n.extra.raw);case"NumericLiteral":return cP(n.extra.raw);case"StringLiteral":return sP(n.extra.raw,t);case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DecimalLiteral":return cP(n.value)+"m";case"Literal":if(n.regex)return pP(n.regex);if(n.bigint)return lP(n.raw);if(n.decimal)return cP(n.decimal)+"m";var r=n.value;return"number"==typeof r?cP(n.raw):"string"==typeof r?sP(n.raw,t):String(r)}}},dP=ky.printDanglingComments,hP=Oc.hasNewline,mP=hl.builders,vP=mP.join,gP=mP.line,yP=mP.hardline,bP=mP.softline,DP=mP.group,EP=mP.indent,CP=hl.utils.replaceTextEndOfLine,TP=yC,xP=TC,AP=KC.insertPragma,SP=XT,wP=mx,OP=vx,kP=nE.hasFlowShorthandAnnotationComment,NP=nE.hasComment,FP=nE.CommentCheckFlags,_P=nE.isTheOnlyJsxElementInMarkdown,IP=nE.isBlockComment,jP=nE.isLineComment,LP=nE.isNextLineEmpty,PP=nE.needsHardlineAfterDanglingComment,MP=nE.rawText,BP=nE.hasIgnoreComment,RP=nE.isCallExpression,VP=nE.isMemberExpression,UP=km.locStart,qP=km.locEnd,HP=Tx.printHtmlBinding,GP=Tx.isVueEventBindingExpression,WP=sA.printAngular,zP=zA.printJsx,KP=zA.hasJsxIgnoreComment,$P=gj.printFlow,QP=YL.printTypescript,JP=FS.printOptionalToken,YP=FS.printBindExpressionCallee,XP=FS.printTypeAnnotation,ZP=FS.adjustClause,eM=FS.printRestSpread,tM=cI.printImportDeclaration,nM=cI.printExportDeclaration,rM=cI.printExportAllDeclaration,iM=cI.printModuleSpecifier,oM=Mj.printTernary,aM=TE.printTemplateLiteral,uM=tw.printArray,sM=jI.printObject,cM=w_.printClass,lM=w_.printClassMethod,pM=w_.printClassProperty,fM=JN.printProperty,dM=UF.printFunction,hM=UF.printArrowFunction,mM=UF.printMethod,vM=UF.printReturnStatement,gM=UF.printThrowStatement,yM=MO.printCallExpression,bM=gk.printVariableDeclarator,DM=gk.printAssignmentExpression,EM=Xx.printBinaryishExpression,CM=Yj.printSwitchCaseConsequent,TM=Hw.printMemberExpression,xM=cL.printBlock,AM=cL.printBlockBody,SM=uP.printComment,wM=fP.printLiteral,OM=t_.printDecorators;function kM(e,t){var n=MP(e),r=n.slice(1,-1);if(r.includes('"')||r.includes("'"))return n;var i=t.singleQuote?"'":'"';return i+r+i}var NM={preprocess:OP,print:function(e,t,n,r){var i=function(e,t,n,r){var i=e.getValue(),o=t.semi?";":"";if(!i)return"";if("string"==typeof i)return i;for(var a=0,u=[wM,HP,WP,zP,$P,QP];a<u.length;a++){var s=(0,u[a])(e,t,n);if(void 0!==s)return s}var c=[];switch(i.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[n("node"),yP];case"File":return i.program&&i.program.interpreter&&c.push(n(["program","interpreter"])),c.push(n("program")),c;case"Program":return AM(e,t,n);case"EmptyStatement":return"";case"ExpressionStatement":if(i.directive)return[kM(i.expression,t),o];if("__vue_event_binding"===t.parser){var p=e.getParentNode();if("Program"===p.type&&1===p.body.length&&p.body[0]===i)return[n("expression"),GP(i.expression)?";":""]}return[n("expression"),_P(t,e)?"":o];case"ParenthesizedExpression":return NP(i.expression)||"ObjectExpression"!==i.expression.type&&"ArrayExpression"!==i.expression.type?DP(["(",EP([bP,n("expression")]),bP,")"]):["(",n("expression"),")"];case"AssignmentExpression":return DM(e,t,n);case"VariableDeclarator":return bM(e,t,n);case"BinaryExpression":case"LogicalExpression":return EM(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return TM(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return i.object&&c.push(n("object")),c.push(DP(EP([bP,YP(e,t,n)]))),c;case"Identifier":return[i.name,JP(e),XP(e,t,n)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return eM(e,t,n);case"FunctionDeclaration":case"FunctionExpression":return dM(e,n,t,r);case"ArrowFunctionExpression":return hM(e,t,n,r);case"YieldExpression":return c.push("yield"),i.delegate&&c.push("*"),i.argument&&c.push(" ",n("argument")),c;case"AwaitExpression":if(c.push("await"),i.argument){c.push(" ",n("argument"));var f=e.getParentNode();if(RP(f)&&f.callee===i||VP(f)&&f.object===i){c=[EP([bP].concat(l(c))),bP];var d=e.findAncestor((function(e){return"AwaitExpression"===e.type||"BlockStatement"===e.type}));if(!d||"AwaitExpression"!==d.type)return DP(c)}}return c;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return nM(e,t,n);case"ExportAllDeclaration":return rM(e,t,n);case"ImportDeclaration":return tM(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return iM(e,t,n);case"ImportAttribute":return[n("key"),": ",n("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return xM(e,t,n);case"ThrowStatement":return gM(e,t,n);case"ReturnStatement":return vM(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return yM(e,t,n);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return sM(e,t,n);case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?mM(e,t,n):fM(e,t,n);case"ObjectMethod":return mM(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return uM(e,t,n);case"SequenceExpression":var h=e.getParentNode(0);if("ExpressionStatement"===h.type||"ForStatement"===h.type){var m=[];return e.each((function(e,t){0===t?m.push(n()):m.push(",",EP([gP,n()]))}),"expressions"),DP(m)}return DP(vP([",",gP],e.map(n,"expressions")));case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),o];case"DirectiveLiteral":return kM(i,t);case"UnaryExpression":return c.push(i.operator),/[a-z]$/.test(i.operator)&&c.push(" "),NP(i.argument)?c.push(DP(["(",EP([bP,n("argument")]),bP,")"])):c.push(n("argument")),c;case"UpdateExpression":return c.push(n("argument"),i.operator),i.prefix&&c.reverse(),c;case"ConditionalExpression":return oM(e,t,n);case"VariableDeclaration":var v,g=e.map(n,"declarations"),y=e.getParentNode(),b="ForStatement"===y.type||"ForInStatement"===y.type||"ForOfStatement"===y.type,D=i.declarations.some((function(e){return e.init}));return 1!==g.length||NP(i.declarations[0])?g.length>0&&(v=EP(g[0])):v=g[0],c=[i.declare?"declare ":"",i.kind,v?[" ",v]:"",EP(g.slice(1).map((function(e){return[",",D&&!b?yP:gP,e]})))],b&&y.body!==i||c.push(o),DP(c);case"WithStatement":return DP(["with (",n("object"),")",ZP(i.body,n("body"))]);case"IfStatement":var E=ZP(i.consequent,n("consequent")),C=DP(["if (",DP([EP([bP,n("test")]),bP]),")",E]);if(c.push(C),i.alternate){var T=NP(i.consequent,FP.Trailing|FP.Line)||PP(i),x="BlockStatement"===i.consequent.type&&!T;c.push(x?" ":yP),NP(i,FP.Dangling)&&c.push(dP(e,t,!0),T?yP:" "),c.push("else",DP(ZP(i.alternate,n("alternate"),"IfStatement"===i.alternate.type)))}return c;case"ForStatement":var A=ZP(i.body,n("body")),S=dP(e,t,!0),w=S?[S,bP]:"";return i.init||i.test||i.update?[w,DP(["for (",DP([EP([bP,n("init"),";",gP,n("test"),";",gP,n("update")]),bP]),")",A])]:[w,DP(["for (;;)",A])];case"WhileStatement":return DP(["while (",DP([EP([bP,n("test")]),bP]),")",ZP(i.body,n("body"))]);case"ForInStatement":return DP(["for (",n("left")," in ",n("right"),")",ZP(i.body,n("body"))]);case"ForOfStatement":return DP(["for",i.await?" await":""," (",n("left")," of ",n("right"),")",ZP(i.body,n("body"))]);case"DoWhileStatement":var O=ZP(i.body,n("body"));return c=[DP(["do",O])],"BlockStatement"===i.body.type?c.push(" "):c.push(yP),c.push("while (",DP([EP([bP,n("test")]),bP]),")",o),c;case"DoExpression":return[i.async?"async ":"","do ",n("body")];case"BreakStatement":return c.push("break"),i.label&&c.push(" ",n("label")),c.push(o),c;case"ContinueStatement":return c.push("continue"),i.label&&c.push(" ",n("label")),c.push(o),c;case"LabeledStatement":return"EmptyStatement"===i.body.type?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),i.handler?[" ",n("handler")]:"",i.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(i.param){var k=NP(i.param,(function(e){return!IP(e)||e.leading&&hP(t.originalText,qP(e))||e.trailing&&hP(t.originalText,UP(e),{backwards:!0})})),N=n("param");return["catch ",k?["(",EP([bP,N]),bP,") "]:["(",N,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[DP(["switch (",EP([bP,n("discriminant")]),bP,")"])," {",i.cases.length>0?EP([yP,vP(yP,e.map((function(e,r,i){var o=e.getValue();return[n(),r!==i.length-1&&LP(o,t)?yP:""]}),"cases"))]):"",yP,"}"];case"SwitchCase":i.test?c.push("case ",n("test"),":"):c.push("default:");var F=i.consequent.filter((function(e){return"EmptyStatement"!==e.type}));if(F.length>0){var _=CM(e,t,n);c.push(1===F.length&&"BlockStatement"===F[0].type?[" ",_]:EP([yP,_]))}return c;case"DebuggerStatement":return["debugger",o];case"ClassDeclaration":case"ClassExpression":return cM(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return lM(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return pM(e,t,n);case"TemplateElement":return CP(i.value.raw);case"TemplateLiteral":return aM(e,n,t);case"TaggedTemplateExpression":return[n("tag"),n("typeParameters"),n("quasi")];case"PrivateIdentifier":return["#",n("name")];case"PrivateName":return["#",n("id")];case"InterpreterDirective":return c.push("#!",i.value,yP),LP(i,t)&&c.push(yP),c;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":c.push("module {");var I=n("body");return I&&c.push(EP([yP,I]),yP),c.push("}"),c;default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,n,r);if(!i)return"";var o=e.getValue(),a=o.type;if("ClassMethod"===a||"ClassPrivateMethod"===a||"ClassProperty"===a||"PropertyDefinition"===a||"TSAbstractPropertyDefinition"===a||"ClassPrivateProperty"===a||"MethodDefinition"===a||"TSAbstractMethodDefinition"===a||"TSDeclareMethod"===a)return i;var u=OM(e,t,n);if(u)return DP([].concat(l(u),[i]));if(!wP(e,t))return r&&r.needsSemi?[";",i]:i;var s=[r&&r.needsSemi?";(":"(",i];if(kP(o)){var c=d(o.trailingComments,1)[0];s.push(" /*",c.value.trimStart(),"*/"),c.printed=!0}return s.push(")"),s},embed:TP,insertPragma:AP,massageAstNode:xP,hasPrettierIgnore:function(e){return BP(e)||KP(e)},willPrintOwnComments:SP.willPrintOwnComments,canAttachComment:function(e){return e.type&&!IP(e)&&!jP(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:SM,isBlockComment:IP,handleComments:{avoidAstMutation:!0,ownLine:SP.handleOwnLineComment,endOfLine:SP.handleEndOfLineComment,remaining:SP.handleRemainingComment},getCommentChildNodes:SP.getCommentChildNodes},FM=hl.builders,_M=FM.hardline,IM=FM.indent,jM=FM.join,LM=vx,PM=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function MM(e,t){var n=e.type;if("ObjectProperty"!==n||"Identifier"!==e.key.type){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;var r,i=p(e.elements.entries());try{for(i.s();!(r=i.n()).done;){var o=d(r.value,2),a=o[0];null===o[1]&&t.elements.splice(a,0,{type:"NullLiteral"})}}catch(KJ){i.e(KJ)}finally{i.f()}}else t.key={type:"StringLiteral",value:e.key.name}}MM.ignoredProperties=PM;var BM={preprocess:LM,print:function(e,t,n){var r=e.getValue();switch(r.type){case"JsonRoot":return[n("node"),_M];case"ArrayExpression":if(0===r.elements.length)return"[]";var i=e.map((function(){return null===e.getValue()?"null":n()}),"elements");return["[",IM([_M,jM([",",_M],i)]),_M,"]"];case"ObjectExpression":return 0===r.properties.length?"{}":["{",IM([_M,jM([",",_M],e.map(n,"properties"))]),_M,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===r.operator?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":var o=e.getParentNode();return o&&"ObjectProperty"===o.type&&o.key===r?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:MM},RM="Common",VM={bracketSpacing:{since:"0.0.0",category:RM,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:RM,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:RM,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:RM,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."}},UM="JavaScript",qM={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},HM={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},GM={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},WM={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".imgbotconfig",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},zM={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},KM={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},$M=Jb,QM=NM,JM=BM,YM={arrowParens:{since:"1.9.0",category:UM,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:VM.bracketSameLine,bracketSpacing:VM.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:UM,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:UM,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:VM.singleQuote,jsxSingleQuote:{since:"1.15.0",category:UM,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:UM,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:UM,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},XM=[$M(qM,(function(e){return{since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[].concat(l(e.interpreters),["zx"]),extensions:[].concat(l(e.extensions.filter((function(e){return".jsx"!==e}))),[".wxs"])}})),$M(qM,(function(){return{name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}})),$M(qM,(function(){return{name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0}})),$M(HM,(function(e){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],extensions:[].concat(l(e.extensions),[".mts",".cts"])}})),$M(GM,(function(){return{since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}})),$M(WM,(function(){return{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}})),$M(WM,(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter((function(e){return".jsonl"!==e}))}})),$M(zM,(function(e){return{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[].concat(l(e.filenames),[".eslintrc"])}})),$M(KM,(function(){return{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}}))],ZM={languages:XM,options:YM,printers:{estree:QM,"estree-json":JM},parsers:void 0},eB=Oc.isFrontMatterNode,tB=Ca,nB=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function rB(e,t,n){if(eB(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&n.nodes.length>0){if((n.nodes[0]===e||eB(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text)))return null;if("css-root"===n.type&&tB(n.nodes)===e)return null}if("value-root"===e.type&&delete t.text,"media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"media-feature"!==e.type&&"media-keyword"!==e.type&&"media-type"!==e.type&&"media-unknown"!==e.type&&"media-url"!==e.type&&"media-value"!==e.type&&"selector-attribute"!==e.type&&"selector-string"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"value-string"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),"media-value"!==e.type&&"media-type"!==e.type&&"value-number"!==e.type&&"selector-root-invalid"!==e.type&&"selector-class"!==e.type&&"selector-combinator"!==e.type&&"selector-tag"!==e.type||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(function(e,t,n){var r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()}))),"selector-tag"===e.type){var r=e.value.toLowerCase();["from","to"].includes(r)&&(t.value=r)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value}rB.ignoredProperties=nB;var iB=rB,oB=hl.builders,aB=oB.hardline,uB=oB.markAsRoot,sB=function(e,t){if("yaml"===e.lang){var n=e.value.trim(),r=n?t(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return uB([e.startDelimiter,aB,r,r?aB:"",e.endDelimiter])}},cB=hl.builders.hardline,lB=sB,pB=function(e,t,n){var r=e.getValue();if("front-matter"===r.type){var i=lB(r,n);return i?[i,cB]:""}},fB=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s"),dB=function(e){var t=e.match(fB);if(!t)return{content:e};var n=t.groups,r=n.startDelimiter,i=n.language,o=n.value,a=void 0===o?"":o,u=n.endDelimiter,s=i.trim()||"yaml";if("+++"===r&&(s="toml"),"yaml"!==s&&r!==u)return{content:e};var c=d(t,1)[0];return{frontMatter:{type:"front-matter",lang:s,value:a,startDelimiter:r,endDelimiter:u,raw:c.replace(/\n$/,"")},content:c.replace(/[^\n]/g," ")+e.slice(c.length)}},hB=KC,mB=dB,vB={hasPragma:function(e){return hB.hasPragma(mB(e).content)},insertPragma:function(e){var t=mB(e),n=t.frontMatter,r=t.content;return(n?n.raw+"\n\n":"")+hB.insertPragma(r)}},gB=Oc.isNonEmptyArray,yB=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]),bB=new Set(["import","use","forward"]);function DB(e,t){for(var n,r=Array.isArray(t)?t:[t],i=-1;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function EB(e,t){var n=DB(e,t);return-1===n?null:e.getParentNode(n)}function CB(e){return"value-operator"===e.type&&"*"===e.value}function TB(e){return"value-operator"===e.type&&"/"===e.value}function xB(e){return"value-operator"===e.type&&"+"===e.value}function AB(e){return"value-operator"===e.type&&"-"===e.value}function SB(e){return"value-operator"===e.type&&"%"===e.value}function wB(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function OB(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&wB(e.groups[0])}function kB(e){return e&&"value-colon"===e.type}var NB={getAncestorCounter:DB,getAncestorNode:EB,getPropOfDeclNode:function(e){var t=EB(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(gB(e))for(var t=e.length-1;t>0;t--)if("word"===e[t].type&&"{"===e[t].value&&"word"===e[t-1].type&&e[t-1].value.endsWith("#"))return!0;return!1},hasStringOrFunction:function(e){if(gB(e))for(var t=0;t<e.length;t++)if("string"===e[t].type||"func"===e[t].type)return!0;return!1},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){var n=EB(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},insideICSSRuleNode:function(e){var t=EB(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){var n=Array.isArray(t)?t:[t],r=EB(e,"css-atrule");return r&&n.includes(r.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){var t=e.getValue(),n=EB(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},isKeyframeAtRuleKeywords:function(e,t){var n=EB(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return"less"===e||"scss"===e?"scss"===e:/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)},isSCSSVariable:function(e){return Boolean(e&&"word"===e.type&&e.value.startsWith("$"))},isLastNode:function(e,t){var n=e.getParentNode();if(!n)return!1;var r=n.nodes;return r&&r.indexOf(t)===r.length-1},isLessParser:function(e){return"css"===e.parser||"less"===e.parser},isSCSSControlDirectiveNode:function(e){return"css-atrule"===e.type&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return"value-word"===e.type&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:CB,isDivisionNode:TB,isAdditionNode:xB,isSubtractionNode:AB,isModuloNode:SB,isMathOperatorNode:function(e){return CB(e)||TB(e)||xB(e)||AB(e)||SB(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:wB,isKeyValuePairInParenGroupNode:OB,isKeyInValuePairNode:function(e,t){if(!wB(t))return!1;var n=t.groups,r=n.indexOf(e);return-1!==r&&kB(n[r+1])},isSCSSMapItemNode:function(e){var t=e.getValue();if(0===t.groups.length)return!1;var n=e.getParentNode(1);if(!(OB(t)||n&&OB(n)))return!1;var r=EB(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!OB(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:kB,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&yB.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce((function(n,r,i){return n+e(r)+("comma_group"===t.groups[0].type&&i!==t.groups.length-1?",":"")}),"")+(t.close&&t.close.value?t.close.value:"");var n=t.raws&&t.raws.before?t.raws.before:"",r=t.raws&&t.raws.quote?t.raws.quote:"";return n+r+("atword"===t.type?"@":"")+(t.value?t.value:"")+r+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&"value-atword"===e.type&&e.value.startsWith("prettier-placeholder-")},isModuleRuleName:function(e){return bB.has(e)},isConfigurationNode:function(e,t){if(!e.open||"("!==e.open.value||!e.close||")"!==e.close.value||e.groups.some((function(e){return"value-comma_group"!==e.type})))return!1;if("value-comma_group"===t.type){var n=t.groups.indexOf(e)-1,r=t.groups[n];if(r&&"value-word"===r.type&&"with"===r.value)return!0}return!1},isParenGroupNode:function(e){return"value-paren_group"===e.type&&e.open&&"("===e.open.value&&e.close&&")"===e.close.value}},FB=function(e,t){for(var n=0,r=0;r<e.line-1;++r)n=t.indexOf("\n",n)+1;return n+e.column},_B=Oc.getLast,IB=Oc.skipEverythingButNewLine;function jB(e,t){return"number"==typeof e.sourceIndex?e.sourceIndex:e.source?FB(e.source.start,t)-1:null}function LB(e,t){if("css-comment"===e.type&&e.inline)return IB(t,e.source.startOffset);var n=e.nodes&&_B(e.nodes);return n&&e.source&&!e.source.end&&(e=n),e.source&&e.source.end?FB(e.source.end,t):null}function PB(e,t,n){for(var r in e.source&&(e.source.startOffset=jB(e,n)+t,e.source.endOffset=LB(e,n)+t),e){var i=e[r];"source"!==r&&i&&"object"==typeof i&&PB(i,t,n)}}function MB(e){var t=e.source.startOffset;return"string"==typeof e.prop&&(t+=e.prop.length),"css-atrule"===e.type&&"string"==typeof e.name&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),"css-atrule"!==e.type&&e.raws&&"string"==typeof e.raws.between&&(t+=e.raws.between.length),t}var BB={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,n){for(var r in t.source&&(t.source.startOffset=jB(t,n),t.source.endOffset=LB(t,n)),t){var i=t[r];"source"!==r&&i&&"object"==typeof i&&("value-root"===i.type||"value-unknown"===i.type?PB(i,MB(t),i.text||i.value):e(i,n))}},replaceQuotesInInlineComments:function(e){for(var t,n="initial",r="initial",i=!1,o=[],a=0;a<e.length;a++){var u=e[a];switch(n){case"initial":if("'"===u){n="single-quotes";continue}if('"'===u){n="double-quotes";continue}if(("u"===u||"U"===u)&&"url("===e.slice(a,a+4).toLowerCase()){n="url",a+=3;continue}if("*"===u&&"/"===e[a-1]){n="comment-block";continue}if("/"===u&&"/"===e[a-1]){n="comment-inline",t=a-1;continue}continue;case"single-quotes":if("'"===u&&"\\"!==e[a-1]&&(n=r,r="initial"),"\n"===u||"\r"===u)return e;continue;case"double-quotes":if('"'===u&&"\\"!==e[a-1]&&(n=r,r="initial"),"\n"===u||"\r"===u)return e;continue;case"url":if(")"===u&&(n="initial"),"\n"===u||"\r"===u)return e;if("'"===u){n="single-quotes",r="url";continue}if('"'===u){n="double-quotes",r="url";continue}continue;case"comment-block":"/"===u&&"*"===e[a-1]&&(n="initial");continue;case"comment-inline":'"'!==u&&"'"!==u&&"*"!==u||(i=!0),"\n"!==u&&"\r"!==u||(i&&o.push([t,a]),n="initial",i=!1);continue}}for(var s=0,c=o;s<c.length;s++){var l=d(c[s],2),p=l[0],f=l[1];e=e.slice(0,p)+e.slice(p,f).replace(/["'*]/g," ")+e.slice(f)}return e}},RB=Ca,VB=Oc.printNumber,UB=Oc.printString,qB=Oc.hasNewline,HB=Oc.isFrontMatterNode,GB=Oc.isNextLineEmpty,WB=Oc.isNonEmptyArray,zB=hl.builders,KB=zB.join,$B=zB.line,QB=zB.hardline,JB=zB.softline,YB=zB.group,XB=zB.fill,ZB=zB.indent,eR=zB.dedent,tR=zB.ifBreak,nR=zB.breakParent,rR=hl.utils,iR=rR.removeLines,oR=rR.getDocParts,aR=iB,uR=pB,sR=vB.insertPragma,cR=NB.getAncestorNode,lR=NB.getPropOfDeclNode,pR=NB.maybeToLowerCase,fR=NB.insideValueFunctionNode,dR=NB.insideICSSRuleNode,hR=NB.insideAtRuleNode,mR=NB.insideURLFunctionInImportAtRuleNode,vR=NB.isKeyframeAtRuleKeywords,gR=NB.isWideKeywords,yR=NB.isSCSS,bR=NB.isLastNode,DR=NB.isLessParser,ER=NB.isSCSSControlDirectiveNode,CR=NB.isDetachedRulesetDeclarationNode,TR=NB.isRelationalOperatorNode,xR=NB.isEqualityOperatorNode,AR=NB.isMultiplicationNode,SR=NB.isDivisionNode,wR=NB.isAdditionNode,OR=NB.isSubtractionNode,kR=NB.isMathOperatorNode,NR=NB.isEachKeywordNode,FR=NB.isForKeywordNode,_R=NB.isURLFunctionNode,IR=NB.isIfElseKeywordNode,jR=NB.hasComposesNode,LR=NB.hasParensAroundNode,PR=NB.hasEmptyRawBefore,MR=NB.isKeyValuePairNode,BR=NB.isKeyInValuePairNode,RR=NB.isDetachedRulesetCallNode,VR=NB.isTemplatePlaceholderNode,UR=NB.isTemplatePropNode,qR=NB.isPostcssSimpleVarNode,HR=NB.isSCSSMapItemNode,GR=NB.isInlineValueCommentNode,WR=NB.isHashNode,zR=NB.isLeftCurlyBraceNode,KR=NB.isRightCurlyBraceNode,$R=NB.isWordNode,QR=NB.isColonNode,JR=NB.isMediaAndSupportsKeywords,YR=NB.isColorAdjusterFuncNode,XR=NB.lastLineHasInlineComment,ZR=NB.isAtWordPlaceholderNode,eV=NB.isConfigurationNode,tV=NB.isParenGroupNode,nV=BB.locStart,rV=BB.locEnd;function iV(e){return"es5"===e.trailingComma||"all"===e.trailingComma}function oV(e,t,n){var r=[];return e.each((function(e,i,o){var a=o[i-1];if(a&&"css-comment"===a.type&&"prettier-ignore"===a.text.trim()){var u=e.getValue();r.push(t.originalText.slice(nV(u),rV(u)))}else r.push(n());i!==o.length-1&&("css-comment"===o[i+1].type&&!qB(t.originalText,nV(o[i+1]),{backwards:!0})&&!HB(o[i])||"css-atrule"===o[i+1].type&&"else"===o[i+1].name&&"css-comment"!==o[i].type?r.push(" "):(r.push(t.__isHTMLStyleAttribute?$B:QB),GB(t.originalText,e.getValue(),rV)&&!HB(o[i])&&r.push(QB)))}),"nodes"),r}var aV=/(["'])(?:(?!\1)(?:(?!\\)[\s\S])|\\[\s\S])*\1/g,uV=new RegExp(aV.source+"|"+"(".concat(/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source,")")+"(".concat(/[A-Za-z]+/g.source,")?"),"g");function sV(e,t){return e.replace(aV,(function(e){return UB(e,t)}))}function cV(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function lV(e){return e.replace(uV,(function(e,t,n,r,i){return!n&&r?pV(r)+pR(i||""):e}))}function pV(e){return VB(e).replace(/\.0(?=$|e)/,"")}var fV={print:function(e,t,n){var r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"front-matter":return[r.raw,QB];case"css-root":var i=oV(e,t,n),o=r.raws.after.trim();return[i,o?" ".concat(o):"",oR(i).length>0?QB:""];case"css-comment":var a=r.inline||r.raws.inline,u=t.originalText.slice(nV(r),rV(r));return a?u.trimEnd():u;case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[r.selector&&"selector-unknown"===r.selector.type&&XR(r.selector.value)?$B:" ","{",r.nodes.length>0?ZB([QB,oV(e,t,n)]):"",QB,"}",CR(r)?";":""]:";"];case"css-decl":var s=e.getParentNode(),c=r.raws.between.trim(),p=":"===c,f=jR(r)?iR(n("value")):n("value");return!p&&XR(c)&&(f=ZB([QB,eR(f)])),[r.raws.before.replace(/[\s;]/g,""),dR(e)?r.prop:pR(r.prop),c.startsWith("//")?" ":"",c,r.extend?"":" ",DR(t)&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",f,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",ZB([JB,oV(e,t,n)]),JB,"}"]:UR(r)&&!s.raws.semicolon&&";"!==t.originalText[rV(r)-1]?"":t.__isHTMLStyleAttribute&&bR(e,r)?tR(";"):";"];case"css-atrule":var d=e.getParentNode(),h=VR(r)&&!d.raws.semicolon&&";"!==t.originalText[rV(r)-1];if(DR(t)){if(r.mixin)return[n("selector"),r.important?" !important":"",h?"":";"];if(r.function)return[r.name,n("params"),h?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",ZB([r.nodes.length>0?JB:"",oV(e,t,n)]),JB,"}"]:"",h?"":";"]}return["@",RR(r)||r.name.endsWith(":")?r.name:pR(r.name),r.params?[RR(r)?"":VR(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[QB,QB]:/^\s*\n/.test(r.raws.afterName)?QB:" ":" ",n("params")]:"",r.selector?ZB([" ",n("selector")]):"",r.value?YB([" ",n("value"),ER(r)?LR(r)?" ":$B:""]):"else"===r.name?" ":"",r.nodes?[ER(r)?"":r.selector&&!r.selector.nodes&&"string"==typeof r.selector.value&&XR(r.selector.value)||!r.selector&&"string"==typeof r.params&&XR(r.params)?$B:" ","{",ZB([r.nodes.length>0?JB:"",oV(e,t,n)]),JB,"}"]:h?"":";"];case"media-query-list":var m=[];return e.each((function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||m.push(n())}),"nodes"),YB(ZB(KB($B,m)));case"media-query":return[KB(" ",e.map(n,"nodes")),bR(e,r)?"":","];case"media-type":case"media-value":return lV(sV(r.value,t));case"media-feature-expression":return r.nodes?["("].concat(l(e.map(n,"nodes")),[")"]):r.value;case"media-feature":return pR(sV(r.value.replace(/ +/g," "),t));case"media-colon":case"value-comma":return[r.value," "];case"media-keyword":case"selector-string":return sV(r.value,t);case"media-url":return sV(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":case"selector-comment":case"selector-nesting":case"value-paren":case"value-operator":case"value-unicode-range":case"value-unknown":return r.value;case"selector-root":return YB([hR(e,"custom-selector")?[cR(e,"css-atrule").customSelector,$B]:"",KB([",",hR(e,["extend","custom-selector","nest"])?$B:QB],e.map(n,"nodes"))]);case"selector-selector":return YB(ZB(e.map(n,"nodes")));case"selector-tag":var v=e.getParentNode(),g=v&&v.nodes.indexOf(r),y=g&&v.nodes[g-1];return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"","selector-nesting"===y.type?r.value:lV(vR(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",lV(sV(r.value,t))];case"selector-attribute":return["[",r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator?r.operator:"",r.value?cV(sV(r.value.trim(),t),t):"",r.insensitive?" i":"","]"];case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){var b=e.getParentNode();return["selector-selector"===b.type&&b.nodes[0]===r?"":$B,r.value,bR(e,r)?"":" "]}return[r.value.trim().startsWith("(")?$B:"",lV(sV(r.value.trim(),t))||$B];case"selector-universal":return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[pR(r.value),WB(r.nodes)?["(",KB(", ",e.map(n,"nodes")),")"]:""];case"selector-unknown":var D=cR(e,"css-rule");if(D&&D.isSCSSNesterProperty)return lV(sV(pR(r.value),t));var E=e.getParentNode();if(E.raws&&E.raws.selector){var C=nV(E),T=C+E.raws.selector.length;return t.originalText.slice(C,T).trim()}var x=e.getParentNode(1);if("value-paren_group"===E.type&&x&&"value-func"===x.type&&"selector"===x.value){var A=nV(E.open)+1,S=rV(E.close)-1,w=t.originalText.slice(A,S).trim();return XR(w)?[nR,w]:w}return r.value;case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(nV(r),rV(r));case"value-comma_group":for(var O=e.getParentNode(),k=e.getParentNode(1),N=lR(e),F=N&&"value-value"===O.type&&("grid"===N||N.startsWith("grid-template")),_=cR(e,"css-atrule"),I=_&&ER(_),j=r.groups.some((function(e){return GR(e)})),L=e.map(n,"groups"),P=[],M=fR(e,"url"),B=!1,R=!1,V=0;V<r.groups.length;++V){P.push(L[V]);var U=r.groups[V-1],q=r.groups[V],H=r.groups[V+1],G=r.groups[V+2];if(M)(H&&wR(H)||wR(q))&&P.push(" ");else if((!hR(e,"forward")||"value-word"!==q.type||!q.value||void 0===U||"value-word"!==U.type||"as"!==U.value||"value-operator"!==H.type||"*"!==H.value)&&H&&("value-word"!==q.type||!q.value.endsWith("-")||!ZR(H))){var W="value-string"===q.type&&q.value.startsWith("#{"),z=B&&"value-string"===H.type&&H.value.endsWith("}");if(W||z)B=!B;else if(!B&&!QR(q)&&!QR(H)&&("value-atword"!==q.type||""!==q.value)&&"~"!==q.value&&!(q.value&&q.value.includes("\\")&&H&&"value-comment"!==H.type)&&(!U||!U.value||U.value.indexOf("\\")!==U.value.length-1||"value-operator"!==q.type||"/"!==q.value)&&"\\"!==q.value&&!qR(q,H)&&!(WR(q)||zR(q)||KR(H)||zR(H)&&PR(H)||KR(q)&&PR(H))&&("--"!==q.value||!WR(H))){var K=kR(q),$=kR(H);if((!(K&&WR(H)||$&&KR(q))||!PR(H))&&(U||!SR(q))&&!(fR(e,"calc")&&(wR(q)||wR(H)||OR(q)||OR(H))&&PR(H))){var Q=(wR(q)||OR(q))&&0===V&&("value-number"===H.type||H.isHex)&&k&&YR(k)&&!PR(H),J=G&&"value-func"===G.type||G&&$R(G)||"value-func"===q.type||$R(q),Y="value-func"===H.type||$R(H)||U&&"value-func"===U.type||U&&$R(U);if(AR(H)||AR(q)||fR(e,"calc")||Q||!(SR(H)&&!J||SR(q)&&!Y||wR(H)&&!J||wR(q)&&!Y||OR(H)||OR(q))||!(PR(H)||K&&(!U||U&&kR(U))))if(GR(q)){if("value-paren_group"===O.type){P.push(eR(QB));continue}P.push(QB)}else I&&(xR(H)||TR(H)||IR(H)||NR(q)||FR(q))||_&&"namespace"===_.name.toLowerCase()?P.push(" "):F?q.source&&H.source&&q.source.start.line!==H.source.start.line?(P.push(QB),R=!0):P.push(" "):$?P.push(" "):H&&"..."===H.value||ZR(q)&&ZR(H)&&rV(q)===nV(H)||(ZR(q)&&tV(H)&&rV(q)===nV(H.open)?P.push(JB):"with"===q.value&&tV(H)?P.push(" "):P.push($B))}}}}return j&&P.push(nR),R&&P.unshift(QB),I?YB(ZB(P)):mR(e)?YB(XB(P)):YB(ZB(XB(P)));case"value-paren_group":var X=e.getParentNode();if(X&&_R(X)&&(1===r.groups.length||r.groups.length>0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",KB(",",e.map(n,"groups")),r.close?n("close"):""];if(!r.open){for(var Z=e.map(n,"groups"),ee=[],te=0;te<Z.length;te++)0!==te&&ee.push([",",$B]),ee.push(Z[te]);return YB(ZB(XB(ee)))}var ne=HR(e),re=RB(r.groups),ie=re&&"value-comment"===re.type,oe=BR(r,X),ae=eV(r,X),ue=ae||ne&&!oe,se=ae||oe,ce=YB([r.open?n("open"):"",ZB([JB,KB([",",$B],e.map((function(e){var t=e.getValue(),r=n();if(MR(t)&&"value-comma_group"===t.type&&t.groups&&"value-paren_group"!==t.groups[0].type&&t.groups[2]&&"value-paren_group"===t.groups[2].type){var i=oR(r.contents.contents);return i[1]=YB(i[1]),YB(eR(r))}return r}),"groups"))]),tR(!ie&&yR(t.parser,t.originalText)&&ne&&iV(t)?",":""),JB,r.close?n("close"):""],{shouldBreak:ue});return se?eR(ce):ce;case"value-func":return[r.value,hR(e,"supports")&&JR(r)?" ":"",n("group")];case"value-number":return[pV(r.value),pR(r.unit)];case"value-word":return r.isColor&&r.isHex||gR(r.value)?r.value.toLowerCase():r.value;case"value-colon":var le=e.getParentNode(),pe=le&&le.groups.indexOf(r),fe=pe&&le.groups[pe-1];return[r.value,fe&&"string"==typeof fe.value&&"\\"===RB(fe.value)||fR(e,"url")?"":$B];case"value-string":return UB(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return["@",r.value];default:throw new Error("Unknown postcss type ".concat(JSON.stringify(r.type)))}},embed:uR,insertPragma:sR,massageAstNode:aR},dV={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},hV={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},mV={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},vV=Jb,gV=fV,yV={singleQuote:VM.singleQuote},bV=[vV({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},(function(e){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[].concat(l(e.extensions),[".wxss"])}})),vV(dV,(function(){return{since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]}})),vV(hV,(function(){return{since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]}})),vV(mV,(function(){return{since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}}))],DV={languages:bV,options:yV,printers:{postcss:gV},parsers:void 0},EV={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}};function CV(e,t){if("TextNode"===e.type){var n=e.chars.trim();if(!n)return null;t.chars=n.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}CV.ignoredProperties=new Set(["loc","selfClosing"]);var TV=CV,xV=Ca,AV=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function SV(e){return wV(e,["TextNode"])&&!/\S/.test(e.chars)}function wV(e,t){return e&&t.includes(e.type)}function OV(e,t){return wV(e.getParentNode(0),t)}function kV(e,t){var n=e.getValue(),r=e.getParentNode(0)||{},i=r.children||r.body||r.parts||[],o=i.indexOf(n);return-1!==o&&i[o+t]}function NV(e){return kV(e,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function FV(e){return kV(e,1)}function _V(e){return wV(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var IV={getNextNode:FV,getPreviousNode:NV,hasPrettierIgnore:function(e){var t=e.getValue(),n=NV(e,2);return _V(t)||_V(n)},isLastNodeOfSiblings:function(e){var t=e.getValue(),n=e.getParentNode(0);return!(!OV(e,["ElementNode"])||xV(n.children)!==t)||!(!OV(e,["Block"])||xV(n.body)!==t)},isNextNodeOfSomeType:function(e,t){return wV(FV(e),t)},isNodeOfSomeType:wV,isParentOfSomeType:OV,isPreviousNodeOfSomeType:function(e,t){return wV(NV(e),t)},isVoid:function(e){return function(e){return wV(e,["ElementNode"])&&"string"==typeof e.tag&&":"!==e.tag[0]&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))}(e)&&e.children.every((function(e){return SV(e)}))||AV.has(e.tag)},isWhitespaceNode:SV},jV=hl.builders,LV=jV.dedent,PV=jV.fill,MV=jV.group,BV=jV.hardline,RV=jV.ifBreak,VV=jV.indent,UV=jV.join,qV=jV.line,HV=jV.softline,GV=hl.utils,WV=GV.getDocParts,zV=GV.replaceTextEndOfLine,KV=Oc.getPreferredQuote,$V=Oc.isNonEmptyArray,QV=EV.locStart,JV=EV.locEnd,YV=TV,XV=IV.getNextNode,ZV=IV.getPreviousNode,eU=IV.hasPrettierIgnore,tU=IV.isLastNodeOfSiblings,nU=IV.isNextNodeOfSomeType,rU=IV.isNodeOfSomeType,iU=IV.isParentOfSomeType,oU=IV.isPreviousNodeOfSomeType,aU=IV.isVoid,uU=IV.isWhitespaceNode;function sU(e,t){return QV(e)-QV(t)}function cU(e,t,n){var r=e.getValue().children.every((function(e){return uU(e)}));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map((function(e,r){var i=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[HV,i]:i}),"children")}function lU(e){return aU(e)?RV([HV,"/>"],[" />",HV]):RV([HV,">"],">")}function pU(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function fU(e){var t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function dU(e){return[pU(e),e.closeStrip.open?"~":"","/"]}function hU(e){var t=fU(e);return[e.closeStrip.close?"~":"",t]}function mU(e){return[pU(e),e.inverseStrip.open?"~":""]}function vU(e){var t=fU(e);return[e.inverseStrip.close?"~":"",t]}function gU(e,t){var n=e.getValue(),r=function(e){return[pU(e),e.openStrip.open?"~":"","#"]}(n),i=function(e){var t=fU(e);return[e.openStrip.close?"~":"",t]}(n),o=[FU(e,t)],a=_U(e,t);if(a&&o.push(qV,a),$V(n.program.blockParams)){var u=IU(n.program);o.push(qV,u)}return MV([r,VV(o),HV,i])}function yU(e,t){return["ignore"===t.htmlWhitespaceSensitivity?BV:"",mU(e),"else",vU(e)]}function bU(e,t){var n=e.getParentNode(1);return[mU(n),"else if ",_U(e,t),vU(n)]}function DU(e,t,n){var r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[EU(r)?HV:BV,dU(r),t("path"),hU(r)]:[dU(r),t("path"),hU(r)]}function EU(e){return rU(e,["BlockStatement"])&&e.program.body.every((function(e){return uU(e)}))}function CU(e){return rU(e,["BlockStatement"])&&e.inverse}function TU(e,t,n){if(EU(e.getValue()))return"";var r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?VV([BV,r]):VV(r)}function xU(e,t,n){var r=e.getValue(),i=t("inverse"),o="ignore"===n.htmlWhitespaceSensitivity?[BV,i]:i;return function(e){return CU(e)&&1===e.inverse.body.length&&rU(e.inverse.body[0],["BlockStatement"])&&"if"===e.inverse.body[0].path.parts[0]}(r)?o:CU(r)?[yU(r,n),VV(o)]:""}function AU(e){return WV(UV(qV,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function SU(e){return(e="string"==typeof e?e:"").split("\n").length-1}function wU(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.from({length:Math.min(e,2)}).fill(BV)}function OU(e,t){var n=KV(e,t),r=n.quote,i=n.regex;return[r,e.replace(i,"\\".concat(r)),r]}function kU(e,t){var n=FU(e,t),r=_U(e,t);return r?VV([n,qV,MV(r)]):n}function NU(e,t){var n=FU(e,t),r=_U(e,t);return r?[VV([n,qV,r]),HV]:n}function FU(e,t){return t("path")}function _U(e,t){var n=e.getValue(),r=[];if(n.params.length>0){var i=e.map(t,"params");r.push.apply(r,l(i))}if(n.hash&&n.hash.pairs.length>0){var o=t("hash");r.push(o)}return 0===r.length?"":UV(qV,r)}function IU(e){return["as |",e.blockParams.join(" "),"|"]}var jU={print:function(e,t,n){var r=e.getValue();if(!r)return"";if(eU(e))return t.originalText.slice(QV(r),JV(r));var i=t.singleQuote?"'":'"';switch(r.type){case"Block":case"Program":case"Template":return MV(e.map(n,"body"));case"ElementNode":var o=MV(function(e,t){var n,r=e.getValue(),i=["attributes","modifiers","comments"].filter((function(e){return $V(r[e])})),o=i.flatMap((function(e){return r[e]})).sort(sU),a=p(i);try{for(a.s();!(n=a.n()).done;){var u=n.value;e.each((function(e){var n=o.indexOf(e.getValue());o.splice(n,1,[qV,t()])}),u)}}catch(KJ){a.e(KJ)}finally{a.f()}return $V(r.blockParams)&&o.push(qV,IU(r)),["<",r.tag,VV(o),lU(r)]}(e,n)),a="ignore"===t.htmlWhitespaceSensitivity&&nU(e,["ElementNode"])?HV:"";if(aU(r))return[o,a];var u=["</",r.tag,">"];return 0===r.children.length?[o,VV(u),a]:"ignore"===t.htmlWhitespaceSensitivity?[o,VV(cU(e,t,n)),BV,VV(u),a]:[o,VV(MV(cU(e,t,n))),VV(u),a];case"BlockStatement":var s=e.getParentNode(1);return s&&s.inverse&&1===s.inverse.body.length&&s.inverse.body[0]===r&&"if"===s.inverse.body[0].path.parts[0]?[bU(e,n),TU(e,n,t),xU(e,n,t)]:[gU(e,n),MV([TU(e,n,t),xU(e,n,t),DU(e,n,t)])];case"ElementModifierStatement":return MV(["{{",NU(e,n),"}}"]);case"MustacheStatement":return MV([pU(r),NU(e,n),fU(r)]);case"SubExpression":return MV(["(",kU(e,n),HV,")"]);case"AttrNode":var c="TextNode"===r.value.type;if(c&&""===r.value.chars&&QV(r.value)===JV(r.value))return r.name;var f=c?KV(r.value.chars,i).quote:"ConcatStatement"===r.value.type?KV(r.value.parts.filter((function(e){return"TextNode"===e.type})).map((function(e){return e.chars})).join(""),i).quote:"",h=n("value");return[r.name,"=",f,"class"===r.name&&f?MV(VV(h)):h,f];case"ConcatStatement":return e.map(n,"parts");case"Hash":return UV(qV,e.map(n,"pairs"));case"HashPair":return[r.key,"=",n("value")];case"TextNode":var m=r.chars.replace(/{{/g,"\\{{"),v=function(e){for(var t=0;t<2;t++){var n=e.getParentNode(t);if(n&&"AttrNode"===n.type)return n.name.toLowerCase()}}(e);if(v){if("class"===v){var g=m.trim().split(/\s+/).join(" "),y=!1,b=!1;return iU(e,["ConcatStatement"])&&(oU(e,["MustacheStatement"])&&/^\s/.test(m)&&(y=!0),nU(e,["MustacheStatement"])&&/\s$/.test(m)&&""!==g&&(b=!0)),[y?qV:"",g,b?qV:""]}return zV(m)}var D=/^[\t\n\f\r ]*$/.test(m),E=!ZV(e),C=!XV(e);if("ignore"!==t.htmlWhitespaceSensitivity){var T=/^[\t\n\f\r ]*/,x=/[\t\n\f\r ]*$/,A=C&&iU(e,["Template"]),S=E&&iU(e,["Template"]);if(D){if(S||A)return"";var w=[qV],O=SU(m);return O&&(w=wU(O)),tU(e)&&(w=w.map((function(e){return LV(e)}))),w}var k=m.match(T),N=d(k,1)[0],F=m.match(x),_=d(F,1)[0],I=[];if(N){I=[qV];var j=SU(N);j&&(I=wU(j)),m=m.replace(T,"")}var L=[];if(_){if(!A){L=[qV];var P=SU(_);P&&(L=wU(P)),tU(e)&&(L=L.map((function(e){return LV(e)})))}m=m.replace(x,"")}return[].concat(l(I),[PV(AU(m))],l(L))}var M=SU(m),B=function(e){return SU(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(m),R=function(e){return SU(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(m);if((E||C)&&D&&iU(e,["Block","ElementNode","Template"]))return"";D&&M?(B=Math.min(M,2),R=0):(nU(e,["BlockStatement","ElementNode"])&&(R=Math.max(R,1)),oU(e,["BlockStatement","ElementNode"])&&(B=Math.max(B,1)));var V="",U="";return 0===R&&nU(e,["MustacheStatement"])&&(U=" "),0===B&&oU(e,["MustacheStatement"])&&(V=" "),E&&(B=0,V=""),C&&(R=0,U=""),m=m.replace(/^[\t\n\f\r ]+/g,V).replace(/[\t\n\f\r ]+$/,U),[].concat(l(wU(B)),[PV(AU(m))],l(wU(R)));case"MustacheCommentStatement":var q=QV(r),H=JV(r),G="~"===t.originalText.charAt(q+2),W="~"===t.originalText.charAt(H-3),z=r.value.includes("}}")?"--":"";return["{{",G?"~":"","!",z,r.value,z,W?"~":"","}}"];case"PathExpression":return r.original;case"BooleanLiteral":case"NumberLiteral":return String(r.value);case"CommentStatement":return["\x3c!--",r.value,"--\x3e"];case"StringLiteral":if(function(e){for(var t=0,n=e.getParentNode(t);n&&rU(n,["SubExpression"]);)t++,n=e.getParentNode(t);return!!(n&&rU(e.getParentNode(t+1),["ConcatStatement"])&&rU(e.getParentNode(t+2),["AttrNode"]))}(e)){var K=t.singleQuote?'"':"'";return OU(r.value,K)}return OU(r.value,i);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:YV},LU=jU,PU={languages:[Jb({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},(function(){return{since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}}))],printers:{glimmer:LU},parsers:void 0},MU={hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}},BU={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}},RU=hl.builders,VU=RU.join,UU=RU.hardline,qU=RU.line,HU=RU.softline,GU=RU.group,WU=RU.indent,zU=RU.ifBreak,KU=Oc.isNextLineEmpty,$U=Oc.isNonEmptyArray,QU=MU.insertPragma,JU=BU.locStart,YU=BU.locEnd;function XU(e,t,n){if(0===n.directives.length)return"";var r=VU(qU,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?GU([qU,r]):[" ",GU(WU([HU,r]))]}function ZU(e,t,n){var r=e.getValue().length;return e.map((function(e,i){var o=n();return KU(t.originalText,e.getValue(),YU)&&i<r-1?[o,UU]:o}))}function eq(e,t,n){for(var r=[],i=e.getNode().interfaces,o=e.map((function(e){return n(e)}),"interfaces"),a=0;a<i.length;a++){var u=i[a];r.push(o[a]);var s=i[a+1];if(s){var c=t.originalText.slice(u.loc.end,s.loc.start),l=c.includes("#"),p=c.replace(/#.*/g,"").trim();r.push(","===p?",":" &",l?qU:" ")}}return r}function tq(){}tq.ignoredProperties=new Set(["loc","comments"]);var nq={print:function(e,t,n){var r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.kind){case"Document":var i=[];return e.each((function(e,r,o){i.push(n()),r!==o.length-1&&(i.push(UU),KU(t.originalText,e.getValue(),YU)&&i.push(UU))}),"definitions"),[].concat(i,[UU]);case"OperationDefinition":var o="{"!==t.originalText[JU(r)],a=Boolean(r.name);return[o?r.operation:"",o&&a?[" ",n("name")]:"",o&&!a&&$U(r.variableDefinitions)?" ":"",$U(r.variableDefinitions)?GU(["(",WU([HU,VU([zU("",", "),HU],e.map(n,"variableDefinitions"))]),HU,")"]):"",XU(e,n,r),r.selectionSet&&(o||a)?" ":"",n("selectionSet")];case"FragmentDefinition":return["fragment ",n("name"),$U(r.variableDefinitions)?GU(["(",WU([HU,VU([zU("",", "),HU],e.map(n,"variableDefinitions"))]),HU,")"]):""," on ",n("typeCondition"),XU(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",WU([UU,VU(UU,e.call((function(e){return ZU(e,t,n)}),"selections"))]),UU,"}"];case"Field":return GU([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?GU(["(",WU([HU,VU([zU("",", "),HU],e.call((function(e){return ZU(e,t,n)}),"arguments"))]),HU,")"]):"",XU(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"StringValue":return r.block?['"""',UU,VU(UU,r.value.replace(/"""/g,"\\$&").split("\n")),UU,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return GU(["[",WU([HU,VU([zU("",", "),HU],e.map(n,"values"))]),HU,"]"]);case"ObjectValue":return GU(["{",t.bracketSpacing&&r.fields.length>0?" ":"",WU([HU,VU([zU("",", "),HU],e.map(n,"fields"))]),HU,zU("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?GU(["(",WU([HU,VU([zU("",", "),HU],e.call((function(e){return ZU(e,t,n)}),"arguments"))]),HU,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",XU(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),r.description?UU:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",n("name"),r.interfaces.length>0?[" implements "].concat(l(eq(e,t,n))):"",XU(e,n,r),r.fields.length>0?[" {",WU([UU,VU(UU,e.call((function(e){return ZU(e,t,n)}),"fields"))]),UU,"}"]:""];case"FieldDefinition":return[n("description"),r.description?UU:"",n("name"),r.arguments.length>0?GU(["(",WU([HU,VU([zU("",", "),HU],e.call((function(e){return ZU(e,t,n)}),"arguments"))]),HU,")"]):"",": ",n("type"),XU(e,n,r)];case"DirectiveDefinition":return[n("description"),r.description?UU:"","directive ","@",n("name"),r.arguments.length>0?GU(["(",WU([HU,VU([zU("",", "),HU],e.call((function(e){return ZU(e,t,n)}),"arguments"))]),HU,")"]):"",r.repeatable?" repeatable":""," on ",VU(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),r.description?UU:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",n("name"),XU(e,n,r),r.values.length>0?[" {",WU([UU,VU(UU,e.call((function(e){return ZU(e,t,n)}),"values"))]),UU,"}"]:""];case"EnumValueDefinition":return[n("description"),r.description?UU:"",n("name"),XU(e,n,r)];case"InputValueDefinition":return[n("description"),r.description?r.description.block?UU:qU:"",n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",XU(e,n,r)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),r.description?UU:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",n("name"),XU(e,n,r),r.fields.length>0?[" {",WU([UU,VU(UU,e.call((function(e){return ZU(e,t,n)}),"fields"))]),UU,"}"]:""];case"SchemaDefinition":return["schema",XU(e,n,r)," {",r.operationTypes.length>0?WU([UU,VU(UU,e.call((function(e){return ZU(e,t,n)}),"operationTypes"))]):"",UU,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),r.description?UU:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",n("name"),r.interfaces.length>0?[" implements "].concat(l(eq(e,t,n))):"",XU(e,n,r),r.fields.length>0?[" {",WU([UU,VU(UU,e.call((function(e){return ZU(e,t,n)}),"fields"))]),UU,"}"]:""];case"FragmentSpread":return["...",n("name"),XU(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",XU(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return GU([n("description"),r.description?UU:"",GU(["UnionTypeExtension"===r.kind?"extend ":"","union ",n("name"),XU(e,n,r),r.types.length>0?[" =",zU(""," "),WU([zU([qU," "]),VU([qU,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),r.description?UU:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",n("name"),XU(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:tq,hasPrettierIgnore:function(e){var t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some((function(e){return"prettier-ignore"===e.value.trim()}))},insertPragma:QU,printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},rq=nq,iq={bracketSpacing:VM.bracketSpacing},oq={languages:[Jb({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},(function(){return{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}}))],options:iq,printers:{graphql:rq},parsers:void 0},aq={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},uq=Oc.getLast,sq=aq.locStart,cq=aq.locEnd,lq={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\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\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\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-\\u2e4f\\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\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},pq=lq.cjkPattern,fq=lq.kPattern,dq=lq.punctuationPattern,hq=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],mq=[].concat(hq,["tableCell","paragraph","heading"]),vq=new RegExp(fq),gq=new RegExp(dq);function yq(e,t){var n=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),r=d(n,4);return{numberText:r[1],marker:r[2],leadingSpaces:r[3]}}var bq={mapAst:function(e,t){return function e(n,r,i){var o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map((function(t,n){return e(t,n,[o].concat(l(i)))}))),o}(e,null,[])},splitText:function(e,t){var n,r="non-cjk",i="cj-letter",o="cjk-punctuation",a=[],u=("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(pq,")\n(").concat(pq,")"),"g"),"$1$2")).split(/([\t\n ]+)/),s=p(u.entries());try{for(s.s();!(n=s.n()).done;){var c=d(n.value,2),l=c[0],f=c[1];if(l%2!=1){if(0!==l&&l!==u.length-1||""!==f){var h,m=f.split(new RegExp("(".concat(pq,")"))),v=p(m.entries());try{for(v.s();!(h=v.n()).done;){var g=d(h.value,2),y=g[0],b=g[1];(0!==y&&y!==m.length-1||""!==b)&&(y%2!=0?D(gq.test(b)?{type:"word",value:b,kind:o,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:b,kind:vq.test(b)?"k-letter":i,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==b&&D({type:"word",value:b,kind:r,hasLeadingPunctuation:gq.test(b[0]),hasTrailingPunctuation:gq.test(uq(b))}))}}catch(KJ){v.e(KJ)}finally{v.f()}}}else a.push({type:"whitespace",value:/\n/.test(f)?"\n":" "})}}catch(KJ){s.e(KJ)}finally{s.f()}return a;function D(e){var t,n,u=uq(a);u&&"word"===u.type&&(u.kind===r&&e.kind===i&&!u.hasTrailingPunctuation||u.kind===i&&e.kind===r&&!e.hasLeadingPunctuation?a.push({type:"whitespace",value:" "}):(t=r,n=o,u.kind===t&&e.kind===n||u.kind===n&&e.kind===t||[u.value,e.value].some((function(e){return/\u3000/.test(e)}))||a.push({type:"whitespace",value:""}))),a.push(e)}},punctuationPattern:dq,getFencedCodeBlockValue:function(e,t){var n=e.value;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n},getOrderedListItemInfo:yq,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;var n=Number(yq(e.children[0],t.originalText).numberText),r=Number(yq(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){var i=Number(yq(e.children[2],t.originalText).numberText);return 1===r&&1===i}return 1===r},INLINE_NODE_TYPES:hq,INLINE_NODE_WRAPPER_TYPES:mq,isAutolink:function(e){if(!e||"link"!==e.type||1!==e.children.length)return!1;var t=e.children[0];return t&&sq(e)===sq(t)&&cq(e)===cq(t)}},Dq=Oc.inferParserByLanguage,Eq=Oc.getMaxContinuousCount,Cq=hl.builders,Tq=Cq.hardline,xq=Cq.markAsRoot,Aq=hl.utils.replaceEndOfLine,Sq=sB,wq=bq.getFencedCodeBlockValue,Oq=function(e,t,n,r){var i=e.getValue();if("code"===i.type&&null!==i.lang){var o=Dq(i.lang,r);if(o){var a=r.__inJsTemplate?"~":"`",u=a.repeat(Math.max(3,Eq(i.value,a)+1)),s={parser:o};"tsx"===i.lang&&(s.filepath="dummy.tsx");var c=n(wq(i,r.originalText),s,{stripTrailingHardline:!0});return xq([u,i.lang,i.meta?" "+i.meta:"",Tq,Aq(c),Tq,u])}}switch(i.type){case"front-matter":return Sq(i,n);case"importExport":return[n(i.value,{parser:"babel"},{stripTrailingHardline:!0}),Tq];case"jsx":return n("<$>".concat(i.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null},kq=dB,Nq=["format","prettier"];function Fq(e){var t="@(".concat(Nq.join("|"),")"),n=new RegExp(["\x3c!--\\s*".concat(t,"\\s*--\x3e"),"{\\s*\\/\\*\\s*".concat(t,"\\s*\\*\\/\\s*}"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(t,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),r=e.match(n);return r&&0===r.index}var _q={startWithPragma:Fq,hasPragma:function(e){return Fq(kq(e).content.trimStart())},insertPragma:function(e){var t=kq(e),n="\x3c!-- @".concat(Nq[0]," --\x3e");return t.frontMatter?"".concat(t.frontMatter.raw,"\n\n").concat(n,"\n\n").concat(t.content):"".concat(n,"\n\n").concat(t.content)}},Iq=Ca,jq=bq.getOrderedListItemInfo,Lq=bq.mapAst,Pq=bq.splitText,Mq=/^(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])$/;function Bq(e,t,n){return Lq(e,(function(e){if(!e.children)return e;var r=e.children.reduce((function(e,r){var i=Iq(e);return i&&t(i,r)?e.splice(-1,1,n(i,r)):e.push(r),e}),[]);return Object.assign(Object.assign({},e),{},{children:r})}))}var Rq=function(e,t){return e=function(e,t){return Lq(e,(function(e){return"text"===e.type&&"*"!==e.value&&"_"!==e.value&&Mq.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e}))}(e,t),e=function(e,t){return Lq(e,(function(e,n,r){if("code"===e.type){var i=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=i,i)for(var o=0;o<r.length;o++){var a=r[o];if(a.hasIndentedCodeblock)break;"list"===a.type&&(a.hasIndentedCodeblock=!0)}}return e}))}(e=function(e){return Lq(e,(function(e){return"inlineCode"!==e.type?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")})}))}(e=function(e){return Bq(e,(function(e,t){return"text"===e.type&&"text"===t.type}),(function(e,t){return{type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e)),t),e=function(e,t){return Lq(e,(function(e,t,n){if("list"===e.type&&e.children.length>0){for(var i=0;i<n.length;i++){var o=n[i];if("list"===o.type&&!o.isAligned)return e.isAligned=!1,e}e.isAligned=r(e)}return e}));function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}function r(e){if(!e.ordered)return!0;var r=d(e.children,2),i=r[0],o=r[1];if(jq(i,t.originalText).leadingSpaces.length>1)return!0;var a=n(i);return-1!==a&&(1===e.children.length?a%t.tabWidth==0:a===n(o)&&(a%t.tabWidth==0||jq(o,t.originalText).leadingSpaces.length>1))}}(e,t),e=function(e,t){return Lq(e,(function(e,n,r){var i=d(r,1)[0];if("text"!==e.type)return e;var o=e.value;return"paragraph"===i.type&&(0===n&&(o=o.trimStart()),n===i.children.length-1&&(o=o.trimEnd())),{type:"sentence",position:e.position,children:Pq(o,t)}}))}(e,t),function(e){return Bq(e,(function(e,t){return"importExport"===e.type&&"importExport"===t.type}),(function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}}))}(e=function(e){return Lq(e,(function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"})}))}(e))},Vq=Oc.isFrontMatterNode,Uq=_q.startWithPragma,qq=new Set(["position","raw"]);function Hq(e,t,n){return"front-matter"!==e.type&&"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"list"!==e.type&&"listItem"!==e.type||(delete t.spread,delete t.loose),"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),"definition"!==e.type&&"linkReference"!==e.type||(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),"definition"!==e.type&&"link"!==e.type&&"image"!==e.type||!e.title||(t.title=e.title.replace(/\\(["')])/g,"$1")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||Vq(n.children[0])&&n.children[1]===e)&&"html"===e.type&&Uq(e.value)?null:void 0)}Hq.ignoredProperties=qq;var Gq=Hq,Wq=Oc.getLast,zq=Oc.getMinNotPresentContinuousCount,Kq=Oc.getMaxContinuousCount,$q=Oc.getStringWidth,Qq=Oc.isNonEmptyArray,Jq=hl.builders,Yq=Jq.breakParent,Xq=Jq.join,Zq=Jq.line,eH=Jq.literalline,tH=Jq.markAsRoot,nH=Jq.hardline,rH=Jq.softline,iH=Jq.ifBreak,oH=Jq.fill,aH=Jq.align,uH=Jq.indent,sH=Jq.group,cH=Jq.hardlineWithoutBreakParent,lH=hl.utils,pH=lH.normalizeDoc,fH=lH.replaceTextEndOfLine,dH=hl.printer.printDocToString,hH=Oq,mH=_q.insertPragma,vH=aq.locStart,gH=aq.locEnd,yH=Rq,bH=Gq,DH=bq.getFencedCodeBlockValue,EH=bq.hasGitDiffFriendlyOrderedList,CH=bq.splitText,TH=bq.punctuationPattern,xH=bq.INLINE_NODE_TYPES,AH=bq.INLINE_NODE_WRAPPER_TYPES,SH=bq.isAutolink,wH=new Set(["importExport"]),OH=["heading","tableCell","link","wikiLink"],kH=new Set(["listItem","definition","footnoteDefinition"]);function NH(e,t,n,r){var i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[o,PH(e,t,n,{processor:function(e,i){if(0===i&&"list"!==e.getValue().type)return aH(" ".repeat(o.length),n());var a=" ".repeat(function(e,t,n){return e<t?t:e>n?n:e}(t.tabWidth-r.length,0,3));return[a,aH(a,n())]}})]}function FH(e,t){return function(e,t,n){var r,i=-1,o=p(t.children);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.type===e.type&&n(a)?i++:i=-1,a===e)return i}}catch(KJ){o.e(KJ)}finally{o.f()}}(e,t,(function(t){return t.ordered===e.ordered}))}function _H(e,t){for(var n,r=Array.isArray(t)?t:[t],i=-1;n=e.getParentNode(++i);)if(r.includes(n.type))return i;return-1}function IH(e,t){var n=_H(e,t);return-1===n?null:e.getParentNode(n)}function jH(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return nH;var r="always"===n.proseWrap&&!IH(e,OH);return""!==t?r?Zq:" ":r?rH:""}function LH(e,t,n){var r,i=[],o=null,a=e.getValue().children,u=p(a.entries());try{for(u.s();!(r=u.n()).done;){var s=d(r.value,2),c=s[0],l=s[1];switch(BH(l)){case"start":null===o&&(o={index:c,offset:l.position.end.offset});break;case"end":null!==o&&(i.push({start:o,end:{index:c,offset:l.position.start.offset}}),o=null)}}}catch(KJ){u.e(KJ)}finally{u.f()}return PH(e,t,n,{processor:function(e,r){if(i.length>0){var o=i[0];if(r===o.start.index)return[a[o.start.index].value,t.originalText.slice(o.start.offset,o.end.offset),a[o.end.index].value];if(o.start.index<r&&r<o.end.index)return!1;if(r===o.end.index)return i.shift(),!1}return n()}})}function PH(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.postprocessor,a=i.processor||function(){return n()},u=e.getValue(),s=[];return e.each((function(e,n){var i=e.getValue(),o=a(e,n);if(!1!==o){var c={parts:s,prevNode:r,parentNode:u,options:t};RH(i,c)&&(s.push(nH),r&&wH.has(r.type)||(VH(i,c)||UH(i,c))&&s.push(nH),UH(i,c)&&s.push(nH)),s.push(o),r=i}}),"children"),o?o(s):s}function MH(e){for(var t=e;Qq(t.children);)t=Wq(t.children);return t}function BH(e){var t,n;return"html"===e.type?t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/):("esComment"===e.type?n=e:"paragraph"===e.type&&1===e.children.length&&"esComment"===e.children[0].type&&(n=e.children[0]),n&&(t=n.value.match(/^prettier-ignore(?:-(start|end))?$/))),!!t&&(t[1]?t[1]:"next")}function RH(e,t){var n=0===t.parts.length,r=xH.includes(e.type),i="html"===e.type&&AH.includes(t.parentNode.type);return!n&&!r&&!i}function VH(e,t){var n=(t.prevNode&&t.prevNode.type)===e.type&&kH.has(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,i=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,o="next"===BH(t.prevNode),a="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,u="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return i||!(n||r||o||a||u)}function UH(e,t){var n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function qH(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[" "].concat(l(Array.isArray(t)?t:[t]));return new RegExp(n.map((function(e){return"\\".concat(e)})).join("|")).test(e)?"<".concat(e,">"):e}function HH(e,t){if(!e)return"";if(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])return" "+HH(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var n=e.split("'").length-1,r=e.split('"').length-1,i=n>r?'"':r>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}var GH={preprocess:yH,print:function(e,t,n){var r=e.getValue();if(function(e){var t=IH(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return CH(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map((function(n){return"word"===n.type?n.value:""===n.value?"":jH(e,n.value,t)}));switch(r.type){case"front-matter":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"root":return 0===r.children.length?"":[pH(LH(e,t,n)),wH.has(MH(r).type)?"":nH];case"paragraph":return PH(e,t,n,{postprocessor:oH});case"sentence":return PH(e,t,n);case"word":var i=r.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(TH,")(_+)"),"(_+)(".concat(TH,"|$)")].join("|"),"g"),(function(e,t,n,r,i){return(n?"".concat(t).concat(n):"".concat(r).concat(i)).replace(/_/g,"\\_")})),o=function(e,t,n){return"sentence"===e.type&&0===n},a=function(e,t,n){return SH(e.children[n-1])};return i!==r.value&&(e.match(void 0,o,a)||e.match(void 0,o,(function(e,t,n){return"emphasis"===e.type&&0===n}),a))&&(i=i.replace(/^(\\?[*_])+/,(function(e){return e.replace(/\\/g,"")}))),i;case"whitespace":var u=e.getParentNode(),s=u.children.indexOf(r),c=u.children[s+1],p=c&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(c.value)?"never":t.proseWrap;return jH(e,r.value,{proseWrap:p});case"emphasis":var f;if(SH(r.children[0]))f=t.originalText[r.position.start.offset];else{var d=e.getParentNode(),h=d.children.indexOf(r),m=d.children[h-1],v=d.children[h+1];f=m&&"sentence"===m.type&&m.children.length>0&&"word"===Wq(m.children).type&&!Wq(m.children).hasTrailingPunctuation||v&&"sentence"===v.type&&v.children.length>0&&"word"===v.children[0].type&&!v.children[0].hasLeadingPunctuation||IH(e,"emphasis")?"*":"_"}return[f,PH(e,t,n),f];case"strong":return["**",PH(e,t,n),"**"];case"delete":return["~~",PH(e,t,n),"~~"];case"inlineCode":var g=zq(r.value,"`"),y="`".repeat(g||1),b=g&&!/^\s/.test(r.value)?" ":"";return[y,b,r.value,b,y];case"wikiLink":return["[[","preserve"===t.proseWrap?r.value:r.value.replace(/[\t\n]+/g," "),"]]"];case"link":switch(t.originalText[r.position.start.offset]){case"<":var D="mailto:";return["<",r.url.startsWith(D)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+D.length)!==D?r.url.slice(D.length):r.url,">"];case"[":return["[",PH(e,t,n),"](",qH(r.url,")"),HH(r.title,t),")"];default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return[""),HH(r.title,t),")"];case"blockquote":return["> ",aH("> ",PH(e,t,n))];case"heading":return["#".repeat(r.depth)+" ",PH(e,t,n)];case"code":if(r.isIndented){var E=" ".repeat(4);return aH(E,[E].concat(l(fH(r.value,nH))))}var C=t.__inJsTemplate?"~":"`",T=C.repeat(Math.max(3,Kq(r.value,C)+1));return[T,r.lang||"",r.meta?" "+r.meta:"",nH].concat(l(fH(DH(r,t.originalText),nH)),[nH,T]);case"html":var x=e.getParentNode(),A="root"===x.type&&Wq(x.children)===r?r.value.trimEnd():r.value,S=/^<!\x2D\x2D[\s\S]*\x2D\x2D>$/.test(A);return fH(A,S?nH:tH(eH));case"list":var w=FH(r,e.getParentNode()),O=EH(r,t);return PH(e,t,n,{processor:function(e,i){var o=function(){var e=r.ordered?(0===i?r.start:O?1:r.start+i)+(w%2==0?". ":") "):w%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){var n=r();return e+" ".repeat(n>=4?0:n);function r(){var n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),a=e.getValue();return 2===a.children.length&&"html"===a.children[1].type&&a.children[0].position.start.column!==a.children[1].position.start.column?[o,NH(e,t,n,o)]:[o,aH(" ".repeat(o.length),NH(e,t,n,o))]}});case"thematicBreak":var k=_H(e,"list");return-1===k?"---":FH(e.getParentNode(k),e.getParentNode(k+1))%2==0?"***":"---";case"linkReference":return["[",PH(e,t,n),"]","full"===r.referenceType?["[",r.identifier,"]"]:"collapsed"===r.referenceType?"[]":""];case"imageReference":return"full"===r.referenceType?["![",r.alt||"","][",r.identifier,"]"]:["![",r.alt,"]","collapsed"===r.referenceType?"[]":""];case"definition":var N="always"===t.proseWrap?Zq:" ";return sH(["[",r.identifier,"]:",uH([N,qH(r.url),null===r.title?"":[N,HH(r.title,t,!1)]])]);case"footnote":return["[^",PH(e,t,n),"]"];case"footnoteReference":return["[^",r.identifier,"]"];case"footnoteDefinition":var F=e.getParentNode().children[e.getName()+1],_=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return["[^",r.identifier,"]: ",_?PH(e,t,n):sH([aH(" ".repeat(4),PH(e,t,n,{processor:function(e,t){return 0===t?sH([rH,n()]):n()}})),F&&"footnoteDefinition"===F.type?rH:""])];case"table":return function(e,t,n){var r=e.getValue(),i=[],o=e.map((function(e){return e.map((function(e,r){var o=dH(n(),t).formatted,a=$q(o);return i[r]=Math.max(i[r]||3,a),{text:o,width:a}}),"children")}),"children"),a=s(!1);if("never"!==t.proseWrap)return[Yq,a];var u=s(!0);return[Yq,sH(iH(u,a))];function s(e){var t=[l(o[0],e),c(e)];return o.length>1&&t.push(Xq(cH,o.slice(1).map((function(t){return l(t,e)})))),Xq(cH,t)}function c(e){var t=i.map((function(t,n){var i=r.align[n],o="center"===i||"left"===i?":":"-",a="center"===i||"right"===i?":":"-",u=e?"-":"-".repeat(t-2);return"".concat(o).concat(u).concat(a)}));return"| ".concat(t.join(" | ")," |")}function l(e,t){var n=e.map((function(e,n){var o=e.text,a=e.width;if(t)return o;var u=i[n]-a,s=r.align[n],c=0;"right"===s?c=u:"center"===s&&(c=Math.floor(u/2));var l=u-c;return"".concat(" ".repeat(c)).concat(o).concat(" ".repeat(l))}));return"| ".concat(n.join(" | ")," |")}}(e,t,n);case"tableCell":return PH(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?[" ",tH(eH)]:["\\",nH];case"liquidNode":return fH(r.value,nH);case"importExport":return[r.value,nH];case"esComment":return["{/* ",r.value," */}"];case"jsx":return r.value;case"math":return["$$",nH,r.value?[].concat(l(fH(r.value,nH)),[nH]):"","$$"];case"inlineMath":return t.originalText.slice(vH(r),gH(r));default:throw new Error("Unknown markdown type ".concat(JSON.stringify(r.type)))}},embed:hH,massageAstNode:bH,hasPrettierIgnore:function(e){var t=Number(e.getName());return 0!==t&&"next"===BH(e.getParentNode().children[t-1])},insertPragma:mH},WH={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},zH=Jb,KH=GH,$H={proseWrap:VM.proseWrap,singleQuote:VM.singleQuote},QH=[zH(WH,(function(e){return{since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[].concat(l(e.filenames),["README"]),extensions:e.extensions.filter((function(e){return".mdx"!==e}))}})),zH(WH,(function(){return{name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}}))],JH={languages:QH,options:$H,printers:{mdast:KH},parsers:void 0},YH=Oc.isFrontMatterNode,XH=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function ZH(e,t){return"text"===e.type||"comment"===e.type||YH(e)||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))}ZH.ignoredProperties=XH;var eG=ZH,tG=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"],nG={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]},rG=Oc.inferParserByLanguage,iG=Oc.isFrontMatterNode,oG=hl.builders,aG=oG.line,uG=oG.hardline,sG=oG.join,cG=hl.utils,lG=cG.getDocParts,pG=cG.replaceTextEndOfLine,fG={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},dG=fG.CSS_DISPLAY_TAGS,hG=fG.CSS_DISPLAY_DEFAULT,mG=fG.CSS_WHITE_SPACE_TAGS,vG=fG.CSS_WHITE_SPACE_DEFAULT,gG=xG(tG),yG=function(e,t){for(var n=Object.create(null),r=0,i=Object.entries(e);r<i.length;r++){var o=d(i[r],2),a=o[0],u=o[1];n[a]=t(u,a)}return n}(nG,xG),bG=new Set(["\t","\n","\f","\r"," "]),DG=function(e){return e.replace(/[\t\n\f\r ]+$/,"")},EG=function(e){return function(e){return e.replace(/^[\t\f\r ]*?\n/g,"")}(DG(e))},CG=function(e){return e.split(/[\t\n\f\r ]+/)},TG=function(e){return e.match(/^[\t\n\f\r ]*/)[0]};function xG(e){var t,n=Object.create(null),r=p(e);try{for(r.s();!(t=r.n()).done;)n[t.value]=!0}catch(KJ){r.e(KJ)}finally{r.f()}return n}function AG(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||PG(e)&&("script"===e.name||"style"===e.name))}function SG(e){return MG(e).startsWith("pre")}function wG(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function OG(e){return _G(e)||"element"===e.type&&"br"===e.fullName||kG(e)}function kG(e){return NG(e)&&FG(e)}function NG(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function FG(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function _G(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function IG(e){var t=e.attrMap,n=t.type,r=t.lang;return"module"===n||"text/javascript"===n||"text/babel"===n||"application/javascript"===n||"jsx"===r?"babel":"application/x-typescript"===n||"ts"===r||"tsx"===r?"typescript":"text/markdown"===n?"markdown":"text/html"===n?"html":n&&(n.endsWith("json")||n.endsWith("importmap"))?"json":"text/x-handlebars-template"===n?"glimmer":void 0}function jG(e){return"block"===e||"list-item"===e||e.startsWith("table")}function LG(e){return MG(e).startsWith("pre")}function PG(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function MG(e){return"element"===e.type&&(!e.namespace||PG(e))&&mG[e.name]||vG}function BG(e){var t,n=Number.POSITIVE_INFINITY,r=p(e.split("\n"));try{for(r.s();!(t=r.n()).done;){var i=t.value;if(0!==i.length){if(!bG.has(i[0]))return 0;var o=TG(i).length;i.length!==o&&o<n&&(n=o)}}}catch(KJ){r.e(KJ)}finally{r.f()}return n===Number.POSITIVE_INFINITY?0:n}function RG(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BG(e);return 0===t?e:e.split("\n").map((function(e){return e.slice(t)})).join("\n")}var VG=new Set(["template","style","script"]);function UG(e,t){return qG(e,t)&&!VG.has(e.fullName)}function qG(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function HG(e,t){return qG(e,t)&&(UG(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var GG={HTML_ELEMENT_ATTRIBUTES:yG,HTML_TAGS:gG,htmlTrim:function(e){return function(e){return e.replace(/^[\t\n\f\r ]+/,"")}(DG(e))},htmlTrimPreserveIndentation:EG,hasHtmlWhitespace:function(e){return/[\t\n\f\r ]/.test(e)},getLeadingAndTrailingHtmlWhitespace:function(e){var t=e.match(/^([\t\n\f\r ]*)([\s\S]*?)([\t\n\f\r ]*)$/),n=d(t,4),r=n[1],i=n[2];return{leadingWhitespace:r,trailingWhitespace:n[3],text:i}},canHaveInterpolation:function(e){return e.children&&!AG(e)},countChars:function(e,t){for(var n=0,r=0;r<e.length;r++)e[r]===t&&n++;return n},countParents:function(e,t){for(var n=0,r=e.stack.length-1;r>=0;r--){var i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n},dedentString:RG,forceBreakChildren:wG,forceBreakContent:function(e){return wG(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((function(e){return function(e){return e.children&&e.children.some((function(e){return"text"!==e.type}))}(e)})))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&NG(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||FG(e.lastChild))},forceNextEmptyLine:function(e){return iG(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){var n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}var r=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){for(var n=e;n;){if(t(n))return!0;n=n.parent}return!1}(e,(function(e){return"svg:foreignObject"===e.fullName})))return"svg"===e.name?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||r||PG(e))&&dG[e.name]||hG}},getNodeCssStyleWhiteSpace:MG,hasPrettierIgnore:function(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])},inferScriptParser:function(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?function(e){var t=e.attrMap.lang;return t&&"postcss"!==t&&"css"!==t?"scss"===t?"scss":"less"===t?"less":void 0:"css"}(e):t&&HG(e,t)?IG(e)||!("src"in e.attrMap)&&rG(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?IG(e):"babel"},isVueCustomBlock:UG,isVueNonHtmlBlock:HG,isVueSlotAttribute:function(e){var t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){var n=e.parent;if(!qG(n,t))return!1;var r=n.fullName,i=e.fullName;return"script"===r&&"setup"===i||"style"===r&&"vars"===i},isDanglingSpaceSensitiveNode:function(e){return!(jG(t=e.cssDisplay)||"inline-block"===t||AG(e));var t},isIndentationSensitiveNode:SG,isLeadingSpaceSensitiveNode:function(e,t){var n=function(){return!iG(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!LG(e.parent)||!(!e.prev&&("root"===e.parent.type||LG(e)&&e.parent||AG(e.parent)||UG(e.parent,t)||(n=e.parent.cssDisplay,jG(n)||"inline-block"===n)))&&!(e.prev&&!function(e){return!jG(e)}(e.prev.cssDisplay))));var n}();return n&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:n},isPreLikeNode:LG,isScriptLikeTag:AG,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e,t){return!iG(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!LG(e.parent)||!(!e.next&&("root"===e.parent.type||LG(e)&&e.parent||AG(e.parent)||UG(e.parent,t)||(n=e.parent.cssDisplay,jG(n)||"inline-block"===n)))&&!(e.next&&!function(e){return!jG(e)}(e.next.cssDisplay))));var n},isWhitespaceSensitiveNode:function(e){return AG(e)||"interpolation"===e.type||SG(e)},isUnknownNamespace:PG,preferHardlineAsLeadingSpaces:function(e){return _G(e)||e.prev&&OG(e.prev)||kG(e)},preferHardlineAsTrailingSpaces:OG,shouldPreserveContent:function(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!LG(e)||!e.children.some((function(e){return"text"!==e.type&&"interpolation"!==e.type})))||!(!HG(e,t)||AG(e)||"interpolation"===e.type)},unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')},getTextValueParts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?pG(t):pG(RG(EG(t)),uG):lG(sG(aG,CG(t)))}},WG={},zG={};!function(e){function t(t){return e.$0<=t&&t<=e.$9}Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(n){return n>=e.$a&&n<=e.$f||n>=e.$A&&n<=e.$F||t(n)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}(zG);var KG={},$G={};Object.defineProperty($G,"__esModule",{value:!0});var QG=function(){function e(t,n,r){h(this,e),this.filePath=t,this.name=n,this.members=r}return m(e,[{key:"assertNoMembers",value:function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),e}();$G.StaticSymbol=QG,$G.StaticSymbolCache=function(){function e(){h(this,e),this.cache=new Map}return m(e,[{key:"get",value:function(e,t,n){var r=(n=n||[]).length?".".concat(n.join(".")):"",i='"'.concat(e,'".').concat(t).concat(r),o=this.cache.get(i);return o||(o=new QG(e,t,n),this.cache.set(i,o)),o}}]),e}();var JG={};Object.defineProperty(JG,"__esModule",{value:!0});var YG=/-+([a-z0-9])/g;function XG(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function ZG(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===nW}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}JG.dashCaseToCamelCase=function(e){return e.replace(YG,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))},JG.splitAtColon=function(e,t){return XG(e,":",t)},JG.splitAtPeriod=function(e,t){return XG(e,".",t)},JG.visitValue=ZG,JG.isDefined=function(e){return null!=e},JG.noUndefined=function(e){return void 0===e?null:e},JG.ValueTransformer=function(){function e(){h(this,e)}return m(e,[{key:"visitArray",value:function(e,t){var n=this;return e.map((function(e){return ZG(e,n,t)}))}},{key:"visitStringMap",value:function(e,t){var n=this,r={};return Object.keys(e).forEach((function(i){r[i]=ZG(e[i],n,t)})),r}},{key:"visitPrimitive",value:function(e,t){return e}},{key:"visitOther",value:function(e,t){return e}}]),e}(),JG.SyncAsync={assertSync:function(e){if(rW(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function(e,t){return rW(e)?e.then(t):t(e)},all:function(e){return e.some(rW)?Promise.all(e):e}},JG.error=function(e){throw new Error("Internal Error: ".concat(e))},JG.syntaxError=function(e,t){var n=Error(e);return n[eW]=!0,t&&(n[tW]=t),n};var eW="ngSyntaxError",tW="ngParseErrors";JG.isSyntaxError=function(e){return e[eW]},JG.getParseErrors=function(e){return e[tW]||[]},JG.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var nW=Object.getPrototypeOf({});function rW(e){return!!e&&"function"==typeof e.then}JG.utf8Encode=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t},JG.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var n=t.toString();if(null==n)return""+n;var r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},JG.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},JG.isPromise=rW,JG.Version=function(){function e(t){h(this,e),this.full=t;var n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}return m(e)}();var iW="undefined"!=typeof window&&window,oW="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,aW=void 0!==e&&e||iW||oW;JG.global=aW,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=$G,n=JG,r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=i;var o,a=0;function u(e){if(!e||!e.reference)return null;var r=e.reference;if(r instanceof t.StaticSymbol)return r.name;if(r.__anonymousType)return r.__anonymousType;var o=n.stringify(r);return o.indexOf("(")>=0?(o="anonymous_".concat(a++),r.__anonymousType=o):o=i(o),o}e.identifierName=u,e.identifierModuleUrl=function(e){var r=e.reference;return r instanceof t.StaticSymbol?r.filePath:"./".concat(n.stringify(r))},e.viewClassName=function(e,t){return"View_".concat(u({reference:e}),"_").concat(t)},e.rendererTypeName=function(e){return"RenderType_".concat(u({reference:e}))},e.hostViewClassName=function(e){return"HostView_".concat(u({reference:e}))},e.componentFactoryName=function(e){return"".concat(u({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(o=e.CompileSummaryKind||(e.CompileSummaryKind={})),e.tokenName=function(e){return null!=e.value?i(e.value):u(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value},e.CompileStylesheetMetadata=function(){function e(){h(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.moduleUrl,r=t.styles,i=t.styleUrls;this.moduleUrl=n||null,this.styles=c(r),this.styleUrls=c(i)}return m(e)}(),e.CompileTemplateMetadata=function(){function e(t){h(this,e);var n=t.encapsulation,r=t.template,i=t.templateUrl,o=t.htmlAst,a=t.styles,u=t.styleUrls,s=t.externalStylesheets,p=t.animations,f=t.ngContentSelectors,d=t.interpolation,m=t.isInline,v=t.preserveWhitespaces;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.htmlAst=o,this.styles=c(a),this.styleUrls=c(u),this.externalStylesheets=c(s),this.animations=p?l(p):[],this.ngContentSelectors=f||[],d&&2!=d.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=d,this.isInline=m,this.preserveWhitespaces=v}return m(e,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),e}();var s=function(){function e(t){h(this,e);var n=t.isHost,r=t.type,i=t.isComponent,o=t.selector,a=t.exportAs,u=t.changeDetection,s=t.inputs,l=t.outputs,p=t.hostListeners,f=t.hostProperties,d=t.hostAttributes,m=t.providers,v=t.viewProviders,g=t.queries,y=t.guards,b=t.viewQueries,D=t.entryComponents,E=t.template,C=t.componentViewType,T=t.rendererType,x=t.componentFactory;this.isHost=!!n,this.type=r,this.isComponent=i,this.selector=o,this.exportAs=a,this.changeDetection=u,this.inputs=s,this.outputs=l,this.hostListeners=p,this.hostProperties=f,this.hostAttributes=d,this.providers=c(m),this.viewProviders=c(v),this.queries=c(g),this.guards=y,this.viewQueries=c(b),this.entryComponents=c(D),this.template=E,this.componentViewType=C,this.rendererType=T,this.componentFactory=x}return m(e,[{key:"toSummary",value:function(){return{summaryKind:o.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}],[{key:"create",value:function(t){var i=t.isHost,o=t.type,a=t.isComponent,u=t.selector,s=t.exportAs,c=t.changeDetection,l=t.inputs,p=t.outputs,f=t.host,d=t.providers,h=t.viewProviders,m=t.queries,v=t.guards,g=t.viewQueries,y=t.entryComponents,b=t.template,D=t.componentViewType,E=t.rendererType,C=t.componentFactory,T={},x={},A={};null!=f&&Object.keys(f).forEach((function(e){var t=f[e],n=e.match(r);null===n?A[e]=t:null!=n[1]?x[n[1]]=t:null!=n[2]&&(T[n[2]]=t)}));var S={};null!=l&&l.forEach((function(e){var t=n.splitAtColon(e,[e,e]);S[t[0]]=t[1]}));var w={};return null!=p&&p.forEach((function(e){var t=n.splitAtColon(e,[e,e]);w[t[0]]=t[1]})),new e({isHost:i,type:o,isComponent:!!a,selector:u,exportAs:s,changeDetection:c,inputs:S,outputs:w,hostListeners:T,hostProperties:x,hostAttributes:A,providers:d,viewProviders:h,queries:m,guards:v,viewQueries:g,entryComponents:y,template:b,componentViewType:D,rendererType:E,componentFactory:C})}}]),e}();function c(e){return e||[]}function l(e){return e.reduce((function(e,t){var n=Array.isArray(t)?l(t):t;return e.concat(n)}),[])}function p(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}e.CompileDirectiveMetadata=s,e.CompilePipeMetadata=function(){function e(t){h(this,e);var n=t.type,r=t.name,i=t.pure;this.type=n,this.name=r,this.pure=!!i}return m(e,[{key:"toSummary",value:function(){return{summaryKind:o.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),e}(),e.CompileShallowModuleMetadata=function(){function e(){h(this,e)}return m(e)}(),e.CompileNgModuleMetadata=function(){function e(t){h(this,e);var n=t.type,r=t.providers,i=t.declaredDirectives,o=t.exportedDirectives,a=t.declaredPipes,u=t.exportedPipes,s=t.entryComponents,l=t.bootstrapComponents,p=t.importedModules,f=t.exportedModules,d=t.schemas,m=t.transitiveModule,v=t.id;this.type=n||null,this.declaredDirectives=c(i),this.exportedDirectives=c(o),this.declaredPipes=c(a),this.exportedPipes=c(u),this.providers=c(r),this.entryComponents=c(s),this.bootstrapComponents=c(l),this.importedModules=c(p),this.exportedModules=c(f),this.schemas=c(d),this.id=v||null,this.transitiveModule=m||null}return m(e,[{key:"toSummary",value:function(){var e=this.transitiveModule;return{summaryKind:o.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),e}(),e.TransitiveCompileNgModuleMetadata=function(){function e(){h(this,e),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return m(e,[{key:"addProvider",value:function(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),e}(),e.ProviderMeta=function(){function e(t,n){h(this,e);var r=n.useClass,i=n.useValue,o=n.useExisting,a=n.useFactory,u=n.deps,s=n.multi;this.token=t,this.useClass=r||null,this.useValue=i,this.useExisting=o,this.useFactory=a||null,this.dependencies=u||null,this.multi=!!s}return m(e)}(),e.flatten=l,e.templateSourceUrl=function(e,n,r){var i;return i=r.isInline?n.type.reference instanceof t.StaticSymbol?"".concat(n.type.reference.filePath,".").concat(n.type.reference.name,".html"):"".concat(u(e),"/").concat(u(n.type),".html"):r.templateUrl,n.type.reference instanceof t.StaticSymbol?i:p(i)},e.sharedStylesheetJitUrl=function(e,t){var n=e.moduleUrl.split(/\/\\/g),r=n[n.length-1];return p("css/".concat(t).concat(r,".ngstyle.js"))},e.ngModuleJitUrl=function(e){return p("".concat(u(e.type),"/module.ngfactory.js"))},e.templateJitUrl=function(e,t){return p("".concat(u(e),"/").concat(u(t.type),".ngfactory.js"))}}(KG),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=zG,n=KG,r=function(){function e(t,n,r,i){h(this,e),this.file=t,this.offset=n,this.line=r,this.col=i}return m(e,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(n){for(var r=this.file.content,i=r.length,o=this.offset,a=this.line,u=this.col;o>0&&n<0;)if(o--,n++,r.charCodeAt(o)==t.$LF){a--;var s=r.substr(0,o-1).lastIndexOf(String.fromCharCode(t.$LF));u=s>0?o-s:o}else u--;for(;o<i&&n>0;){var c=r.charCodeAt(o);o++,n--,c==t.$LF?(a++,u=0):u++}return new e(this.file,o,a,u)}},{key:"getContext",value:function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,a=0;o<e&&r>0&&(o++,"\n"!=n[--r]||++a!=t););for(o=0,a=0;o<e&&i<n.length-1&&(o++,"\n"!=n[++i]||++a!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}}]),e}();e.ParseLocation=r;var i=m((function e(t,n){h(this,e),this.content=t,this.url=n}));e.ParseSourceFile=i;var o,a=function(){function e(t,n){h(this,e);var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=t,this.end=n,this.details=r}return m(e,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),e}();e.ParseSourceSpan=a,e.EMPTY_PARSE_LOCATION=new r(new i("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new a(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(o=e.ParseErrorLevel||(e.ParseErrorLevel={})),e.ParseError=function(){function e(t,n){h(this,e);var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.ERROR;this.span=t,this.msg=n,this.level=r}return m(e,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(o[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),e}(),e.typeSourceSpan=function(e,t){var o=n.identifierModuleUrl(t),u=null!=o?"in ".concat(e," ").concat(n.identifierName(t)," in ").concat(o):"in ".concat(e," ").concat(n.identifierName(t)),s=new i("",u);return new a(new r(s,-1,-1,-1),new r(s,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,n){var o="in ".concat(e," ").concat(t," in ").concat(n),u=new i("",o);return new a(new r(u,-1,-1,-1),new r(u,-1,-1,-1))}}(WG);var uW=WG.ParseSourceSpan,sW=Ca,cW=GG.htmlTrim,lW=GG.getLeadingAndTrailingHtmlWhitespace,pW=GG.hasHtmlWhitespace,fW=GG.canHaveInterpolation,dW=GG.getNodeCssStyleDisplay,hW=GG.isDanglingSpaceSensitiveNode,mW=GG.isIndentationSensitiveNode,vW=GG.isLeadingSpaceSensitiveNode,gW=GG.isTrailingSpaceSensitiveNode,yW=GG.isWhitespaceSensitiveNode,bW=[function(e){e.walk((function(e){if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){var t=c(e.children),n=t[0],r=t.slice(1);e.setChildren(1===n.value.length?r:[n.clone({value:n.value.slice(1)})].concat(l(r)))}}))},function(e){var t=function(e){return"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};e.walk((function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var r=[],i=0;i<e.children.length;i++){var o=e.children[i];if(!n[i+1])if(n[i]){var a=o.prev,u=o.firstChild,s=new uW(a.sourceSpan.start,u.sourceSpan.end),c=new uW(s.start,o.sourceSpan.end);r.push(o.clone({condition:a.condition,sourceSpan:c,startSourceSpan:s,children:o.children.slice(1)}))}else r.push(o)}e.setChildren(r)}}}))},function(e){return function(e,t,n){e.walk((function(e){if(e.children){var r=e.children.map(t);if(r.some(Boolean)){for(var i=[],o=0;o<e.children.length;o++){var a=e.children[o];if("text"===a.type||r[o]){var u="text"===a.type?a:a.clone({type:"text",value:n(a)});if(0!==i.length&&"text"===sW(i).type){var s=i.pop();i.push(s.clone({value:s.value+u.value,sourceSpan:new uW(s.sourceSpan.start,u.sourceSpan.end)}))}else i.push(u)}else i.push(a)}e.setChildren(i)}}}))}(e,(function(e){return"cdata"===e.type}),(function(e){return"<![CDATA[".concat(e.value,"]]>")}))},function(e,t){if("html"!==t.parser){var n=/\{\{([\s\S]+?)\}\}/;e.walk((function(e){if(fW(e)){var t,r=[],i=p(e.children);try{for(i.s();!(t=i.n()).done;){var o=t.value;if("text"===o.type)for(var a=o.sourceSpan.start,u=null,s=o.value.split(n),c=0;c<s.length;c++,a=u){var l=s[c];c%2!=0?(u=a.moveBy(l.length+4),r.push({type:"interpolation",sourceSpan:new uW(a,u),children:0===l.length?[]:[{type:"text",value:l,sourceSpan:new uW(a.moveBy(2),u.moveBy(-2))}]})):(u=a.moveBy(l.length),l.length>0&&r.push({type:"text",value:l,sourceSpan:new uW(a,u)}))}else r.push(o)}}catch(KJ){i.e(KJ)}finally{i.f()}e.setChildren(r)}}))}},function(e){e.walk((function(e){if(e.children){if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===cW(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);var t=yW(e),n=mW(e);e.setChildren(e.children.flatMap((function(e){if("text"!==e.type||t)return e;var n=[],r=lW(e.value),i=r.leadingWhitespace,o=r.text,a=r.trailingWhitespace;return i&&n.push(DW),o&&n.push({type:"text",value:o,sourceSpan:new uW(e.sourceSpan.start.moveBy(i.length),e.sourceSpan.end.moveBy(-a.length))}),a&&n.push(DW),n})).map((function(e,t,n){if(e!==DW)return Object.assign(Object.assign({},e),{},{hasLeadingSpaces:n[t-1]===DW,hasTrailingSpaces:n[t+1]===DW})})).filter(Boolean)),e.isWhitespaceSensitive=t,e.isIndentationSensitive=n}}))},function(e,t){e.walk((function(e){return Object.assign(e,{cssDisplay:dW(e,t)})}))},function(e){e.walk((function(e){return Object.assign(e,{isSelfClosing:!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.startSourceSpan===e.endSourceSpan)})}))},function(e,t){e.walk((function(e){return"element"!==e.type?e:Object.assign(e,{hasHtmComponentClosingTag:e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})}))},function(e,t){e.walk((function(e){e.children&&(0!==e.children.length?e.setChildren(e.children.map((function(e){return Object.assign(Object.assign({},e),{},{isLeadingSpaceSensitive:vW(e,t),isTrailingSpaceSensitive:gW(e,t)})})).map((function(e,t,n){return Object.assign(Object.assign({},e),{},{isLeadingSpaceSensitive:(0===t||n[t-1].isTrailingSpaceSensitive)&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(t===n.length-1||n[t+1].isLeadingSpaceSensitive)&&e.isTrailingSpaceSensitive})}))):e.isDanglingSpaceSensitive=hW(e))}))},function(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!pW(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};e.walk((function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var r=[],i=0;i<e.children.length;i++){var o=e.children[i];if(n[i]){var a=r.pop(),u=e.children[++i],s=u.isTrailingSpaceSensitive,c=u.hasTrailingSpaces;r.push(a.clone({value:a.value+"<".concat(o.rawName,">")+o.firstChild.value+"</".concat(o.rawName,">")+u.value,sourceSpan:new uW(a.sourceSpan.start,u.sourceSpan.end),isTrailingSpaceSensitive:s,hasTrailingSpaces:c}))}else r.push(o)}e.setChildren(r)}}}))}],DW={type:"whitespace"},EW=function(e,t){var n,r=e.map((function(e){return e})),i=p(bW);try{for(i.s();!(n=i.n()).done;)(0,n.value)(r,t)}catch(KJ){i.e(KJ)}finally{i.f()}return r},CW={hasPragma:function(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(e)},insertPragma:function(e){return"\x3c!-- @format --\x3e\n\n"+e.replace(/^\s*\n/,"")}},TW={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}},xW=ty,AW=Oc.isNonEmptyArray,SW=hl.builders,wW=SW.indent,OW=SW.join,kW=SW.line,NW=SW.softline,FW=hl.utils.replaceTextEndOfLine,_W=TW.locStart,IW=TW.locEnd,jW=GG.isTextLikeNode,LW=GG.getLastDescendant,PW=GG.isPreLikeNode,MW=GG.hasPrettierIgnore,BW=GG.shouldPreserveContent;function RW(e,t){return e.lastChild&&$W(e.lastChild)?"":[UW(e,t),HW(e,t)]}function VW(e,t){return(e.next?zW(e.next):KW(e.parent))?"":[GW(e,t),qW(e,t)]}function UW(e,t){return KW(e)?GW(e.lastChild,t):""}function qW(e,t){return $W(e)?HW(e.parent,t):QW(e)?tz(e.next):""}function HW(e,t){if(xW(!e.isSelfClosing),WW(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function GW(e,t){if(WW(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function WW(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(MW(e)||BW(e.parent,t))}function zW(e){return e.prev&&"docType"!==e.prev.type&&!jW(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function KW(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!jW(LW(e.lastChild))&&!PW(e)}function $W(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&jW(LW(e))}function QW(e){return e.next&&!jW(e.next)&&jW(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function JW(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function YW(e,t,n){var r=e.getValue();if(!AW(r.attrs))return r.isSelfClosing?" ":"";var i=r.prev&&"comment"===r.prev.type&&function(e){var t=e.trim().match(/^prettier\x2Dignore\x2Dattribute(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+([\s\S]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))}(r.prev.value),o="boolean"==typeof i?function(){return i}:Array.isArray(i)?function(e){return i.includes(e.rawName)}:function(){return!1},a=e.map((function(e){var r=e.getValue();return o(r)?FW(t.originalText.slice(_W(r),IW(r))):n()}),"attrs"),u="element"===r.type&&"script"===r.fullName&&1===r.attrs.length&&"src"===r.attrs[0].fullName&&0===r.children.length,s=[wW([u?" ":kW,OW(kW,a)])];return r.firstChild&&JW(r.firstChild)||r.isSelfClosing&&KW(r.parent)||u?s.push(r.isSelfClosing?" ":""):s.push(t.bracketSameLine?r.isSelfClosing?" ":"":r.isSelfClosing?kW:NW),s}function XW(e){return e.firstChild&&JW(e.firstChild)?"":nz(e)}function ZW(e,t){return e.prev&&QW(e.prev)?"":[ez(e,t),tz(e)]}function ez(e,t){return JW(e)?nz(e.parent):zW(e)?GW(e.prev,t):""}function tz(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"\x3c!--[if ".concat(e.condition);case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"\x3c!--[if ".concat(e.condition,"]>\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function nz(e){switch(xW(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}var rz={printClosingTag:function(e,t){return[e.isSelfClosing?"":RW(e,t),VW(e,t)]},printClosingTagStart:RW,printClosingTagStartMarker:HW,printClosingTagEndMarker:GW,printClosingTagSuffix:qW,printClosingTagEnd:VW,needsToBorrowLastChildClosingTagEndMarker:KW,needsToBorrowParentClosingTagStartMarker:$W,needsToBorrowPrevClosingTagEndMarker:zW,printOpeningTag:function(e,t,n){var r=e.getValue();return[ZW(r,t),YW(e,t,n),r.isSelfClosing?"":XW(r)]},printOpeningTagStart:ZW,printOpeningTagPrefix:ez,printOpeningTagStartMarker:tz,printOpeningTagEndMarker:nz,needsToBorrowNextOpeningTagStartMarker:QW,needsToBorrowParentOpeningTagEndMarker:JW},iz={exports:{}};!function(t){var n,r;n=e,r=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function i(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var o,a,u,s,c,l=e.length,p=/^[ \t\n\r\u000c]+/,f=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,m=/^\d+$/,v=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,y=[];;){if(i(f),g>=l)return y;o=i(d),a=[],","===o.slice(-1)?(o=o.replace(h,""),D()):b()}function b(){for(i(p),u="",s="in descriptor";;){if(c=e.charAt(g),"in descriptor"===s)if(r(c))u&&(a.push(u),u="",s="after descriptor");else{if(","===c)return g+=1,u&&a.push(u),void D();if("("===c)u+=c,s="in parens";else{if(""===c)return u&&a.push(u),void D();u+=c}}else if("in parens"===s)if(")"===c)u+=c,s="in descriptor";else{if(""===c)return a.push(u),void D();u+=c}else if("after descriptor"===s)if(r(c));else{if(""===c)return void D();s="in descriptor",g-=1}g+=1}}function D(){var t,r,i,u,s,c,l,p,f,d=!1,h={};for(u=0;u<a.length;u++)c=(s=a[u])[s.length-1],l=s.substring(0,s.length-1),p=parseInt(l,10),f=parseFloat(l),m.test(l)&&"w"===c?((t||r)&&(d=!0),0===p?d=!0:t=p):v.test(l)&&"x"===c?((t||r||i)&&(d=!0),f<0?d=!0:r=f):m.test(l)&&"h"===c?((i||r)&&(d=!0),0===p?d=!0:i=p):d=!0;d?n&&n.error&&n.error("Invalid srcset descriptor found in '"+e+"' at '"+s+"'."):(h.url=o,t&&(h.w=t),r&&(h.d=r),i&&(h.h=i),y.push(h))}}},t.exports?t.exports=r():n.parseSrcset=r()}(iz);var oz=iz.exports,az=hl.builders,uz=az.ifBreak,sz=az.join,cz=az.line,lz={printImgSrcset:function(e){var t=oz(e,{logger:{error:function(e){throw new Error(e)}}}),n=t.some((function(e){return e.w})),r=t.some((function(e){return e.h}));if(n+r+t.some((function(e){return e.d}))>1)throw new Error("Mixed descriptor in srcset is not supported");var i=n?"w":r?"h":"d",o=n?"w":r?"h":"x",a=function(e){return Math.max.apply(Math,l(e))},u=t.map((function(e){return e.url})),s=a(u.map((function(e){return e.length}))),c=t.map((function(e){return e[i]})).map((function(e){return e?e.toString():""})),p=c.map((function(e){var t=e.indexOf(".");return-1===t?e.length:t})),f=a(p);return sz([",",cz],u.map((function(e,t){var n=[e],r=c[t];if(r){var i=s-e.length+1,a=f-p[t],u=" ".repeat(i+a);n.push(uz(u," "),r+o)}return n})))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}},pz=hl.builders.group,fz={isVueEventBindingExpression:function(e){var t=e.trim();return/^(?:[\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function(e,t){var n=function(e){var t=/([\s\S]*?)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+(in|of)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+([\s\S]*)/,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/,r=/^\(|\)$/g,i=e.match(t);if(i){var o={};o.for=i[3].trim();var a=i[1].trim().replace(r,""),u=a.match(n);return u?(o.alias=a.replace(n,""),o.iterator1=u[1].trim(),u[2]&&(o.iterator2=u[2].trim())):o.alias=a,{left:"".concat([o.alias,o.iterator1,o.iterator2].filter(Boolean).join(",")),operator:i[2],right:o.for}}}(e),r=n.left,i=n.operator,o=n.right;return[pz(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",i," ",t(o,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}},dz=rz.needsToBorrowParentClosingTagStartMarker,hz=rz.printClosingTagStartMarker,mz=rz.needsToBorrowLastChildClosingTagEndMarker,vz=rz.printClosingTagEndMarker,gz=rz.needsToBorrowParentOpeningTagEndMarker,yz=rz.printOpeningTagEndMarker,bz=function(e,t){var n=e.startSourceSpan.end.offset;e.firstChild&&gz(e.firstChild)&&(n-=yz(e).length);var r=e.endSourceSpan.start.offset;return e.lastChild&&dz(e.lastChild)?r+=hz(e,t).length:mz(e)&&(r-=vz(e.lastChild,t).length),t.originalText.slice(n,r)},Dz=hl.builders,Ez=Dz.breakParent,Cz=Dz.group,Tz=Dz.hardline,xz=Dz.indent,Az=Dz.line,Sz=Dz.fill,wz=Dz.softline,Oz=hl.utils,kz=Oz.mapDoc,Nz=Oz.replaceTextEndOfLine,Fz=sB,_z=rz.printClosingTag,Iz=rz.printClosingTagSuffix,jz=rz.needsToBorrowPrevClosingTagEndMarker,Lz=rz.printOpeningTagPrefix,Pz=rz.printOpeningTag,Mz=lz.printImgSrcset,Bz=lz.printClassNames,Rz=fz.printVueFor,Vz=fz.printVueBindings,Uz=fz.isVueEventBindingExpression,qz=GG.isScriptLikeTag,Hz=GG.isVueNonHtmlBlock,Gz=GG.inferScriptParser,Wz=GG.htmlTrimPreserveIndentation,zz=GG.dedentString,Kz=GG.unescapeQuoteEntities,$z=GG.isVueSlotAttribute,Qz=GG.isVueSfcBindingsAttribute,Jz=GG.getTextValueParts,Yz=bz;function Xz(e,t,n){var r=function(t){return new RegExp(t.join("|")).test(e.fullName)},i=function(){return Kz(e.value)},o=!1,a=function(e,t){var n="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&("__vue_expression"!==t.parser||"TemplateLiteral"!==n.type&&"StringLiteral"!==n.type)||(o=!0)},u=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Cz([xz([wz,e]),t?wz:""])},s=function(e){return o?function(e){return Cz(e)}(e):u(e)},c=function(e,n){return t(e,Object.assign({__onHtmlBindingRoot:a,__embeddedInHtml:!0},n),{stripTrailingHardline:!0})};if("srcset"===e.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return u(Mz(i()));if("class"===e.fullName&&!n.parentParser){var l=i();if(!l.includes("{{"))return Bz(l)}if("style"===e.fullName&&!n.parentParser){var f=i();if(!f.includes("{{"))return u(c(f,{parser:"css",__isHTMLStyleAttribute:!0}))}if("vue"===n.parser){if("v-for"===e.fullName)return Rz(i(),c);if($z(e)||Qz(e,n))return Vz(i(),c);var h=["^:","^v-bind:"],m=["^v-"];if(r(["^@","^v-on:"])){var v=i();return s(c(v,{parser:Uz(v)?"__js_expression":"__vue_event_binding"}))}if(r(h))return s(c(i(),{parser:"__vue_expression"}));if(r(m))return s(c(i(),{parser:"__js_expression"}))}if("angular"===n.parser){var g=function(e,t){return c(e,Object.assign(Object.assign({},t),{},{trailingComma:"none"}))},y=["^\\*"],b=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],D=["^i18n(-.+)?$"];if(r(["^\\(.+\\)$","^on-"]))return s(g(i(),{parser:"__ng_action"}));if(r(b))return s(g(i(),{parser:"__ng_binding"}));if(r(D)){var E=i().trim();return u(Sz(Jz(e,E)),!E.includes("@@"))}if(r(y))return s(g(i(),{parser:"__ng_directive"}));var C=/\{\{([\s\S]+?)\}\}/,T=i();if(C.test(T)){var x,A=[],S=p(T.split(C).entries());try{for(S.s();!(x=S.n()).done;){var w=d(x.value,2),O=w[0],k=w[1];if(O%2==0)A.push(Nz(k));else try{A.push(Cz(["{{",xz([Az,g(k,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Az,"}}"]))}catch(N){A.push("{{",Nz(k),"}}")}}}catch(KJ){S.e(KJ)}finally{S.f()}return Cz(A)}}return null}var Zz=function(e,t,n,r){var i=e.getValue();switch(i.type){case"element":if(qz(i)||"interpolation"===i.type)return;if(!i.isSelfClosing&&Hz(i,r)){var o=Gz(i,r);if(!o)return;var a=Yz(i,r),u=/^\s*$/.test(a),s="";return u||(u=""===(s=n(Wz(a),{parser:o,__embeddedInHtml:!0},{stripTrailingHardline:!0}))),[Lz(i,r),Cz(Pz(e,r,t)),u?"":Tz,s,u?"":Tz,_z(i,r),Iz(i,r)]}break;case"text":if(qz(i.parent)){var c=Gz(i.parent);if(c){var l="markdown"===c?zz(i.value.replace(/^[^\S\n]*?\n/,"")):i.value,p={parser:c,__embeddedInHtml:!0};if("html"===r.parser&&"babel"===c){var f="script",d=i.parent.attrMap;d&&("module"===d.type||"text/babel"===d.type&&"module"===d["data-type"])&&(f="module"),p.__babelSourceType=f}return[Ez,Lz(i,r),n(l,p,{stripTrailingHardline:!0}),Iz(i,r)]}}else if("interpolation"===i.parent.type){var h={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===r.parser?(h.parser="__ng_interpolation",h.trailingComma="none"):"vue"===r.parser?h.parser="__vue_expression":h.parser="__js_expression",[xz([Az,n(i.value,h,{stripTrailingHardline:!0})]),i.parent.next&&jz(i.parent.next)?" ":Az]}break;case"attribute":if(!i.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return[i.rawName,"=",i.value];if("lwc"===r.parser&&/^\{[\s\S]*\}$/.test(r.originalText.slice(i.valueSpan.start.offset,i.valueSpan.end.offset)))return[i.rawName,"=",i.value];var m=Xz(i,(function(e,t){return n(e,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},t),{stripTrailingHardline:!0})}),r);if(m)return[i.rawName,'="',Cz(kz(m,(function(e){return"string"==typeof e?e.replace(/"/g,"""):e}))),'"'];break;case"front-matter":return Fz(i,n)}},eK=hl.builders,tK=eK.breakParent,nK=eK.group,rK=eK.ifBreak,iK=eK.line,oK=eK.softline,aK=eK.hardline,uK=hl.utils.replaceTextEndOfLine,sK=TW.locStart,cK=TW.locEnd,lK=GG.forceBreakChildren,pK=GG.forceNextEmptyLine,fK=GG.isTextLikeNode,dK=GG.hasPrettierIgnore,hK=GG.preferHardlineAsLeadingSpaces,mK=rz.printOpeningTagPrefix,vK=rz.needsToBorrowNextOpeningTagStartMarker,gK=rz.printOpeningTagStartMarker,yK=rz.needsToBorrowPrevClosingTagEndMarker,bK=rz.printClosingTagEndMarker,DK=rz.printClosingTagSuffix,EK=rz.needsToBorrowParentClosingTagStartMarker;function CK(e,t,n){var r=e.getValue();return dK(r)?[mK(r,t)].concat(l(uK(t.originalText.slice(sK(r)+(r.prev&&vK(r.prev)?gK(r).length:0),cK(r)-(r.next&&yK(r.next)?bK(r,t).length:0)))),[DK(r,t)]):n()}function TK(e,t){return fK(e)&&fK(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?hK(t)?aK:iK:"":hK(t)?aK:oK:vK(e)&&(dK(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&yK(t)?"":!t.isLeadingSpaceSensitive||hK(t)||yK(t)&&e.lastChild&&EK(e.lastChild)&&e.lastChild.lastChild&&EK(e.lastChild.lastChild)?aK:t.hasLeadingSpaces?iK:oK}var xK={printChildren:function(e,t,n){var r=e.getValue();if(lK(r))return[tK].concat(l(e.map((function(e){var r=e.getValue(),i=r.prev?TK(r.prev,r):"";return[i?[i,pK(r.prev)?aK:""]:"",CK(e,t,n)]}),"children")));var i=r.children.map((function(){return Symbol("")}));return e.map((function(e,r){var o=e.getValue();if(fK(o)){if(o.prev&&fK(o.prev)){var a=TK(o.prev,o);if(a)return pK(o.prev)?[aK,aK,CK(e,t,n)]:[a,CK(e,t,n)]}return CK(e,t,n)}var u=[],s=[],c=[],l=[],p=o.prev?TK(o.prev,o):"",f=o.next?TK(o,o.next):"";return p&&(pK(o.prev)?u.push(aK,aK):p===aK?u.push(aK):fK(o.prev)?s.push(p):s.push(rK("",oK,{groupId:i[r-1]}))),f&&(pK(o)?fK(o.next)&&l.push(aK,aK):f===aK?fK(o.next)&&l.push(aK):c.push(f)),[].concat(u,[nK([].concat(s,[nK([CK(e,t,n)].concat(c),{id:i[r]})]))],l)}),"children")}},AK=hl.builders,SK=AK.breakParent,wK=AK.dedentToRoot,OK=AK.group,kK=AK.ifBreak,NK=AK.indentIfBreak,FK=AK.indent,_K=AK.line,IK=AK.softline,jK=hl.utils.replaceTextEndOfLine,LK=bz,PK=GG.shouldPreserveContent,MK=GG.isScriptLikeTag,BK=GG.isVueCustomBlock,RK=GG.countParents,VK=GG.forceBreakContent,UK=rz.printOpeningTagPrefix,qK=rz.printOpeningTag,HK=rz.printClosingTagSuffix,GK=rz.printClosingTag,WK=rz.needsToBorrowPrevClosingTagEndMarker,zK=rz.needsToBorrowLastChildClosingTagEndMarker,KK=xK.printChildren,$K={printElement:function(e,t,n){var r=e.getValue();if(PK(r,t))return[UK(r,t),OK(qK(e,t,n))].concat(l(jK(LK(r,t))),l(GK(r,t)),[HK(r,t)]);var i,o=1===r.children.length&&"interpolation"===r.firstChild.type&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,a=Symbol("element-attr-group-id"),u=function(i){return OK([OK(qK(e,t,n),{id:a}),i,GK(r,t)])};return 0===r.children.length?u(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?_K:""):u([VK(r)?SK:"",(i=[o?kK(IK,"",{groupId:a}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?_K:"text"===r.firstChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive?wK(IK):IK,KK(e,t,n)],o?NK(i,{groupId:a}):!MK(r)&&!BK(r,t)||"root"!==r.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?FK(i):i),(r.next?WK(r.next):zK(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?" ":"":o?kK(IK,"",{groupId:a}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?_K:("comment"===r.lastChild.type||"text"===r.lastChild.type&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&new RegExp("\\n[\\t ]{".concat(t.tabWidth*RK(e,(function(e){return e.parent&&"root"!==e.parent.type})),"}$")).test(r.lastChild.value)?"":IK])}},QK=hl.builders,JK=QK.fill,YK=QK.group,XK=QK.hardline,ZK=QK.literalline,e$=hl.utils,t$=e$.cleanDoc,n$=e$.getDocParts,r$=e$.isConcat,i$=e$.replaceTextEndOfLine,o$=eG,a$=GG.countChars,u$=GG.unescapeQuoteEntities,s$=GG.getTextValueParts,c$=EW,l$=CW.insertPragma,p$=TW.locStart,f$=TW.locEnd,d$=Zz,h$=rz.printClosingTagSuffix,m$=rz.printClosingTagEnd,v$=rz.printOpeningTagPrefix,g$=rz.printOpeningTagStart,y$=$K.printElement,b$=xK.printChildren,D$={preprocess:c$,print:function(e,t,n){var r=e.getValue();switch(r.type){case"front-matter":return i$(r.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(r),[YK(b$(e,t,n)),XK];case"element":case"ieConditionalComment":return y$(e,t,n);case"ieConditionalStartComment":case"ieConditionalEndComment":return[g$(r),m$(r)];case"interpolation":return[g$(r,t)].concat(l(e.map(n,"children")),[m$(r,t)]);case"text":if("interpolation"===r.parent.type){var i=/\n[^\S\n]*?$/,o=i.test(r.value),a=o?r.value.replace(i,""):r.value;return[].concat(l(i$(a)),[o?XK:""])}var u=t$([v$(r,t)].concat(l(s$(r)),[h$(r,t)]));return r$(u)||"fill"===u.type?JK(n$(u)):u;case"docType":return[YK([g$(r,t)," ",r.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),m$(r,t)];case"comment":return[v$(r,t)].concat(l(i$(t.originalText.slice(p$(r),f$(r)),ZK)),[h$(r,t)]);case"attribute":if(null===r.value)return r.rawName;var s=u$(r.value),c=a$(s,"'")<a$(s,'"')?"'":'"';return[r.rawName,"=",c].concat(l(i$('"'===c?s.replace(/"/g,"""):s.replace(/'/g,"'"))),[c]);default:throw new Error("Unexpected node type ".concat(r.type))}},insertPragma:l$,massageAstNode:o$,embed:d$},E$="HTML",C$={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146},T$={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391},x$=Jb,A$=D$,S$={bracketSameLine:VM.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:E$,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},vueIndentScriptAndStyle:{since:"1.19.0",category:E$,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},w$=[x$(C$,(function(){return{name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]}})),x$(C$,(function(e){return{since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[].concat(l(e.extensions),[".mjml"])}})),x$(C$,(function(){return{name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]}})),x$(T$,(function(){return{since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}}))],O$={languages:w$,printers:{html:A$},options:S$,parsers:void 0},k$={isPragma:function(e){return/^\s*@(?:prettier|format)\s*$/.test(e)},hasPragma:function(e){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n".concat(e)}},N$={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},F$=function(e,t,n,r){if("root"===e.getValue().type&&r.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint)rc$/.test(r.filepath))return n(r.originalText,Object.assign(Object.assign({},r),{},{parser:"json"}))},_$=Oc.getLast,I$=Oc.isNonEmptyArray;function j$(e,t){return e&&"string"==typeof e.type&&(!t||t.includes(e.type))}function L$(e){return"prettier-ignore"===e.value.trim()}function P$(e){return e&&I$(e.leadingComments)}function M$(e){return e&&I$(e.middleComments)}function B$(e){return e&&e.indicatorComment}function R$(e){return e&&e.trailingComment}function V$(e){return e&&I$(e.endComments)}function U$(e){var t,n,r=[],i=p(e.split(/( +)/));try{for(i.s();!(n=i.n()).done;){var o=n.value;" "!==o?" "===t?r.push(o):r.push((r.pop()||"")+o):void 0===t&&r.unshift(""),t=o}}catch(KJ){i.e(KJ)}finally{i.f()}return" "===t&&r.push((r.pop()||"")+" "),""===r[0]&&(r.shift(),r.unshift(" "+(r.shift()||""))),r}var q$={getLast:_$,getAncestorCount:function(e,t){for(var n=0,r=e.stack.length-1,i=0;i<r;i++){var o=e.stack[i];j$(o)&&t(o)&&n++}return n},isNode:j$,isEmptyNode:function(e){return!I$(e.children)&&!function(e){return P$(e)||M$(e)||B$(e)||R$(e)||V$(e)}(e)},isInlineNode:function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}},mapNode:function e(t,n,r){return n("children"in t?Object.assign(Object.assign({},t),{},{children:t.children.map((function(r){return e(r,n,t)}))}):t,r)},defineShortcut:function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},isNextLineEmpty:function(e,t){for(var n=0,r=t.length,i=e.position.end.offset-1;i<r;i++){var o=t[i];if("\n"===o&&n++,1===n&&/\S/.test(o))return!1;if(2===n)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}for(var t=e.stack.length,n=1;n<t;n++){var r=e.stack[n],i=e.stack[n-1];if(Array.isArray(i)&&"number"==typeof r&&r!==i.length-1)return!1}return!0},getBlockValueLineContents:function(e,t){var n=t.parentIndent,r=t.isLastDescendant,i=t.options,o=e.position.start.line===e.position.end.line?"":i.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^(?:(?!\n)[\s\S])*?\n([\s\S]*)$/)[1],a=null===e.indent?function(e){return e?e[1].length:Number.POSITIVE_INFINITY}(o.match(/^( *)\S/m)):e.indent-1+n,u=o.split("\n").map((function(e){return e.slice(a)}));return"preserve"===i.proseWrap||"blockLiteral"===e.type?s(u.map((function(e){return 0===e.length?[]:[e]}))):s(u.map((function(e){return 0===e.length?[]:U$(e)})).reduce((function(e,t,n){return 0!==n&&u[n-1].length>0&&t.length>0&&!/^\s/.test(t[0])&&!/^\s|\s$/.test(_$(e))?[].concat(l(e.slice(0,-1)),[[].concat(l(_$(e)),l(t))]):[].concat(l(e),[t])}),[]).map((function(e){return e.reduce((function(e,t){return e.length>0&&/\s$/.test(_$(e))?[].concat(l(e.slice(0,-1)),[_$(e)+" "+t]):[].concat(l(e),[t])}),[])})).map((function(e){return"never"===i.proseWrap?[e.join(" ")]:e})));function s(t){if("keep"===e.chomping)return 0===_$(t).length?t.slice(0,-1):t;for(var n=0,i=t.length-1;i>=0&&0===t[i].length;i--)n++;return 0===n?t:n>=2&&!r?t.slice(0,-(n-1)):t.slice(0,-n)}},getFlowScalarLineContents:function(e,t,n){var r=t.split("\n").map((function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()}));return"preserve"===n.proseWrap?r.map((function(e){return 0===e.length?[]:[e]})):r.map((function(e){return 0===e.length?[]:U$(e)})).reduce((function(t,n,i){return 0!==i&&r[i-1].length>0&&n.length>0&&("quoteDouble"!==e||!_$(_$(t)).endsWith("\\"))?[].concat(l(t.slice(0,-1)),[[].concat(l(_$(t)),l(n))]):[].concat(l(t),[n])}),[]).map((function(e){return"never"===n.proseWrap?[e.join(" ")]:e}))},getLastDescendantNode:function e(t){return I$(t.children)?e(_$(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var n=e.getParentNode();return V$(n.head)&&L$(_$(n.head.endComments))}return P$(t)&&L$(_$(t.leadingComments))},hasLeadingComments:P$,hasMiddleComments:M$,hasIndicatorComment:B$,hasTrailingComment:R$,hasEndComments:V$},H$=q$.defineShortcut,G$=q$.mapNode;function W$(e){switch(e.type){case"document":H$(e,"head",(function(){return e.children[0]})),H$(e,"body",(function(){return e.children[1]}));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":H$(e,"content",(function(){return e.children[0]}));break;case"mappingItem":case"flowMappingItem":H$(e,"key",(function(){return e.children[0]})),H$(e,"value",(function(){return e.children[1]}))}return e}var z$=function(e){return G$(e,W$)},K$=hl.builders,$$=K$.softline,Q$=K$.align,J$=q$.hasEndComments,Y$=q$.isNextLineEmpty,X$=q$.isNode,Z$=new WeakMap;function eQ(e){return J$(e)&&!X$(e,["documentHead","documentBody","flowMapping","flowSequence"])}var tQ={alignWithSpaces:function(e,t){return Q$(" ".repeat(e),t)},shouldPrintEndComments:eQ,printNextEmptyLine:function(e,t){var n,r=e.getValue(),i=e.stack[0];return Z$.has(i)?n=Z$.get(i):(n=new Set,Z$.set(i,n)),n.has(r.position.end.line)||(n.add(r.position.end.line),!Y$(r,t)||eQ(e.getParentNode()))?"":$$}},nQ=hl.builders,rQ=nQ.ifBreak,iQ=nQ.line,oQ=nQ.softline,aQ=nQ.hardline,uQ=nQ.join,sQ=q$.isEmptyNode,cQ=q$.getLast,lQ=q$.hasEndComments,pQ=tQ.printNextEmptyLine,fQ=tQ.alignWithSpaces;function dQ(e,t,n){var r=e.getValue(),i="flowMapping"===r.type,o=i?"{":"[",a=i?"}":"]",u=oQ;i&&r.children.length>0&&n.bracketSpacing&&(u=iQ);var s=cQ(r.children),c=s&&"flowMappingItem"===s.type&&sQ(s.key)&&sQ(s.value);return[o,fQ(n.tabWidth,[u,hQ(e,t,n),"none"===n.trailingComma?"":rQ(","),lQ(r)?[aQ,uQ(aQ,e.map(t,"endComments"))]:""]),c?"":u,a]}function hQ(e,t,n){var r=e.getValue();return e.map((function(e,i){return[t(),i===r.children.length-1?"":[",",iQ,r.children[i].position.start.line!==r.children[i+1].position.start.line?pQ(e,n.originalText):""]]}),"children")}var mQ={printFlowMapping:dQ,printFlowSequence:dQ},vQ=hl.builders,gQ=vQ.conditionalGroup,yQ=vQ.group,bQ=vQ.hardline,DQ=vQ.ifBreak,EQ=vQ.join,CQ=vQ.line,TQ=q$.hasLeadingComments,xQ=q$.hasMiddleComments,AQ=q$.hasTrailingComment,SQ=q$.hasEndComments,wQ=q$.isNode,OQ=q$.isEmptyNode,kQ=q$.isInlineNode,NQ=tQ.alignWithSpaces;function FQ(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}var _Q=function(e,t,n,r,i){var o=e.key,a=e.value,u=OQ(o),s=OQ(a);if(u&&s)return": ";var c=r("key"),l=function(e){return e.key.content&&"alias"===e.key.content.type}(e)?" ":"";if(s)return"flowMappingItem"===e.type&&"flowMapping"===t.type?c:"mappingItem"!==e.type||!FQ(o.content,i)||AQ(o.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?["? ",NQ(2,c)]:[c,l,":"];var p=r("value");if(u)return[": ",NQ(2,p)];if(TQ(a)||!kQ(o.content))return["? ",NQ(2,c),bQ,EQ("",n.map(r,"value","leadingComments").map((function(e){return[e,bQ]}))),": ",NQ(2,p)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(o.content)&&!TQ(o.content)&&!xQ(o.content)&&!AQ(o.content)&&!SQ(o)&&!TQ(a.content)&&!xQ(a.content)&&!SQ(a)&&FQ(a.content,i))return[c,l,": ",p];var f=Symbol("mappingKey"),d=yQ([DQ("? "),yQ(NQ(2,c),{id:f})]),h=[bQ,": ",NQ(2,p)],m=[l,":"];TQ(a.content)||SQ(a)&&a.content&&!wQ(a.content,["mapping","sequence"])||"mapping"===t.type&&AQ(o.content)&&kQ(a.content)||wQ(a.content,["mapping","sequence"])&&null===a.content.tag&&null===a.content.anchor?m.push(bQ):a.content&&m.push(CQ),m.push(p);var v=NQ(i.tabWidth,m);return!FQ(o.content,i)||TQ(o.content)||xQ(o.content)||SQ(o)?gQ([[d,DQ(h,v,{groupId:f})]]):gQ([[c,v]])},IQ=hl.builders,jQ=IQ.dedent,LQ=IQ.dedentToRoot,PQ=IQ.fill,MQ=IQ.hardline,BQ=IQ.join,RQ=IQ.line,VQ=IQ.literalline,UQ=IQ.markAsRoot,qQ=hl.utils.getDocParts,HQ=q$.getAncestorCount,GQ=q$.getBlockValueLineContents,WQ=q$.hasIndicatorComment,zQ=q$.isLastDescendantNode,KQ=q$.isNode,$Q=tQ.alignWithSpaces,QQ=function(e,t,n){var r=e.getValue(),i=HQ(e,(function(e){return KQ(e,["sequence","mapping"])})),o=zQ(e),a=["blockFolded"===r.type?">":"|"];null!==r.indent&&a.push(r.indent.toString()),"clip"!==r.chomping&&a.push("keep"===r.chomping?"+":"-"),WQ(r)&&a.push(" ",t("indicatorComment"));var u,s=GQ(r,{parentIndent:i,isLastDescendant:o,options:n}),c=[],l=p(s.entries());try{for(l.s();!(u=l.n()).done;){var f=d(u.value,2),h=f[0],m=f[1];0===h&&c.push(MQ),c.push(PQ(qQ(BQ(RQ,m)))),h!==s.length-1?c.push(0===m.length?MQ:UQ(VQ)):"keep"===r.chomping&&o&&c.push(LQ(0===m.length?MQ:VQ))}}catch(KJ){l.e(KJ)}finally{l.f()}return null===r.indent?a.push(jQ($Q(n.tabWidth,c))):a.push(LQ($Q(r.indent-1+i,c))),a},JQ=hl.builders,YQ=JQ.breakParent,XQ=JQ.fill,ZQ=JQ.group,eJ=JQ.hardline,tJ=JQ.join,nJ=JQ.line,rJ=JQ.lineSuffix,iJ=JQ.literalline,oJ=hl.utils,aJ=oJ.getDocParts,uJ=oJ.replaceTextEndOfLine,sJ=Oc.isPreviousLineEmpty,cJ=k$.insertPragma,lJ=k$.isPragma,pJ=N$.locStart,fJ=F$,dJ=q$.getFlowScalarLineContents,hJ=q$.getLastDescendantNode,mJ=q$.hasLeadingComments,vJ=q$.hasMiddleComments,gJ=q$.hasTrailingComment,yJ=q$.hasEndComments,bJ=q$.hasPrettierIgnore,DJ=q$.isLastDescendantNode,EJ=q$.isNode,CJ=q$.isInlineNode,TJ=z$,xJ=tQ.alignWithSpaces,AJ=tQ.printNextEmptyLine,SJ=tQ.shouldPrintEndComments,wJ=mQ.printFlowMapping,OJ=mQ.printFlowSequence,kJ=_Q,NJ=QQ;function FJ(e,t){return gJ(e)||t&&(t.head.children.length>0||yJ(t.head))}function _J(e,t,n){var r=dJ(e,t,n);return tJ(eJ,r.map((function(e){return XQ(aJ(tJ(nJ,e)))})))}var IJ={preprocess:TJ,embed:fJ,print:function(e,t,n){var r=e.getValue(),i=[];"mappingValue"!==r.type&&mJ(r)&&i.push([tJ(eJ,e.map(n,"leadingComments")),eJ]);var o=r.tag,a=r.anchor;o&&i.push(n("tag")),o&&a&&i.push(" "),a&&i.push(n("anchor"));var u="";EJ(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!DJ(e)&&(u=AJ(e,t.originalText)),(o||a)&&(EJ(r,["sequence","mapping"])&&!vJ(r)?i.push(eJ):i.push(" ")),vJ(r)&&i.push([1===r.middleComments.length?"":eJ,tJ(eJ,e.map(n,"middleComments")),eJ]);var s=e.getParentNode();return bJ(e)?i.push(uJ(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd(),iJ)):i.push(ZQ(function(e,t,n,r,i){switch(e.type){case"root":var o=e.children,a=[];n.each((function(e,t){var n=o[t],r=o[t+1];0!==t&&a.push(eJ),a.push(i()),FJ(n,r)?(a.push(eJ,"..."),gJ(n)&&a.push(" ",i("trailingComment"))):r&&!gJ(r.head)&&a.push(eJ,"---")}),"children");var u=hJ(e);return EJ(u,["blockLiteral","blockFolded"])&&"keep"===u.chomping||a.push(eJ),a;case"document":var s=[];return"head"===function(e,t,n,r){return n.children[0]===e&&/---(?:\s|$)/.test(r.originalText.slice(pJ(e),pJ(e)+4))||e.head.children.length>0||yJ(e.head)||gJ(e.head)?"head":!FJ(e,t)&&!!t&&"root"}(e,t.children[n.getName()+1],t,r)&&((e.head.children.length>0||e.head.endComments.length>0)&&s.push(i("head")),gJ(e.head)?s.push(["---"," ",i(["head","trailingComment"])]):s.push("---")),function(e){return e.body.children.length>0||yJ(e.body)}(e)&&s.push(i("body")),tJ(eJ,s);case"documentHead":return tJ(eJ,[].concat(l(n.map(i,"children")),l(n.map(i,"endComments"))));case"documentBody":var c=e.children,p=e.endComments,f="";if(c.length>0&&p.length>0){var d=hJ(e);EJ(d,["blockFolded","blockLiteral"])?"keep"!==d.chomping&&(f=[eJ,eJ]):f=eJ}return[tJ(eJ,n.map(i,"children")),f,tJ(eJ,n.map(i,"endComments"))];case"directive":return["%",tJ(" ",[e.name].concat(l(e.parameters)))];case"comment":return["#",e.value];case"alias":return["*",e.value];case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return["&",e.value];case"plain":return _J(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var h="'",m='"',v=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&v.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(v)){var g="quoteDouble"===e.type?m:h;return[g,_J(e.type,v,r),g]}if(v.includes(m))return[h,_J(e.type,"quoteDouble"===e.type?v.replace(/\\"/g,m).replace(/'/g,h.repeat(2)):v,r),h];if(v.includes(h))return[m,_J(e.type,"quoteSingle"===e.type?v.replace(/''/g,h):v,r),m];var y=r.singleQuote?h:m;return[y,_J(e.type,v,r),y];case"blockFolded":case"blockLiteral":return NJ(n,i,r);case"mapping":case"sequence":return tJ(eJ,n.map(i,"children"));case"sequenceItem":return["- ",xJ(2,e.content?i("content"):"")];case"mappingKey":case"mappingValue":return e.content?i("content"):"";case"mappingItem":case"flowMappingItem":return kJ(e,t,n,i,r);case"flowMapping":return wJ(n,i,r);case"flowSequence":return OJ(n,i,r);case"flowSequenceItem":return i("content");default:throw new Error("Unexpected node type ".concat(e.type))}}(r,s,e,t,n))),gJ(r)&&!EJ(r,["document","documentHead"])&&i.push(rJ(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===s.type&&"mapping"===e.getParentNode(2).type&&CJ(r)?"":YQ,n("trailingComment")])),SJ(r)&&i.push(xJ("sequenceItem"===r.type?2:0,[eJ,tJ(eJ,e.map((function(e){return[sJ(t.originalText,e.getValue(),pJ)?eJ:"",n()]}),"endComments"))])),i.push(u),i},massageAstNode:function(e,t){if(EJ(t))switch(delete t.position,t.type){case"comment":if(lJ(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:cJ},jJ=IJ,LJ={bracketSpacing:VM.bracketSpacing,singleQuote:VM.singleQuote,proseWrap:VM.proseWrap},PJ=[Jb({name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},(function(e){return{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[].concat(l(e.filenames.filter((function(e){return"yarn.lock"!==e}))),[".prettierrc",".stylelintrc"])}}))],MJ=[ZM,DV,PU,oq,JH,O$,{languages:PJ,printers:{yaml:jJ},options:LJ,parsers:void 0}],BJ=v.version,RJ=xb,VJ=ac.getSupportInfo,UJ=$b,qJ=MJ,HJ=hl;function GJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r[t]||{},a=o.plugins||[];return r[t]=Object.assign(Object.assign({},o),{},{plugins:[].concat(qJ,l(Array.isArray(a)?a:Object.values(a)))}),e.apply(void 0,r)}}var WJ=GJ(RJ.formatWithCursor),zJ={formatWithCursor:WJ,format:function(e,t){return WJ(e,t).formatted},check:function(e,t){return WJ(e,t).formatted===e},doc:HJ,getSupportInfo:GJ(VJ,0),version:BJ,util:UJ,__debug:{parse:GJ(RJ.parse),formatAST:GJ(RJ.formatAST),formatDoc:GJ(RJ.formatDoc),printToDoc:GJ(RJ.printToDoc),printDocToString:GJ(RJ.printDocToString)}};return zJ}()}).call(this,n(186))},function(e,t,n){var r=n(1144);function i(t,n,o){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(n):o.value}},i(t,n,o||t)}e.exports=i},function(e,t,n){var r=n(955);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(977);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(955),i=n(1010),o=n(1147);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(e,t,n){var r=n(1148),i=n(1149);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(955),i=n(977),o=n(1151),a=n(1152);function u(t){var n="function"===typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},u(t)}e.exports=u},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(977),i=n(1010);function o(t,n,a){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}e.exports=o},function(e,t,n){var r=n(980),i=n(984),o=n(938),a=n(982);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(13),i=n.n(r),o=n(928),a=n(23);function u(e){this.wrapped=e}function s(e){return new u(e)}function c(e){var t,n;function r(t,n){try{var o=e[t](n),a=o.value,s=a instanceof u;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(c){i("throw",c)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(o,a){var u={key:e,arg:i,resolve:o,reject:a,next:null};n?n=n.next=u:(t=n=u,r(e,i))}))},"function"!==typeof e.return&&(this.return=void 0)}function l(e){return function(){return new c(e.apply(this,arguments))}}"function"===typeof Symbol&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(e){return this._invoke("next",e)},c.prototype.throw=function(e){return this._invoke("throw",e)},c.prototype.return=function(e){return this._invoke("return",e)};var p="\r\n\r\n",f=new TextDecoder;function d(e,t,n){return h.apply(this,arguments)}function h(){return(h=l(r.mark((function e(t,n,i){var o,a,u,c,l,d,h,m,v,g,y,b,D,E,C,T,x;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=t.getReader(),a=!i||!i.multiple,u="",c=!0,l=[],e.prev=2;case 3:return e.next=5,s(o.read());case 5:if((d=e.sent).done){e.next=46;break}h=f.decode(d.value),m=h.indexOf(n),v=u.length,u+=h,~m?v+=m:v=u.indexOf(n),l=[];case 12:if(!~v){e.next=41;break}if(g=u.substring(0,v),y=u.substring(v+n.length),!c){e.next=19;break}c=!1,e.next=37;break;case 19:for(b={},D=g.indexOf(p),E=u.slice(0,D).toString().trim().split(/\r\n/),C=void 0;C=E.shift();)C=C.split(": "),b[C.shift().toLowerCase()]=C.join(": ");if(T=g.substring(D+p.length,g.lastIndexOf("\r\n")),x=!1,(C=b["content-type"])&&~C.indexOf("application/json"))try{T=JSON.parse(T),x=!0}catch(r){}if(C={headers:b,body:T,json:x},!a){e.next=34;break}return e.next=32,C;case 32:e.next=35;break;case 34:l.push(C);case 35:if("--"!==y.substring(0,2)){e.next=37;break}return e.abrupt("break",46);case 37:v=(u=y).indexOf(n),e.next=12;break;case 41:if(!l.length){e.next=44;break}return e.next=44,l;case 44:e.next=3;break;case 46:if(e.prev=46,!l.length){e.next=50;break}return e.next=50,l;case 50:return o.releaseLock(),e.finish(46);case 52:case"end":return e.stop()}}),e,null,[[2,,46,52]])})))).apply(this,arguments)}function m(e,t){return v.apply(this,arguments)}function v(){return(v=Object(a.a)(r.mark((function e(t,n){var i,o;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok&&t.body&&!t.bodyUsed){e.next=2;break}return e.abrupt("return",t);case 2:if((i=t.headers.get("content-type"))&&~i.indexOf("multipart/mixed")){e.next=5;break}return e.abrupt("return",t);case 5:return o=i.indexOf("boundary="),e.abrupt("return",d(t.body,"--".concat(~o?i.substring(o+9).trim().replace(/['"]/g,""):"-"),n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var g=n(1013);function y(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var b=Symbol(),D=Symbol();var E=function(e){var t=function(){var e=!0,t=[],n=y(),i=y(),o=function(){var e=l(r.mark((function e(){var o;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length>0)){e.next=6;break}return e.next=4,t.shift();case 4:e.next=13;break;case 6:return e.next=8,s(Promise.race([n.promise,i.promise]));case 8:if((o=e.sent)!==b){e.next=11;break}return e.abrupt("break",15);case 11:if(o===D){e.next=13;break}throw o;case 13:e.next=0;break;case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()(),a=o.return.bind(o);o.return=function(){return e=!1,i.resolve(b),a.apply(void 0,arguments)};var u=o.throw.bind(o);return o.throw=function(t){return e=!1,i.resolve(t),u(t)},{pushValue:function(r){!1!==e&&(t.push(r),n.resolve(D),n=y())},asyncIterableIterator:o}}(),n=t.pushValue,i=t.asyncIterableIterator,o=e({next:function(e){n(e)},complete:function(){i.return()},error:function(e){i.throw(e)}}),a=i.return,u=void 0;return i.return=function(){return void 0===u&&(o(),u=a()),u},i};function C(e){return"object"===typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in e)}var T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},x=function(e){return this instanceof x?(this.v=e,this):new x(e)},A=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,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)}))}}},S=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=i[e](t)).value instanceof x?Promise.resolve(n.value.v).then(s,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}},w=function(e){return function(t){return E((function(n){return e.subscribe(t,Object.assign(Object.assign({},n),{error:function(e){e instanceof Error?n.error(e):e instanceof CloseEvent?n.error(new Error("Socket closed with event ".concat(e.code," ").concat(e.reason||"").trim())):n.error(new Error(e.map((function(e){return e.message})).join(", ")))}}))}))}},O=function(e){if(e.wsClient)return w(e.wsClient);if(e.subscriptionUrl)return function(e,t){var n;try{return n=Object(g.createClient)({url:e,connectionParams:t}),w(n)}catch(r){console.error("Error creating websocket client for:\n".concat(e,"\n\n").concat(r))}}(e.subscriptionUrl,e.wsConnectionParams);var t,n=e.legacyClient||e.legacyWsClient;return n?(t=n,function(e){var n=t.request(e);return E((function(e){return n.subscribe(e).unsubscribe}))}):void 0};function k(e){var t;if(null!==typeof window&&(null===window||void 0===window?void 0:window.fetch)&&(t=window.fetch),null!==(null===e||void 0===e?void 0:e.enableIncrementalDelivery)&&!1===e.enableIncrementalDelivery||(e.enableIncrementalDelivery=!0),e.fetch&&(t=e.fetch),!t)throw Error("No valid fetcher implementation available");var n=function(e,t){return function(n,r){return T(void 0,void 0,void 0,i.a.mark((function o(){var a;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},e.headers),null===r||void 0===r?void 0:r.headers)});case 2:return a=i.sent,i.abrupt("return",a.json());case 4:case"end":return i.stop()}}),o)})))}}(e,t),r=O(e),a=e.enableIncrementalDelivery?function(e,t){return function(n,r){return S(this,arguments,i.a.mark((function o(){var a,u,s,c,l,p,f;return i.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,x(t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null===r||void 0===r?void 0:r.headers)}).then((function(e){return m(e,{multiple:!0})})));case 2:if(C(s=i.sent)){i.next=13;break}return i.t0=x,i.next=7,x(s.json());case 7:return i.next=9,i.sent;case 9:return i.t1=i.sent,i.next=12,(0,i.t0)(i.t1);case 12:return i.abrupt("return",i.sent);case 13:i.prev=13,c=A(s);case 15:return i.next=17,x(c.next());case 17:if((l=i.sent).done){i.next=29;break}if(!(p=l.value).some((function(e){return!e.json}))){i.next=23;break}throw f=p.map((function(e){return"Headers::\n".concat(e.headers,"\n\nBody::\n").concat(e.body)})),new Error("Expected multipart chunks to be of json type. got:\n".concat(f));case 23:return i.next=25,x(p.map((function(e){return e.body})));case 25:return i.next=27,i.sent;case 27:i.next=15;break;case 29:i.next=34;break;case 31:i.prev=31,i.t2=i.catch(13),a={error:i.t2};case 34:if(i.prev=34,i.prev=35,!l||l.done||!(u=c.return)){i.next=39;break}return i.next=39,x(u.call(c));case 39:if(i.prev=39,!a){i.next=42;break}throw a.error;case 42:return i.finish(39);case 43:return i.finish(34);case 44:case"end":return i.stop()}}),o,null,[[13,31,34,44],[35,,39,43]])})))}}(e,t):n;return function(t,i){if("IntrospectionQuery"===t.operationName)return(e.schemaFetcher||n)(t,i);if(function(e,t){var n=!1;return Object(o.c)(e,{OperationDefinition:function(e){var r;t===(null===(r=e.name)||void 0===r?void 0:r.value)&&"subscription"===e.operation&&(n=!0)}}),n}(null===i||void 0===i?void 0:i.documentAST,t.operationName)){if(!r)throw Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. ".concat(e.subscriptionUrl?"Provided URL ".concat(e.subscriptionUrl," failed"):"Please provide subscriptionUrl, wsClient or legacyClient option first."));return r(t)}return a(t,i)}}},function(e,t,n){"use strict";var r=n(986),i=(n(979),n(973),n(978),n(947),n(964),n(965),n(0)),o=n.n(i),a=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)}}(),u=function(){return u=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},u.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){c(e),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}a(t,e),t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var e,t=this,n=this.state.visible,r=o.a.Children.map(this.props.children,(function(n,r){if(!function(e){return!(!e||"object"!==typeof e||!("props"in e))}(n))return null;e&&!n.props.selected||(e=n);var i=n.props.onSelect||t.props.onSelect&&t.props.onSelect.bind(null,n.props.value,r);return o.a.createElement(s,u({},n.props,{onSelect:i}))}));return o.a.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:c,ref:function(e){t._node=e},title:this.props.title},null===e||void 0===e?void 0:e.props.label,o.a.createElement("svg",{width:"13",height:"10"},o.a.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),o.a.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),o.a.createElement("ul",{className:"toolbar-select-options"+(n?" open":"")},r))},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&&(c(e),this.setState({visible:!1}),this._release())}}(o.a.Component);function s(e){var t=e.onSelect,n=e.label,r=e.selected;return o.a.createElement("li",{onMouseOver:function(e){e.currentTarget.className="hover"},onMouseOut:function(e){e.currentTarget.className=""},onMouseDown:c,onMouseUp:t},n,r&&o.a.createElement("svg",{width:"13",height:"13"},o.a.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 c(e){e.preventDefault()}n(975),n(976),n(974),n(937),t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n.n(r),o=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)}}(),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={editable:!1},n.editField=null,n}return o(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("")),r=this.props.favorite?"\u2605":"\u2606";return i.a.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?i.a.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"}):i.a.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),i.a.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"\u270e"),i.a.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))},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}(i.a.Component),u=n(1011),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(){return c=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},c.apply(this,arguments)},l=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 u.a(n.props.storage,n.props.maxHistoryLength);var r=n.historyStore.queries;return n.state={queries:r},n}return s(t,e),t.prototype.render=function(){var e=this,t=this.state.queries.slice().reverse().map((function(t,n){return i.a.createElement(a,c({handleEditLabel:e.onHandleEditLabel,handleToggleFavorite:e.onToggleFavorite,key:n+":"+(t.label||t.query),onSelect:e.props.onSelectQuery},t))}));return i.a.createElement("section",{"aria-label":"History"},i.a.createElement("div",{className:"history-title-bar"},i.a.createElement("div",{className:"history-title"},"History"),i.a.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),i.a.createElement("ul",{className:"history-contents"},t))},t}(i.a.Component)},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(917),i=n(912),o=n(919),a=n(941),u=n(922),s=n(944),c=n(936),l=n(918),p=n(924),f=n(916),d=n(911),h=n(972);function m(e,t){Object(u.a)(e)&&Object(u.a)(e.__schema)||Object(o.a)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(Object(i.a)(e),"."));for(var n=e.__schema,m=Object(a.a)(n.types,(function(e){return e.name}),(function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case f.TypeKind.SCALAR:return r=e,new d.g({name:r.name,description:r.description,specifiedByUrl:r.specifiedByUrl});case f.TypeKind.OBJECT:return n=e,new d.f({name:n.name,description:n.description,interfaces:function(){return w(n)},fields:function(){return O(n)}});case f.TypeKind.INTERFACE:return t=e,new d.c({name:t.name,description:t.description,interfaces:function(){return w(t)},fields:function(){return O(t)}});case f.TypeKind.UNION:return function(e){if(!e.possibleTypes){var t=Object(i.a)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new d.h({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(A)}})}(e);case f.TypeKind.ENUM:return function(e){if(!e.enumValues){var t=Object(i.a)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new d.a({name:e.name,description:e.description,values:Object(a.a)(e.enumValues,(function(e){return e.name}),(function(e){return{description:e.description,deprecationReason:e.deprecationReason}}))})}(e);case f.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=Object(i.a)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new d.b({name:e.name,description:e.description,fields:function(){return N(e.inputFields)}})}(e)}var t;var n;var r;var o=Object(i.a)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(o,"."))}(e)})),v=0,g=[].concat(p.g,f.introspectionTypes);v<g.length;v++){var y=g[v];m[y.name]&&(m[y.name]=y)}var b=n.queryType?A(n.queryType):null,D=n.mutationType?A(n.mutationType):null,E=n.subscriptionType?A(n.subscriptionType):null,C=n.directives?n.directives.map((function(e){if(!e.args){var t=Object(i.a)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var n=Object(i.a)(e);throw new Error("Introspection result missing directive locations: ".concat(n,"."))}return new l.c({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:N(e.args)})})):[];return new c.a({description:n.description,query:b,mutation:D,subscription:E,types:Object(r.a)(m),directives:C,assumeValid:null===t||void 0===t?void 0:t.assumeValid});function T(e){if(e.kind===f.TypeKind.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new d.d(T(t))}if(e.kind===f.TypeKind.NON_NULL){var n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");var r=T(n);return new d.e(Object(d.t)(r))}return x(e)}function x(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat(Object(i.a)(e),"."));var n=m[t];if(!n)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return n}function A(e){return Object(d.u)(x(e))}function S(e){return Object(d.o)(x(e))}function w(e){if(null===e.interfaces&&e.kind===f.TypeKind.INTERFACE)return[];if(!e.interfaces){var t=Object(i.a)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(S)}function O(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat(Object(i.a)(e),"."));return Object(a.a)(e.fields,(function(e){return e.name}),k)}function k(e){var t=T(e.type);if(!Object(d.O)(t)){var n=Object(i.a)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(n,"."))}if(!e.args){var r=Object(i.a)(e);throw new Error("Introspection result missing field args: ".concat(r,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:N(e.args)}}function N(e){return Object(a.a)(e,(function(e){return e.name}),F)}function F(e){var t=T(e.type);if(!Object(d.G)(t)){var n=Object(i.a)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(n,"."))}var r=null!=e.defaultValue?Object(h.a)(Object(s.c)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}}])]);
|